Skip to content

Commit 28ff060

Browse files
committed
docs: update vue2 examples
1 parent dcc31fc commit 28ff060

File tree

3 files changed

+62
-49
lines changed

3 files changed

+62
-49
lines changed

examples/vue2-demo/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11-
"@vue/composition-api": "^1.0.0-rc.1",
12-
"@vueblocks/vue-use-core": "^0.2.3",
13-
"@vueblocks/vue-use-vuex": "^0.2.0",
11+
"@vue/composition-api": "^1.0.0-rc.11",
12+
"@vueblocks/vue-use-core": "^0.2.10",
13+
"@vueblocks/vue-use-vuex": "^0.2.10",
1414
"core-js": "^3.6.5",
1515
"vue": "^2.6.11",
16-
"vue-demi": "^0.6.0",
17-
"vuex": "^3.4.0"
16+
"vue-demi": "^0.9.1",
17+
"vuex": "^3.6.2"
1818
},
1919
"devDependencies": {
2020
"@vue/cli-plugin-babel": "~4.5.0",

examples/vue2-demo/src/components/HelloWorld.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="main">
33
<input type="text" v-model="inputVal" />
4+
<pre><code>{{inputVal}}</code></pre>
45
</div>
56
</template>
67

examples/vue2-demo/yarn.lock

+56-44
Original file line numberDiff line numberDiff line change
@@ -1359,12 +1359,12 @@
13591359
optionalDependencies:
13601360
prettier "^1.18.2"
13611361

1362-
"@vue/composition-api@^1.0.0-beta.24", "@vue/composition-api@^1.0.0-beta.25", "@vue/composition-api@^1.0.0-rc.1":
1363-
version "1.0.0-rc.1"
1364-
resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.0.0-rc.1.tgz#d5286bbaffcd1987e56d5e3a9f26bfb6023e7c41"
1365-
integrity sha512-6I5LkfA+VvVOLZufRugzQ5sWKQH81/Cr9gRLidDSeUmjRPolEEWgG4MAnWtBR5zgP5qbRMwZJ4IEYtKhnadMQQ==
1362+
"@vue/composition-api@^1.0.0-rc.11", "@vue/composition-api@^1.0.0-rc.3":
1363+
version "1.0.0-rc.11"
1364+
resolved "https://registry.nlark.com/@vue/composition-api/download/@vue/composition-api-1.0.0-rc.11.tgz#fde9a56855e159eb873df3224a461898dad91c2e"
1365+
integrity sha1-/emlaFXhWeuHPfMiSkYYmNrZHC4=
13661366
dependencies:
1367-
tslib "^2.0.3"
1367+
tslib "^2.2.0"
13681368

13691369
"@vue/eslint-config-standard@^5.1.2":
13701370
version "5.1.2"
@@ -1385,28 +1385,30 @@
13851385
resolved "https://registry.yarnpkg.com/@vue/web-component-wrapper/-/web-component-wrapper-1.2.0.tgz#bb0e46f1585a7e289b4ee6067dcc5a6ae62f1dd1"
13861386
integrity sha512-Xn/+vdm9CjuC9p3Ae+lTClNutrVhsXpzxvoTXXtoys6kVRX9FkueSUAqSWAyZntmVLlR4DosBV4pH8y5Z/HbUw==
13871387

1388-
"@vueblocks/vue-use-core@^0.2.3":
1389-
version "0.2.5"
1390-
resolved "https://registry.yarnpkg.com/@vueblocks/vue-use-core/-/vue-use-core-0.2.5.tgz#4af0bf35f2ae750b2e3a4c456bb36c5708b9b151"
1391-
integrity sha512-HEgVpEVW6PRizQZq/BWC5mWEyzh5M253kbTTWy5HwURUnPHSscNDUad+pjmbNCako08G97FVe0DdSzh2wTGlBg==
1388+
"@vueblocks/vue-use-core@^0.2.10":
1389+
version "0.2.10"
1390+
resolved "https://registry.nlark.com/@vueblocks/vue-use-core/download/@vueblocks/vue-use-core-0.2.10.tgz#f6a2b2fdb36d1f29c3ef7bc1122eb6c243d5240a"
1391+
integrity sha1-9qKy/bNtHynD73vBEi62wkPVJAo=
13921392
dependencies:
13931393
"@juggle/resize-observer" "^3.2.0"
1394-
"@vue/composition-api" "^1.0.0-beta.25"
1395-
color2k "^1.1.1"
1396-
dayjs "^1.10.2"
1394+
"@vue/composition-api" "^1.0.0-rc.3"
1395+
color2k "^1.2.4"
13971396
keymaster "^1.6.2"
1397+
lodash.clonedeep "^4.5.0"
13981398
lodash.debounce "^4.0.8"
13991399
lodash.throttle "^4.1.1"
1400+
number-precision "^1.5.0"
14001401
screenfull "^5.1.0"
1401-
vue-demi "^0.5.4"
1402+
stateshot "^1.3.3"
1403+
vue-demi "^0.7.1"
14021404

1403-
"@vueblocks/vue-use-vuex@^0.2.0":
1404-
version "0.2.5"
1405-
resolved "https://registry.yarnpkg.com/@vueblocks/vue-use-vuex/-/vue-use-vuex-0.2.5.tgz#f75a88cb810ecf00fd3c51d8904a1a2096a66164"
1406-
integrity sha512-FpChMkXsf6vtYGtcTokhieBODHuRjp9XV+wfOWXtK2rxix/wkCTL9UuiDEeOlHcWssKS08WZHAxUFxZ8z9Ljjg==
1405+
"@vueblocks/vue-use-vuex@^0.2.10":
1406+
version "0.2.10"
1407+
resolved "https://registry.nlark.com/@vueblocks/vue-use-vuex/download/@vueblocks/vue-use-vuex-0.2.10.tgz#78beda46cd255d26d68fd966a61e33bec0841c1e"
1408+
integrity sha1-eL7aRs0lXSbWj9lmph4zvsCEHB4=
14071409
dependencies:
1408-
"@vue/composition-api" "^1.0.0-beta.24"
1409-
vue-demi "^0.5.4"
1410+
"@vue/composition-api" "^1.0.0-rc.3"
1411+
vue-demi "^0.7.1"
14101412

14111413
"@webassemblyjs/ast@1.9.0":
14121414
version "1.9.0"
@@ -2562,10 +2564,10 @@ color-string@^1.5.4:
25622564
color-name "^1.0.0"
25632565
simple-swizzle "^0.2.2"
25642566

2565-
color2k@^1.1.1:
2566-
version "1.1.1"
2567-
resolved "https://registry.yarnpkg.com/color2k/-/color2k-1.1.1.tgz#f9703fab6693e2a407962211f1ab7e8e0602d5d7"
2568-
integrity sha512-pkIVqioT1tEJOwfN5O/ZNLMG55H1GhA5WlvasHR2Zj07pIDgA5JDxkqqLIz2PfZOJC8IvuJbdp1YIRbeo+MlMQ==
2567+
color2k@^1.2.4:
2568+
version "1.2.4"
2569+
resolved "https://registry.npm.taobao.org/color2k/download/color2k-1.2.4.tgz#af34950ac58e23cf224a01cb8dd0c9911a79605e"
2570+
integrity sha1-rzSVCsWOI88iSgHLjdDJkRp5YF4=
25692571

25702572
color@^3.0.0:
25712573
version "3.1.3"
@@ -3003,11 +3005,6 @@ dashdash@^1.12.0:
30033005
dependencies:
30043006
assert-plus "^1.0.0"
30053007

3006-
dayjs@^1.10.2:
3007-
version "1.10.4"
3008-
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.10.4.tgz#8e544a9b8683f61783f570980a8a80eaf54ab1e2"
3009-
integrity sha512-RI/Hh4kqRc1UKLOAf/T5zdMMX5DQIlDxwUe3wSyMMnEbGunnpENCdbUgM+dW7kXidZqCttBrmw7BhN4TMddkCw==
3010-
30113008
de-indent@^1.0.2:
30123009
version "1.0.2"
30133010
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
@@ -5346,6 +5343,11 @@ locate-path@^5.0.0:
53465343
dependencies:
53475344
p-locate "^4.1.0"
53485345

5346+
lodash.clonedeep@^4.5.0:
5347+
version "4.5.0"
5348+
resolved "https://registry.npm.taobao.org/lodash.clonedeep/download/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
5349+
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=
5350+
53495351
lodash.debounce@^4.0.8:
53505352
version "4.0.8"
53515353
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
@@ -5901,6 +5903,11 @@ num2fraction@^1.2.2:
59015903
resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
59025904
integrity sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=
59035905

5906+
number-precision@^1.5.0:
5907+
version "1.5.0"
5908+
resolved "https://registry.npm.taobao.org/number-precision/download/number-precision-1.5.0.tgz#eca1e3657cc7de3778987f2d22aa9dea4be238d5"
5909+
integrity sha1-7KHjZXzH3jd4mH8tIqqd6kviONU=
5910+
59045911
oauth-sign@~0.9.0:
59055912
version "0.9.0"
59065913
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
@@ -7684,6 +7691,11 @@ stackframe@^1.1.1:
76847691
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.2.0.tgz#52429492d63c62eb989804c11552e3d22e779303"
76857692
integrity sha512-GrdeshiRmS1YLMYgzF16olf2jJ/IzxXY9lhKOskuVziubpTYcYqyOwYeJKzQkwy7uN0fYSsbsC4RQaXf9LCrYA==
76867693

7694+
stateshot@^1.3.3:
7695+
version "1.3.3"
7696+
resolved "https://registry.npm.taobao.org/stateshot/download/stateshot-1.3.3.tgz#d7cc0c69c50c24e7c20382ed22b1d3ec5bd6c717"
7697+
integrity sha1-18wMacUMJOfCA4LtIrHT7FvWxxc=
7698+
76877699
static-extend@^0.1.1:
76887700
version "0.1.2"
76897701
resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
@@ -8106,10 +8118,10 @@ tslib@^1.9.0:
81068118
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
81078119
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
81088120

8109-
tslib@^2.0.3:
8110-
version "2.1.0"
8111-
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"
8112-
integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==
8121+
tslib@^2.2.0:
8122+
version "2.3.0"
8123+
resolved "https://registry.nlark.com/tslib/download/tslib-2.3.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e"
8124+
integrity sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4=
81138125

81148126
tty-browserify@0.0.0:
81158127
version "0.0.0"
@@ -8392,15 +8404,15 @@ vm-browserify@^1.0.1:
83928404
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
83938405
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
83948406

8395-
vue-demi@^0.5.4:
8396-
version "0.5.4"
8397-
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.5.4.tgz#cedb887af819ff0126c545a5540170d8895b816d"
8398-
integrity sha512-m/cm/Jo+USFx4JNGvhXVuAAbeB+Dejc0O8hzarph9MMuxxcMEDxf+0UBzg79g15YwYGIToX957XvzG0xSufG9A==
8407+
vue-demi@^0.7.1:
8408+
version "0.7.5"
8409+
resolved "https://registry.nlark.com/vue-demi/download/vue-demi-0.7.5.tgz?cache=0&sync_timestamp=1622102566488&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvue-demi%2Fdownload%2Fvue-demi-0.7.5.tgz#88dee7492fc99a0f911ff03fc02c658fa2a79af8"
8410+
integrity sha1-iN7nSS/Jmg+RH/A/wCxlj6Knmvg=
83998411

8400-
vue-demi@^0.6.0:
8401-
version "0.6.0"
8402-
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.6.0.tgz#e314282f704cb449119b9fd002cbbc0e39f591fe"
8403-
integrity sha512-8GEJa0mHJpYJeGeq5fD1pJct2kfdl30PHfmL1NaJ97mgKPyKojlIRt/3inGBK4Y0ylCI6T5vOo3chwpqDOq/Hw==
8412+
vue-demi@^0.9.1:
8413+
version "0.9.1"
8414+
resolved "https://registry.nlark.com/vue-demi/download/vue-demi-0.9.1.tgz?cache=0&sync_timestamp=1622102566488&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvue-demi%2Fdownload%2Fvue-demi-0.9.1.tgz#25d6e1ebd4d4010757ff3571e2bf6a1d7bf3de82"
8415+
integrity sha1-Jdbh69TUAQdX/zVx4r9qHXvz3oI=
84048416

84058417
vue-eslint-parser@^7.0.0:
84068418
version "7.4.1"
@@ -8465,10 +8477,10 @@ vue@^2.6.11:
84658477
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.12.tgz#f5ebd4fa6bd2869403e29a896aed4904456c9123"
84668478
integrity sha512-uhmLFETqPPNyuLLbsKz6ioJ4q7AZHzD8ZVFNATNyICSZouqP2Sz0rotWQC8UNBF6VGSCs5abnKJoStA6JbCbfg==
84678479

8468-
vuex@^3.4.0:
8469-
version "3.6.0"
8470-
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.0.tgz#95efa56a58f7607c135b053350833a09e01aa813"
8471-
integrity sha512-W74OO2vCJPs9/YjNjW8lLbj+jzT24waTo2KShI8jLvJW8OaIkgb3wuAMA7D+ZiUxDOx3ubwSZTaJBip9G8a3aQ==
8480+
vuex@^3.6.2:
8481+
version "3.6.2"
8482+
resolved "https://registry.nlark.com/vuex/download/vuex-3.6.2.tgz?cache=0&sync_timestamp=1621868918134&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvuex%2Fdownload%2Fvuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71"
8483+
integrity sha1-I2vAhqhww655lG8QfxbeWdWJXnE=
84728484

84738485
watchpack-chokidar2@^2.0.1:
84748486
version "2.0.1"

0 commit comments

Comments
 (0)