vft 0.0.151 → 0.0.154
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/es/components/affix/affix.vue.d.ts +1 -1
- package/es/components/affix/index.d.ts +2 -2
- package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/es/components/autocomplete/index.d.ts +17 -17
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox.vue.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +10 -10
- package/es/components/color-picker/color-picker.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/dialog/dialog.vue.d.ts +1 -1
- package/es/components/dialog/index.d.ts +2 -2
- package/es/components/drawer/drawer.vue.d.ts +1 -1
- package/es/components/drawer/index.d.ts +2 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +19 -19
- package/es/components/icon/icon.vue2.js +20 -21
- package/es/components/index.js +113 -113
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/input.vue.d.ts +4 -4
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/input-number.vue.d.ts +3 -3
- package/es/components/modal/index.d.ts +11 -11
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +97 -67
- package/es/components/popconfirm/index.d.ts +11 -11
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/progress/index.d.ts +4 -4
- package/es/components/radio/index.d.ts +6 -6
- package/es/components/radio/radio-group.vue.d.ts +1 -1
- package/es/components/radio/radio.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +8 -8
- package/es/components/search/search.vue.d.ts +2 -2
- package/es/components/select/index.d.ts +8 -8
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +1 -1
- package/es/components/side-menu/side-menu.vue2.js +44 -44
- package/es/components/slider/index.d.ts +1 -1
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/switch/index.d.ts +3 -3
- package/es/components/switch/switch.vue.d.ts +3 -3
- package/es/components/table/index.d.ts +17 -17
- package/es/components/table/table.vue.d.ts +2 -2
- package/es/components/tabs/tabs.vue2.js +4 -4
- package/es/components/time-picker/common/picker.vue.d.ts +4 -4
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/time-picker.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +3 -3
- package/es/components/tree/index.d.ts +16 -16
- package/es/components/upload/index.d.ts +12 -12
- package/es/index.js +113 -113
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/affix/affix.vue.d.ts +1 -1
- package/lib/components/affix/index.d.ts +2 -2
- package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/lib/components/autocomplete/index.d.ts +17 -17
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +10 -10
- package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/dialog/dialog.vue.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +2 -2
- package/lib/components/drawer/drawer.vue.d.ts +1 -1
- package/lib/components/drawer/index.d.ts +2 -2
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +19 -19
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/input.vue.d.ts +4 -4
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/input-number.vue.d.ts +3 -3
- package/lib/components/modal/index.d.ts +11 -11
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -11
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/radio/index.d.ts +6 -6
- package/lib/components/radio/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +8 -8
- package/lib/components/search/search.vue.d.ts +2 -2
- package/lib/components/select/index.d.ts +8 -8
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/switch/index.d.ts +3 -3
- package/lib/components/switch/switch.vue.d.ts +3 -3
- package/lib/components/table/index.d.ts +17 -17
- package/lib/components/table/table.vue.d.ts +2 -2
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +4 -4
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/time-picker.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +3 -3
- package/lib/components/tree/index.d.ts +16 -16
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -56,11 +56,11 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
56
56
|
focus: () => void;
|
|
57
57
|
blur: () => void;
|
|
58
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
59
|
-
blur: (e: FocusEvent) => void;
|
|
60
|
-
focus: (e: FocusEvent) => void;
|
|
61
59
|
"update:modelValue": (val: number | undefined) => void;
|
|
62
60
|
change: (cur: number | undefined, prev: number | undefined) => void;
|
|
63
61
|
input: (val: number | null | undefined) => void;
|
|
62
|
+
blur: (e: FocusEvent) => void;
|
|
63
|
+
focus: (e: FocusEvent) => void;
|
|
64
64
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
65
65
|
id: {
|
|
66
66
|
type: globalThis.PropType<string>;
|
|
@@ -114,9 +114,9 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
114
114
|
type: globalThis.PropType<boolean>;
|
|
115
115
|
};
|
|
116
116
|
}>> & {
|
|
117
|
+
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
117
118
|
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
118
119
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
119
|
-
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
120
120
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
121
121
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
122
122
|
}, {}, {}>> & Record<string, any>;
|
|
@@ -74,15 +74,15 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
74
74
|
/** @description remove focus the input component */
|
|
75
75
|
blur: () => void;
|
|
76
76
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
-
blur: (e: FocusEvent) => void;
|
|
78
|
-
focus: (e: FocusEvent) => void;
|
|
79
77
|
"update:modelValue": (val: number | undefined) => void;
|
|
80
78
|
change: (cur: number | undefined, prev: number | undefined) => void;
|
|
81
79
|
input: (val: number | null | undefined) => void;
|
|
80
|
+
blur: (e: FocusEvent) => void;
|
|
81
|
+
focus: (e: FocusEvent) => void;
|
|
82
82
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & {
|
|
83
|
+
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
83
84
|
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
84
85
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
85
|
-
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
86
86
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
87
87
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
88
88
|
}, {}, {}>;
|
|
@@ -38,11 +38,11 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
38
38
|
type: globalThis.PropType<boolean>;
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
draggable: {
|
|
42
42
|
type: globalThis.PropType<boolean>;
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
closeOnPressEscape: {
|
|
46
46
|
type: globalThis.PropType<boolean>;
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
@@ -151,11 +151,11 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
151
151
|
type: globalThis.PropType<boolean>;
|
|
152
152
|
default: boolean;
|
|
153
153
|
};
|
|
154
|
-
|
|
154
|
+
draggable: {
|
|
155
155
|
type: globalThis.PropType<boolean>;
|
|
156
156
|
default: boolean;
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
closeOnPressEscape: {
|
|
159
159
|
type: globalThis.PropType<boolean>;
|
|
160
160
|
default: boolean;
|
|
161
161
|
};
|
|
@@ -232,8 +232,8 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
232
232
|
trapFocus: boolean;
|
|
233
233
|
customClass: string;
|
|
234
234
|
showClose: boolean;
|
|
235
|
-
closeOnPressEscape: boolean;
|
|
236
235
|
draggable: boolean;
|
|
236
|
+
closeOnPressEscape: boolean;
|
|
237
237
|
alignCenter: boolean;
|
|
238
238
|
appendToBody: boolean;
|
|
239
239
|
destroyOnClose: boolean;
|
|
@@ -290,11 +290,11 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
290
290
|
type: globalThis.PropType<boolean>;
|
|
291
291
|
default: boolean;
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
draggable: {
|
|
294
294
|
type: globalThis.PropType<boolean>;
|
|
295
295
|
default: boolean;
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
closeOnPressEscape: {
|
|
298
298
|
type: globalThis.PropType<boolean>;
|
|
299
299
|
default: boolean;
|
|
300
300
|
};
|
|
@@ -371,8 +371,8 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
371
371
|
trapFocus: boolean;
|
|
372
372
|
customClass: string;
|
|
373
373
|
showClose: boolean;
|
|
374
|
-
closeOnPressEscape: boolean;
|
|
375
374
|
draggable: boolean;
|
|
375
|
+
closeOnPressEscape: boolean;
|
|
376
376
|
alignCenter: boolean;
|
|
377
377
|
appendToBody: boolean;
|
|
378
378
|
destroyOnClose: boolean;
|
|
@@ -426,11 +426,11 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
426
426
|
type: globalThis.PropType<boolean>;
|
|
427
427
|
default: boolean;
|
|
428
428
|
};
|
|
429
|
-
|
|
429
|
+
draggable: {
|
|
430
430
|
type: globalThis.PropType<boolean>;
|
|
431
431
|
default: boolean;
|
|
432
432
|
};
|
|
433
|
-
|
|
433
|
+
closeOnPressEscape: {
|
|
434
434
|
type: globalThis.PropType<boolean>;
|
|
435
435
|
default: boolean;
|
|
436
436
|
};
|
|
@@ -509,8 +509,8 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
509
509
|
trapFocus: boolean;
|
|
510
510
|
customClass: string;
|
|
511
511
|
showClose: boolean;
|
|
512
|
-
closeOnPressEscape: boolean;
|
|
513
512
|
draggable: boolean;
|
|
513
|
+
closeOnPressEscape: boolean;
|
|
514
514
|
alignCenter: boolean;
|
|
515
515
|
appendToBody: boolean;
|
|
516
516
|
destroyOnClose: boolean;
|
|
@@ -56,8 +56,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
56
|
trapFocus: boolean;
|
|
57
57
|
customClass: string;
|
|
58
58
|
showClose: boolean;
|
|
59
|
-
closeOnPressEscape: boolean;
|
|
60
59
|
draggable: boolean;
|
|
60
|
+
closeOnPressEscape: boolean;
|
|
61
61
|
alignCenter: boolean;
|
|
62
62
|
appendToBody: boolean;
|
|
63
63
|
destroyOnClose: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouterHelper as
|
|
3
|
-
import { useMultipleTabStore as
|
|
4
|
-
import { useRefs as
|
|
1
|
+
import { defineComponent as P, getCurrentInstance as D, ref as x, computed as y, watchEffect as H, unref as r, openBlock as h, createElementBlock as R, normalizeClass as K, normalizeStyle as W, createVNode as C, withCtx as S, Fragment as $, renderList as F, createBlock as U } from "vue";
|
|
2
|
+
import { useRouterHelper as j, getRouterKeyPath as f, listenerRouteChange as q } from "@vft/router";
|
|
3
|
+
import { useMultipleTabStore as G, useTabs as J } from "@vft/store";
|
|
4
|
+
import { useRefs as L } from "@vft/use";
|
|
5
5
|
import "../alert/index.js";
|
|
6
6
|
import "../avatar/index.js";
|
|
7
7
|
import "../backtop/index.js";
|
|
@@ -64,7 +64,7 @@ import "../slider/index.js";
|
|
|
64
64
|
import "../space/index.js";
|
|
65
65
|
import "../switch/index.js";
|
|
66
66
|
import "../table/index.js";
|
|
67
|
-
import { VftTabs as
|
|
67
|
+
import { VftTabs as O, VftTabPane as Q } from "../tabs/index.js";
|
|
68
68
|
import "../tag/index.js";
|
|
69
69
|
import "../time-picker/index.js";
|
|
70
70
|
import "../tooltip/index.js";
|
|
@@ -88,24 +88,25 @@ import "../md-container/index.js";
|
|
|
88
88
|
import "../md-tabs/index.js";
|
|
89
89
|
import "../md-vue-playground/index.js";
|
|
90
90
|
import "@vueuse/core";
|
|
91
|
-
import { generateCssVars as
|
|
91
|
+
import { generateCssVars as _ } from "../../utils/ns-cover.js";
|
|
92
92
|
import "lodash";
|
|
93
|
-
import { useNamespace as
|
|
93
|
+
import { useNamespace as X } from "../../hooks/use-namespace/index.js";
|
|
94
94
|
import "@popperjs/core";
|
|
95
95
|
import "../../hooks/use-z-index/index.js";
|
|
96
96
|
import "../message/index.js";
|
|
97
97
|
import "../infinite-scroll/index.js";
|
|
98
98
|
import "../progress-i/index.js";
|
|
99
|
-
import
|
|
100
|
-
import { onBeforeRouteLeave as
|
|
101
|
-
import
|
|
102
|
-
|
|
99
|
+
import Y from "hotkeys-js";
|
|
100
|
+
import { onBeforeRouteLeave as Z } from "vue-router";
|
|
101
|
+
import tt from "./tab-content.vue2.js";
|
|
102
|
+
import { initAffixTabs as et, useTabsDrag as ot } from "./use/use-multiple-tabs.js";
|
|
103
|
+
const k = (
|
|
103
104
|
/* hoist-static*/
|
|
104
|
-
|
|
105
|
-
),
|
|
106
|
-
name:
|
|
107
|
-
}),
|
|
108
|
-
...
|
|
105
|
+
X("multiple-tabs")
|
|
106
|
+
), rt = P({
|
|
107
|
+
name: k.b()
|
|
108
|
+
}), Ze = /* @__PURE__ */ P({
|
|
109
|
+
...rt,
|
|
109
110
|
props: {
|
|
110
111
|
tabsStyle: {},
|
|
111
112
|
contextMenuStyle: {},
|
|
@@ -113,55 +114,55 @@ const C = (
|
|
|
113
114
|
fixTabCount: {},
|
|
114
115
|
fixExtraScrollWidth: {}
|
|
115
116
|
},
|
|
116
|
-
setup(
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
const
|
|
117
|
+
setup(d) {
|
|
118
|
+
const l = D().appContext.config.globalProperties.$router, i = et(l);
|
|
119
|
+
d.canDrag && ot(i);
|
|
120
|
+
const u = G(), m = x(""), a = x(0), b = x(), { go: v } = j(l), c = y(() => u.getTabList.filter((t) => {
|
|
120
121
|
var e;
|
|
121
122
|
return !((e = t.meta) != null && e.hideTab);
|
|
122
123
|
}));
|
|
123
|
-
|
|
124
|
+
H(() => {
|
|
124
125
|
var t;
|
|
125
|
-
if (
|
|
126
|
-
const e =
|
|
127
|
-
e === -1 ?
|
|
126
|
+
if (m.value) {
|
|
127
|
+
const e = c.value.findIndex((o) => f(o) === m.value);
|
|
128
|
+
e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
|
|
128
129
|
}
|
|
129
|
-
}),
|
|
130
|
-
|
|
131
|
-
}),
|
|
132
|
-
var
|
|
133
|
-
if (!t || (
|
|
130
|
+
}), Z(() => {
|
|
131
|
+
b.value = r(l.currentRoute);
|
|
132
|
+
}), q((t) => {
|
|
133
|
+
var g;
|
|
134
|
+
if (!t || (g = t.meta) != null && g.hasTokenToRoot)
|
|
134
135
|
return;
|
|
135
|
-
const { meta: e = {} } = t, { currentActivePath: o, hideTab:
|
|
136
|
-
if (
|
|
137
|
-
let
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, s = f(t);
|
|
137
|
+
if (m.value !== s && (m.value = s), p) {
|
|
138
|
+
let T = l.getRoutes().find((z) => z.path === o);
|
|
139
|
+
T && u.addTab(
|
|
140
|
+
T,
|
|
141
|
+
r(b),
|
|
142
|
+
a.value,
|
|
142
143
|
t
|
|
143
144
|
);
|
|
144
145
|
} else
|
|
145
|
-
|
|
146
|
+
u.addTab(r(t), r(b), a.value);
|
|
146
147
|
});
|
|
147
|
-
function
|
|
148
|
-
var
|
|
149
|
-
if (
|
|
148
|
+
function w(t) {
|
|
149
|
+
var n, p;
|
|
150
|
+
if (m.value === t.paneName)
|
|
150
151
|
return;
|
|
151
|
-
const e =
|
|
152
|
-
|
|
153
|
-
const o = (
|
|
154
|
-
|
|
152
|
+
const e = c.value[t.attrs.index];
|
|
153
|
+
m.value = t.paneName;
|
|
154
|
+
const o = (p = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : p.fullPath;
|
|
155
|
+
v(o || e.fullPath || e.path);
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
157
|
+
function B(t) {
|
|
158
|
+
u.closeTabByKey(t, l);
|
|
158
159
|
}
|
|
159
|
-
const { refs:
|
|
160
|
-
function
|
|
160
|
+
const { refs: M, setRefs: V } = L();
|
|
161
|
+
function A(t) {
|
|
161
162
|
const e = t.pane.attrs.index, o = t.event;
|
|
162
|
-
|
|
163
|
+
M.value[e].handleContext(o);
|
|
163
164
|
}
|
|
164
|
-
const
|
|
165
|
+
const E = y(() => ({ ..._({
|
|
165
166
|
padding: "4px 0 0",
|
|
166
167
|
"border-bottom": "none",
|
|
167
168
|
"header-height": "26px",
|
|
@@ -174,35 +175,64 @@ const C = (
|
|
|
174
175
|
"header-margin": "0 0 0 8px",
|
|
175
176
|
"item-border-radius": "5px 5px 0 0",
|
|
176
177
|
"item-border": "none"
|
|
177
|
-
}, "tabs"), ...
|
|
178
|
-
|
|
179
|
-
return
|
|
180
|
-
})
|
|
181
|
-
|
|
178
|
+
}, "tabs"), ...d.tabsStyle })), { closeCurrent: I } = J();
|
|
179
|
+
Y("command+e, ctrl+e", function() {
|
|
180
|
+
return I(), !1;
|
|
181
|
+
});
|
|
182
|
+
const N = {
|
|
183
|
+
..._(
|
|
182
184
|
{
|
|
183
185
|
"sub-item-height": "40px",
|
|
184
186
|
"item-min-width": "150px"
|
|
185
187
|
},
|
|
186
188
|
"menu"
|
|
187
189
|
),
|
|
188
|
-
...
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
...d.contextMenuStyle
|
|
191
|
+
};
|
|
192
|
+
return (t, e) => (h(), R("div", {
|
|
193
|
+
class: K(r(k).b()),
|
|
194
|
+
style: W(E.value)
|
|
192
195
|
}, [
|
|
193
|
-
|
|
196
|
+
C(r(O), {
|
|
194
197
|
"show-bar": !1,
|
|
195
198
|
"fix-tab-count": t.fixTabCount,
|
|
196
199
|
"fix-extra-scroll-width": t.fixExtraScrollWidth,
|
|
197
|
-
"model-value":
|
|
198
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
199
|
-
onTabClick:
|
|
200
|
-
onTabRemove:
|
|
201
|
-
onTabContextMenu:
|
|
202
|
-
},
|
|
200
|
+
"model-value": m.value,
|
|
201
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => m.value = o),
|
|
202
|
+
onTabClick: w,
|
|
203
|
+
onTabRemove: B,
|
|
204
|
+
onTabContextMenu: A
|
|
205
|
+
}, {
|
|
206
|
+
default: S(() => [
|
|
207
|
+
(h(!0), R($, null, F(c.value, (o, n) => {
|
|
208
|
+
var p;
|
|
209
|
+
return h(), U(r(Q), {
|
|
210
|
+
key: r(f)(o) + n,
|
|
211
|
+
closable: !((p = o.meta) != null && p.affix),
|
|
212
|
+
index: n,
|
|
213
|
+
name: r(f)(o)
|
|
214
|
+
}, {
|
|
215
|
+
label: S(() => {
|
|
216
|
+
var s;
|
|
217
|
+
return [
|
|
218
|
+
C(tt, {
|
|
219
|
+
"context-menu-style": N,
|
|
220
|
+
"affix-num": (s = r(i)) == null ? void 0 : s.length,
|
|
221
|
+
ref_for: !0,
|
|
222
|
+
ref: r(V)(n),
|
|
223
|
+
"tab-item": o
|
|
224
|
+
}, null, 8, ["affix-num", "tab-item"])
|
|
225
|
+
];
|
|
226
|
+
}),
|
|
227
|
+
_: 2
|
|
228
|
+
}, 1032, ["closable", "index", "name"]);
|
|
229
|
+
}), 128))
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["fix-tab-count", "fix-extra-scroll-width", "model-value"])
|
|
203
233
|
], 6));
|
|
204
234
|
}
|
|
205
235
|
});
|
|
206
236
|
export {
|
|
207
|
-
|
|
237
|
+
Ze as default
|
|
208
238
|
};
|
|
@@ -15,11 +15,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
15
15
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
persistent: {
|
|
19
19
|
type: globalThis.PropType<boolean>;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
teleported: {
|
|
23
23
|
type: globalThis.PropType<boolean>;
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
@@ -66,11 +66,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
66
66
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
67
67
|
default: string;
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
persistent: {
|
|
70
70
|
type: globalThis.PropType<boolean>;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
teleported: {
|
|
74
74
|
type: globalThis.PropType<boolean>;
|
|
75
75
|
default: boolean;
|
|
76
76
|
};
|
|
@@ -102,8 +102,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
102
102
|
width: string | number;
|
|
103
103
|
hideAfter: number;
|
|
104
104
|
icon: string | import("..").IconProps;
|
|
105
|
-
teleported: boolean;
|
|
106
105
|
persistent: boolean;
|
|
106
|
+
teleported: boolean;
|
|
107
107
|
confirmButtonType: import("..").ButtonType;
|
|
108
108
|
iconColor: string;
|
|
109
109
|
hideIcon: boolean;
|
|
@@ -130,11 +130,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
130
130
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
131
131
|
default: string;
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
persistent: {
|
|
134
134
|
type: globalThis.PropType<boolean>;
|
|
135
135
|
default: boolean;
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
teleported: {
|
|
138
138
|
type: globalThis.PropType<boolean>;
|
|
139
139
|
default: boolean;
|
|
140
140
|
};
|
|
@@ -166,8 +166,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
166
166
|
width: string | number;
|
|
167
167
|
hideAfter: number;
|
|
168
168
|
icon: string | import("..").IconProps;
|
|
169
|
-
teleported: boolean;
|
|
170
169
|
persistent: boolean;
|
|
170
|
+
teleported: boolean;
|
|
171
171
|
confirmButtonType: import("..").ButtonType;
|
|
172
172
|
iconColor: string;
|
|
173
173
|
hideIcon: boolean;
|
|
@@ -191,11 +191,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
191
191
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
192
192
|
default: string;
|
|
193
193
|
};
|
|
194
|
-
|
|
194
|
+
persistent: {
|
|
195
195
|
type: globalThis.PropType<boolean>;
|
|
196
196
|
default: boolean;
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
teleported: {
|
|
199
199
|
type: globalThis.PropType<boolean>;
|
|
200
200
|
default: boolean;
|
|
201
201
|
};
|
|
@@ -230,8 +230,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
230
230
|
width: string | number;
|
|
231
231
|
hideAfter: number;
|
|
232
232
|
icon: string | import("..").IconProps;
|
|
233
|
-
teleported: boolean;
|
|
234
233
|
persistent: boolean;
|
|
234
|
+
teleported: boolean;
|
|
235
235
|
confirmButtonType: import("..").ButtonType;
|
|
236
236
|
iconColor: string;
|
|
237
237
|
hideIcon: boolean;
|
|
@@ -42,8 +42,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
42
|
width: string | number;
|
|
43
43
|
hideAfter: number;
|
|
44
44
|
icon: string | IconProps;
|
|
45
|
-
teleported: boolean;
|
|
46
45
|
persistent: boolean;
|
|
46
|
+
teleported: boolean;
|
|
47
47
|
confirmButtonType: ButtonType;
|
|
48
48
|
iconColor: string;
|
|
49
49
|
hideIcon: boolean;
|
|
@@ -20,7 +20,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
20
20
|
type: globalThis.PropType<number>;
|
|
21
21
|
};
|
|
22
22
|
strokeLinecap: {
|
|
23
|
-
type: globalThis.PropType<"round" | "
|
|
23
|
+
type: globalThis.PropType<"round" | "butt" | "square">;
|
|
24
24
|
};
|
|
25
25
|
textInside: {
|
|
26
26
|
type: globalThis.PropType<boolean>;
|
|
@@ -63,7 +63,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
63
63
|
type: globalThis.PropType<number>;
|
|
64
64
|
};
|
|
65
65
|
strokeLinecap: {
|
|
66
|
-
type: globalThis.PropType<"round" | "
|
|
66
|
+
type: globalThis.PropType<"round" | "butt" | "square">;
|
|
67
67
|
};
|
|
68
68
|
textInside: {
|
|
69
69
|
type: globalThis.PropType<boolean>;
|
|
@@ -113,7 +113,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
113
113
|
type: globalThis.PropType<number>;
|
|
114
114
|
};
|
|
115
115
|
strokeLinecap: {
|
|
116
|
-
type: globalThis.PropType<"round" | "
|
|
116
|
+
type: globalThis.PropType<"round" | "butt" | "square">;
|
|
117
117
|
};
|
|
118
118
|
textInside: {
|
|
119
119
|
type: globalThis.PropType<boolean>;
|
|
@@ -160,7 +160,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
160
160
|
type: globalThis.PropType<number>;
|
|
161
161
|
};
|
|
162
162
|
strokeLinecap: {
|
|
163
|
-
type: globalThis.PropType<"round" | "
|
|
163
|
+
type: globalThis.PropType<"round" | "butt" | "square">;
|
|
164
164
|
};
|
|
165
165
|
textInside: {
|
|
166
166
|
type: globalThis.PropType<boolean>;
|
|
@@ -25,8 +25,8 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
25
25
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
change: (...args: any[]) => void;
|
|
29
28
|
"update:modelValue": (...args: any[]) => void;
|
|
29
|
+
change: (...args: any[]) => void;
|
|
30
30
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
|
|
31
31
|
size: {
|
|
32
32
|
type: globalThis.PropType<"" | "default" | "small" | "large">;
|
|
@@ -114,8 +114,8 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
114
114
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
115
115
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
117
|
-
change: (...args: any[]) => void;
|
|
118
117
|
"update:modelValue": (...args: any[]) => void;
|
|
118
|
+
change: (...args: any[]) => void;
|
|
119
119
|
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
120
120
|
$slots: {
|
|
121
121
|
default?(_: {}): any;
|
|
@@ -242,8 +242,8 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
242
242
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
243
243
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
244
244
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
245
|
-
change: (...args: any[]) => void;
|
|
246
245
|
"update:modelValue": (...args: any[]) => void;
|
|
246
|
+
change: (...args: any[]) => void;
|
|
247
247
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
|
|
248
248
|
fill: {
|
|
249
249
|
type: globalThis.PropType<string>;
|
|
@@ -374,8 +374,8 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
374
374
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
375
375
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
376
376
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
377
|
-
change: (...args: any[]) => void;
|
|
378
377
|
"update:modelValue": (...args: any[]) => void;
|
|
378
|
+
change: (...args: any[]) => void;
|
|
379
379
|
}, string, {
|
|
380
380
|
validateEvent: boolean;
|
|
381
381
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -424,8 +424,8 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
424
424
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
425
425
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
426
426
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
427
|
-
change: (...args: any[]) => void;
|
|
428
427
|
"update:modelValue": (...args: any[]) => void;
|
|
428
|
+
change: (...args: any[]) => void;
|
|
429
429
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
|
|
430
430
|
fill: {
|
|
431
431
|
type: globalThis.PropType<string>;
|
|
@@ -556,8 +556,8 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
556
556
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
557
557
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
558
558
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
559
|
-
change: (...args: any[]) => void;
|
|
560
559
|
"update:modelValue": (...args: any[]) => void;
|
|
560
|
+
change: (...args: any[]) => void;
|
|
561
561
|
}, string, {
|
|
562
562
|
validateEvent: boolean;
|
|
563
563
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -16,8 +16,8 @@ export interface RadioGroupProps {
|
|
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RadioGroupProps>, {
|
|
17
17
|
validateEvent: boolean;
|
|
18
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
change: (...args: any[]) => void;
|
|
20
19
|
"update:modelValue": (...args: any[]) => void;
|
|
20
|
+
change: (...args: any[]) => void;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RadioGroupProps>, {
|
|
22
22
|
validateEvent: boolean;
|
|
23
23
|
}>>> & {
|
|
@@ -9,8 +9,8 @@ export interface RadioProps {
|
|
|
9
9
|
border?: boolean;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<RadioProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
change: (...args: any[]) => void;
|
|
13
12
|
"update:modelValue": (...args: any[]) => void;
|
|
13
|
+
change: (...args: any[]) => void;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<RadioProps>>> & {
|
|
15
15
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|