types(Lazyload): add typing (#8296)

This commit is contained in:
neverland 2021-03-07 10:37:22 +08:00 committed by GitHub
parent 4f080853ca
commit 7aff50f9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 12 deletions

View File

@ -57,7 +57,7 @@
"dependencies": {
"@babel/runtime": "7.x",
"@vant/icons": "^1.5.3",
"@vant/lazyload": "^1.0.2",
"@vant/lazyload": "^1.0.4",
"@vant/popperjs": "^1.0.4",
"@vant/use": "^1.0.5"
},

View File

@ -12,15 +12,10 @@ export function usePopupState() {
const open = (props: Record<string, any>) => {
Object.assign(state, props);
nextTick(() => {
toggle(true);
});
nextTick(() => toggle(true));
};
const close = () => {
toggle(false);
};
const close = () => toggle(false);
useExpose({ open, close, toggle });

View File

@ -1953,10 +1953,10 @@
resolved "https://registry.npm.taobao.org/@vant/icons/download/@vant/icons-1.5.3.tgz?cache=0&sync_timestamp=1613997305954&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40vant%2Ficons%2Fdownload%2F%40vant%2Ficons-1.5.3.tgz#b7779f67bf608d417a82452fbede406dfa46b439"
integrity sha1-t3efZ79gjUF6gkUvvt5AbfpGtDk=
"@vant/lazyload@^1.0.2":
version "1.0.2"
resolved "https://registry.npm.taobao.org/@vant/lazyload/download/@vant/lazyload-1.0.2.tgz?cache=0&sync_timestamp=1607063029666&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40vant%2Flazyload%2Fdownload%2F%40vant%2Flazyload-1.0.2.tgz#1ca486bee2b9465ae005a88014bee873a647f763"
integrity sha1-HKSGvuK5RlrgBaiAFL7oc6ZH92M=
"@vant/lazyload@^1.0.4":
version "1.0.4"
resolved "https://registry.npm.taobao.org/@vant/lazyload/download/@vant/lazyload-1.0.4.tgz?cache=0&sync_timestamp=1615084239650&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40vant%2Flazyload%2Fdownload%2F%40vant%2Flazyload-1.0.4.tgz#f1bbd81217cf416a377ab2f928f2a147a4489259"
integrity sha1-8bvYEhfPQWo3erL5KPKhR6RIklk=
"@vant/markdown-loader@^3.0.2":
version "3.0.2"