Skip to content

Commit 13182a0

Browse files
committed
Merge branch 'dy-master'
2 parents f19061c + 2faa9a3 commit 13182a0

File tree

5 files changed

+41
-37
lines changed

5 files changed

+41
-37
lines changed

frameworks/non-keyed/sprae/index.html

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,30 @@ <h1>sprae</h1>
1818
<div class="col-md-6">
1919
<div class="row">
2020
<div class="col-sm-6 smallpad">
21-
<button @click="run()" type="button" class="btn btn-primary btn-block" id="run">Create 1,000
21+
<button :onclick="e => run()" type="button" class="btn btn-primary btn-block" id="run">Create 1,000
2222
rows</button>
2323
</div>
2424
<div class="col-sm-6 smallpad">
25-
<button @click="runLots()" type="button" class="btn btn-primary btn-block" id="runlots">Create 10,000
25+
<button :onclick="e => runLots()" type="button" class="btn btn-primary btn-block" id="runlots">Create
26+
10,000
2627
rows</button>
2728
</div>
2829
<div class="col-sm-6 smallpad">
29-
<button @click="add()" type="button" class="btn btn-primary btn-block" id="add">Append 1,000
30+
<button :onclick="e => add()" type="button" class="btn btn-primary btn-block" id="add">Append 1,000
3031
rows</button>
3132
</div>
3233
<div class="col-sm-6 smallpad">
33-
<button @click="update()" type="button" class="btn btn-primary btn-block" id="update">Update every 10th
34+
<button :onclick="e => update()" type="button" class="btn btn-primary btn-block" id="update">Update
35+
every 10th
3436
row</button>
3537
</div>
3638
<div class="col-sm-6 smallpad">
37-
<button @click="clear()" type="button" class="btn btn-primary btn-block" id="clear">Clear</button>
39+
<button :onclick="e => clear()" type="button" class="btn btn-primary btn-block"
40+
id="clear">Clear</button>
3841
</div>
3942
<div class="col-sm-6 smallpad">
40-
<button @click="swap()" type="button" class="btn btn-primary btn-block" id="swaprows">Swap Rows</button>
43+
<button :onclick="e => swap()" type="button" class="btn btn-primary btn-block" id="swaprows">Swap
44+
Rows</button>
4145
</div>
4246
</div>
4347
</div>
@@ -47,11 +51,12 @@ <h1>sprae</h1>
4751
<tr :each="item in rows" :class="selected && item.id == selected.id ? 'danger' : ''">
4852
<td class="col-md-1" :text="item.id"></td>
4953
<td class="col-md-4">
50-
<a role="select" @click="select(item)" :text="item.label"></a>
54+
<a role="select" :onclick="e => select(item)" :text="item.label"></a>
5155
</td>
5256
<td class="col-md-1">
5357
<a>
54-
<span role="delete" @click="remove(item)" class="glyphicon glyphicon-remove" aria-hidden="true"></span>
58+
<span role="delete" :onclick="e => remove(item)" class="glyphicon glyphicon-remove"
59+
aria-hidden="true"></span>
5560
</a>
5661
</td>
5762
<td class="col-md-6"></td>

frameworks/non-keyed/sprae/package-lock.json

Lines changed: 19 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/non-keyed/sprae/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55
"js-framework-benchmark": {
66
"frameworkVersionFromPackage": "sprae",
77
"frameworkHomeURL": "https://github.com/dy/sprae",
8-
"issues": [1139]
8+
"issues": [
9+
1139
10+
]
911
},
1012
"keywords": [
1113
"vue"
1214
],
1315
"scripts": {
14-
"build-dev": "cp ./node_modules/sprae/sprae.js ./src/sprae.js",
15-
"build-prod": "cp ./node_modules/sprae/sprae.min.js ./src/sprae.js"
16+
"build-dev": "cp ./node_modules/sprae/dist/sprae.js ./src/sprae.js",
17+
"build-prod": "cp ./node_modules/sprae/dist/sprae.min.js ./src/sprae.js"
1618
},
1719
"type": "module",
1820
"dependencies": {
19-
"sprae": "^8.1.2"
21+
"sprae": "^10.5.0"
2022
}
2123
}

frameworks/non-keyed/sprae/src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ sprae(document.getElementById('main'), {
4141
},
4242

4343
add() {
44-
this.rows = this.rows.concat(buildData(1000))
44+
this.rows.push(...buildData(1000))
45+
// this.rows = this.rows.concat(buildData(1000))
4546
this.selected = null
4647
},
4748

0 commit comments

Comments
 (0)