vft 0.0.61 → 0.0.62
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/component.js +26 -22
- package/es/components/back-top/back-top.vue2.js +4 -2
- package/es/components/color-picker/color-picker.vue.d.ts +3 -1
- package/es/components/color-picker/color-picker.vue2.js +31 -30
- package/es/components/color-picker/index.d.ts +3 -1
- package/es/components/context-menu/context-menu.vue2.js +4 -2
- package/es/components/dialog/dialog.vue.d.ts +1 -1
- package/es/components/dialog/dialog.vue2.js +52 -53
- package/es/components/dialog/index.d.ts +3 -3
- package/es/components/dialog/index.js +1 -1
- package/es/components/dialog/style/css.js +1 -1
- package/es/components/dropdown/dropdown.vue.d.ts +5 -5
- package/es/components/dropdown/index.d.ts +5 -5
- package/es/components/icon-text/icon-text.vue.d.ts +10 -4
- package/es/components/icon-text/icon-text.vue2.js +28 -26
- package/es/components/icon-text/index.d.ts +10 -4
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +117 -109
- package/es/components/list-cell/index.d.ts +38 -0
- package/es/components/list-cell/index.js +12 -0
- package/es/components/list-cell/list-cell.vue.d.ts +53 -0
- package/es/components/list-cell/list-cell.vue.js +4 -0
- package/es/components/list-cell/list-cell.vue2.js +68 -0
- package/es/components/list-cell/style/css.d.ts +0 -0
- package/es/components/list-cell/style/css.js +2 -0
- package/es/components/list-cell/style/index.d.ts +0 -0
- package/es/components/list-cell/style/index.js +2 -0
- package/es/components/md-container/md-container.vue2.js +4 -2
- package/es/components/menu/index.d.ts +2 -2
- package/es/components/menu/menu-item.vue2.js +14 -12
- package/es/components/menu/menu.vue.d.ts +2 -2
- package/es/components/menu/sub-menu.vue2.js +4 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +5 -3
- package/es/components/multiple-tabs/tab-content.vue.d.ts +8 -0
- package/es/components/multiple-tabs/tab-content.vue2.js +13 -12
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +12 -12
- package/es/components/result/result.vue2.js +4 -2
- package/es/components/search/search.vue2.js +4 -2
- package/es/components/select-v2/defaults.d.ts +1 -1
- package/es/components/select-v2/index.d.ts +16 -16
- package/es/components/select-v2/select.vue.d.ts +8 -8
- package/es/components/select-v2/useSelect.d.ts +5 -5
- package/es/components/side-menu/index.d.ts +38 -1
- package/es/components/side-menu/side-menu.vue.d.ts +38 -1
- package/es/components/side-menu/side-menu.vue2.js +144 -113
- package/es/components/side-menu/use-drag-line.d.ts +10 -0
- package/es/components/side-menu/use-drag-line.js +51 -0
- package/es/components/switch/index.d.ts +1 -1
- package/es/components/switch/switch.vue.d.ts +1 -1
- package/es/components/tabs/tab-nav.vue2.js +4 -2
- package/es/components/tooltip/index.d.ts +2 -2
- package/es/components/tooltip/tooltip.vue.d.ts +2 -2
- package/es/components/virtual-list/builders/build-list.d.ts +38 -38
- package/es/components/virtual-list/components/scrollbar.d.ts +1 -1
- package/es/defaults.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +248 -239
- package/es/package.json.js +1 -1
- package/es/utils/index.js +31 -30
- package/es/utils/ns-cover.d.ts +6 -3
- package/es/utils/ns-cover.js +25 -15
- package/global.d.ts +2 -70
- package/lib/component.cjs +1 -1
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue.d.ts +3 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/index.d.ts +3 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/index.cjs +1 -1
- package/lib/components/dialog/index.d.ts +3 -3
- package/lib/components/dialog/style/css.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +5 -5
- package/lib/components/dropdown/index.d.ts +5 -5
- package/lib/components/icon-text/icon-text.vue.d.ts +10 -4
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +10 -4
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/list-cell/index.cjs +1 -0
- package/lib/components/list-cell/index.d.ts +38 -0
- package/lib/components/list-cell/list-cell.vue.cjs +1 -0
- package/lib/components/list-cell/list-cell.vue.d.ts +53 -0
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -0
- package/lib/components/list-cell/style/css.cjs +1 -0
- package/lib/components/list-cell/style/css.d.ts +0 -0
- package/lib/components/list-cell/style/index.cjs +1 -0
- package/lib/components/list-cell/style/index.d.ts +0 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/index.d.ts +2 -2
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue.d.ts +2 -2
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +8 -0
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select-v2/defaults.d.ts +1 -1
- package/lib/components/select-v2/index.d.ts +16 -16
- package/lib/components/select-v2/select.vue.d.ts +8 -8
- package/lib/components/select-v2/useSelect.d.ts +5 -5
- package/lib/components/side-menu/index.d.ts +38 -1
- package/lib/components/side-menu/side-menu.vue.d.ts +38 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -0
- package/lib/components/side-menu/use-drag-line.d.ts +10 -0
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/switch.vue.d.ts +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +2 -2
- package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
- package/lib/components/virtual-list/builders/build-list.d.ts +38 -38
- package/lib/components/virtual-list/components/scrollbar.d.ts +1 -1
- package/lib/defaults.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/ns-cover.cjs +1 -1
- package/lib/utils/ns-cover.d.ts +6 -3
- package/package.json +1 -1
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/dark/css-vars.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +13 -2
- package/theme-style/src/dark/var.scss +3 -3
- package/theme-style/src/dialog.scss +6 -4
- package/theme-style/src/footer-layout.scss +1 -0
- package/theme-style/src/index.scss +1 -0
- package/theme-style/src/list-cell.scss +55 -0
- package/theme-style/src/loading.scss +1 -1
- package/theme-style/src/md-container.scss +2 -3
- package/theme-style/src/menu.scss +5 -1
- package/theme-style/src/multiple-tabs.scss +1 -1
- package/theme-style/src/pagination.scss +1 -5
- package/theme-style/src/popover.scss +3 -3
- package/theme-style/src/side-menu.scss +21 -5
- package/theme-style/src/var.scss +0 -2
- package/theme-style/vft-back-top.css +1 -1
- package/theme-style/vft-dialog.css +1 -1
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-list-cell.css +1 -0
- package/theme-style/vft-loading.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-popover.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
|
@@ -290,8 +290,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
290
290
|
required: false;
|
|
291
291
|
};
|
|
292
292
|
}>> & {
|
|
293
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
294
293
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
297
297
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -308,7 +308,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
308
308
|
}>;
|
|
309
309
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
310
310
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
311
|
-
$emit: (event: "
|
|
311
|
+
$emit: (event: "open" | "close" | "before-show" | "before-hide" | "show" | "hide", ...args: any[]) => void;
|
|
312
312
|
$el: any;
|
|
313
313
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
314
314
|
role: {
|
|
@@ -500,8 +500,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
500
500
|
required: false;
|
|
501
501
|
};
|
|
502
502
|
}>> & {
|
|
503
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
504
503
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
504
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
505
505
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
506
506
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
507
507
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -514,7 +514,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
514
514
|
onOpen: (event?: Event | undefined) => void;
|
|
515
515
|
onClose: (event?: Event | undefined) => void;
|
|
516
516
|
hide: (event?: Event | undefined) => void;
|
|
517
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
517
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "before-show" | "before-hide" | "show" | "hide")[], string, {}, {}, string> & {
|
|
518
518
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
519
519
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
520
520
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -724,8 +724,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
724
724
|
required: false;
|
|
725
725
|
};
|
|
726
726
|
}>> & {
|
|
727
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
728
727
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
728
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
729
729
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
730
730
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
731
731
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -290,8 +290,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
290
290
|
required: false;
|
|
291
291
|
};
|
|
292
292
|
}>> & {
|
|
293
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
294
293
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
297
297
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -308,7 +308,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
308
308
|
}>;
|
|
309
309
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
310
310
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
311
|
-
$emit: (event: "
|
|
311
|
+
$emit: (event: "open" | "close" | "before-show" | "before-hide" | "show" | "hide", ...args: any[]) => void;
|
|
312
312
|
$el: any;
|
|
313
313
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
314
314
|
role: {
|
|
@@ -500,8 +500,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
500
500
|
required: false;
|
|
501
501
|
};
|
|
502
502
|
}>> & {
|
|
503
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
504
503
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
504
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
505
505
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
506
506
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
507
507
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -514,7 +514,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
514
514
|
onOpen: (event?: Event | undefined) => void;
|
|
515
515
|
onClose: (event?: Event | undefined) => void;
|
|
516
516
|
hide: (event?: Event | undefined) => void;
|
|
517
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
517
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "before-show" | "before-hide" | "show" | "hide")[], string, {}, {}, string> & {
|
|
518
518
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
519
519
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
520
520
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -724,8 +724,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
724
724
|
required: false;
|
|
725
725
|
};
|
|
726
726
|
}>> & {
|
|
727
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
728
727
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
728
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
729
729
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
730
730
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
731
731
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -29,7 +29,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
29
|
type: __PropType<string | number | undefined>;
|
|
30
30
|
required: false;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
direction: {
|
|
33
|
+
type: __PropType<"row" | "col" | undefined>;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
37
|
text: {
|
|
34
38
|
type: __PropType<string>;
|
|
35
39
|
required: true;
|
|
@@ -58,7 +62,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
58
62
|
type: __PropType<string | number | undefined>;
|
|
59
63
|
required: false;
|
|
60
64
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
direction: {
|
|
66
|
+
type: __PropType<"row" | "col" | undefined>;
|
|
67
|
+
required: false;
|
|
68
|
+
};
|
|
69
|
+
}>>, {}>;
|
|
64
70
|
export default _sfc_main;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, computed as o, openBlock as l, createElementBlock as h, normalizeClass as k, unref as t, normalizeStyle as B, createBlock as s, mergeProps as m, createCommentVNode as u, createElementVNode as S, toDisplayString as V } from "vue";
|
|
2
2
|
import { VftIcon as v } from "../icon/index.js";
|
|
3
|
-
import { useNamespace as
|
|
3
|
+
import { useNamespace as b } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
|
-
import { singleAttrToObj as
|
|
9
|
-
import { generateCssVars as
|
|
8
|
+
import { singleAttrToObj as N, addUnit as f, removeUnit as d } from "@vft/utils";
|
|
9
|
+
import { generateCssVars as E } from "../../utils/ns-cover.js";
|
|
10
10
|
import "@vue/reactivity";
|
|
11
11
|
import "@vue/shared";
|
|
12
|
-
const
|
|
12
|
+
const g = (
|
|
13
13
|
/* hoist-static*/
|
|
14
|
-
|
|
15
|
-
),
|
|
16
|
-
name:
|
|
17
|
-
}),
|
|
18
|
-
|
|
14
|
+
b("icon-text")
|
|
15
|
+
), T = y({
|
|
16
|
+
name: g.b()
|
|
17
|
+
}), F = /* @__PURE__ */ y({
|
|
18
|
+
...T,
|
|
19
19
|
props: {
|
|
20
20
|
text: null,
|
|
21
21
|
icon: null,
|
|
@@ -23,29 +23,31 @@ const y = (
|
|
|
23
23
|
hoverColor: null,
|
|
24
24
|
distance: null,
|
|
25
25
|
reverse: { type: Boolean },
|
|
26
|
-
size: null
|
|
26
|
+
size: null,
|
|
27
|
+
direction: { default: "row" }
|
|
27
28
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
setup(e) {
|
|
30
|
+
const x = o(() => e.hoverColor ? e.hoverColor : e.color), c = o(() => N(e.icon, "icon", { size: e.size, color: e.color })), i = o(() => e.direction === "col"), a = o(() => {
|
|
31
|
+
const r = f(e.distance);
|
|
32
|
+
return i.value ? e.reverse ? { marginTop: r } : { marginBottom: r } : e.reverse ? { marginLeft: r } : { marginRight: r };
|
|
33
|
+
}), n = o(() => d(e.size)), z = o(() => n.value && d(n.value) < 12 ? { transform: `scale(${n.value / 12})` } : {}), C = o(() => ({
|
|
34
|
+
...E({
|
|
32
35
|
color: e.color,
|
|
33
|
-
"hover-color":
|
|
34
|
-
fontSize: n.value < 12 ? "12px" :
|
|
36
|
+
"hover-color": x.value,
|
|
37
|
+
fontSize: n.value < 12 ? "12px" : f(e.size)
|
|
35
38
|
}, "icon-text"),
|
|
36
|
-
...
|
|
39
|
+
...z.value
|
|
37
40
|
}));
|
|
38
|
-
return (
|
|
39
|
-
class:
|
|
40
|
-
|
|
41
|
-
style: B(t(x))
|
|
41
|
+
return (r, U) => (l(), h("span", {
|
|
42
|
+
class: k([t(g).b(), { "flex-col": t(i) }]),
|
|
43
|
+
style: B(t(C))
|
|
42
44
|
}, [
|
|
43
|
-
e.reverse ? u("", !0) : (
|
|
44
|
-
|
|
45
|
-
e.reverse ? (
|
|
45
|
+
e.reverse ? u("", !0) : (l(), s(t(v), m({ key: 0 }, t(c), { style: t(a) }), null, 16, ["style"])),
|
|
46
|
+
S("span", null, V(e.text), 1),
|
|
47
|
+
e.reverse ? (l(), s(t(v), m({ key: 1 }, t(c), { style: t(a) }), null, 16, ["style"])) : u("", !0)
|
|
46
48
|
], 6));
|
|
47
49
|
}
|
|
48
50
|
});
|
|
49
51
|
export {
|
|
50
|
-
|
|
52
|
+
F as default
|
|
51
53
|
};
|
|
@@ -27,7 +27,11 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
27
27
|
type: import("vue").PropType<string | number | undefined>;
|
|
28
28
|
required: false;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
direction: {
|
|
31
|
+
type: import("vue").PropType<"row" | "col" | undefined>;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
35
|
text: {
|
|
32
36
|
type: import("vue").PropType<string>;
|
|
33
37
|
required: true;
|
|
@@ -56,7 +60,9 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
56
60
|
type: import("vue").PropType<string | number | undefined>;
|
|
57
61
|
required: false;
|
|
58
62
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
direction: {
|
|
64
|
+
type: import("vue").PropType<"row" | "col" | undefined>;
|
|
65
|
+
required: false;
|
|
66
|
+
};
|
|
67
|
+
}>>, {}>> & Record<string, any>;
|
|
62
68
|
export default VftIconText;
|
package/es/components/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export * from './select-v2';
|
|
|
47
47
|
export * from './verify-code';
|
|
48
48
|
export * from './table';
|
|
49
49
|
export * from './image-viewer';
|
|
50
|
+
export * from './list-cell';
|
|
51
|
+
export * from './dialog';
|
|
50
52
|
export * from './md-container';
|
|
51
53
|
export * from './md-comment';
|
|
52
54
|
export * from './md-tabs';
|
package/es/components/index.js
CHANGED
|
@@ -3,20 +3,20 @@ import { VftIcon as f, VftIcon as p } from "./icon/index.js";
|
|
|
3
3
|
import { VftAvatar as x } from "./avatar/index.js";
|
|
4
4
|
import { VftEmpty as i } from "./empty/index.js";
|
|
5
5
|
import { VftResult as n } from "./result/index.js";
|
|
6
|
-
import { VftTabPane as
|
|
6
|
+
import { VftTabPane as l, VftTabs as d } from "./tabs/index.js";
|
|
7
7
|
import { VftPopper as c } from "./popper/index.js";
|
|
8
8
|
import { VftCollapseTransition as g } from "./collapse-transition/index.js";
|
|
9
|
-
import { VftTooltip as
|
|
9
|
+
import { VftTooltip as y } from "./tooltip/index.js";
|
|
10
10
|
import { VftPopover as D } from "./popover/index.js";
|
|
11
11
|
import { VftMenu as M, VftMenuItem as T, VftMenuItemGroup as S, VftSubMenu as v } from "./menu/index.js";
|
|
12
|
-
import { createContextMenu as G, destroyContextMenu as
|
|
12
|
+
import { createContextMenu as G, destroyContextMenu as K } from "./context-menu/createContextMenu.js";
|
|
13
13
|
import { useContextMenu as z } from "./context-menu/useContextMenu.js";
|
|
14
14
|
import { VftMultipleTabs as h } from "./multiple-tabs/index.js";
|
|
15
15
|
import { VftHeaderLayout as k } from "./header-layout/index.js";
|
|
16
16
|
import { VftFooterLayout as B } from "./footer-layout/index.js";
|
|
17
17
|
import { VftIframeLayout as O } from "./iframe-layout/index.js";
|
|
18
18
|
import { VftRouterViewContent as _ } from "./router-view-content/index.js";
|
|
19
|
-
import { VftLogo as
|
|
19
|
+
import { VftLogo as W } from "./logo/index.js";
|
|
20
20
|
import { VftBackTop as J } from "./back-top/index.js";
|
|
21
21
|
import { VftConfigProvider as Y } from "./config-provider/index.js";
|
|
22
22
|
import { VftDescriptions as U, VftDescriptionsItem as X } from "./descriptions/index.js";
|
|
@@ -27,19 +27,19 @@ import { VftInput as po } from "./input/index.js";
|
|
|
27
27
|
import { VftLink as xo } from "./link/index.js";
|
|
28
28
|
import { VftPagination as io } from "./pagination/index.js";
|
|
29
29
|
import { VftTag as no } from "./tag/index.js";
|
|
30
|
-
import { VftSideMenu as
|
|
30
|
+
import { VftSideMenu as lo } from "./side-menu/index.js";
|
|
31
31
|
import { VftQrcode as co } from "./qrcode/index.js";
|
|
32
32
|
import { VftOverlay as go } from "./overlay/index.js";
|
|
33
|
-
import { VftClamp as
|
|
33
|
+
import { VftClamp as yo } from "./clamp/index.js";
|
|
34
34
|
import { VftClampToggle as Do } from "./clamp-toggle/index.js";
|
|
35
35
|
import { VftPageWrapper as Mo } from "./page-wrapper/index.js";
|
|
36
36
|
import { VftException as So } from "./exception/index.js";
|
|
37
37
|
import { VftSearch as Lo } from "./search/index.js";
|
|
38
|
-
import { VftForm as
|
|
38
|
+
import { VftForm as Ko, VftFormItem as wo } from "./form/index.js";
|
|
39
39
|
import { VftButton as Fo, VftButtonGroup as ho } from "./button/index.js";
|
|
40
40
|
import { VftCheckbox as ko, VftCheckboxButton as Ao, VftCheckboxGroup as Bo } from "./checkbox/index.js";
|
|
41
41
|
import { VftRadio as Oo, VftRadioButton as No, VftRadioGroup as _o } from "./radio/index.js";
|
|
42
|
-
import { VftSwitch as
|
|
42
|
+
import { VftSwitch as Wo } from "./switch/index.js";
|
|
43
43
|
import { VftColorPicker as Jo } from "./color-picker/index.js";
|
|
44
44
|
import { VftScrollbar as Yo } from "./scrollbar/index.js";
|
|
45
45
|
import { VftDropdown as Uo, VftDropdownItem as Xo, VftDropdownMenu as Zo } from "./dropdown/index.js";
|
|
@@ -48,57 +48,61 @@ import { default as rt } from "./virtual-list/components/dynamic-size-list.js";
|
|
|
48
48
|
import { default as ft } from "./virtual-list/components/fixed-size-grid.js";
|
|
49
49
|
import { default as mt } from "./virtual-list/components/dynamic-size-grid.js";
|
|
50
50
|
import { virtualizedGridProps as at, virtualizedListProps as it, virtualizedProps as Vt, virtualizedScrollbarProps as nt } from "./virtual-list/props.js";
|
|
51
|
-
import { VftSelectV2 as
|
|
52
|
-
import { VftVerifyCode as
|
|
51
|
+
import { VftSelectV2 as lt } from "./select-v2/index.js";
|
|
52
|
+
import { VftVerifyCode as ut } from "./verify-code/index.js";
|
|
53
53
|
import { VftTable as Ct } from "./table/index.js";
|
|
54
54
|
import { VftImageViewer as It } from "./image-viewer/index.js";
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import { default as Jt } from "./popper/
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
55
|
+
import { VftListCell as bt } from "./list-cell/index.js";
|
|
56
|
+
import { VftDialog as Pt } from "./dialog/index.js";
|
|
57
|
+
import { VftMdContainer as Tt } from "./md-container/index.js";
|
|
58
|
+
import { VftMdComment as vt } from "./md-comment/index.js";
|
|
59
|
+
import { VftMdTabs as Gt } from "./md-tabs/index.js";
|
|
60
|
+
import { VftMdVuePlayground as wt } from "./md-vue-playground/index.js";
|
|
61
|
+
import { VftMdCodeDemo as Ft } from "./md-code-demo/index.js";
|
|
62
|
+
import { VftMdCodeTabs as Rt } from "./md-code-tabs/index.js";
|
|
63
|
+
import { VftMessage as At, VftMessage as Bt } from "./message/index.js";
|
|
64
|
+
import { VftLoading as Ot } from "./loading/index.js";
|
|
65
|
+
import { EmptyEnum as _t } from "./empty/constants.js";
|
|
66
|
+
import { TabsRootContextKey as Wt } from "./tabs/types.js";
|
|
67
|
+
import { default as Jt } from "./popper/arrow.vue2.js";
|
|
68
|
+
import { default as Yt } from "./popper/trigger.vue2.js";
|
|
69
|
+
import { default as Ut } from "./popper/content.vue2.js";
|
|
70
|
+
import { useTabDropdown as Zt } from "./multiple-tabs/use/use-tab-dropdown.js";
|
|
71
|
+
import { initAffixTabs as or, useTabsDrag as tr } from "./multiple-tabs/use/use-multiple-tabs.js";
|
|
72
|
+
import { configProviderContextKey as er, messageConfig as fr } from "./config-provider/constants.js";
|
|
73
|
+
import { provideGlobalConfig as mr, useGlobalComponentSettings as xr, useGlobalConfig as ar } from "./config-provider/hooks/use-global-config.js";
|
|
74
|
+
import { usePagination as Vr, vftPaginationKey as nr } from "./pagination/usePagination.js";
|
|
75
|
+
import { formItemValidateStates as lr } from "./form/types.js";
|
|
76
|
+
import { formContextKey as ur, formItemContextKey as cr } from "./form/constants.js";
|
|
77
|
+
import { useDisabled as gr, useFormDisabled as Ir, useFormSize as yr, useSize as br } from "./form/hooks/use-form-common-props.js";
|
|
78
|
+
import { useFormItem as Pr, useFormItemInputId as Mr } from "./form/hooks/use-form-item.js";
|
|
79
|
+
import { buttonGroupContextKey as Sr } from "./button/constants.js";
|
|
80
|
+
import { checkboxGroupContextKey as Lr } from "./checkbox/constants.js";
|
|
81
|
+
import { radioGroupKey as Kr } from "./radio/constants.js";
|
|
82
|
+
import { BAR_MAP as zr, GAP as Fr, renderThumbStyle as hr } from "./scrollbar/util.js";
|
|
83
|
+
import { scrollbarContextKey as kr } from "./scrollbar/constants.js";
|
|
84
|
+
import { DROPDOWN_INJECTION_KEY as Br } from "./dropdown/tokens.js";
|
|
85
|
+
import { VftCollection as Or, VftCollectionItem as Nr } from "./dropdown/types.js";
|
|
86
|
+
import { OnlyChild as jr } from "./slot/only-child.js";
|
|
87
|
+
import { default as Hr } from "./dropdown/dropdown-item-impl.vue.js";
|
|
88
|
+
import { selectV2InjectionKey as Qr } from "./select-v2/token.js";
|
|
89
|
+
import { useDialog as qr } from "./dialog/hooks/use-dialog.js";
|
|
90
|
+
import { dialogInjectionKey as Xr } from "./dialog/constants.js";
|
|
91
|
+
import { messageDefaults as $r, messageTypes as oe } from "./message/types.js";
|
|
92
|
+
import { vLoading as re, createLoadingDirective as ee, vLoading as fe } from "./loading/directive.js";
|
|
93
|
+
import { Loading as me } from "./loading/service.js";
|
|
90
94
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
zr as BAR_MAP,
|
|
96
|
+
Br as DROPDOWN_INJECTION_KEY,
|
|
93
97
|
mt as DynamicSizeGrid,
|
|
94
98
|
rt as DynamicSizeList,
|
|
95
|
-
|
|
99
|
+
_t as EmptyEnum,
|
|
96
100
|
ft as FixedSizeGrid,
|
|
97
101
|
ot as FixedSizeList,
|
|
98
|
-
|
|
102
|
+
Fr as GAP,
|
|
99
103
|
f as Icon,
|
|
100
|
-
|
|
101
|
-
|
|
104
|
+
At as Message,
|
|
105
|
+
Wt as TabsRootContextKey,
|
|
102
106
|
x as VftAvatar,
|
|
103
107
|
J as VftBackTop,
|
|
104
108
|
Fo as VftButton,
|
|
@@ -106,25 +110,26 @@ export {
|
|
|
106
110
|
ko as VftCheckbox,
|
|
107
111
|
Ao as VftCheckboxButton,
|
|
108
112
|
Bo as VftCheckboxGroup,
|
|
109
|
-
|
|
113
|
+
yo as VftClamp,
|
|
110
114
|
Do as VftClampToggle,
|
|
111
115
|
g as VftCollapseTransition,
|
|
112
116
|
Jo as VftColorPicker,
|
|
113
117
|
Y as VftConfigProvider,
|
|
114
118
|
U as VftDescriptions,
|
|
115
119
|
X as VftDescriptionsItem,
|
|
120
|
+
Pt as VftDialog,
|
|
116
121
|
r as VftDivider,
|
|
117
122
|
Uo as VftDropdown,
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
Or as VftDropdownCollection,
|
|
124
|
+
Nr as VftDropdownCollectionItem,
|
|
120
125
|
Xo as VftDropdownItem,
|
|
121
|
-
|
|
126
|
+
Hr as VftDropdownItemImpl,
|
|
122
127
|
Zo as VftDropdownMenu,
|
|
123
128
|
i as VftEmpty,
|
|
124
129
|
So as VftException,
|
|
125
130
|
B as VftFooterLayout,
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
Ko as VftForm,
|
|
132
|
+
wo as VftFormItem,
|
|
128
133
|
$ as VftFullScreen,
|
|
129
134
|
k as VftHeaderLayout,
|
|
130
135
|
p as VftIcon,
|
|
@@ -134,30 +139,31 @@ export {
|
|
|
134
139
|
It as VftImageViewer,
|
|
135
140
|
po as VftInput,
|
|
136
141
|
xo as VftLink,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Tt as
|
|
146
|
-
|
|
142
|
+
bt as VftListCell,
|
|
143
|
+
Ot as VftLoading,
|
|
144
|
+
re as VftLoadingDirective,
|
|
145
|
+
me as VftLoadingService,
|
|
146
|
+
W as VftLogo,
|
|
147
|
+
Ft as VftMdCodeDemo,
|
|
148
|
+
Rt as VftMdCodeTabs,
|
|
149
|
+
vt as VftMdComment,
|
|
150
|
+
Tt as VftMdContainer,
|
|
151
|
+
Gt as VftMdTabs,
|
|
152
|
+
wt as VftMdVuePlayground,
|
|
147
153
|
M as VftMenu,
|
|
148
154
|
T as VftMenuItem,
|
|
149
155
|
S as VftMenuItemGroup,
|
|
150
|
-
|
|
156
|
+
Bt as VftMessage,
|
|
151
157
|
h as VftMultipleTabs,
|
|
152
|
-
|
|
158
|
+
jr as VftOnlyChild,
|
|
153
159
|
go as VftOverlay,
|
|
154
160
|
Mo as VftPageWrapper,
|
|
155
161
|
io as VftPagination,
|
|
156
162
|
D as VftPopover,
|
|
157
163
|
c as VftPopper,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
Jt as VftPopperArrow,
|
|
165
|
+
Ut as VftPopperContent,
|
|
166
|
+
Yt as VftPopperTrigger,
|
|
161
167
|
co as VftQrcode,
|
|
162
168
|
Oo as VftRadio,
|
|
163
169
|
No as VftRadioButton,
|
|
@@ -166,48 +172,50 @@ export {
|
|
|
166
172
|
_ as VftRouterViewContent,
|
|
167
173
|
Yo as VftScrollbar,
|
|
168
174
|
Lo as VftSearch,
|
|
169
|
-
|
|
170
|
-
|
|
175
|
+
lt as VftSelectV2,
|
|
176
|
+
lo as VftSideMenu,
|
|
171
177
|
v as VftSubMenu,
|
|
172
|
-
|
|
173
|
-
|
|
178
|
+
Wo as VftSwitch,
|
|
179
|
+
l as VftTabPane,
|
|
174
180
|
Ct as VftTable,
|
|
175
|
-
|
|
181
|
+
d as VftTabs,
|
|
176
182
|
no as VftTag,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
y as VftTooltip,
|
|
184
|
+
ut as VftVerifyCode,
|
|
185
|
+
Sr as buttonGroupContextKey,
|
|
186
|
+
Lr as checkboxGroupContextKey,
|
|
187
|
+
er as configProviderContextKey,
|
|
182
188
|
G as createContextMenu,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
or as
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
ee as createLoadingDirective,
|
|
190
|
+
K as destroyContextMenu,
|
|
191
|
+
Xr as dialogInjectionKey,
|
|
192
|
+
ur as formContextKey,
|
|
193
|
+
cr as formItemContextKey,
|
|
194
|
+
lr as formItemValidateStates,
|
|
195
|
+
or as initAffixTabs,
|
|
196
|
+
fr as messageConfig,
|
|
197
|
+
$r as messageDefaults,
|
|
198
|
+
oe as messageTypes,
|
|
199
|
+
mr as provideGlobalConfig,
|
|
200
|
+
Kr as radioGroupKey,
|
|
201
|
+
hr as renderThumbStyle,
|
|
202
|
+
kr as scrollbarContextKey,
|
|
203
|
+
Qr as selectV2InjectionKey,
|
|
197
204
|
z as useContextMenu,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Ir as
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
205
|
+
qr as useDialog,
|
|
206
|
+
gr as useDisabled,
|
|
207
|
+
Ir as useFormDisabled,
|
|
208
|
+
Pr as useFormItem,
|
|
209
|
+
Mr as useFormItemInputId,
|
|
210
|
+
yr as useFormSize,
|
|
211
|
+
xr as useGlobalComponentSettings,
|
|
212
|
+
ar as useGlobalConfig,
|
|
213
|
+
Vr as usePagination,
|
|
214
|
+
br as useSize,
|
|
215
|
+
Zt as useTabDropdown,
|
|
216
|
+
tr as useTabsDrag,
|
|
217
|
+
fe as vLoading,
|
|
218
|
+
nr as vftPaginationKey,
|
|
211
219
|
at as virtualizedGridProps,
|
|
212
220
|
it as virtualizedListProps,
|
|
213
221
|
Vt as virtualizedProps,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const VftListCell: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
list: {
|
|
3
|
+
type: import("vue").PropType<import("./list-cell.vue").ListItem[]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
cellHeight: {
|
|
7
|
+
type: import("vue").PropType<string | number | undefined>;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
leftTextDistance: {
|
|
11
|
+
type: import("vue").PropType<string | number | undefined>;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
activeIndex: {
|
|
15
|
+
type: import("vue").PropType<number | undefined>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
list: {
|
|
20
|
+
type: import("vue").PropType<import("./list-cell.vue").ListItem[]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
cellHeight: {
|
|
24
|
+
type: import("vue").PropType<string | number | undefined>;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
leftTextDistance: {
|
|
28
|
+
type: import("vue").PropType<string | number | undefined>;
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
activeIndex: {
|
|
32
|
+
type: import("vue").PropType<number | undefined>;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
}>> & {
|
|
36
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}, {}>> & Record<string, any>;
|
|
38
|
+
export default VftListCell;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import o from "./list-cell.vue2.js";
|
|
8
|
+
const a = t(o);
|
|
9
|
+
export {
|
|
10
|
+
a as VftListCell,
|
|
11
|
+
a as default
|
|
12
|
+
};
|