vft 0.0.415 → 0.0.416
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/components/autocomplete/autocomplete.vue.d.ts +8 -8
- package/es/components/autocomplete/index.d.ts +24 -24
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +39 -39
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/color-picker/composables/use-alpha-slider.d.ts +2 -2
- package/es/components/config-provider/config-provider.vue.d.ts +2 -0
- package/es/components/config-provider/config-provider.vue2.js +4 -3
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/config-provider/index.d.ts +9 -0
- package/es/components/dialog/constants.d.ts +1 -0
- package/es/components/dialog/constants.js +2 -1
- package/es/components/dialog/dialog-content.vue.d.ts +4 -1
- package/es/components/dialog/dialog-content.vue2.js +59 -48
- package/es/components/dialog/dialog.vue.d.ts +4 -19
- package/es/components/dialog/dialog.vue2.js +104 -89
- package/es/components/dialog/index.d.ts +70 -3
- package/es/components/dialog/index.js +5 -4
- package/es/components/dialog/types.d.ts +69 -0
- package/es/components/dialog/{hooks/use-dialog.d.ts → use-dialog.d.ts} +11 -2
- package/es/components/dialog/use-dialog.js +138 -0
- package/es/components/drawer/composables/useResizable.d.ts +7 -0
- package/es/components/drawer/composables/useResizable.js +53 -0
- package/es/components/drawer/drawer.vue.d.ts +3 -7
- package/es/components/drawer/drawer.vue2.js +122 -97
- package/es/components/drawer/index.d.ts +78 -0
- package/es/components/drawer/types.d.ts +13 -0
- package/es/components/drawer/types.js +1 -0
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +15 -15
- package/es/components/form/index.d.ts +6 -6
- package/es/components/index.js +172 -171
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.vue.d.ts +1 -1
- package/es/components/link/index.d.ts +3 -3
- package/es/components/md-code-demo/md-code-demo.js +10 -10
- package/es/components/modal/index.d.ts +87 -24
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/modal/modal.vue2.js +24 -17
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +82 -79
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/index.d.ts +0 -9
- package/es/components/popover/popover.vue2.js +4 -5
- package/es/components/popover/types.d.ts +23 -1
- package/es/components/search/search.vue2.js +3 -3
- package/es/components/select/index.d.ts +20 -20
- package/es/components/select/select.vue.d.ts +20 -20
- package/es/components/select/useSelect.d.ts +17 -17
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/table/index.d.ts +9 -9
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +1 -1
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +6 -6
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tooltip/tooltip.vue2.js +1 -1
- package/es/components/tooltip/types.d.ts +81 -1
- package/es/hooks/use-draggable/index.d.ts +5 -1
- package/es/hooks/use-draggable/index.js +39 -34
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.js +2 -2
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/helper.d.ts +1 -1
- package/es/utils/ns-cover.d.ts +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +8 -8
- package/lib/components/autocomplete/index.d.ts +24 -24
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +39 -39
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/color-picker/composables/use-alpha-slider.d.ts +2 -2
- package/lib/components/config-provider/config-provider.vue.d.ts +2 -0
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +9 -0
- package/lib/components/dialog/constants.cjs +1 -1
- package/lib/components/dialog/constants.d.ts +1 -0
- package/lib/components/dialog/dialog-content.vue.d.ts +4 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +4 -19
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/index.cjs +1 -1
- package/lib/components/dialog/index.d.ts +70 -3
- package/lib/components/dialog/types.d.ts +69 -0
- package/lib/components/dialog/use-dialog.cjs +1 -0
- package/lib/components/dialog/{hooks/use-dialog.d.ts → use-dialog.d.ts} +11 -2
- package/lib/components/drawer/composables/useResizable.cjs +1 -0
- package/lib/components/drawer/composables/useResizable.d.ts +7 -0
- package/lib/components/drawer/drawer.vue.d.ts +3 -7
- package/lib/components/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/drawer/index.d.ts +78 -0
- package/lib/components/drawer/types.cjs +1 -0
- package/lib/components/drawer/types.d.ts +13 -0
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +15 -15
- package/lib/components/form/index.d.ts +6 -6
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-tag/input-tag.vue.d.ts +1 -1
- package/lib/components/link/index.d.ts +3 -3
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/modal/index.d.ts +87 -24
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/index.d.ts +0 -9
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popover/types.d.ts +23 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +20 -20
- package/lib/components/select/select.vue.d.ts +20 -20
- package/lib/components/select/useSelect.d.ts +17 -17
- package/lib/components/table/index.d.ts +9 -9
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +6 -6
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/types.d.ts +81 -1
- package/lib/hooks/use-draggable/index.cjs +1 -1
- package/lib/hooks/use-draggable/index.d.ts +5 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/helper.d.ts +1 -1
- package/lib/utils/ns-cover.d.ts +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/dialog.scss +35 -35
- package/theme-style/src/drawer.scss +118 -21
- package/theme-style/src/md-container.scss +1 -0
- package/theme-style/src/tag.scss +1 -1
- package/theme-style/vft-dialog.css +1 -1
- package/theme-style/vft-drawer.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-tag.css +1 -1
- package/web-types.json +1 -1
- package/es/components/dialog/hooks/use-dialog.js +0 -106
- package/lib/components/dialog/hooks/use-dialog.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VftIcon as
|
|
1
|
+
import { VftIcon as g } from "../icon/index.js";
|
|
2
2
|
import { vLoading as C } from "../loading/directive.js";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -11,7 +11,7 @@ import "@popperjs/core";
|
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
12
|
import { getCode as N, getReactCode as w, getVueCode as x, getNormalCode as D } from "./code-demo/code.js";
|
|
13
13
|
import { loadNormal as E, loadVue as M, loadReact as R } from "./code-demo/loadScript.js";
|
|
14
|
-
import { atou as
|
|
14
|
+
import { atou as y, injectCSS as k, injectScript as J } from "./utils.js";
|
|
15
15
|
const O = 800, G = L({
|
|
16
16
|
name: "VftMdCodeDemo",
|
|
17
17
|
props: {
|
|
@@ -61,18 +61,18 @@ const O = 800, G = L({
|
|
|
61
61
|
required: !0
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
setup(a, { slots:
|
|
64
|
+
setup(a, { slots: b }) {
|
|
65
65
|
const n = l(!1), m = l(), f = l(), d = l("0"), s = l(!1), u = i(
|
|
66
|
-
() => JSON.parse(a.config ?
|
|
66
|
+
() => JSON.parse(a.config ? y(a.config) : "{}")
|
|
67
67
|
), o = i(() => {
|
|
68
|
-
const r = JSON.parse(
|
|
68
|
+
const r = JSON.parse(y(a.code));
|
|
69
69
|
return N(r);
|
|
70
70
|
}), e = i(
|
|
71
71
|
() => a.type === "react" ? w(o.value, u.value) : a.type === "vue" ? x(o.value, u.value) : D(o.value, u.value)
|
|
72
72
|
), h = i(() => e.value.isLegal), c = (r = !1) => {
|
|
73
73
|
const p = m.value.attachShadow({ mode: "open" }), v = document.createElement("div");
|
|
74
74
|
v.classList.add("code-demo-app"), p.appendChild(v), h.value ? (r && (v.innerHTML = e.value.html), k(p, e.value), J(a.id, p, e.value), d.value = "0") : d.value = "auto", s.value = !0;
|
|
75
|
-
},
|
|
75
|
+
}, j = () => {
|
|
76
76
|
switch (a.type) {
|
|
77
77
|
case "react":
|
|
78
78
|
return R(e.value).then(() => c());
|
|
@@ -84,7 +84,7 @@ const O = 800, G = L({
|
|
|
84
84
|
};
|
|
85
85
|
return S(() => {
|
|
86
86
|
setTimeout(() => {
|
|
87
|
-
|
|
87
|
+
j();
|
|
88
88
|
}, O);
|
|
89
89
|
}), () => _(
|
|
90
90
|
t("div", { class: "vft-md-code-demo", id: a.id }, [
|
|
@@ -152,7 +152,7 @@ const O = 800, G = L({
|
|
|
152
152
|
"aria-label": "JSFiddle",
|
|
153
153
|
"data-balloon-pos": "up"
|
|
154
154
|
},
|
|
155
|
-
t(
|
|
155
|
+
t(g, {
|
|
156
156
|
icon: "icon-jsfiddle",
|
|
157
157
|
class: "jsfiddle-button"
|
|
158
158
|
})
|
|
@@ -196,7 +196,7 @@ const O = 800, G = L({
|
|
|
196
196
|
"aria-label": "Codepen",
|
|
197
197
|
"data-balloon-pos": "up"
|
|
198
198
|
},
|
|
199
|
-
t(
|
|
199
|
+
t(g, {
|
|
200
200
|
icon: "icon-codepen",
|
|
201
201
|
class: "codepen-button"
|
|
202
202
|
})
|
|
@@ -225,7 +225,7 @@ const O = 800, G = L({
|
|
|
225
225
|
ref: f,
|
|
226
226
|
class: "code-demo-codes"
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
b.default?.()
|
|
229
229
|
)
|
|
230
230
|
)
|
|
231
231
|
]),
|
|
@@ -18,6 +18,12 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
18
18
|
zIndex: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
};
|
|
21
|
+
overflow: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
24
|
+
transition: {
|
|
25
|
+
type: import("vue").PropType<string | import("vue").TransitionProps>;
|
|
26
|
+
};
|
|
21
27
|
fullscreen: {
|
|
22
28
|
type: import("vue").PropType<boolean>;
|
|
23
29
|
default: boolean;
|
|
@@ -37,6 +43,9 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
37
43
|
loading: {
|
|
38
44
|
type: import("vue").PropType<boolean>;
|
|
39
45
|
};
|
|
46
|
+
appendTo: {
|
|
47
|
+
type: import("vue").PropType<string | HTMLElement>;
|
|
48
|
+
};
|
|
40
49
|
showClose: {
|
|
41
50
|
type: import("vue").PropType<boolean>;
|
|
42
51
|
default: boolean;
|
|
@@ -45,13 +54,6 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
45
54
|
type: import("vue").PropType<string>;
|
|
46
55
|
default: string;
|
|
47
56
|
};
|
|
48
|
-
alignCenter: {
|
|
49
|
-
type: import("vue").PropType<boolean>;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
closeIcon: {
|
|
53
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
54
|
-
};
|
|
55
57
|
appendToBody: {
|
|
56
58
|
type: import("vue").PropType<boolean>;
|
|
57
59
|
default: boolean;
|
|
@@ -83,6 +85,9 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
83
85
|
type: import("vue").PropType<number>;
|
|
84
86
|
default: number;
|
|
85
87
|
};
|
|
88
|
+
modalPenetrable: {
|
|
89
|
+
type: import("vue").PropType<boolean>;
|
|
90
|
+
};
|
|
86
91
|
modalClass: {
|
|
87
92
|
type: import("vue").PropType<string>;
|
|
88
93
|
};
|
|
@@ -90,6 +95,22 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
90
95
|
type: import("vue").PropType<boolean>;
|
|
91
96
|
default: boolean;
|
|
92
97
|
};
|
|
98
|
+
alignCenter: {
|
|
99
|
+
type: import("vue").PropType<boolean>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
closeIcon: {
|
|
103
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
104
|
+
};
|
|
105
|
+
headerClass: {
|
|
106
|
+
type: import("vue").PropType<string>;
|
|
107
|
+
};
|
|
108
|
+
bodyClass: {
|
|
109
|
+
type: import("vue").PropType<string>;
|
|
110
|
+
};
|
|
111
|
+
footerClass: {
|
|
112
|
+
type: import("vue").PropType<string>;
|
|
113
|
+
};
|
|
93
114
|
showSubmitButton: {
|
|
94
115
|
type: import("vue").PropType<boolean>;
|
|
95
116
|
default: boolean;
|
|
@@ -126,7 +147,6 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
126
147
|
closeOnPressEscape: boolean;
|
|
127
148
|
showClose: boolean;
|
|
128
149
|
customClass: string;
|
|
129
|
-
alignCenter: boolean;
|
|
130
150
|
appendToBody: boolean;
|
|
131
151
|
destroyOnClose: boolean;
|
|
132
152
|
closeOnClickModal: boolean;
|
|
@@ -135,6 +155,7 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
155
|
openDelay: number;
|
|
136
156
|
closeDelay: number;
|
|
137
157
|
trapFocus: boolean;
|
|
158
|
+
alignCenter: boolean;
|
|
138
159
|
showSubmitButton: boolean;
|
|
139
160
|
showActionButtonGroup: boolean;
|
|
140
161
|
showCancelButton: boolean;
|
|
@@ -163,6 +184,12 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
163
184
|
zIndex: {
|
|
164
185
|
type: import("vue").PropType<number>;
|
|
165
186
|
};
|
|
187
|
+
overflow: {
|
|
188
|
+
type: import("vue").PropType<boolean>;
|
|
189
|
+
};
|
|
190
|
+
transition: {
|
|
191
|
+
type: import("vue").PropType<string | import("vue").TransitionProps>;
|
|
192
|
+
};
|
|
166
193
|
fullscreen: {
|
|
167
194
|
type: import("vue").PropType<boolean>;
|
|
168
195
|
default: boolean;
|
|
@@ -182,6 +209,9 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
182
209
|
loading: {
|
|
183
210
|
type: import("vue").PropType<boolean>;
|
|
184
211
|
};
|
|
212
|
+
appendTo: {
|
|
213
|
+
type: import("vue").PropType<string | HTMLElement>;
|
|
214
|
+
};
|
|
185
215
|
showClose: {
|
|
186
216
|
type: import("vue").PropType<boolean>;
|
|
187
217
|
default: boolean;
|
|
@@ -190,13 +220,6 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
190
220
|
type: import("vue").PropType<string>;
|
|
191
221
|
default: string;
|
|
192
222
|
};
|
|
193
|
-
alignCenter: {
|
|
194
|
-
type: import("vue").PropType<boolean>;
|
|
195
|
-
default: boolean;
|
|
196
|
-
};
|
|
197
|
-
closeIcon: {
|
|
198
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
199
|
-
};
|
|
200
223
|
appendToBody: {
|
|
201
224
|
type: import("vue").PropType<boolean>;
|
|
202
225
|
default: boolean;
|
|
@@ -228,6 +251,9 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
228
251
|
type: import("vue").PropType<number>;
|
|
229
252
|
default: number;
|
|
230
253
|
};
|
|
254
|
+
modalPenetrable: {
|
|
255
|
+
type: import("vue").PropType<boolean>;
|
|
256
|
+
};
|
|
231
257
|
modalClass: {
|
|
232
258
|
type: import("vue").PropType<string>;
|
|
233
259
|
};
|
|
@@ -235,6 +261,22 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
235
261
|
type: import("vue").PropType<boolean>;
|
|
236
262
|
default: boolean;
|
|
237
263
|
};
|
|
264
|
+
alignCenter: {
|
|
265
|
+
type: import("vue").PropType<boolean>;
|
|
266
|
+
default: boolean;
|
|
267
|
+
};
|
|
268
|
+
closeIcon: {
|
|
269
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
270
|
+
};
|
|
271
|
+
headerClass: {
|
|
272
|
+
type: import("vue").PropType<string>;
|
|
273
|
+
};
|
|
274
|
+
bodyClass: {
|
|
275
|
+
type: import("vue").PropType<string>;
|
|
276
|
+
};
|
|
277
|
+
footerClass: {
|
|
278
|
+
type: import("vue").PropType<string>;
|
|
279
|
+
};
|
|
238
280
|
showSubmitButton: {
|
|
239
281
|
type: import("vue").PropType<boolean>;
|
|
240
282
|
default: boolean;
|
|
@@ -271,7 +313,6 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
271
313
|
closeOnPressEscape: boolean;
|
|
272
314
|
showClose: boolean;
|
|
273
315
|
customClass: string;
|
|
274
|
-
alignCenter: boolean;
|
|
275
316
|
appendToBody: boolean;
|
|
276
317
|
destroyOnClose: boolean;
|
|
277
318
|
closeOnClickModal: boolean;
|
|
@@ -280,6 +321,7 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
280
321
|
openDelay: number;
|
|
281
322
|
closeDelay: number;
|
|
282
323
|
trapFocus: boolean;
|
|
324
|
+
alignCenter: boolean;
|
|
283
325
|
showSubmitButton: boolean;
|
|
284
326
|
showActionButtonGroup: boolean;
|
|
285
327
|
showCancelButton: boolean;
|
|
@@ -305,6 +347,12 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
305
347
|
zIndex: {
|
|
306
348
|
type: import("vue").PropType<number>;
|
|
307
349
|
};
|
|
350
|
+
overflow: {
|
|
351
|
+
type: import("vue").PropType<boolean>;
|
|
352
|
+
};
|
|
353
|
+
transition: {
|
|
354
|
+
type: import("vue").PropType<string | import("vue").TransitionProps>;
|
|
355
|
+
};
|
|
308
356
|
fullscreen: {
|
|
309
357
|
type: import("vue").PropType<boolean>;
|
|
310
358
|
default: boolean;
|
|
@@ -324,6 +372,9 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
324
372
|
loading: {
|
|
325
373
|
type: import("vue").PropType<boolean>;
|
|
326
374
|
};
|
|
375
|
+
appendTo: {
|
|
376
|
+
type: import("vue").PropType<string | HTMLElement>;
|
|
377
|
+
};
|
|
327
378
|
showClose: {
|
|
328
379
|
type: import("vue").PropType<boolean>;
|
|
329
380
|
default: boolean;
|
|
@@ -332,13 +383,6 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
332
383
|
type: import("vue").PropType<string>;
|
|
333
384
|
default: string;
|
|
334
385
|
};
|
|
335
|
-
alignCenter: {
|
|
336
|
-
type: import("vue").PropType<boolean>;
|
|
337
|
-
default: boolean;
|
|
338
|
-
};
|
|
339
|
-
closeIcon: {
|
|
340
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
341
|
-
};
|
|
342
386
|
appendToBody: {
|
|
343
387
|
type: import("vue").PropType<boolean>;
|
|
344
388
|
default: boolean;
|
|
@@ -370,6 +414,9 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
370
414
|
type: import("vue").PropType<number>;
|
|
371
415
|
default: number;
|
|
372
416
|
};
|
|
417
|
+
modalPenetrable: {
|
|
418
|
+
type: import("vue").PropType<boolean>;
|
|
419
|
+
};
|
|
373
420
|
modalClass: {
|
|
374
421
|
type: import("vue").PropType<string>;
|
|
375
422
|
};
|
|
@@ -377,6 +424,22 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
377
424
|
type: import("vue").PropType<boolean>;
|
|
378
425
|
default: boolean;
|
|
379
426
|
};
|
|
427
|
+
alignCenter: {
|
|
428
|
+
type: import("vue").PropType<boolean>;
|
|
429
|
+
default: boolean;
|
|
430
|
+
};
|
|
431
|
+
closeIcon: {
|
|
432
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
433
|
+
};
|
|
434
|
+
headerClass: {
|
|
435
|
+
type: import("vue").PropType<string>;
|
|
436
|
+
};
|
|
437
|
+
bodyClass: {
|
|
438
|
+
type: import("vue").PropType<string>;
|
|
439
|
+
};
|
|
440
|
+
footerClass: {
|
|
441
|
+
type: import("vue").PropType<string>;
|
|
442
|
+
};
|
|
380
443
|
showSubmitButton: {
|
|
381
444
|
type: import("vue").PropType<boolean>;
|
|
382
445
|
default: boolean;
|
|
@@ -413,7 +476,6 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
413
476
|
closeOnPressEscape: boolean;
|
|
414
477
|
showClose: boolean;
|
|
415
478
|
customClass: string;
|
|
416
|
-
alignCenter: boolean;
|
|
417
479
|
appendToBody: boolean;
|
|
418
480
|
destroyOnClose: boolean;
|
|
419
481
|
closeOnClickModal: boolean;
|
|
@@ -422,6 +484,7 @@ export declare const VftModal: import("vft/es/utils").SFCWithInstall<{
|
|
|
422
484
|
openDelay: number;
|
|
423
485
|
closeDelay: number;
|
|
424
486
|
trapFocus: boolean;
|
|
487
|
+
alignCenter: boolean;
|
|
425
488
|
showSubmitButton: boolean;
|
|
426
489
|
showActionButtonGroup: boolean;
|
|
427
490
|
showCancelButton: boolean;
|
|
@@ -60,7 +60,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
60
60
|
closeOnPressEscape: boolean;
|
|
61
61
|
showClose: boolean;
|
|
62
62
|
customClass: string;
|
|
63
|
-
alignCenter: boolean;
|
|
64
63
|
appendToBody: boolean;
|
|
65
64
|
destroyOnClose: boolean;
|
|
66
65
|
closeOnClickModal: boolean;
|
|
@@ -69,6 +68,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
69
68
|
openDelay: number;
|
|
70
69
|
closeDelay: number;
|
|
71
70
|
trapFocus: boolean;
|
|
71
|
+
alignCenter: boolean;
|
|
72
72
|
showSubmitButton: boolean;
|
|
73
73
|
showActionButtonGroup: boolean;
|
|
74
74
|
showCancelButton: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, useAttrs as M, ref as c, getCurrentInstance as F, computed as u, unref as o, watchEffect as P, watch as R, nextTick as r, createBlock as m, openBlock as B, mergeProps as S, createSlots as
|
|
1
|
+
import { defineComponent as O, useAttrs as M, ref as c, getCurrentInstance as F, computed as u, unref as o, watchEffect as P, watch as R, nextTick as r, createBlock as m, openBlock as B, mergeProps as S, createSlots as T, withCtx as b, renderSlot as _, createCommentVNode as A } from "vue";
|
|
2
2
|
import { deepMerge as D, isFunction as G } from "@vft/utils";
|
|
3
3
|
import { VftDialog as I } from "../dialog/index.js";
|
|
4
4
|
import $ from "./modal-footer-action.vue2.js";
|
|
@@ -10,6 +10,7 @@ const N = /* @__PURE__ */ O({
|
|
|
10
10
|
confirmLoading: { type: Boolean },
|
|
11
11
|
loading: { type: Boolean },
|
|
12
12
|
appendToBody: { type: Boolean, default: !1 },
|
|
13
|
+
appendTo: {},
|
|
13
14
|
beforeClose: {},
|
|
14
15
|
destroyOnClose: { type: Boolean, default: !1 },
|
|
15
16
|
closeOnClickModal: { type: Boolean, default: !0 },
|
|
@@ -19,11 +20,14 @@ const N = /* @__PURE__ */ O({
|
|
|
19
20
|
openDelay: { default: 0 },
|
|
20
21
|
closeDelay: { default: 0 },
|
|
21
22
|
top: {},
|
|
23
|
+
modalPenetrable: { type: Boolean },
|
|
22
24
|
modelValue: { type: Boolean, default: !1 },
|
|
23
25
|
modalClass: {},
|
|
24
26
|
width: {},
|
|
25
27
|
zIndex: {},
|
|
26
28
|
trapFocus: { type: Boolean, default: !1 },
|
|
29
|
+
overflow: { type: Boolean },
|
|
30
|
+
transition: {},
|
|
27
31
|
center: { type: Boolean, default: !1 },
|
|
28
32
|
alignCenter: { type: Boolean, default: !1 },
|
|
29
33
|
closeIcon: {},
|
|
@@ -32,6 +36,9 @@ const N = /* @__PURE__ */ O({
|
|
|
32
36
|
fullscreen: { type: Boolean, default: !1 },
|
|
33
37
|
showClose: { type: Boolean, default: !0 },
|
|
34
38
|
title: { default: "" },
|
|
39
|
+
headerClass: {},
|
|
40
|
+
bodyClass: {},
|
|
41
|
+
footerClass: {},
|
|
35
42
|
showSubmitButton: { type: Boolean, default: !0 },
|
|
36
43
|
showCancelButton: { type: Boolean, default: !0 },
|
|
37
44
|
submitButtonOptions: {},
|
|
@@ -47,7 +54,7 @@ const N = /* @__PURE__ */ O({
|
|
|
47
54
|
submit: []
|
|
48
55
|
},
|
|
49
56
|
setup(y, { emit: h }) {
|
|
50
|
-
const t = y, n = h,
|
|
57
|
+
const t = y, n = h, C = M(), i = c(null), l = c(!1), a = c(null), d = {
|
|
51
58
|
setModalProps: V,
|
|
52
59
|
emitVisible: void 0,
|
|
53
60
|
redoModalHeight: () => {
|
|
@@ -56,13 +63,13 @@ const N = /* @__PURE__ */ O({
|
|
|
56
63
|
});
|
|
57
64
|
}
|
|
58
65
|
}, s = F();
|
|
59
|
-
s && n("register",
|
|
60
|
-
const
|
|
66
|
+
s && n("register", d, s.uid);
|
|
67
|
+
const g = u(() => ({
|
|
61
68
|
...t,
|
|
62
69
|
...o(i)
|
|
63
|
-
})),
|
|
64
|
-
...
|
|
65
|
-
...o(
|
|
70
|
+
})), w = u(() => ({
|
|
71
|
+
...C,
|
|
72
|
+
...o(g),
|
|
66
73
|
modelValue: o(l)
|
|
67
74
|
}));
|
|
68
75
|
P(() => {
|
|
@@ -71,7 +78,7 @@ const N = /* @__PURE__ */ O({
|
|
|
71
78
|
() => o(l),
|
|
72
79
|
(e) => {
|
|
73
80
|
n("visible-change", e), n("update:modelValue", e), s && r(() => {
|
|
74
|
-
|
|
81
|
+
d.emitVisible(e, s.uid);
|
|
75
82
|
}), r(() => {
|
|
76
83
|
t.scrollTop && e && o(a) && o(a).scrollTop();
|
|
77
84
|
});
|
|
@@ -80,7 +87,7 @@ const N = /* @__PURE__ */ O({
|
|
|
80
87
|
immediate: !1
|
|
81
88
|
}
|
|
82
89
|
);
|
|
83
|
-
async function
|
|
90
|
+
async function f(e) {
|
|
84
91
|
if (e?.stopPropagation(), t.closeFunc && G(t.closeFunc)) {
|
|
85
92
|
const p = await t.closeFunc();
|
|
86
93
|
l.value = !p;
|
|
@@ -91,16 +98,16 @@ const N = /* @__PURE__ */ O({
|
|
|
91
98
|
function V(e) {
|
|
92
99
|
i.value = D(o(i) || {}, e), Reflect.has(e, "modelValue") && (l.value = !!e.modelValue);
|
|
93
100
|
}
|
|
94
|
-
const
|
|
95
|
-
onClick: (e) =>
|
|
101
|
+
const v = u(() => ({
|
|
102
|
+
onClick: (e) => f(e),
|
|
96
103
|
...t.cancelButtonOptions
|
|
97
|
-
})),
|
|
104
|
+
})), k = u(() => ({
|
|
98
105
|
onClick: () => n("submit"),
|
|
99
106
|
...t.submitButtonOptions
|
|
100
107
|
}));
|
|
101
|
-
return (e, p) => (B(), m(o(I), S(
|
|
108
|
+
return (e, p) => (B(), m(o(I), S(w.value, { onClose: f }), T({
|
|
102
109
|
default: b(() => [
|
|
103
|
-
|
|
110
|
+
_(e.$slots, "default")
|
|
104
111
|
]),
|
|
105
112
|
_: 2
|
|
106
113
|
}, [
|
|
@@ -111,9 +118,9 @@ const N = /* @__PURE__ */ O({
|
|
|
111
118
|
key: 0,
|
|
112
119
|
"show-cancel-button": e.showCancelButton,
|
|
113
120
|
"show-submit-button": e.showSubmitButton,
|
|
114
|
-
"cancel-button-options":
|
|
115
|
-
"submit-button-options":
|
|
116
|
-
}, null, 8, ["show-cancel-button", "show-submit-button", "cancel-button-options", "submit-button-options"])) :
|
|
121
|
+
"cancel-button-options": v.value,
|
|
122
|
+
"submit-button-options": k.value
|
|
123
|
+
}, null, 8, ["show-cancel-button", "show-submit-button", "cancel-button-options", "submit-button-options"])) : A("", !0)
|
|
117
124
|
]),
|
|
118
125
|
key: "0"
|
|
119
126
|
} : void 0
|