-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
68 lines (60 loc) · 1.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html>
<head>
<title>雪球股票</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<script type="text/x-template" id="stock-grid-template">
<table>
<thead>
<tr>
<th v-repeat="column: columns"
v-on="click:sortBy(column.key)"
v-class="
left: $index == 0
">
{{column.displayName}}
<span class="arrow"
v-class="reversed[column.key] ? 'dsc' : 'asc'">
</span>
</th>
</tr>
</thead>
<tbody>
<tr v-repeat="
entry: data
| orderBy sortKey reversed[sortKey]">
<td class="left">
{{entry.stockName}}
<br/>
<span class="code">{{entry.code}}</span>
</td>
<td>
{{entry.current}}
</td>
<td v-class="
up: entry.change > 0,
down: entry.change < 0
">
{{entry.change}}({{entry.percentage}}%)
</td>
</tr>
</tbody>
</table>
</script>
<div id="container">
<stock-grid v-with="
data : gridData,
columns : gridColumns,
"></stock-grid>
<div id="footer">
<button v-on="click: onOpenDir" id="open-dir">打开配置文件</button>
<button v-on="click: onTerminate" id="quit">退出</button>
</div>
</div>
<script>
require('./app.js')
</script>
</body>
</html>