8000 fix: change vue compatiable version to ^2.5.22 · Kingwl/vue-function-api@b1f6e76 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1f6e76

Browse files
committed
fix: change vue compatiable version to ^2.5.22
1 parent b25a9cb commit b1f6e76

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"rollup-plugin-terser": "^4.0.4",
4242
"rollup-plugin-typescript2": "^0.21.0",
4343
"typescript": "^3.4.5",
44-
"vue": "^2.6.10"
44+
"vue": "^2.5.22"
4545
},
4646
"peerDependencies": {
47-
"vue": "^2.0.0"
47+
"vue": "^2.5.22"
4848
},
4949
"dependencies": {
5050
"tslib": "^1.9.3"

test/functions/state.spec.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,12 @@ describe('Hooks state', () => {
3333
};
3434
},
3535
render(h) {
36-
return h('div', [
37-
h('span', this.state.count),
38-
h(
39-
'button',
40-
{
41-
on: {
42-
click: () => {
43-
this.state.count++;
44-
},
45-
},
46-
},
47-
'+'
48-
),
49-
]);
36+
return h('div', [h('span', this.state.count)]);
5037
},
5138
}).$mount();
5239

5340
expect(app.$el.querySelector('span').textContent).toBe('0');
54-
app.$el.querySelector('button').click();
41+
app.state.count++;
5542
waitForUpdate(() => {
5643
expect(app.$el.querySelector('span').textContent).toBe('1');
5744
}).then(done);

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,10 +4201,10 @@ verror@1.10.0:
42014201
core-util-is "1.0.2"
42024202
extsprintf "^1.2.0"
42034203

4204-
vue@^2.6.10:
4204+
vue@^2.5.22:
42054205
version "2.6.10"
4206-
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
4207-
integrity sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==
4206+
resolved "https://registry.npm.taobao.org/vue/download/vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
4207+
integrity sha1-pysaQqTYKnIepDjRtr9V5mGVxjc=
42084208

42094209
w3c-hr-time@^1.0.1:
42104210
version "1.0.1"

0 commit comments

Comments
 (0)
0