vft 0.0.65 → 0.0.67
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 +24 -22
- package/es/components/alert/style/css.js +1 -0
- package/es/components/alert/style/index.js +1 -0
- package/es/components/avatar/style/css.js +1 -0
- package/es/components/avatar/style/index.js +1 -0
- package/es/components/back-top/back-top.vue2.js +3 -2
- package/es/components/button/style/css.js +1 -0
- package/es/components/button/style/index.js +1 -0
- package/es/components/button-group/style/css.js +1 -0
- package/es/components/button-group/style/index.js +1 -0
- package/es/components/color-picker/style/css.js +1 -0
- package/es/components/color-picker/style/index.js +1 -0
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/date-time-select/date-time-select.vue.d.ts +38 -0
- package/es/components/date-time-select/date-time-select.vue.js +4 -0
- package/es/components/date-time-select/date-time-select.vue2.js +130 -0
- package/es/components/date-time-select/index.d.ts +30 -0
- package/es/components/date-time-select/index.js +12 -0
- package/es/components/date-time-select/style/css.d.ts +0 -0
- package/es/components/date-time-select/style/css.js +5 -0
- package/es/components/date-time-select/style/index.d.ts +0 -0
- package/es/components/date-time-select/style/index.js +5 -0
- package/es/components/date-time-select/types.d.ts +10 -0
- package/es/components/date-time-select/types.js +1 -0
- package/es/components/dropdown/dropdown.vue.d.ts +4 -4
- package/es/components/dropdown/index.d.ts +4 -4
- package/es/components/full-screen/full-screen.vue.d.ts +3 -0
- package/es/components/full-screen/full-screen.vue2.js +23 -23
- package/es/components/icon/icon.vue.d.ts +8 -8
- package/es/components/icon/icon.vue2.js +30 -29
- package/es/components/icon/index.d.ts +6 -6
- package/es/components/icon-text/icon-text.vue.d.ts +28 -0
- package/es/components/icon-text/icon-text.vue2.js +29 -22
- package/es/components/icon-text/index.d.ts +17 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +98 -96
- package/es/components/loading/index.d.ts +2 -2
- package/es/components/loading/loading.d.ts +2 -2
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/search/search.vue2.js +3 -2
- package/es/components/select-v2/index.d.ts +8 -8
- package/es/components/select-v2/select.vue.d.ts +4 -4
- package/es/components/select-v2/useSelect.d.ts +3 -3
- package/es/components/side-menu/index.d.ts +4 -3
- package/es/components/side-menu/side-menu.vue.d.ts +4 -3
- package/es/components/side-menu/side-menu.vue2.js +95 -96
- package/es/components/side-menu/use-drag-line.js +28 -32
- package/es/components/tabs/tab-nav.vue2.js +3 -2
- package/es/components/time-select-extend/style/css.d.ts +0 -0
- package/es/components/time-select-extend/style/css.js +2 -0
- package/es/components/time-select-extend/style/index.d.ts +0 -0
- package/es/components/time-select-extend/style/index.js +2 -0
- package/es/components/tooltip/content.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +2 -2
- package/es/components/tooltip/tooltip.vue.d.ts +3 -3
- package/es/index.js +224 -222
- package/es/package.json.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/alert/style/css.cjs +1 -1
- package/lib/components/alert/style/index.cjs +1 -1
- package/lib/components/avatar/style/css.cjs +1 -1
- package/lib/components/avatar/style/index.cjs +1 -1
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/button/style/css.cjs +1 -1
- package/lib/components/button/style/index.cjs +1 -1
- package/lib/components/button-group/style/css.cjs +1 -1
- package/lib/components/button-group/style/index.cjs +1 -1
- package/lib/components/color-picker/style/css.cjs +1 -1
- package/lib/components/color-picker/style/index.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue.cjs +1 -0
- package/lib/components/date-time-select/date-time-select.vue.d.ts +38 -0
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -0
- package/lib/components/date-time-select/index.cjs +1 -0
- package/lib/components/date-time-select/index.d.ts +30 -0
- package/lib/components/date-time-select/style/css.cjs +1 -0
- package/lib/components/date-time-select/style/css.d.ts +0 -0
- package/lib/components/date-time-select/style/index.cjs +1 -0
- package/lib/components/date-time-select/style/index.d.ts +0 -0
- package/lib/components/date-time-select/types.cjs +1 -0
- package/lib/components/date-time-select/types.d.ts +10 -0
- package/lib/components/dropdown/dropdown.vue.d.ts +4 -4
- package/lib/components/dropdown/index.d.ts +4 -4
- package/lib/components/full-screen/full-screen.vue.d.ts +3 -0
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue.d.ts +8 -8
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.d.ts +6 -6
- package/lib/components/icon-text/icon-text.vue.d.ts +28 -0
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +17 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/loading/index.d.ts +2 -2
- package/lib/components/loading/loading.d.ts +2 -2
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.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/index.d.ts +8 -8
- package/lib/components/select-v2/select.vue.d.ts +4 -4
- package/lib/components/select-v2/useSelect.d.ts +3 -3
- package/lib/components/side-menu/index.d.ts +4 -3
- package/lib/components/side-menu/side-menu.vue.d.ts +4 -3
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/time-select-extend/style/css.cjs +1 -0
- package/lib/components/time-select-extend/style/css.d.ts +0 -0
- package/lib/components/time-select-extend/style/index.cjs +1 -0
- package/lib/components/time-select-extend/style/index.d.ts +0 -0
- package/lib/components/tooltip/content.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +2 -2
- package/lib/components/tooltip/tooltip.vue.d.ts +3 -3
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +5 -4
- package/theme-style/src/date-time-select.scss +81 -0
- package/theme-style/src/full-screen.scss +3 -6
- package/theme-style/src/icon-text.scss +2 -5
- package/theme-style/src/icon.scss +7 -10
- package/theme-style/src/index.scss +1 -0
- package/theme-style/src/md/api.scss +8 -0
- package/theme-style/src/menu.scss +2 -2
- package/theme-style/src/page-wrapper.scss +1 -1
- package/theme-style/src/side-menu.scss +0 -1
- package/theme-style/vft-date-time-select.css +1 -0
- package/theme-style/vft-full-screen.css +1 -1
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-icon.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-page-wrapper.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/web-types.json +1 -1
|
@@ -69,6 +69,7 @@ import "../table/index.js";
|
|
|
69
69
|
import "../image-viewer/index.js";
|
|
70
70
|
import "../list-cell/index.js";
|
|
71
71
|
import "../dialog/index.js";
|
|
72
|
+
import "../date-time-select/index.js";
|
|
72
73
|
import "../md-container/index.js";
|
|
73
74
|
import "../md-comment/index.js";
|
|
74
75
|
import "../md-tabs/index.js";
|
|
@@ -81,7 +82,7 @@ const W = ["title"], k = (
|
|
|
81
82
|
v("menu-item")
|
|
82
83
|
), X = S({
|
|
83
84
|
name: k.b()
|
|
84
|
-
}),
|
|
85
|
+
}), Be = /* @__PURE__ */ S({
|
|
85
86
|
...X,
|
|
86
87
|
props: {
|
|
87
88
|
index: null,
|
|
@@ -166,5 +167,5 @@ const W = ["title"], k = (
|
|
|
166
167
|
}
|
|
167
168
|
});
|
|
168
169
|
export {
|
|
169
|
-
|
|
170
|
+
Be as default
|
|
170
171
|
};
|
|
@@ -59,6 +59,7 @@ import "../table/index.js";
|
|
|
59
59
|
import "../image-viewer/index.js";
|
|
60
60
|
import "../list-cell/index.js";
|
|
61
61
|
import "../dialog/index.js";
|
|
62
|
+
import "../date-time-select/index.js";
|
|
62
63
|
import "../md-container/index.js";
|
|
63
64
|
import "../md-comment/index.js";
|
|
64
65
|
import "../md-tabs/index.js";
|
|
@@ -82,7 +83,7 @@ const S = (
|
|
|
82
83
|
I("sub-menu")
|
|
83
84
|
), ve = Z({
|
|
84
85
|
name: S.b()
|
|
85
|
-
}),
|
|
86
|
+
}), Lo = /* @__PURE__ */ Z({
|
|
86
87
|
...ve,
|
|
87
88
|
props: {
|
|
88
89
|
index: null,
|
|
@@ -283,5 +284,5 @@ const S = (
|
|
|
283
284
|
}
|
|
284
285
|
});
|
|
285
286
|
export {
|
|
286
|
-
|
|
287
|
+
Lo as default
|
|
287
288
|
};
|
|
@@ -68,6 +68,7 @@ import "../table/index.js";
|
|
|
68
68
|
import "../image-viewer/index.js";
|
|
69
69
|
import "../list-cell/index.js";
|
|
70
70
|
import "../dialog/index.js";
|
|
71
|
+
import "../date-time-select/index.js";
|
|
71
72
|
import "../md-container/index.js";
|
|
72
73
|
import "../md-comment/index.js";
|
|
73
74
|
import "../md-tabs/index.js";
|
|
@@ -81,7 +82,7 @@ const M = (
|
|
|
81
82
|
X("multiple-tabs")
|
|
82
83
|
), rt = P({
|
|
83
84
|
name: M.b()
|
|
84
|
-
}),
|
|
85
|
+
}), Be = /* @__PURE__ */ P({
|
|
85
86
|
...rt,
|
|
86
87
|
props: {
|
|
87
88
|
tabsStyle: null,
|
|
@@ -196,5 +197,5 @@ const M = (
|
|
|
196
197
|
}
|
|
197
198
|
});
|
|
198
199
|
export {
|
|
199
|
-
|
|
200
|
+
Be as default
|
|
200
201
|
};
|
|
@@ -67,6 +67,7 @@ import "../table/index.js";
|
|
|
67
67
|
import "../image-viewer/index.js";
|
|
68
68
|
import "../list-cell/index.js";
|
|
69
69
|
import "../dialog/index.js";
|
|
70
|
+
import "../date-time-select/index.js";
|
|
70
71
|
import "../md-container/index.js";
|
|
71
72
|
import "../md-comment/index.js";
|
|
72
73
|
import "../md-tabs/index.js";
|
|
@@ -79,7 +80,7 @@ const i = (
|
|
|
79
80
|
x("result")
|
|
80
81
|
), I = l({
|
|
81
82
|
name: i.b()
|
|
82
|
-
}),
|
|
83
|
+
}), Mt = /* @__PURE__ */ l({
|
|
83
84
|
...I,
|
|
84
85
|
props: {
|
|
85
86
|
title: null,
|
|
@@ -118,5 +119,5 @@ const i = (
|
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
Mt as default
|
|
122
123
|
};
|
|
@@ -59,6 +59,7 @@ import "../table/index.js";
|
|
|
59
59
|
import "../image-viewer/index.js";
|
|
60
60
|
import "../list-cell/index.js";
|
|
61
61
|
import "../dialog/index.js";
|
|
62
|
+
import "../date-time-select/index.js";
|
|
62
63
|
import "../md-container/index.js";
|
|
63
64
|
import "../md-comment/index.js";
|
|
64
65
|
import "../md-tabs/index.js";
|
|
@@ -79,7 +80,7 @@ const u = (
|
|
|
79
80
|
W("search")
|
|
80
81
|
), U = C({
|
|
81
82
|
name: u.b()
|
|
82
|
-
}),
|
|
83
|
+
}), co = /* @__PURE__ */ C({
|
|
83
84
|
...U,
|
|
84
85
|
props: {
|
|
85
86
|
modelValue: { default: "" },
|
|
@@ -207,5 +208,5 @@ const u = (
|
|
|
207
208
|
}
|
|
208
209
|
});
|
|
209
210
|
export {
|
|
210
|
-
|
|
211
|
+
co as default
|
|
211
212
|
};
|
|
@@ -350,7 +350,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
350
350
|
required: false;
|
|
351
351
|
};
|
|
352
352
|
appendTo: {
|
|
353
|
-
type: import("vue").PropType<
|
|
353
|
+
type: import("vue").PropType<any>;
|
|
354
354
|
required: false;
|
|
355
355
|
};
|
|
356
356
|
content: {
|
|
@@ -560,7 +560,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
560
560
|
required: false;
|
|
561
561
|
};
|
|
562
562
|
appendTo: {
|
|
563
|
-
type: import("vue").PropType<
|
|
563
|
+
type: import("vue").PropType<any>;
|
|
564
564
|
required: false;
|
|
565
565
|
};
|
|
566
566
|
content: {
|
|
@@ -784,7 +784,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
784
784
|
required: false;
|
|
785
785
|
};
|
|
786
786
|
appendTo: {
|
|
787
|
-
type: import("vue").PropType<
|
|
787
|
+
type: import("vue").PropType<any>;
|
|
788
788
|
required: false;
|
|
789
789
|
};
|
|
790
790
|
content: {
|
|
@@ -985,9 +985,9 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
985
985
|
}, {
|
|
986
986
|
height: number;
|
|
987
987
|
loading: boolean;
|
|
988
|
+
placement: import("@popperjs/core").Placement;
|
|
988
989
|
popperClass: string;
|
|
989
990
|
disabled: boolean;
|
|
990
|
-
placement: import("@popperjs/core").Placement;
|
|
991
991
|
allowCreate: boolean;
|
|
992
992
|
autocomplete: "inline" | "none" | "list" | "both";
|
|
993
993
|
automaticDropdown: boolean;
|
|
@@ -1362,7 +1362,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1362
1362
|
required: false;
|
|
1363
1363
|
};
|
|
1364
1364
|
appendTo: {
|
|
1365
|
-
type: import("vue").PropType<
|
|
1365
|
+
type: import("vue").PropType<any>;
|
|
1366
1366
|
required: false;
|
|
1367
1367
|
};
|
|
1368
1368
|
content: {
|
|
@@ -1572,7 +1572,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1572
1572
|
required: false;
|
|
1573
1573
|
};
|
|
1574
1574
|
appendTo: {
|
|
1575
|
-
type: import("vue").PropType<
|
|
1575
|
+
type: import("vue").PropType<any>;
|
|
1576
1576
|
required: false;
|
|
1577
1577
|
};
|
|
1578
1578
|
content: {
|
|
@@ -1796,7 +1796,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1796
1796
|
required: false;
|
|
1797
1797
|
};
|
|
1798
1798
|
appendTo: {
|
|
1799
|
-
type: import("vue").PropType<
|
|
1799
|
+
type: import("vue").PropType<any>;
|
|
1800
1800
|
required: false;
|
|
1801
1801
|
};
|
|
1802
1802
|
content: {
|
|
@@ -1997,9 +1997,9 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1997
1997
|
}, {
|
|
1998
1998
|
height: number;
|
|
1999
1999
|
loading: boolean;
|
|
2000
|
+
placement: import("@popperjs/core").Placement;
|
|
2000
2001
|
popperClass: string;
|
|
2001
2002
|
disabled: boolean;
|
|
2002
|
-
placement: import("@popperjs/core").Placement;
|
|
2003
2003
|
allowCreate: boolean;
|
|
2004
2004
|
autocomplete: "inline" | "none" | "list" | "both";
|
|
2005
2005
|
automaticDropdown: boolean;
|
|
@@ -349,7 +349,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
349
349
|
required: false;
|
|
350
350
|
};
|
|
351
351
|
appendTo: {
|
|
352
|
-
type: import("vue").PropType<
|
|
352
|
+
type: import("vue").PropType<any>;
|
|
353
353
|
required: false;
|
|
354
354
|
};
|
|
355
355
|
content: {
|
|
@@ -559,7 +559,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
559
559
|
required: false;
|
|
560
560
|
};
|
|
561
561
|
appendTo: {
|
|
562
|
-
type: import("vue").PropType<
|
|
562
|
+
type: import("vue").PropType<any>;
|
|
563
563
|
required: false;
|
|
564
564
|
};
|
|
565
565
|
content: {
|
|
@@ -783,7 +783,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
783
783
|
required: false;
|
|
784
784
|
};
|
|
785
785
|
appendTo: {
|
|
786
|
-
type: import("vue").PropType<
|
|
786
|
+
type: import("vue").PropType<any>;
|
|
787
787
|
required: false;
|
|
788
788
|
};
|
|
789
789
|
content: {
|
|
@@ -984,9 +984,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
984
984
|
}, {
|
|
985
985
|
height: number;
|
|
986
986
|
loading: boolean;
|
|
987
|
+
placement: import("@popperjs/core").Placement;
|
|
987
988
|
popperClass: string;
|
|
988
989
|
disabled: boolean;
|
|
989
|
-
placement: import("@popperjs/core").Placement;
|
|
990
990
|
allowCreate: boolean;
|
|
991
991
|
autocomplete: "inline" | "none" | "list" | "both";
|
|
992
992
|
automaticDropdown: boolean;
|
|
@@ -253,7 +253,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
253
253
|
required: false;
|
|
254
254
|
};
|
|
255
255
|
appendTo: {
|
|
256
|
-
type: import("vue").PropType<
|
|
256
|
+
type: import("vue").PropType<any>;
|
|
257
257
|
required: false;
|
|
258
258
|
};
|
|
259
259
|
content: {
|
|
@@ -463,7 +463,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
463
463
|
required: false;
|
|
464
464
|
};
|
|
465
465
|
appendTo: {
|
|
466
|
-
type: import("vue").PropType<
|
|
466
|
+
type: import("vue").PropType<any>;
|
|
467
467
|
required: false;
|
|
468
468
|
};
|
|
469
469
|
content: {
|
|
@@ -687,7 +687,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
687
687
|
required: false;
|
|
688
688
|
};
|
|
689
689
|
appendTo: {
|
|
690
|
-
type: import("vue").PropType<
|
|
690
|
+
type: import("vue").PropType<any>;
|
|
691
691
|
required: false;
|
|
692
692
|
};
|
|
693
693
|
content: {
|
|
@@ -15,7 +15,7 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
15
15
|
type: import("vue").PropType<string | undefined>;
|
|
16
16
|
required: false;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
sideWidth: {
|
|
19
19
|
type: import("vue").PropType<string | number | undefined>;
|
|
20
20
|
required: false;
|
|
21
21
|
};
|
|
@@ -72,7 +72,7 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
72
72
|
};
|
|
73
73
|
}, {
|
|
74
74
|
sideRef: import("vue").Ref<any>;
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:collapse" | "dragEnd" | "select" | "dragWidthEnd")[], "update:collapse" | "dragEnd" | "select" | "dragWidthEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:collapse" | "update:sideWidth" | "dragEnd" | "select" | "dragWidthEnd")[], "update:collapse" | "update:sideWidth" | "dragEnd" | "select" | "dragWidthEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
76
|
menus: {
|
|
77
77
|
type: import("vue").PropType<import("@vft/router").MenuType[]>;
|
|
78
78
|
required: true;
|
|
@@ -89,7 +89,7 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
89
89
|
type: import("vue").PropType<string | undefined>;
|
|
90
90
|
required: false;
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
sideWidth: {
|
|
93
93
|
type: import("vue").PropType<string | number | undefined>;
|
|
94
94
|
required: false;
|
|
95
95
|
};
|
|
@@ -146,6 +146,7 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
146
146
|
};
|
|
147
147
|
}>> & {
|
|
148
148
|
"onUpdate:collapse"?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
"onUpdate:sideWidth"?: ((...args: any[]) => any) | undefined;
|
|
149
150
|
onDragEnd?: ((...args: any[]) => any) | undefined;
|
|
150
151
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
151
152
|
onDragWidthEnd?: ((...args: any[]) => any) | undefined;
|
|
@@ -17,7 +17,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
17
|
type: __PropType<string | undefined>;
|
|
18
18
|
required: false;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
sideWidth: {
|
|
21
21
|
type: __PropType<string | number | undefined>;
|
|
22
22
|
required: false;
|
|
23
23
|
};
|
|
@@ -74,7 +74,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
74
74
|
};
|
|
75
75
|
}, {
|
|
76
76
|
sideRef: import("vue").Ref<any>;
|
|
77
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:collapse" | "dragEnd" | "select" | "dragWidthEnd")[], "update:collapse" | "dragEnd" | "select" | "dragWidthEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:collapse" | "update:sideWidth" | "dragEnd" | "select" | "dragWidthEnd")[], "update:collapse" | "update:sideWidth" | "dragEnd" | "select" | "dragWidthEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
78
78
|
menus: {
|
|
79
79
|
type: __PropType<MenuType[]>;
|
|
80
80
|
required: true;
|
|
@@ -91,7 +91,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
91
91
|
type: __PropType<string | undefined>;
|
|
92
92
|
required: false;
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
sideWidth: {
|
|
95
95
|
type: __PropType<string | number | undefined>;
|
|
96
96
|
required: false;
|
|
97
97
|
};
|
|
@@ -148,6 +148,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
148
148
|
};
|
|
149
149
|
}>> & {
|
|
150
150
|
"onUpdate:collapse"?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
"onUpdate:sideWidth"?: ((...args: any[]) => any) | undefined;
|
|
151
152
|
onDragEnd?: ((...args: any[]) => any) | undefined;
|
|
152
153
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
153
154
|
onDragWidthEnd?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { listenerRouteChange as Q, useRouterHelper as X } from "@vft/router";
|
|
3
|
-
import { useSortable as Z } from "@vft/use";
|
|
4
|
-
import { isUrl as I, addUnit as C, isNullOrUndefined as V, removeUnit as _ } from "@vft/utils";
|
|
5
|
-
import { useNamespace as ee } from "../../hooks/use-namespace/index.js";
|
|
6
|
-
import "@popperjs/core";
|
|
7
|
-
import "lodash";
|
|
8
|
-
import "../../hooks/use-z-index/index.js";
|
|
9
|
-
import "@vueuse/core";
|
|
10
|
-
import { generateCssVars as te, cssVarValue as oe } from "../../utils/ns-cover.js";
|
|
11
|
-
import "@vue/reactivity";
|
|
12
|
-
import "@vue/shared";
|
|
1
|
+
import { defineComponent as T, useSlots as Y, ref as g, computed as m, h as v, onMounted as F, nextTick as G, getCurrentInstance as J, createVNode as f } from "vue";
|
|
13
2
|
import "../divider/index.js";
|
|
14
|
-
import { VftIcon as
|
|
3
|
+
import { VftIcon as K } from "../icon/index.js";
|
|
15
4
|
import "../avatar/index.js";
|
|
16
5
|
import "../empty/index.js";
|
|
17
6
|
import "../result/index.js";
|
|
@@ -20,11 +9,14 @@ import "../popper/index.js";
|
|
|
20
9
|
import "../collapse-transition/index.js";
|
|
21
10
|
import "../tooltip/index.js";
|
|
22
11
|
import "../popover/index.js";
|
|
23
|
-
import { VftMenu as
|
|
12
|
+
import { VftMenu as Q, VftSubMenu as X, VftMenuItem as R } from "../menu/index.js";
|
|
13
|
+
import { isUrl as Z, addUnit as k, isNullOrUndefined as N, removeUnit as I } from "@vft/utils";
|
|
24
14
|
import "../context-menu/context-menu.vue2.js";
|
|
25
15
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
16
|
+
import { listenerRouteChange as _, useRouterHelper as ee } from "@vft/router";
|
|
26
17
|
import "@vft/store";
|
|
27
|
-
import {
|
|
18
|
+
import { useSortable as te } from "@vft/use";
|
|
19
|
+
import { useRouter as oe } from "vue-router";
|
|
28
20
|
import "../header-layout/index.js";
|
|
29
21
|
import "../footer-layout/index.js";
|
|
30
22
|
import "../iframe-layout/index.js";
|
|
@@ -67,6 +59,7 @@ import "../table/index.js";
|
|
|
67
59
|
import "../image-viewer/index.js";
|
|
68
60
|
import "../list-cell/index.js";
|
|
69
61
|
import "../dialog/index.js";
|
|
62
|
+
import "../date-time-select/index.js";
|
|
70
63
|
import "../md-container/index.js";
|
|
71
64
|
import "../md-comment/index.js";
|
|
72
65
|
import "../md-tabs/index.js";
|
|
@@ -74,14 +67,22 @@ import "../md-vue-playground/index.js";
|
|
|
74
67
|
import "../md-code-demo/index.js";
|
|
75
68
|
import "../md-code-tabs/index.js";
|
|
76
69
|
import "../message/index.js";
|
|
77
|
-
import {
|
|
70
|
+
import { useNamespace as ie } from "../../hooks/use-namespace/index.js";
|
|
71
|
+
import "@popperjs/core";
|
|
72
|
+
import "lodash";
|
|
73
|
+
import "../../hooks/use-z-index/index.js";
|
|
74
|
+
import "@vueuse/core";
|
|
75
|
+
import "../../utils/ns-cover.js";
|
|
76
|
+
import "@vue/reactivity";
|
|
77
|
+
import "@vue/shared";
|
|
78
|
+
import { useDragLine as le } from "./use-drag-line.js";
|
|
78
79
|
const a = (
|
|
79
80
|
/* hoist-static*/
|
|
80
|
-
|
|
81
|
-
),
|
|
81
|
+
ie("side-menu")
|
|
82
|
+
), ne = T({
|
|
82
83
|
name: a.b()
|
|
83
|
-
}), Tt = /* @__PURE__ */
|
|
84
|
-
...
|
|
84
|
+
}), Tt = /* @__PURE__ */ T({
|
|
85
|
+
...ne,
|
|
85
86
|
props: {
|
|
86
87
|
menus: null,
|
|
87
88
|
uniqueOpened: {
|
|
@@ -93,7 +94,7 @@ const a = (
|
|
|
93
94
|
default: !1
|
|
94
95
|
},
|
|
95
96
|
defaultActive: null,
|
|
96
|
-
|
|
97
|
+
sideWidth: null,
|
|
97
98
|
collapseWidth: {
|
|
98
99
|
default: 50
|
|
99
100
|
},
|
|
@@ -111,7 +112,7 @@ const a = (
|
|
|
111
112
|
dragOption: null,
|
|
112
113
|
dragWidth: {
|
|
113
114
|
type: Boolean,
|
|
114
|
-
default: !
|
|
115
|
+
default: !1
|
|
115
116
|
},
|
|
116
117
|
useMenuSelect: {
|
|
117
118
|
type: Boolean,
|
|
@@ -126,12 +127,12 @@ const a = (
|
|
|
126
127
|
},
|
|
127
128
|
defaultOpeneds: null
|
|
128
129
|
},
|
|
129
|
-
emits: ["update:collapse", "dragEnd", "select", "dragWidthEnd"],
|
|
130
|
+
emits: ["update:collapse", "update:sideWidth", "dragEnd", "select", "dragWidthEnd"],
|
|
130
131
|
setup(t, {
|
|
131
|
-
expose:
|
|
132
|
-
emit:
|
|
132
|
+
expose: A,
|
|
133
|
+
emit: h
|
|
133
134
|
}) {
|
|
134
|
-
const c =
|
|
135
|
+
const c = Y(), y = g(), l = m(() => ({
|
|
135
136
|
path: "path",
|
|
136
137
|
children: "children",
|
|
137
138
|
title: "title",
|
|
@@ -140,60 +141,60 @@ const a = (
|
|
|
140
141
|
disabled: "disabled",
|
|
141
142
|
...t.attrMapping
|
|
142
143
|
}));
|
|
143
|
-
|
|
144
|
+
_((e) => {
|
|
144
145
|
var o;
|
|
145
|
-
!e || (o = e.meta) != null && o.hideSide && !t.openListenRoute || (
|
|
146
|
+
!e || (o = e.meta) != null && o.hideSide && !t.openListenRoute || (y.value = e.path);
|
|
146
147
|
});
|
|
147
|
-
const
|
|
148
|
-
const
|
|
148
|
+
const C = (e, o) => {
|
|
149
|
+
const i = e[l.value.path], d = e[l.value.title], r = e == null ? void 0 : e[l.value.children], p = e == null ? void 0 : e[l.value.index], u = e == null ? void 0 : e[l.value.icon], s = !(e != null && e[l.value.disabled]);
|
|
149
150
|
return r != null && r.length ? v(
|
|
150
151
|
// @ts-ignore
|
|
151
|
-
|
|
152
|
+
X,
|
|
152
153
|
{
|
|
153
154
|
popperAppendToBody: !0,
|
|
154
|
-
key:
|
|
155
|
-
index:
|
|
156
|
-
title:
|
|
157
|
-
icon:
|
|
155
|
+
key: p || i,
|
|
156
|
+
index: p || i,
|
|
157
|
+
title: d,
|
|
158
|
+
icon: u,
|
|
158
159
|
popperClass: a.e("popper")
|
|
159
160
|
},
|
|
160
161
|
{
|
|
161
|
-
default: () => r == null ? void 0 : r.map((
|
|
162
|
-
var
|
|
163
|
-
const
|
|
164
|
-
return (
|
|
162
|
+
default: () => r == null ? void 0 : r.map((n, P) => {
|
|
163
|
+
var M;
|
|
164
|
+
const x = n[l.value.path], S = n[l.value.index], $ = n[l.value.icon], j = n[l.value.title], z = n[l.value.disabled];
|
|
165
|
+
return (M = n == null ? void 0 : n[l.value.children]) != null && M.length ? C(n, P) : (
|
|
165
166
|
// @ts-ignore
|
|
166
|
-
v(
|
|
167
|
-
key:
|
|
168
|
-
index:
|
|
169
|
-
route:
|
|
170
|
-
icon:
|
|
171
|
-
title:
|
|
172
|
-
disabled: t.openDisabled &&
|
|
167
|
+
v(R, {
|
|
168
|
+
key: S || x,
|
|
169
|
+
index: S || x,
|
|
170
|
+
route: x,
|
|
171
|
+
icon: $,
|
|
172
|
+
title: j,
|
|
173
|
+
disabled: t.openDisabled && z
|
|
173
174
|
})
|
|
174
175
|
);
|
|
175
176
|
})
|
|
176
177
|
}
|
|
177
|
-
) : v(
|
|
178
|
-
key:
|
|
179
|
-
index:
|
|
180
|
-
title:
|
|
181
|
-
route:
|
|
182
|
-
icon:
|
|
178
|
+
) : v(R, {
|
|
179
|
+
key: p || i,
|
|
180
|
+
index: p || i,
|
|
181
|
+
title: d,
|
|
182
|
+
route: i,
|
|
183
|
+
icon: u,
|
|
183
184
|
disabled: t.openDisabled && s
|
|
184
185
|
}, c.menuItem ? () => {
|
|
185
|
-
var
|
|
186
|
-
return (
|
|
186
|
+
var n;
|
|
187
|
+
return (n = c.menuItem) == null ? void 0 : n.call(c, {
|
|
187
188
|
item: e,
|
|
188
189
|
index: o
|
|
189
190
|
});
|
|
190
191
|
} : "");
|
|
191
|
-
},
|
|
192
|
+
}, D = m(() => {
|
|
192
193
|
var e, o;
|
|
193
|
-
return v(
|
|
194
|
+
return v(Q, {
|
|
194
195
|
onSelect: t.useMenuSelect ? H : () => {
|
|
195
196
|
},
|
|
196
|
-
defaultActive: t.defaultActive ||
|
|
197
|
+
defaultActive: t.defaultActive || y.value,
|
|
197
198
|
defaultOpeneds: t.defaultOpeneds,
|
|
198
199
|
class: [a.e("con"), (e = t.dragOption) != null && e.dragClassName ? a.e((o = t.dragOption) == null ? void 0 : o.dragClassName) : ""],
|
|
199
200
|
style: {
|
|
@@ -202,43 +203,41 @@ const a = (
|
|
|
202
203
|
uniqueOpened: t.uniqueOpened,
|
|
203
204
|
collapse: t.collapse,
|
|
204
205
|
"collapse-transition": !1
|
|
205
|
-
}, () => t.menus.map((
|
|
206
|
+
}, () => t.menus.map((i, d) => C(i, d)));
|
|
206
207
|
}), {
|
|
207
|
-
go:
|
|
208
|
-
} =
|
|
208
|
+
go: O
|
|
209
|
+
} = ee(), w = oe();
|
|
209
210
|
async function H(e) {
|
|
210
|
-
var r,
|
|
211
|
+
var r, p, u;
|
|
211
212
|
const o = e.route;
|
|
212
|
-
let
|
|
213
|
-
e.indexPath.some((s) =>
|
|
214
|
-
const
|
|
215
|
-
|
|
213
|
+
let i = e.route;
|
|
214
|
+
e.indexPath.some((s) => Z(s)) && (i = e.indexPath.slice(-2).join("/"));
|
|
215
|
+
const d = (u = (p = (r = w.getRoutes().filter((s) => s.path === i)) == null ? void 0 : r[0]) == null ? void 0 : p.meta) == null ? void 0 : u.linkTarget;
|
|
216
|
+
O(d ? {
|
|
216
217
|
url: o,
|
|
217
218
|
winOpenOpt: {
|
|
218
|
-
target:
|
|
219
|
+
target: d
|
|
219
220
|
}
|
|
220
|
-
} : o),
|
|
221
|
+
} : o), h("select", e);
|
|
221
222
|
}
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
width: t.collapse ? C(t.collapseWidth) : x.value ? C(x.value) : C(t.width)
|
|
225
|
-
}, "side-menu"),
|
|
223
|
+
const W = g(), V = m(() => ({
|
|
224
|
+
width: k(t.sideWidth),
|
|
226
225
|
height: `calc(100% - ${t.extraHeight}px)`
|
|
227
|
-
})),
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
var e, o,
|
|
226
|
+
})), q = m(() => [a.b(), a.m("fixed")]);
|
|
227
|
+
F(() => {
|
|
228
|
+
G(() => {
|
|
229
|
+
var e, o, i;
|
|
231
230
|
if ((e = t.dragOption) != null && e.dragClassName) {
|
|
232
|
-
const
|
|
231
|
+
const d = (i = document.querySelectorAll("." + a.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : i[0], {
|
|
233
232
|
initSortable: r
|
|
234
|
-
} =
|
|
233
|
+
} = te(d, {
|
|
235
234
|
draggable: ".vft-menu-item",
|
|
236
|
-
onEnd: (
|
|
235
|
+
onEnd: (p) => {
|
|
237
236
|
const {
|
|
238
|
-
oldIndex:
|
|
237
|
+
oldIndex: u,
|
|
239
238
|
newIndex: s
|
|
240
|
-
} =
|
|
241
|
-
|
|
239
|
+
} = p;
|
|
240
|
+
N(u) || N(s) || u === s || h("dragEnd", u, s);
|
|
242
241
|
},
|
|
243
242
|
...t.dragOption
|
|
244
243
|
});
|
|
@@ -246,35 +245,35 @@ const a = (
|
|
|
246
245
|
}
|
|
247
246
|
});
|
|
248
247
|
});
|
|
249
|
-
const
|
|
250
|
-
left:
|
|
248
|
+
const b = g(), B = g(), E = m(() => ({
|
|
249
|
+
left: k(t.sideWidth)
|
|
251
250
|
}));
|
|
252
|
-
function
|
|
253
|
-
t.collapse
|
|
251
|
+
function U() {
|
|
252
|
+
t.collapse ? h("update:sideWidth", W.value) : (W.value = t.sideWidth, h("update:sideWidth", t.collapseWidth)), h("update:collapse", !t.collapse);
|
|
254
253
|
}
|
|
255
|
-
const
|
|
256
|
-
return t.dragWidth &&
|
|
257
|
-
sideRef:
|
|
254
|
+
const L = J();
|
|
255
|
+
return t.dragWidth && le(b, B, m(() => I(t.collapseWidth)), L, m(() => t.collapse)), A({
|
|
256
|
+
sideRef: b
|
|
258
257
|
}), () => f("div", {
|
|
259
|
-
ref:
|
|
260
|
-
class:
|
|
261
|
-
style:
|
|
258
|
+
ref: b,
|
|
259
|
+
class: q.value,
|
|
260
|
+
style: V.value
|
|
262
261
|
}, [c.top ? f("div", {
|
|
263
262
|
class: a.e("top")
|
|
264
|
-
}, [c.top()]) : null,
|
|
263
|
+
}, [c.top()]) : null, D.value, c.bottom ? f("div", {
|
|
265
264
|
class: a.e("bottom")
|
|
266
265
|
}, [c.bottom()]) : t.showCollapse ? f("div", {
|
|
267
|
-
onClick:
|
|
266
|
+
onClick: U,
|
|
268
267
|
class: [a.e("bottom"), a.e("collapse")]
|
|
269
|
-
}, [f(
|
|
268
|
+
}, [f(K, {
|
|
270
269
|
style: {
|
|
271
270
|
transform: t.collapse ? "rotateY(180deg)" : ""
|
|
272
271
|
},
|
|
273
272
|
size: 20,
|
|
274
273
|
icon: "ico-iconoir:sidebar-collapse"
|
|
275
274
|
}, null)]) : null, t.dragWidth ? f("div", {
|
|
276
|
-
ref:
|
|
277
|
-
style:
|
|
275
|
+
ref: B,
|
|
276
|
+
style: E.value,
|
|
278
277
|
class: a.e("drag-bar")
|
|
279
278
|
}, null) : null]);
|
|
280
279
|
}
|