mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: fix vm typing
This commit is contained in:
parent
57be8f4da0
commit
fd915d1cff
@ -65,10 +65,10 @@
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vant/cli": "^3.0.0-beta.9",
|
||||
"@vue/compiler-sfc": "^3.0.1",
|
||||
"@vant/cli": "^3.0.0-beta.10",
|
||||
"@vue/compiler-sfc": "^3.0.2",
|
||||
"prettier": "^2.0.4",
|
||||
"vue": "^3.0.1"
|
||||
"vue": "^3.0.2"
|
||||
},
|
||||
"sideEffects": [
|
||||
"es/**/style/*",
|
||||
|
@ -29,7 +29,7 @@ export function route(vm: ComponentPublicInstance<RouteProps>) {
|
||||
}
|
||||
|
||||
export function useRoute() {
|
||||
const vm = getCurrentInstance()!.proxy!;
|
||||
const vm = getCurrentInstance()!.proxy as ComponentPublicInstance<RouteProps>;
|
||||
return () => {
|
||||
route(vm);
|
||||
};
|
||||
|
114
yarn.lock
114
yarn.lock
@ -2098,10 +2098,10 @@
|
||||
dependencies:
|
||||
eslint-visitor-keys "^1.1.0"
|
||||
|
||||
"@vant/cli@^3.0.0-beta.9":
|
||||
version "3.0.0-beta.9"
|
||||
resolved "https://registry.npmjs.org/@vant/cli/-/cli-3.0.0-beta.9.tgz#c1d12c699d12a5e453f64e6274853c56468042d2"
|
||||
integrity sha512-qlIm1Ii9RL0mT2Eq2zAx0h6GZ/vC2aG0LnliRcpJp/amHYFqWPTyk0SOFjteGCpjep7tRVTvKTPwFpsBIW3FdQ==
|
||||
"@vant/cli@^3.0.0-beta.10":
|
||||
version "3.0.0-beta.10"
|
||||
resolved "https://registry.npmjs.org/@vant/cli/-/cli-3.0.0-beta.10.tgz#32d4e8315a606ec399768acfe587242b94ba5b91"
|
||||
integrity sha512-G+bbBCL9sMCJ072BO3f+rsk+tnMWKGKeO8yiDSYhfsUb+kHLu6UsMFBqHSVdteKIfSG6IIjJ0P21RkFuG0Hapw==
|
||||
dependencies:
|
||||
"@babel/core" "^7.10.1"
|
||||
"@babel/plugin-transform-object-assign" "^7.10.1"
|
||||
@ -2242,36 +2242,36 @@
|
||||
html-tags "^3.1.0"
|
||||
svg-tags "^1.0.0"
|
||||
|
||||
"@vue/compiler-core@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.0.1.tgz#3ce57531078c6220be7ea458e41e4bab3522015b"
|
||||
integrity sha512-BbQQj9YVNaNWEPnP4PiFKgW8QSGB3dcPSKCtekx1586m4VA1z8hHNLQnzeygtV8BM4oU6yriiWmOIYghbJHwFw==
|
||||
"@vue/compiler-core@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.0.2.tgz#7790b7a1fcbba5ace4d81a70ce59096fa5c95734"
|
||||
integrity sha512-GOlEMTlC/OdzBkKaKOniYErbkjoKxkBOmulxGmMR10I2JJX6TvXd/peaO/kla2xhpliV/M6Z4TLJp0yjAvRIAw==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.12.0"
|
||||
"@babel/types" "^7.12.0"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/shared" "3.0.2"
|
||||
estree-walker "^2.0.1"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-dom@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.0.1.tgz#00b12f2e4aa55e624e2a5257e4bed93cf7555f0b"
|
||||
integrity sha512-8cjgswVU2YmV35H9ARZmSlDr1P9VZxUihRwefkrk6Vrsb7kui5C3d/WQ2/su34FSDpyMU1aacUOiL2CV/vdX6w==
|
||||
"@vue/compiler-dom@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.0.2.tgz#1d40de04bcdf9aabb79fb6a802dd70a2f3c2992a"
|
||||
integrity sha512-jvaL4QF2yXBJVD+JLbM2YA3e5fNfflJnfQ+GtfYk46ENGsEetqbkZqcX7fO+RHdG8tZBo7LCNBvgD0QLr+V4sg==
|
||||
dependencies:
|
||||
"@vue/compiler-core" "3.0.1"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/compiler-core" "3.0.2"
|
||||
"@vue/shared" "3.0.2"
|
||||
|
||||
"@vue/compiler-sfc@^3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.0.1.tgz#f340f8f75b5c1c4509e0f3a12c79d1544899b663"
|
||||
integrity sha512-VO5gJ7SyHw0hf1rkKXRlxjXI9+Q4ngcuUWYnyjOSDch7Wtt2IdOEiC82KFWIkfWMpHqA5HPzL2nDmys3y9d19w==
|
||||
"@vue/compiler-sfc@^3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.0.2.tgz#22c70fed72c347a4d5fa2db2e80594b3193dce57"
|
||||
integrity sha512-viYjT5ehDSLM3v0jQ9hbTs4I5e/7lSlYsDOp7TQ1qcwHRvzoTQMTkFpY/Iae+LFKM124Ld17tBfXgfrZl9dt+g==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.12.0"
|
||||
"@babel/types" "^7.12.0"
|
||||
"@vue/compiler-core" "3.0.1"
|
||||
"@vue/compiler-dom" "3.0.1"
|
||||
"@vue/compiler-ssr" "3.0.1"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/compiler-core" "3.0.2"
|
||||
"@vue/compiler-dom" "3.0.2"
|
||||
"@vue/compiler-ssr" "3.0.2"
|
||||
"@vue/shared" "3.0.2"
|
||||
consolidate "^0.16.0"
|
||||
estree-walker "^2.0.1"
|
||||
hash-sum "^2.0.0"
|
||||
@ -2283,13 +2283,13 @@
|
||||
postcss-selector-parser "^6.0.4"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-ssr@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.0.1.tgz#0455b011d72d4ed02faa93610f14981c3d44a079"
|
||||
integrity sha512-U0Vb7BOniw9rY0/YvXNw5EuIuO0dCoZd3XhnDjAKL9A5pSBxTlx6fPJeQ53gV0XH40M5z8q4yXukFqSVTXC6hQ==
|
||||
"@vue/compiler-ssr@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.0.2.tgz#73af4d274a79bfcc72a996a9b45f1072e7deaa26"
|
||||
integrity sha512-gOgK1lf+0bFl+kQj6TU0TU1jIDFlsPRlSBZaUUA16DGeeiJrFanhsMuIs/l9U0IBFr/VJcHgzYpTXqHp95luHw==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.0.1"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/compiler-dom" "3.0.2"
|
||||
"@vue/shared" "3.0.2"
|
||||
|
||||
"@vue/component-compiler-utils@^3.1.2":
|
||||
version "3.1.2"
|
||||
@ -2307,34 +2307,34 @@
|
||||
optionalDependencies:
|
||||
prettier "^1.18.2"
|
||||
|
||||
"@vue/reactivity@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.0.1.tgz#8bf6d88d0fe398e956dd8ea3df206c149ec6b92b"
|
||||
integrity sha512-XWeqNTbvcAq8BmtR5M+XU6mfIhzi1NTcrQho7nI03I+Zf6QW1hHl/ri+iNfCNCasukQI/tzpkqJYPfyZxCRKyg==
|
||||
"@vue/reactivity@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.0.2.tgz#42ed5af6025b494a5e69b05169fcddf04eebfe77"
|
||||
integrity sha512-GdRloNcBar4yqWGXOcba1t//j/WizwfthfPUYkjcIPHjYnA/vTEQYp0C9+ZjPdinv1WRK1BSMeN/xj31kQES4A==
|
||||
dependencies:
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/shared" "3.0.2"
|
||||
|
||||
"@vue/runtime-core@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.0.1.tgz#75ae586515aaa89e7be790ea0f2c09d436511e4d"
|
||||
integrity sha512-HporlL3cbD0/79U0a7mDIMEn5XoxstVXrOx0TDTi2O2CUv6yjteUQdxhmMOa8m7pnqU4DL/ZuVntBWFaf4ccaw==
|
||||
"@vue/runtime-core@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.0.2.tgz#d7ed462af1cb0bf9836668e4e6fab3f2f4b1bc00"
|
||||
integrity sha512-3m/jOs2xSipEFah9FgpEzvC9nERFonVGLN06+pf8iYPIy54Nlv7D2cyrk3Lhbjz4w3PbIrkxJnoTJYvJM7HDfA==
|
||||
dependencies:
|
||||
"@vue/reactivity" "3.0.1"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/reactivity" "3.0.2"
|
||||
"@vue/shared" "3.0.2"
|
||||
|
||||
"@vue/runtime-dom@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.0.1.tgz#2cc74550a635f38eb5f61f35f374d5bdb55156b0"
|
||||
integrity sha512-ijb2qTRU8OzllzYQ6BSymuu9KHFDyjzn4m6jcLGlNeazdk1/YA01lFtGkl6oAErdiWPglloUJzIz0ilv0laPwA==
|
||||
"@vue/runtime-dom@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.0.2.tgz#9d166d03225558025d3d80f5039b646e0051b71c"
|
||||
integrity sha512-vqC1KK1yWthTw1FKzajT0gYQaEqAq7bpeeXQC473nllGC5YHbJhNAJLSmrDun1tjXqGF0UNCWYljYm+++BJv6w==
|
||||
dependencies:
|
||||
"@vue/runtime-core" "3.0.1"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/runtime-core" "3.0.2"
|
||||
"@vue/shared" "3.0.2"
|
||||
csstype "^2.6.8"
|
||||
|
||||
"@vue/shared@3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.0.1.tgz#48196c056726aa7466d0182698524c84f203006b"
|
||||
integrity sha512-/X6AUbTFCyD2BcJnBoacUct8qcv1A5uk1+N+3tbzDVuhGPRmoYrTSnNUuF53C/GIsTkChrEiXaJh2kyo/0tRvw==
|
||||
"@vue/shared@3.0.2":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.0.2.tgz#419bd85a2ebdbd4f42963e98c5a1b103452176d9"
|
||||
integrity sha512-Zx869zlNoujFOclKIoYmkh8ES2RcS/+Jn546yOiPyZ+3+Ejivnr+fb8l+DdXUEFjo+iVDNR3KyLzg03aBFfZ4Q==
|
||||
|
||||
"@vue/test-utils@2.0.0-beta.7":
|
||||
version "2.0.0-beta.7"
|
||||
@ -12055,14 +12055,14 @@ vue-template-es2015-compiler@^1.9.0:
|
||||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
|
||||
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
|
||||
|
||||
vue@^3.0.1:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/vue/-/vue-3.0.1.tgz#dcdabf07da37e655e23d7d22eacc18c2da5f5a16"
|
||||
integrity sha512-WBTgaQMJIWQuhlzMV6C0qvVrxyQSpx3gKwflYC0sqGKEZSxMIOYRnrIlHUN4ivUVvP7mUMxcnFTt7P+akdOkQA==
|
||||
vue@^3.0.2:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.npmjs.org/vue/-/vue-3.0.2.tgz#9d5b7b2983f35e64a34d13c7c9d6831239feca3c"
|
||||
integrity sha512-ciKFjutKRs+2Vbvgrist1oDd5wZQqtOel/K//ku54zLbf8tcTV+XbyAfanTHcTkML9CUj09vnC+y+5uaOz2/9g==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.0.1"
|
||||
"@vue/runtime-dom" "3.0.1"
|
||||
"@vue/shared" "3.0.1"
|
||||
"@vue/compiler-dom" "3.0.2"
|
||||
"@vue/runtime-dom" "3.0.2"
|
||||
"@vue/shared" "3.0.2"
|
||||
|
||||
w3c-hr-time@^1.0.2:
|
||||
version "1.0.2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user