@king-one/antdv 1.0.22 → 1.0.24
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/CHANGELOG.md +12 -0
- package/dist/es/components/base/style/index.mjs +1 -2
- package/dist/es/components/collapse-transtion/hooks/use-collapse-transtion.mjs +43 -110
- package/dist/es/components/collapse-transtion/index.mjs +11 -10
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue.mjs +4 -6
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue2.mjs +21 -27
- package/dist/es/components/collapse-transtion/src/types.mjs +5 -5
- package/dist/es/components/collapse-transtion/style/index.mjs +2 -3
- package/dist/es/components/form/component/form.mjs +4 -4
- package/dist/es/components/form/component/form.vue.mjs +4 -6
- package/dist/es/components/form/component/form.vue2.mjs +14 -19
- package/dist/es/components/form/index.mjs +10 -9
- package/dist/es/components/index.mjs +14 -10
- package/dist/es/components/pro-dialog/hooks/useProDialog.mjs +27 -42
- package/dist/es/components/pro-dialog/index.mjs +12 -11
- package/dist/es/components/pro-dialog/src/pro-dialog.vue.mjs +4 -6
- package/dist/es/components/pro-dialog/src/pro-dialog.vue2.mjs +18 -35
- package/dist/es/components/pro-dialog/src/types.mjs +6 -7
- package/dist/es/components/scale-virtual-list/component/scale-virtual-list.vue.mjs +4 -0
- package/dist/es/components/scale-virtual-list/component/scale-virtual-list.vue2.mjs +63 -0
- package/dist/es/components/scale-virtual-list/component/types.mjs +1 -0
- package/dist/es/components/scale-virtual-list/hooks/useVirtualList.mjs +156 -0
- package/dist/es/components/scale-virtual-list/index.mjs +10 -0
- package/dist/es/components/scale-virtual-list/style/index.mjs +2 -0
- package/dist/es/components/scroll-bar/index.mjs +9 -9
- package/dist/es/components/scroll-bar/src/scroll-bar.mjs +141 -358
- package/dist/es/components/scroll-bar/src/types.mjs +4 -4
- package/dist/es/components/utils/install.mjs +14 -14
- package/dist/es/components/virtual-list/index.mjs +10 -9
- package/dist/es/components/virtual-list/src/types.mjs +5 -5
- package/dist/es/components/virtual-list/src/virtual-list.vue.mjs +4 -6
- package/dist/es/components/virtual-list/src/virtual-list.vue2.mjs +74 -87
- package/dist/es/hooks/use-namespace/index.mjs +43 -72
- package/dist/es/index.mjs +30 -16
- package/dist/es/installer.mjs +12 -12
- package/dist/lib/components/base/style/index.js +1 -5
- package/dist/lib/components/collapse-transtion/hooks/use-collapse-transtion.js +1 -136
- package/dist/lib/components/collapse-transtion/index.js +1 -16
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue.js +1 -10
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue2.js +1 -34
- package/dist/lib/components/collapse-transtion/src/types.js +1 -11
- package/dist/lib/components/collapse-transtion/style/index.js +1 -6
- package/dist/lib/components/form/component/form.js +1 -13
- package/dist/lib/components/form/component/form.vue.js +1 -10
- package/dist/lib/components/form/component/form.vue2.js +1 -30
- package/dist/lib/components/form/index.js +1 -15
- package/dist/lib/components/index.js +1 -25
- package/dist/lib/components/pro-dialog/hooks/useProDialog.js +1 -52
- package/dist/lib/components/pro-dialog/index.js +1 -19
- package/dist/lib/components/pro-dialog/src/pro-dialog.vue.js +1 -10
- package/dist/lib/components/pro-dialog/src/pro-dialog.vue2.js +1 -42
- package/dist/lib/components/pro-dialog/src/types.js +1 -11
- package/dist/lib/components/scale-virtual-list/component/scale-virtual-list.vue.js +1 -0
- package/dist/lib/components/scale-virtual-list/component/scale-virtual-list.vue2.js +1 -0
- package/dist/lib/components/scale-virtual-list/component/types.js +1 -0
- package/dist/lib/components/scale-virtual-list/hooks/useVirtualList.js +1 -0
- package/dist/lib/components/scale-virtual-list/index.js +1 -0
- package/dist/lib/components/scale-virtual-list/style/index.js +1 -0
- package/dist/lib/components/scroll-bar/index.js +1 -15
- package/dist/lib/components/scroll-bar/src/scroll-bar.js +1 -390
- package/dist/lib/components/scroll-bar/src/types.js +1 -11
- package/dist/lib/components/utils/install.js +1 -22
- package/dist/lib/components/virtual-list/index.js +1 -15
- package/dist/lib/components/virtual-list/src/types.js +1 -32
- package/dist/lib/components/virtual-list/src/virtual-list.vue.js +1 -10
- package/dist/lib/components/virtual-list/src/virtual-list.vue2.js +1 -104
- package/dist/lib/hooks/use-namespace/index.js +1 -83
- package/dist/lib/index.js +1 -30
- package/dist/lib/installer.js +1 -19
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/scale-virtual-list.css +1 -0
- package/dist/{es → types}/components/collapse-transtion/hooks/use-collapse-transtion.d.ts +2 -2
- package/dist/types/components/collapse-transtion/index.d.ts +41 -0
- package/dist/types/components/collapse-transtion/src/collapse-transtion.vue.d.ts +27 -0
- package/dist/{es → types}/components/collapse-transtion/src/types.d.ts +1 -1
- package/dist/{lib → types}/components/form/component/form.d.ts +2 -2
- package/dist/types/components/form/component/form.vue.d.ts +32 -0
- package/dist/types/components/form/index.d.ts +50 -0
- package/dist/{lib → types}/components/index.d.ts +2 -0
- package/dist/{lib → types}/components/pro-dialog/hooks/useProDialog.d.ts +2 -1
- package/dist/types/components/pro-dialog/index.d.ts +26 -0
- package/dist/types/components/pro-dialog/src/pro-dialog.vue.d.ts +24 -0
- package/dist/types/components/pro-dialog/src/types.d.ts +7 -0
- package/dist/types/components/scale-virtual-list/component/scale-virtual-list.vue.d.ts +28 -0
- package/dist/types/components/scale-virtual-list/component/types.d.ts +11 -0
- package/dist/types/components/scale-virtual-list/hooks/useVirtualList.d.ts +70 -0
- package/dist/types/components/scale-virtual-list/index.d.ts +67 -0
- package/dist/types/components/scroll-bar/index.d.ts +36 -0
- package/dist/types/components/scroll-bar/src/scroll-bar.d.ts +34 -0
- package/dist/{es → types}/components/scroll-bar/src/types.d.ts +1 -1
- package/dist/{lib → types}/components/utils/install.d.ts +1 -1
- package/dist/types/components/utils/tool.d.ts +1 -0
- package/dist/types/components/virtual-list/index.d.ts +163 -0
- package/dist/{es → types}/components/virtual-list/src/types.d.ts +2 -2
- package/dist/types/components/virtual-list/src/virtual-list.vue.d.ts +364 -0
- package/dist/{es → types}/index.d.ts +1 -1
- package/dist/{lib → types}/installer.d.ts +1 -1
- package/package.json +8 -3
- package/dist/cdn/index.cdn.js +0 -16
- package/dist/cdn/index.cdn.js.map +0 -1
- package/dist/cdn/index.cdn.mjs +0 -16
- package/dist/cdn/index.cdn.mjs.map +0 -1
- package/dist/cdn/index.css +0 -1
- package/dist/es/components/base/style/index.mjs.map +0 -1
- package/dist/es/components/collapse-transtion/hooks/use-collapse-transtion.mjs.map +0 -1
- package/dist/es/components/collapse-transtion/index.d.ts +0 -29
- package/dist/es/components/collapse-transtion/index.mjs.map +0 -1
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue.d.ts +0 -27
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue.mjs.map +0 -1
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue2.mjs.map +0 -1
- package/dist/es/components/collapse-transtion/src/types.mjs.map +0 -1
- package/dist/es/components/collapse-transtion/style/index.mjs.map +0 -1
- package/dist/es/components/form/component/form.d.ts +0 -10
- package/dist/es/components/form/component/form.mjs.map +0 -1
- package/dist/es/components/form/component/form.vue.d.ts +0 -16
- package/dist/es/components/form/component/form.vue.mjs.map +0 -1
- package/dist/es/components/form/component/form.vue2.mjs.map +0 -1
- package/dist/es/components/form/index.d.ts +0 -17
- package/dist/es/components/form/index.mjs.map +0 -1
- package/dist/es/components/form-item/component/form-item.vue.d.ts +0 -24
- package/dist/es/components/form-item/component/form-item.vue.mjs +0 -6
- package/dist/es/components/form-item/component/form-item.vue.mjs.map +0 -1
- package/dist/es/components/form-item/component/form-item.vue2.mjs +0 -128
- package/dist/es/components/form-item/component/form-item.vue2.mjs.map +0 -1
- package/dist/es/components/form-item/index.d.ts +0 -0
- package/dist/es/components/form-item/index.mjs +0 -2
- package/dist/es/components/form-item/index.mjs.map +0 -1
- package/dist/es/components/index.d.ts +0 -4
- package/dist/es/components/index.mjs.map +0 -1
- package/dist/es/components/pro-dialog/hooks/useProDialog.d.ts +0 -13
- package/dist/es/components/pro-dialog/hooks/useProDialog.mjs.map +0 -1
- package/dist/es/components/pro-dialog/index.d.ts +0 -1542
- package/dist/es/components/pro-dialog/index.mjs.map +0 -1
- package/dist/es/components/pro-dialog/src/pro-dialog.vue.d.ts +0 -1539
- package/dist/es/components/pro-dialog/src/pro-dialog.vue.mjs.map +0 -1
- package/dist/es/components/pro-dialog/src/pro-dialog.vue2.mjs.map +0 -1
- package/dist/es/components/pro-dialog/src/types.d.ts +0 -6
- package/dist/es/components/pro-dialog/src/types.mjs.map +0 -1
- package/dist/es/components/pro-dialog/style/index.mjs +0 -3
- package/dist/es/components/pro-dialog/style/index.mjs.map +0 -1
- package/dist/es/components/scroll-bar/index.d.ts +0 -35
- package/dist/es/components/scroll-bar/index.mjs.map +0 -1
- package/dist/es/components/scroll-bar/src/scroll-bar.d.ts +0 -33
- package/dist/es/components/scroll-bar/src/scroll-bar.mjs.map +0 -1
- package/dist/es/components/scroll-bar/src/types.mjs.map +0 -1
- package/dist/es/components/scroll-bar/style/index.mjs +0 -3
- package/dist/es/components/scroll-bar/style/index.mjs.map +0 -1
- package/dist/es/components/utils/install.d.ts +0 -7
- package/dist/es/components/utils/install.mjs.map +0 -1
- package/dist/es/components/virtual-list/index.d.ts +0 -312
- package/dist/es/components/virtual-list/index.mjs.map +0 -1
- package/dist/es/components/virtual-list/src/types.mjs.map +0 -1
- package/dist/es/components/virtual-list/src/virtual-list.vue.d.ts +0 -312
- package/dist/es/components/virtual-list/src/virtual-list.vue.mjs.map +0 -1
- package/dist/es/components/virtual-list/src/virtual-list.vue2.mjs.map +0 -1
- package/dist/es/hooks/use-namespace/index.d.ts +0 -23
- package/dist/es/hooks/use-namespace/index.mjs.map +0 -1
- package/dist/es/index.mjs.map +0 -1
- package/dist/es/installer.d.ts +0 -6
- package/dist/es/installer.mjs.map +0 -1
- package/dist/lib/components/base/style/index.js.map +0 -1
- package/dist/lib/components/collapse-transtion/hooks/use-collapse-transtion.d.ts +0 -12
- package/dist/lib/components/collapse-transtion/hooks/use-collapse-transtion.js.map +0 -1
- package/dist/lib/components/collapse-transtion/index.d.ts +0 -29
- package/dist/lib/components/collapse-transtion/index.js.map +0 -1
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue.d.ts +0 -27
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue.js.map +0 -1
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue2.js.map +0 -1
- package/dist/lib/components/collapse-transtion/src/types.d.ts +0 -8
- package/dist/lib/components/collapse-transtion/src/types.js.map +0 -1
- package/dist/lib/components/collapse-transtion/style/index.js.map +0 -1
- package/dist/lib/components/form/component/form.js.map +0 -1
- package/dist/lib/components/form/component/form.vue.d.ts +0 -16
- package/dist/lib/components/form/component/form.vue.js.map +0 -1
- package/dist/lib/components/form/component/form.vue2.js.map +0 -1
- package/dist/lib/components/form/index.d.ts +0 -17
- package/dist/lib/components/form/index.js.map +0 -1
- package/dist/lib/components/form-item/component/form-item.vue.d.ts +0 -24
- package/dist/lib/components/form-item/component/form-item.vue.js +0 -10
- package/dist/lib/components/form-item/component/form-item.vue.js.map +0 -1
- package/dist/lib/components/form-item/component/form-item.vue2.js +0 -132
- package/dist/lib/components/form-item/component/form-item.vue2.js.map +0 -1
- package/dist/lib/components/form-item/index.d.ts +0 -0
- package/dist/lib/components/form-item/index.js +0 -3
- package/dist/lib/components/form-item/index.js.map +0 -1
- package/dist/lib/components/index.js.map +0 -1
- package/dist/lib/components/pro-dialog/hooks/useProDialog.js.map +0 -1
- package/dist/lib/components/pro-dialog/index.d.ts +0 -1542
- package/dist/lib/components/pro-dialog/index.js.map +0 -1
- package/dist/lib/components/pro-dialog/src/pro-dialog.vue.d.ts +0 -1539
- package/dist/lib/components/pro-dialog/src/pro-dialog.vue.js.map +0 -1
- package/dist/lib/components/pro-dialog/src/pro-dialog.vue2.js.map +0 -1
- package/dist/lib/components/pro-dialog/src/types.d.ts +0 -6
- package/dist/lib/components/pro-dialog/src/types.js.map +0 -1
- package/dist/lib/components/pro-dialog/style/index.js +0 -6
- package/dist/lib/components/pro-dialog/style/index.js.map +0 -1
- package/dist/lib/components/scroll-bar/index.d.ts +0 -35
- package/dist/lib/components/scroll-bar/index.js.map +0 -1
- package/dist/lib/components/scroll-bar/src/scroll-bar.d.ts +0 -33
- package/dist/lib/components/scroll-bar/src/scroll-bar.js.map +0 -1
- package/dist/lib/components/scroll-bar/src/types.d.ts +0 -7
- package/dist/lib/components/scroll-bar/src/types.js.map +0 -1
- package/dist/lib/components/scroll-bar/style/index.js +0 -6
- package/dist/lib/components/scroll-bar/style/index.js.map +0 -1
- package/dist/lib/components/utils/install.js.map +0 -1
- package/dist/lib/components/virtual-list/index.d.ts +0 -312
- package/dist/lib/components/virtual-list/index.js.map +0 -1
- package/dist/lib/components/virtual-list/src/types.d.ts +0 -39
- package/dist/lib/components/virtual-list/src/types.js.map +0 -1
- package/dist/lib/components/virtual-list/src/virtual-list.vue.d.ts +0 -312
- package/dist/lib/components/virtual-list/src/virtual-list.vue.js.map +0 -1
- package/dist/lib/components/virtual-list/src/virtual-list.vue2.js.map +0 -1
- package/dist/lib/hooks/use-namespace/index.d.ts +0 -23
- package/dist/lib/hooks/use-namespace/index.js.map +0 -1
- package/dist/lib/index.d.ts +0 -3
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/installer.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import "@king-one/antdv/dist/theme-chalk/base.css";
|
|
@@ -1,134 +1,67 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
el.style.overflow = el.dataset.oldOverflow;
|
|
4
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
5
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
1
|
+
function d(t) {
|
|
2
|
+
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
|
|
6
3
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
el.style.overflow = el.dataset.oldOverflow;
|
|
10
|
-
el.style.paddingLeft = el.dataset.oldPaddingLeft;
|
|
11
|
-
el.style.paddingRight = el.dataset.oldPaddingRight;
|
|
4
|
+
function a(t) {
|
|
5
|
+
t.style.maxWidth = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingLeft = t.dataset.oldPaddingLeft, t.style.paddingRight = t.dataset.oldPaddingRight;
|
|
12
6
|
}
|
|
13
|
-
const
|
|
14
|
-
beforeEnter(
|
|
15
|
-
|
|
16
|
-
el.dataset = {};
|
|
17
|
-
el.dataset.oldPaddingTop = el.style.paddingTop;
|
|
18
|
-
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
|
19
|
-
if (el.style.height) {
|
|
20
|
-
el.dataset.elExistsHeight = el.style.height;
|
|
21
|
-
}
|
|
22
|
-
el.style.maxHeight = 0;
|
|
23
|
-
el.style.paddingTop = 0;
|
|
24
|
-
el.style.paddingBottom = 0;
|
|
7
|
+
const e = {
|
|
8
|
+
beforeEnter(t) {
|
|
9
|
+
t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.style.height && (t.dataset.elExistsHeight = t.style.height), t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0;
|
|
25
10
|
},
|
|
26
|
-
enter(
|
|
11
|
+
enter(t) {
|
|
27
12
|
requestAnimationFrame(() => {
|
|
28
|
-
|
|
29
|
-
if (el.dataset.elExistsHeight) {
|
|
30
|
-
el.style.maxHeight = el.dataset.elExistsHeight;
|
|
31
|
-
} else if (el.scrollHeight !== 0) {
|
|
32
|
-
el.style.maxHeight = `${el.scrollHeight}px`;
|
|
33
|
-
} else {
|
|
34
|
-
el.style.maxHeight = 0;
|
|
35
|
-
}
|
|
36
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
37
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
38
|
-
el.style.overflow = "hidden";
|
|
13
|
+
t.dataset.oldOverflow = t.style.overflow, t.dataset.elExistsHeight ? t.style.maxHeight = t.dataset.elExistsHeight : t.scrollHeight !== 0 ? t.style.maxHeight = `${t.scrollHeight}px` : t.style.maxHeight = 0, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom, t.style.overflow = "hidden";
|
|
39
14
|
});
|
|
40
15
|
},
|
|
41
|
-
afterEnter(
|
|
42
|
-
|
|
43
|
-
el.style.overflow = el.dataset.oldOverflow;
|
|
16
|
+
afterEnter(t) {
|
|
17
|
+
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow;
|
|
44
18
|
},
|
|
45
|
-
enterCancelled(
|
|
46
|
-
|
|
19
|
+
enterCancelled(t) {
|
|
20
|
+
d(t);
|
|
47
21
|
},
|
|
48
|
-
beforeLeave(
|
|
49
|
-
|
|
50
|
-
el.dataset = {};
|
|
51
|
-
el.dataset.oldPaddingTop = el.style.paddingTop;
|
|
52
|
-
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
|
53
|
-
el.dataset.oldOverflow = el.style.overflow;
|
|
54
|
-
el.style.maxHeight = `${el.scrollHeight}px`;
|
|
55
|
-
el.style.overflow = "hidden";
|
|
22
|
+
beforeLeave(t) {
|
|
23
|
+
t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${t.scrollHeight}px`, t.style.overflow = "hidden";
|
|
56
24
|
},
|
|
57
|
-
leave(
|
|
58
|
-
|
|
59
|
-
el.style.maxHeight = 0;
|
|
60
|
-
el.style.paddingTop = 0;
|
|
61
|
-
el.style.paddingBottom = 0;
|
|
62
|
-
}
|
|
25
|
+
leave(t) {
|
|
26
|
+
t.scrollHeight !== 0 && (t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0);
|
|
63
27
|
},
|
|
64
|
-
afterLeave(
|
|
65
|
-
|
|
28
|
+
afterLeave(t) {
|
|
29
|
+
d(t);
|
|
66
30
|
},
|
|
67
|
-
leaveCancelled(
|
|
68
|
-
|
|
31
|
+
leaveCancelled(t) {
|
|
32
|
+
d(t);
|
|
69
33
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if (!el.dataset)
|
|
74
|
-
el.dataset = {};
|
|
75
|
-
el.dataset.oldPaddingLeft = el.style.paddingLeft;
|
|
76
|
-
el.dataset.oldPaddingRight = el.style.paddingRight;
|
|
77
|
-
if (el.style.width) {
|
|
78
|
-
el.dataset.elExistsWidth = el.style.width;
|
|
79
|
-
}
|
|
80
|
-
el.style.maxWidth = 0;
|
|
81
|
-
el.style.paddingLeft = 0;
|
|
82
|
-
el.style.paddingRight = 0;
|
|
34
|
+
}, s = {
|
|
35
|
+
beforeEnter(t) {
|
|
36
|
+
t.dataset || (t.dataset = {}), t.dataset.oldPaddingLeft = t.style.paddingLeft, t.dataset.oldPaddingRight = t.style.paddingRight, t.style.width && (t.dataset.elExistsWidth = t.style.width), t.style.maxWidth = 0, t.style.paddingLeft = 0, t.style.paddingRight = 0;
|
|
83
37
|
},
|
|
84
|
-
enter(
|
|
38
|
+
enter(t) {
|
|
85
39
|
requestAnimationFrame(() => {
|
|
86
|
-
|
|
87
|
-
if (el.dataset.elExistsWidth) {
|
|
88
|
-
el.style.maxWidth = el.dataset.elExistsWidth;
|
|
89
|
-
} else if (el.scrollWidth !== 0) {
|
|
90
|
-
el.style.maxWidth = `${el.scrollWidth}px`;
|
|
91
|
-
} else {
|
|
92
|
-
el.style.maxWidth = 0;
|
|
93
|
-
}
|
|
94
|
-
el.style.paddingLeft = el.dataset.oldPaddingLeft;
|
|
95
|
-
el.style.paddingRight = el.dataset.oldPaddingRight;
|
|
96
|
-
el.style.overflow = "hidden";
|
|
40
|
+
t.dataset.oldOverflow = t.style.overflow, t.dataset.elExistsWidth ? t.style.maxWidth = t.dataset.elExistsWidth : t.scrollWidth !== 0 ? t.style.maxWidth = `${t.scrollWidth}px` : t.style.maxWidth = 0, t.style.paddingLeft = t.dataset.oldPaddingLeft, t.style.paddingRight = t.dataset.oldPaddingRight, t.style.overflow = "hidden";
|
|
97
41
|
});
|
|
98
42
|
},
|
|
99
|
-
afterEnter(
|
|
100
|
-
|
|
101
|
-
el.style.overflow = el.dataset.oldOverflow;
|
|
43
|
+
afterEnter(t) {
|
|
44
|
+
t.style.maxWidth = "", t.style.overflow = t.dataset.oldOverflow;
|
|
102
45
|
},
|
|
103
|
-
enterCancelled(
|
|
104
|
-
|
|
46
|
+
enterCancelled(t) {
|
|
47
|
+
a(t);
|
|
105
48
|
},
|
|
106
|
-
beforeLeave(
|
|
107
|
-
|
|
108
|
-
el.dataset = {};
|
|
109
|
-
el.dataset.oldPaddingTop = el.style.paddingTop;
|
|
110
|
-
el.dataset.oldPaddingRight = el.style.paddingRight;
|
|
111
|
-
el.dataset.oldOverflow = el.style.overflow;
|
|
112
|
-
el.style.maxWidth = `${el.scrollWidth}px`;
|
|
113
|
-
el.style.overflow = "hidden";
|
|
49
|
+
beforeLeave(t) {
|
|
50
|
+
t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingRight = t.style.paddingRight, t.dataset.oldOverflow = t.style.overflow, t.style.maxWidth = `${t.scrollWidth}px`, t.style.overflow = "hidden";
|
|
114
51
|
},
|
|
115
|
-
leave(
|
|
116
|
-
|
|
117
|
-
el.style.maxWidth = 0;
|
|
118
|
-
el.style.paddingTop = 0;
|
|
119
|
-
el.style.paddingRight = 0;
|
|
120
|
-
}
|
|
52
|
+
leave(t) {
|
|
53
|
+
t.scrollWidth !== 0 && (t.style.maxWidth = 0, t.style.paddingTop = 0, t.style.paddingRight = 0);
|
|
121
54
|
},
|
|
122
|
-
afterLeave(
|
|
123
|
-
|
|
55
|
+
afterLeave(t) {
|
|
56
|
+
a(t);
|
|
124
57
|
},
|
|
125
|
-
leaveCancelled(
|
|
126
|
-
|
|
58
|
+
leaveCancelled(t) {
|
|
59
|
+
a(t);
|
|
127
60
|
}
|
|
128
61
|
};
|
|
129
|
-
function
|
|
130
|
-
return
|
|
62
|
+
function i(t) {
|
|
63
|
+
return t.mode === "vertical" ? e : s;
|
|
131
64
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
65
|
+
export {
|
|
66
|
+
i as useCollapseTranstion
|
|
67
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { withInstall } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { withInstall as o } from "../utils/install.mjs";
|
|
2
|
+
import "./src/collapse-transtion.vue.mjs";
|
|
3
|
+
import "./style/index.mjs";
|
|
4
|
+
import { collapseProps as e } from "./src/types.mjs";
|
|
5
|
+
import r from "./src/collapse-transtion.vue2.mjs";
|
|
6
|
+
const a = o(r);
|
|
7
|
+
export {
|
|
8
|
+
a as KCollapseTranstion,
|
|
9
|
+
e as collapseProps,
|
|
10
|
+
a as default
|
|
11
|
+
};
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, Transition, mergeProps, unref, toHandlers, withCtx, renderSlot } from
|
|
2
|
-
import { defaultNamespace } from
|
|
3
|
-
import { useCollapseTranstion } from
|
|
4
|
-
import { collapseProps } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
...{
|
|
8
|
-
name: "CollapseTransition"
|
|
9
|
-
},
|
|
1
|
+
import { defineComponent as a, openBlock as s, createBlock as p, Transition as i, mergeProps as l, unref as o, toHandlers as m, withCtx as c, renderSlot as f } from "vue";
|
|
2
|
+
import { defaultNamespace as r } from "../../../hooks/use-namespace/index.mjs";
|
|
3
|
+
import { useCollapseTranstion as u } from "../hooks/use-collapse-transtion.mjs";
|
|
4
|
+
import { collapseProps as d } from "./types.mjs";
|
|
5
|
+
const z = /* @__PURE__ */ a({
|
|
6
|
+
name: "CollapseTransition",
|
|
10
7
|
__name: "collapse-transtion",
|
|
11
|
-
props:
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* FORWARDED */
|
|
24
|
-
}, 16, ["name"]);
|
|
25
|
-
};
|
|
8
|
+
props: d,
|
|
9
|
+
setup(t) {
|
|
10
|
+
const n = u(t);
|
|
11
|
+
return (e, h) => (s(), p(i, l({
|
|
12
|
+
name: e.mode === "horizontal" ? `${o(r)}-horizontal-transition` : `${o(r)}-vertical-transition`
|
|
13
|
+
}, m(o(n))), {
|
|
14
|
+
default: c(() => [
|
|
15
|
+
f(e.$slots, "default")
|
|
16
|
+
]),
|
|
17
|
+
_: 3
|
|
18
|
+
/* FORWARDED */
|
|
19
|
+
}, 16, ["name"]));
|
|
26
20
|
}
|
|
27
21
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
export {
|
|
23
|
+
z as default
|
|
24
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import "../../base/style/index.mjs";
|
|
2
|
+
import "@king-one/antdv/dist/theme-chalk/collapse-transtion.css";
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import { createElementVNode, defineComponent, openBlock, createElementBlock, renderSlot } from
|
|
2
|
-
import { formType } from
|
|
3
|
-
|
|
4
|
-
const _hoisted_1 = { class: "king-form" };
|
|
5
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode(
|
|
1
|
+
import { createElementVNode as o, defineComponent as t, openBlock as r, createElementBlock as n, renderSlot as s } from "vue";
|
|
2
|
+
import { formType as m } from "./form.mjs";
|
|
3
|
+
const c = { class: "king-form" }, l = /* @__PURE__ */ o(
|
|
6
4
|
"div",
|
|
7
5
|
null,
|
|
8
|
-
"
|
|
6
|
+
"伟大的好歌",
|
|
9
7
|
-1
|
|
10
8
|
/* HOISTED */
|
|
11
|
-
)
|
|
12
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
), d = /* @__PURE__ */ t({
|
|
13
10
|
__name: "form",
|
|
14
|
-
props:
|
|
15
|
-
setup(
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
]);
|
|
21
|
-
};
|
|
11
|
+
props: m,
|
|
12
|
+
setup(p) {
|
|
13
|
+
return (e, _) => (r(), n("form", c, [
|
|
14
|
+
l,
|
|
15
|
+
s(e.$slots, "default")
|
|
16
|
+
]));
|
|
22
17
|
}
|
|
23
18
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
export {
|
|
20
|
+
d as default
|
|
21
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { withInstall } from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { withInstall as o } from "../utils/install.mjs";
|
|
2
|
+
import "./component/form.vue.mjs";
|
|
3
|
+
import { formType as e } from "./component/form.mjs";
|
|
4
|
+
import r from "./component/form.vue2.mjs";
|
|
5
|
+
const p = o(r);
|
|
6
|
+
export {
|
|
7
|
+
p as KForm,
|
|
8
|
+
p as default,
|
|
9
|
+
e as formType
|
|
10
|
+
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { KForm as t } from "./form/index.mjs";
|
|
2
|
+
import { KVirtualList as l } from "./virtual-list/index.mjs";
|
|
3
|
+
import { KCollapseTranstion as m } from "./collapse-transtion/index.mjs";
|
|
4
|
+
import { KProDialog as f } from "./pro-dialog/index.mjs";
|
|
5
|
+
import { KScrollBar as x } from "./scroll-bar/index.mjs";
|
|
6
|
+
import { KScaleVirtualList as s } from "./scale-virtual-list/index.mjs";
|
|
7
|
+
export {
|
|
8
|
+
m as KCollapseTranstion,
|
|
9
|
+
t as KForm,
|
|
10
|
+
f as KProDialog,
|
|
11
|
+
s as KScaleVirtualList,
|
|
12
|
+
x as KScrollBar,
|
|
13
|
+
l as KVirtualList
|
|
14
|
+
};
|
|
@@ -1,49 +1,34 @@
|
|
|
1
|
-
import { ref, getCurrentInstance, unref
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
openDialog,
|
|
13
|
-
closeDialog
|
|
14
|
-
};
|
|
15
|
-
const instance = getCurrentInstance();
|
|
16
|
-
if (instance) {
|
|
17
|
-
instance.emit("init", dialogMethods);
|
|
18
|
-
}
|
|
19
|
-
return { dialogVisible, openDialog, closeDialog };
|
|
1
|
+
import { ref as s, getCurrentInstance as l, unref as a } from "vue";
|
|
2
|
+
function r() {
|
|
3
|
+
const e = s(!1), n = () => {
|
|
4
|
+
e.value = !0;
|
|
5
|
+
}, t = () => {
|
|
6
|
+
e.value = !1;
|
|
7
|
+
}, i = {
|
|
8
|
+
openDialog: n,
|
|
9
|
+
closeDialog: t
|
|
10
|
+
}, o = l();
|
|
11
|
+
return o && o.emit("init", i), { dialogVisible: e, openDialog: n, closeDialog: t };
|
|
20
12
|
}
|
|
21
|
-
function
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (!instance) {
|
|
26
|
-
console.error("useModal instance is undefined!");
|
|
27
|
-
}
|
|
28
|
-
return instance;
|
|
29
|
-
};
|
|
30
|
-
const initDialog = (modalInstance) => {
|
|
31
|
-
onBeforeUnmount(() => {
|
|
32
|
-
});
|
|
33
|
-
modalRef.value = modalInstance;
|
|
13
|
+
function u() {
|
|
14
|
+
const e = s(null), n = () => {
|
|
15
|
+
const o = a(e.value);
|
|
16
|
+
return o || console.error("useModal instance is undefined!"), o;
|
|
34
17
|
};
|
|
35
|
-
|
|
18
|
+
return [(o) => {
|
|
19
|
+
e.value = o;
|
|
20
|
+
}, {
|
|
36
21
|
openDialog: () => {
|
|
37
|
-
var
|
|
38
|
-
(
|
|
22
|
+
var o;
|
|
23
|
+
(o = n()) == null || o.openDialog();
|
|
39
24
|
},
|
|
40
25
|
closeDialog: () => {
|
|
41
|
-
var
|
|
42
|
-
return (
|
|
26
|
+
var o;
|
|
27
|
+
return (o = n()) == null ? void 0 : o.closeDialog();
|
|
43
28
|
}
|
|
44
|
-
};
|
|
45
|
-
return [initDialog, methods];
|
|
29
|
+
}];
|
|
46
30
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
export {
|
|
32
|
+
r as useProDialog,
|
|
33
|
+
u as useProDialogInit
|
|
34
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { withInstall } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { withInstall as o } from "../utils/install.mjs";
|
|
2
|
+
import "./src/pro-dialog.vue.mjs";
|
|
3
|
+
import { useProDialog as s, useProDialogInit as e } from "./hooks/useProDialog.mjs";
|
|
4
|
+
import { proDialogProps as g } from "./src/types.mjs";
|
|
5
|
+
import r from "./src/pro-dialog.vue2.mjs";
|
|
6
|
+
const p = o(r);
|
|
7
|
+
export {
|
|
8
|
+
p as KProDialog,
|
|
9
|
+
g as proDialogProps,
|
|
10
|
+
s as useProDialog,
|
|
11
|
+
e as useProDialogInit
|
|
12
|
+
};
|
|
@@ -1,38 +1,21 @@
|
|
|
1
|
-
import { defineComponent, useModel, openBlock, createBlock, unref
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
...{
|
|
8
|
-
name: "ProDialog"
|
|
9
|
-
},
|
|
1
|
+
import { defineComponent as n, mergeModels as t, useModel as a, openBlock as m, createBlock as d, unref as u, mergeProps as s } from "vue";
|
|
2
|
+
import { Modal as i } from "ant-design-vue";
|
|
3
|
+
import { proDialogProps as f } from "./types.mjs";
|
|
4
|
+
const B = /* @__PURE__ */ n({
|
|
10
5
|
__name: "pro-dialog",
|
|
11
|
-
props:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
23
|
-
"wrap-class-name": `${unref(defaultNamespace)}-pro-dialog`,
|
|
24
|
-
onOk: handleClick,
|
|
25
|
-
onCancel: handleCancel
|
|
26
|
-
}, {
|
|
27
|
-
default: withCtx(() => [
|
|
28
|
-
renderSlot(_ctx.$slots, "default")
|
|
29
|
-
]),
|
|
30
|
-
_: 3
|
|
31
|
-
/* FORWARDED */
|
|
32
|
-
}, 8, ["open", "wrap-class-name"]);
|
|
33
|
-
};
|
|
6
|
+
props: /* @__PURE__ */ t(f, {
|
|
7
|
+
modelValue: { required: !0, type: Boolean },
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
}),
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(r) {
|
|
12
|
+
const e = a(r, "modelValue");
|
|
13
|
+
return (l, o) => (m(), d(u(i), s({
|
|
14
|
+
open: e.value,
|
|
15
|
+
"onUpdate:open": o[0] || (o[0] = (p) => e.value = p)
|
|
16
|
+
}, l.dialogProps), null, 16, ["open"]));
|
|
34
17
|
}
|
|
35
18
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
export {
|
|
20
|
+
B as default
|
|
21
|
+
};
|