@opentiny/vue-hooks 2.20.0 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/use-lazy-show.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-hooks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "./lib/index.js",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@floating-ui/dom": "^1.6.9",
|
|
12
|
-
"@opentiny/vue-common": "~
|
|
12
|
+
"@opentiny/vue-common": "~3.20.0"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"author": "",
|
package/src/use-lazy-show.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hooks } from '@opentiny/vue-common';
|
|
1
2
|
/** 慢加载的 v-show 的办法, 灵感来自于: https://github.com/antfu/v-lazy-show
|
|
2
3
|
* 适用场景: 存在初始加载时,不需要显示的区域,但又需要用v-show切换显示。 比如 tabs\collapse\dropdown\cascader\carousel等
|
|
3
4
|
* @example
|
|
@@ -9,5 +10,5 @@
|
|
|
9
10
|
* </div>
|
|
10
11
|
*/
|
|
11
12
|
export declare const useLazyShow: (show: any) => {
|
|
12
|
-
lazyShow: any
|
|
13
|
+
lazyShow: hooks.Ref<any>;
|
|
13
14
|
};
|