vft 0.0.399 → 0.0.400
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/autocomplete/autocomplete.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/form/form-item.vue.d.ts +1 -1
- package/es/components/form/index.d.ts +30 -30
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/table/style/css.d.ts +2 -0
- package/es/components/table/style/css.js +2 -0
- package/es/components/table/style/index.d.ts +2 -0
- package/es/components/table/style/index.js +3 -1
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/form/form-item.vue.d.ts +1 -1
- package/lib/components/form/index.d.ts +30 -30
- package/lib/components/input/input.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/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/components/table/style/css.cjs +1 -1
- package/lib/components/table/style/css.d.ts +2 -0
- package/lib/components/table/style/index.cjs +1 -1
- package/lib/components/table/style/index.d.ts +2 -0
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/web-types.json +1 -1
|
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
63
63
|
readonly effect?: "light" | "dark" | undefined;
|
|
64
64
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
65
|
-
readonly visible?: boolean | undefined;
|
|
66
65
|
readonly teleported?: boolean | undefined;
|
|
67
66
|
readonly open?: boolean | undefined;
|
|
67
|
+
readonly visible?: boolean | undefined;
|
|
68
68
|
readonly arrowOffset?: number | undefined;
|
|
69
69
|
readonly gpuAcceleration?: boolean | undefined;
|
|
70
70
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
480
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
481
481
|
readonly effect?: "light" | "dark" | undefined;
|
|
482
482
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
483
|
-
readonly visible?: boolean | undefined;
|
|
484
483
|
readonly teleported?: boolean | undefined;
|
|
485
484
|
readonly open?: boolean | undefined;
|
|
485
|
+
readonly visible?: boolean | undefined;
|
|
486
486
|
readonly arrowOffset?: number | undefined;
|
|
487
487
|
readonly gpuAcceleration?: boolean | undefined;
|
|
488
488
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -86,9 +86,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
86
86
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
87
87
|
readonly effect?: "light" | "dark" | undefined;
|
|
88
88
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
89
|
-
readonly visible?: boolean | undefined;
|
|
90
89
|
readonly teleported?: boolean | undefined;
|
|
91
90
|
readonly open?: boolean | undefined;
|
|
91
|
+
readonly visible?: boolean | undefined;
|
|
92
92
|
readonly arrowOffset?: number | undefined;
|
|
93
93
|
readonly gpuAcceleration?: boolean | undefined;
|
|
94
94
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -504,9 +504,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
504
504
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
505
505
|
readonly effect?: "light" | "dark" | undefined;
|
|
506
506
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
507
|
-
readonly visible?: boolean | undefined;
|
|
508
507
|
readonly teleported?: boolean | undefined;
|
|
509
508
|
readonly open?: boolean | undefined;
|
|
509
|
+
readonly visible?: boolean | undefined;
|
|
510
510
|
readonly arrowOffset?: number | undefined;
|
|
511
511
|
readonly gpuAcceleration?: boolean | undefined;
|
|
512
512
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1007,9 +1007,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1007
1007
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1008
1008
|
readonly effect?: "light" | "dark" | undefined;
|
|
1009
1009
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1010
|
-
readonly visible?: boolean | undefined;
|
|
1011
1010
|
readonly teleported?: boolean | undefined;
|
|
1012
1011
|
readonly open?: boolean | undefined;
|
|
1012
|
+
readonly visible?: boolean | undefined;
|
|
1013
1013
|
readonly arrowOffset?: number | undefined;
|
|
1014
1014
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1015
1015
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1425,9 +1425,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1425
1425
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1426
1426
|
readonly effect?: "light" | "dark" | undefined;
|
|
1427
1427
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1428
|
-
readonly visible?: boolean | undefined;
|
|
1429
1428
|
readonly teleported?: boolean | undefined;
|
|
1430
1429
|
readonly open?: boolean | undefined;
|
|
1430
|
+
readonly visible?: boolean | undefined;
|
|
1431
1431
|
readonly arrowOffset?: number | undefined;
|
|
1432
1432
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1433
1433
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1917,9 +1917,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1917
1917
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1918
1918
|
readonly effect?: "light" | "dark" | undefined;
|
|
1919
1919
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1920
|
-
readonly visible?: boolean | undefined;
|
|
1921
1920
|
readonly teleported?: boolean | undefined;
|
|
1922
1921
|
readonly open?: boolean | undefined;
|
|
1922
|
+
readonly visible?: boolean | undefined;
|
|
1923
1923
|
readonly arrowOffset?: number | undefined;
|
|
1924
1924
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1925
1925
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -2335,9 +2335,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
2335
2335
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
2336
2336
|
readonly effect?: "light" | "dark" | undefined;
|
|
2337
2337
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
2338
|
-
readonly visible?: boolean | undefined;
|
|
2339
2338
|
readonly teleported?: boolean | undefined;
|
|
2340
2339
|
readonly open?: boolean | undefined;
|
|
2340
|
+
readonly visible?: boolean | undefined;
|
|
2341
2341
|
readonly arrowOffset?: number | undefined;
|
|
2342
2342
|
readonly gpuAcceleration?: boolean | undefined;
|
|
2343
2343
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
24
24
|
autofocus: {
|
|
25
25
|
type: import("vue").PropType<boolean>;
|
|
26
26
|
};
|
|
27
|
-
icon: {
|
|
28
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
29
|
-
};
|
|
30
27
|
dark: {
|
|
31
28
|
type: import("vue").PropType<boolean>;
|
|
32
29
|
};
|
|
30
|
+
icon: {
|
|
31
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
32
|
+
};
|
|
33
33
|
loading: {
|
|
34
34
|
type: import("vue").PropType<boolean>;
|
|
35
35
|
};
|
|
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
114
114
|
autofocus: {
|
|
115
115
|
type: import("vue").PropType<boolean>;
|
|
116
116
|
};
|
|
117
|
-
icon: {
|
|
118
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
119
|
-
};
|
|
120
117
|
dark: {
|
|
121
118
|
type: import("vue").PropType<boolean>;
|
|
122
119
|
};
|
|
120
|
+
icon: {
|
|
121
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
122
|
+
};
|
|
123
123
|
loading: {
|
|
124
124
|
type: import("vue").PropType<boolean>;
|
|
125
125
|
};
|
|
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
autofocus: {
|
|
200
200
|
type: import("vue").PropType<boolean>;
|
|
201
201
|
};
|
|
202
|
-
icon: {
|
|
203
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
204
|
-
};
|
|
205
202
|
dark: {
|
|
206
203
|
type: import("vue").PropType<boolean>;
|
|
207
204
|
};
|
|
205
|
+
icon: {
|
|
206
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
207
|
+
};
|
|
208
208
|
loading: {
|
|
209
209
|
type: import("vue").PropType<boolean>;
|
|
210
210
|
};
|
|
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
11
11
|
import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { CAROUSEL_ITEM_NAME as H, carouselContextKey as Se } from "./constants.js";
|
|
15
15
|
const L = 300, ze = (t, O, M) => {
|
|
16
16
|
const {
|
|
17
17
|
children: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { keysOf as f } from "@vft/utils";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { debugWarn as v } from "../../../utils/error.js";
|
|
4
|
-
import { getCurrentInstance as l, computed as i, unref as p, provide as
|
|
4
|
+
import { ref as g, getCurrentInstance as l, computed as i, unref as p, provide as C, inject as x } from "vue";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../../form/index.js";
|
|
7
7
|
import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
|
|
@@ -9,7 +9,7 @@ import "../../../hooks/use-model-toggle/index.js";
|
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
|
|
11
11
|
import { configProviderContextKey as m } from "../constants.js";
|
|
12
|
-
const a =
|
|
12
|
+
const a = g();
|
|
13
13
|
function d(o, e = void 0) {
|
|
14
14
|
const n = l() ? x(m, a) : a;
|
|
15
15
|
return o ? i(() => n?.value?.[o] ?? e) : n;
|
|
@@ -27,7 +27,7 @@ function B(o) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
const S = (o, e, n = !1) => {
|
|
30
|
-
const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ?
|
|
30
|
+
const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? C : void 0);
|
|
31
31
|
if (!u) {
|
|
32
32
|
v(
|
|
33
33
|
"provideGlobalConfig",
|
|
@@ -32,10 +32,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
32
32
|
}>>> & Readonly<{
|
|
33
33
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
required: boolean;
|
|
36
35
|
labelWidth: string | number;
|
|
37
36
|
inlineMessage: string | boolean;
|
|
38
37
|
showMessage: boolean;
|
|
38
|
+
required: boolean;
|
|
39
39
|
hideLabel: boolean;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -206,10 +206,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
206
206
|
prop: {
|
|
207
207
|
type: import("vue").PropType<string | string[]>;
|
|
208
208
|
};
|
|
209
|
-
required: {
|
|
210
|
-
type: import("vue").PropType<boolean>;
|
|
211
|
-
default: undefined;
|
|
212
|
-
};
|
|
213
209
|
rules: {
|
|
214
210
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
215
211
|
};
|
|
@@ -231,6 +227,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
231
227
|
hideRequiredAsterisk: {
|
|
232
228
|
type: import("vue").PropType<boolean>;
|
|
233
229
|
};
|
|
230
|
+
required: {
|
|
231
|
+
type: import("vue").PropType<boolean>;
|
|
232
|
+
default: undefined;
|
|
233
|
+
};
|
|
234
234
|
for: {
|
|
235
235
|
type: import("vue").PropType<string>;
|
|
236
236
|
};
|
|
@@ -253,10 +253,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
253
253
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
254
254
|
"update:error": (val: string) => void;
|
|
255
255
|
}, import("vue").PublicProps, {
|
|
256
|
-
required: boolean;
|
|
257
256
|
labelWidth: string | number;
|
|
258
257
|
inlineMessage: string | boolean;
|
|
259
258
|
showMessage: boolean;
|
|
259
|
+
required: boolean;
|
|
260
260
|
hideLabel: boolean;
|
|
261
261
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
262
262
|
P: {};
|
|
@@ -278,10 +278,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
278
278
|
prop: {
|
|
279
279
|
type: import("vue").PropType<string | string[]>;
|
|
280
280
|
};
|
|
281
|
-
required: {
|
|
282
|
-
type: import("vue").PropType<boolean>;
|
|
283
|
-
default: undefined;
|
|
284
|
-
};
|
|
285
281
|
rules: {
|
|
286
282
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
287
283
|
};
|
|
@@ -303,6 +299,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
303
299
|
hideRequiredAsterisk: {
|
|
304
300
|
type: import("vue").PropType<boolean>;
|
|
305
301
|
};
|
|
302
|
+
required: {
|
|
303
|
+
type: import("vue").PropType<boolean>;
|
|
304
|
+
default: undefined;
|
|
305
|
+
};
|
|
306
306
|
for: {
|
|
307
307
|
type: import("vue").PropType<string>;
|
|
308
308
|
};
|
|
@@ -323,10 +323,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
323
323
|
clearValidate: () => void;
|
|
324
324
|
resetField: () => void;
|
|
325
325
|
}, {}, {}, {}, {
|
|
326
|
-
required: boolean;
|
|
327
326
|
labelWidth: string | number;
|
|
328
327
|
inlineMessage: string | boolean;
|
|
329
328
|
showMessage: boolean;
|
|
329
|
+
required: boolean;
|
|
330
330
|
hideLabel: boolean;
|
|
331
331
|
}>;
|
|
332
332
|
__isFragment?: never;
|
|
@@ -345,10 +345,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
345
345
|
prop: {
|
|
346
346
|
type: import("vue").PropType<string | string[]>;
|
|
347
347
|
};
|
|
348
|
-
required: {
|
|
349
|
-
type: import("vue").PropType<boolean>;
|
|
350
|
-
default: undefined;
|
|
351
|
-
};
|
|
352
348
|
rules: {
|
|
353
349
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
354
350
|
};
|
|
@@ -370,6 +366,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
370
366
|
hideRequiredAsterisk: {
|
|
371
367
|
type: import("vue").PropType<boolean>;
|
|
372
368
|
};
|
|
369
|
+
required: {
|
|
370
|
+
type: import("vue").PropType<boolean>;
|
|
371
|
+
default: undefined;
|
|
372
|
+
};
|
|
373
373
|
for: {
|
|
374
374
|
type: import("vue").PropType<string>;
|
|
375
375
|
};
|
|
@@ -392,10 +392,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
392
392
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
393
393
|
"update:error": (val: string) => void;
|
|
394
394
|
}, string, {
|
|
395
|
-
required: boolean;
|
|
396
395
|
labelWidth: string | number;
|
|
397
396
|
inlineMessage: string | boolean;
|
|
398
397
|
showMessage: boolean;
|
|
398
|
+
required: boolean;
|
|
399
399
|
hideLabel: boolean;
|
|
400
400
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
401
401
|
$slots: {
|
|
@@ -423,10 +423,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
423
423
|
prop: {
|
|
424
424
|
type: import("vue").PropType<string | string[]>;
|
|
425
425
|
};
|
|
426
|
-
required: {
|
|
427
|
-
type: import("vue").PropType<boolean>;
|
|
428
|
-
default: undefined;
|
|
429
|
-
};
|
|
430
426
|
rules: {
|
|
431
427
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
432
428
|
};
|
|
@@ -448,6 +444,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
448
444
|
hideRequiredAsterisk: {
|
|
449
445
|
type: import("vue").PropType<boolean>;
|
|
450
446
|
};
|
|
447
|
+
required: {
|
|
448
|
+
type: import("vue").PropType<boolean>;
|
|
449
|
+
default: undefined;
|
|
450
|
+
};
|
|
451
451
|
for: {
|
|
452
452
|
type: import("vue").PropType<string>;
|
|
453
453
|
};
|
|
@@ -470,10 +470,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
470
470
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
471
471
|
"update:error": (val: string) => void;
|
|
472
472
|
}, import("vue").PublicProps, {
|
|
473
|
-
required: boolean;
|
|
474
473
|
labelWidth: string | number;
|
|
475
474
|
inlineMessage: string | boolean;
|
|
476
475
|
showMessage: boolean;
|
|
476
|
+
required: boolean;
|
|
477
477
|
hideLabel: boolean;
|
|
478
478
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
479
479
|
P: {};
|
|
@@ -495,10 +495,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
495
495
|
prop: {
|
|
496
496
|
type: import("vue").PropType<string | string[]>;
|
|
497
497
|
};
|
|
498
|
-
required: {
|
|
499
|
-
type: import("vue").PropType<boolean>;
|
|
500
|
-
default: undefined;
|
|
501
|
-
};
|
|
502
498
|
rules: {
|
|
503
499
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
504
500
|
};
|
|
@@ -520,6 +516,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
520
516
|
hideRequiredAsterisk: {
|
|
521
517
|
type: import("vue").PropType<boolean>;
|
|
522
518
|
};
|
|
519
|
+
required: {
|
|
520
|
+
type: import("vue").PropType<boolean>;
|
|
521
|
+
default: undefined;
|
|
522
|
+
};
|
|
523
523
|
for: {
|
|
524
524
|
type: import("vue").PropType<string>;
|
|
525
525
|
};
|
|
@@ -540,10 +540,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
540
540
|
clearValidate: () => void;
|
|
541
541
|
resetField: () => void;
|
|
542
542
|
}, {}, {}, {}, {
|
|
543
|
-
required: boolean;
|
|
544
543
|
labelWidth: string | number;
|
|
545
544
|
inlineMessage: string | boolean;
|
|
546
545
|
showMessage: boolean;
|
|
546
|
+
required: boolean;
|
|
547
547
|
hideLabel: boolean;
|
|
548
548
|
}>;
|
|
549
549
|
__isFragment?: never;
|
|
@@ -562,10 +562,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
562
562
|
prop: {
|
|
563
563
|
type: import("vue").PropType<string | string[]>;
|
|
564
564
|
};
|
|
565
|
-
required: {
|
|
566
|
-
type: import("vue").PropType<boolean>;
|
|
567
|
-
default: undefined;
|
|
568
|
-
};
|
|
569
565
|
rules: {
|
|
570
566
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
571
567
|
};
|
|
@@ -587,6 +583,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
587
583
|
hideRequiredAsterisk: {
|
|
588
584
|
type: import("vue").PropType<boolean>;
|
|
589
585
|
};
|
|
586
|
+
required: {
|
|
587
|
+
type: import("vue").PropType<boolean>;
|
|
588
|
+
default: undefined;
|
|
589
|
+
};
|
|
590
590
|
for: {
|
|
591
591
|
type: import("vue").PropType<string>;
|
|
592
592
|
};
|
|
@@ -609,10 +609,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
609
609
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
610
610
|
"update:error": (val: string) => void;
|
|
611
611
|
}, string, {
|
|
612
|
-
required: boolean;
|
|
613
612
|
labelWidth: string | number;
|
|
614
613
|
inlineMessage: string | boolean;
|
|
615
614
|
showMessage: boolean;
|
|
615
|
+
required: boolean;
|
|
616
616
|
hideLabel: boolean;
|
|
617
617
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
618
618
|
$slots: {
|
|
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
|
|
|
13
13
|
import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
|
|
14
14
|
import { useAttrs as Ze, useCursor as _e } from "@vft/use";
|
|
15
15
|
import { calcTextareaHeight as ye } from "./utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { useFormSize as et, useFormDisabled as tt } from "../form/hooks/use-form-common-props.js";
|
|
17
|
+
import { useFormItem as at, useFormItemInputId as ot } from "../form/hooks/use-form-item.js";
|
|
18
18
|
const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
@@ -85,9 +85,9 @@ const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
85
85
|
o.is("focus", v.value)
|
|
86
86
|
]), d = Ze({
|
|
87
87
|
excludeKeys: l(() => Object.keys(X.value))
|
|
88
|
-
}), { form: Ce, formItem: F } =
|
|
88
|
+
}), { form: Ce, formItem: F } = at(), { inputId: Y } = ot(xe.props, {
|
|
89
89
|
formItemContext: F
|
|
90
|
-
}), ke =
|
|
90
|
+
}), ke = et(), h = tt(), o = pe("input"), Z = pe("textarea"), M = H(), b = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || b.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
|
|
91
91
|
icon: "icon-circle-close",
|
|
92
92
|
size: 16
|
|
93
93
|
})), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
|
|
2
2
|
import { EVENT_CODE as g } from "../../../constants/aria.js";
|
|
3
|
-
import { CHANGE_EVENT as i,
|
|
3
|
+
import { CHANGE_EVENT as i, INPUT_EVENT as H, UPDATE_MODEL_EVENT as d } from "../../../constants/event.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import { isUndefined as K } from "@vft/utils";
|
|
6
6
|
import { debugWarn as C } from "../../../utils/error.js";
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
icon: {
|
|
11
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
teleported: {
|
|
15
11
|
type: import("vue").PropType<boolean>;
|
|
16
12
|
default: boolean;
|
|
17
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
56
55
|
teleported: boolean;
|
|
56
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
icon: {
|
|
78
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
77
|
teleported: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
default: boolean;
|
|
84
80
|
};
|
|
81
|
+
icon: {
|
|
82
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
120
119
|
teleported: boolean;
|
|
120
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
icon: {
|
|
139
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
138
|
teleported: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
default: boolean;
|
|
145
141
|
};
|
|
142
|
+
icon: {
|
|
143
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
184
183
|
teleported: boolean;
|
|
184
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
icon: string | IconProps;
|
|
47
46
|
teleported: boolean;
|
|
47
|
+
icon: string | IconProps;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -260,9 +260,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
260
260
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
261
261
|
readonly effect?: "light" | "dark" | undefined;
|
|
262
262
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
263
|
-
readonly visible?: boolean | undefined;
|
|
264
263
|
readonly teleported?: boolean | undefined;
|
|
265
264
|
readonly open?: boolean | undefined;
|
|
265
|
+
readonly visible?: boolean | undefined;
|
|
266
266
|
readonly arrowOffset?: number | undefined;
|
|
267
267
|
readonly gpuAcceleration?: boolean | undefined;
|
|
268
268
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -678,9 +678,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
678
678
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
679
679
|
readonly effect?: "light" | "dark" | undefined;
|
|
680
680
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
681
|
-
readonly visible?: boolean | undefined;
|
|
682
681
|
readonly teleported?: boolean | undefined;
|
|
683
682
|
readonly open?: boolean | undefined;
|
|
683
|
+
readonly visible?: boolean | undefined;
|
|
684
684
|
readonly arrowOffset?: number | undefined;
|
|
685
685
|
readonly gpuAcceleration?: boolean | undefined;
|
|
686
686
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1097,9 +1097,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1097
1097
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1098
1098
|
readonly effect?: "light" | "dark" | undefined;
|
|
1099
1099
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1100
|
-
readonly visible?: boolean | undefined;
|
|
1101
1100
|
readonly teleported?: boolean | undefined;
|
|
1102
1101
|
readonly open?: boolean | undefined;
|
|
1102
|
+
readonly visible?: boolean | undefined;
|
|
1103
1103
|
readonly arrowOffset?: number | undefined;
|
|
1104
1104
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1105
1105
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1515,9 +1515,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1515
1515
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1516
1516
|
readonly effect?: "light" | "dark" | undefined;
|
|
1517
1517
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1518
|
-
readonly visible?: boolean | undefined;
|
|
1519
1518
|
readonly teleported?: boolean | undefined;
|
|
1520
1519
|
readonly open?: boolean | undefined;
|
|
1520
|
+
readonly visible?: boolean | undefined;
|
|
1521
1521
|
readonly arrowOffset?: number | undefined;
|
|
1522
1522
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1523
1523
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -256,9 +256,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
256
256
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
257
257
|
readonly effect?: "light" | "dark" | undefined;
|
|
258
258
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
259
|
-
readonly visible?: boolean | undefined;
|
|
260
259
|
readonly teleported?: boolean | undefined;
|
|
261
260
|
readonly open?: boolean | undefined;
|
|
261
|
+
readonly visible?: boolean | undefined;
|
|
262
262
|
readonly arrowOffset?: number | undefined;
|
|
263
263
|
readonly gpuAcceleration?: boolean | undefined;
|
|
264
264
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -674,9 +674,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
674
674
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
675
675
|
readonly effect?: "light" | "dark" | undefined;
|
|
676
676
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
677
|
-
readonly visible?: boolean | undefined;
|
|
678
677
|
readonly teleported?: boolean | undefined;
|
|
679
678
|
readonly open?: boolean | undefined;
|
|
679
|
+
readonly visible?: boolean | undefined;
|
|
680
680
|
readonly arrowOffset?: number | undefined;
|
|
681
681
|
readonly gpuAcceleration?: boolean | undefined;
|
|
682
682
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1093,9 +1093,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1093
1093
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1094
1094
|
readonly effect?: "light" | "dark" | undefined;
|
|
1095
1095
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1096
|
-
readonly visible?: boolean | undefined;
|
|
1097
1096
|
readonly teleported?: boolean | undefined;
|
|
1098
1097
|
readonly open?: boolean | undefined;
|
|
1098
|
+
readonly visible?: boolean | undefined;
|
|
1099
1099
|
readonly arrowOffset?: number | undefined;
|
|
1100
1100
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1101
1101
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1511,9 +1511,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1511
1511
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1512
1512
|
readonly effect?: "light" | "dark" | undefined;
|
|
1513
1513
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1514
|
-
readonly visible?: boolean | undefined;
|
|
1515
1514
|
readonly teleported?: boolean | undefined;
|
|
1516
1515
|
readonly open?: boolean | undefined;
|
|
1516
|
+
readonly visible?: boolean | undefined;
|
|
1517
1517
|
readonly arrowOffset?: number | undefined;
|
|
1518
1518
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1519
1519
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -104,9 +104,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
104
104
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
105
105
|
readonly effect?: "light" | "dark" | undefined;
|
|
106
106
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
107
|
-
readonly visible?: boolean | undefined;
|
|
108
107
|
readonly teleported?: boolean | undefined;
|
|
109
108
|
readonly open?: boolean | undefined;
|
|
109
|
+
readonly visible?: boolean | undefined;
|
|
110
110
|
readonly arrowOffset?: number | undefined;
|
|
111
111
|
readonly gpuAcceleration?: boolean | undefined;
|
|
112
112
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -522,9 +522,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
522
522
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
523
523
|
readonly effect?: "light" | "dark" | undefined;
|
|
524
524
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
525
|
-
readonly visible?: boolean | undefined;
|
|
526
525
|
readonly teleported?: boolean | undefined;
|
|
527
526
|
readonly open?: boolean | undefined;
|
|
527
|
+
readonly visible?: boolean | undefined;
|
|
528
528
|
readonly arrowOffset?: number | undefined;
|
|
529
529
|
readonly gpuAcceleration?: boolean | undefined;
|
|
530
530
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -941,9 +941,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
941
941
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
942
942
|
readonly effect?: "light" | "dark" | undefined;
|
|
943
943
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
944
|
-
readonly visible?: boolean | undefined;
|
|
945
944
|
readonly teleported?: boolean | undefined;
|
|
946
945
|
readonly open?: boolean | undefined;
|
|
946
|
+
readonly visible?: boolean | undefined;
|
|
947
947
|
readonly arrowOffset?: number | undefined;
|
|
948
948
|
readonly gpuAcceleration?: boolean | undefined;
|
|
949
949
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1359,9 +1359,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1359
1359
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1360
1360
|
readonly effect?: "light" | "dark" | undefined;
|
|
1361
1361
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1362
|
-
readonly visible?: boolean | undefined;
|
|
1363
1362
|
readonly teleported?: boolean | undefined;
|
|
1364
1363
|
readonly open?: boolean | undefined;
|
|
1364
|
+
readonly visible?: boolean | undefined;
|
|
1365
1365
|
readonly arrowOffset?: number | undefined;
|
|
1366
1366
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1367
1367
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|