vft 0.0.370 → 0.0.372

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.
Files changed (56) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/button/index.d.ts +9 -9
  3. package/es/components/carousel/use-carousel.js +1 -1
  4. package/es/components/form/form-item.vue.d.ts +1 -1
  5. package/es/components/form/form-item.vue2.js +3 -2
  6. package/es/components/form/index.d.ts +30 -30
  7. package/es/components/input/input.vue2.js +4 -4
  8. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  9. package/es/components/popconfirm/index.d.ts +15 -15
  10. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  11. package/es/components/select/defaults.d.ts +7 -2
  12. package/es/components/select/defaults.js +3 -1
  13. package/es/components/select/option-item.vue.d.ts +12 -2
  14. package/es/components/select/select-dropdown.js +6 -6
  15. package/es/components/skeleton/index.d.ts +12 -0
  16. package/es/components/skeleton/skeleton-item.vue.d.ts +2 -0
  17. package/es/components/skeleton/skeleton-item.vue2.js +22 -16
  18. package/es/components/super-form/index.d.ts +5 -0
  19. package/es/components/super-form/super-form-action.vue2.js +42 -40
  20. package/es/components/super-form/super-form-item.vue2.js +312 -188
  21. package/es/components/super-form/super-form.vue.d.ts +2 -0
  22. package/es/components/super-form/super-form.vue2.js +64 -63
  23. package/es/components/super-form/types.d.ts +6 -0
  24. package/es/components/super-form/use/use-form-context.d.ts +1 -0
  25. package/es/package.json.d.ts +1 -1
  26. package/es/package.json.js +1 -1
  27. package/es/utils/vue/vnode.js +1 -1
  28. package/lib/components/button/index.d.ts +9 -9
  29. package/lib/components/form/form-item.vue.d.ts +1 -1
  30. package/lib/components/form/form-item.vue2.cjs +1 -1
  31. package/lib/components/form/index.d.ts +30 -30
  32. package/lib/components/input/input.vue2.cjs +1 -1
  33. package/lib/components/popconfirm/index.d.ts +15 -15
  34. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  35. package/lib/components/select/defaults.cjs +1 -1
  36. package/lib/components/select/defaults.d.ts +7 -2
  37. package/lib/components/select/option-item.vue.d.ts +12 -2
  38. package/lib/components/select/select-dropdown.cjs +1 -1
  39. package/lib/components/skeleton/index.d.ts +12 -0
  40. package/lib/components/skeleton/skeleton-item.vue.d.ts +2 -0
  41. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  42. package/lib/components/super-form/index.d.ts +5 -0
  43. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  44. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  45. package/lib/components/super-form/super-form.vue.d.ts +2 -0
  46. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  47. package/lib/components/super-form/types.d.ts +6 -0
  48. package/lib/components/super-form/use/use-form-context.d.ts +1 -0
  49. package/lib/package.json.cjs +1 -1
  50. package/lib/package.json.d.ts +1 -1
  51. package/package.json +5 -5
  52. package/theme-style/index.css +1 -1
  53. package/theme-style/src/common/icon.scss +1 -0
  54. package/theme-style/src/super-form.scss +15 -0
  55. package/theme-style/vft-super-form.css +1 -1
  56. package/web-types.json +1 -1
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
24
24
  size: {
25
25
  type: import("vue").PropType<import("../types").ComponentSize>;
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
  size: {
115
115
  type: import("vue").PropType<import("../types").ComponentSize>;
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
  size: {
200
200
  type: import("vue").PropType<import("../types").ComponentSize>;
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
  };
@@ -10,7 +10,7 @@ import "../../hooks/use-model-toggle/index.js";
10
10
  import { useOrderedChildren as Ie } from "../../hooks/use-ordered-children/index.js";
11
11
  import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
- import { carouselContextKey as ge, CAROUSEL_ITEM_NAME as H } from "./constants.js";
13
+ import { CAROUSEL_ITEM_NAME as H, carouselContextKey as ge } from "./constants.js";
14
14
  const L = 300, _e = (t, O, M) => {
15
15
  const {
16
16
  children: o,
@@ -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>>;
@@ -1,4 +1,5 @@
1
1
  import { defineComponent as Y, useSlots as ye, inject as D, ref as b, computed as a, watch as E, reactive as Se, toRefs as ke, provide as qe, onMounted as Ie, onBeforeUnmount as Ve, createElementBlock as _e, openBlock as F, unref as f, normalizeClass as g, createBlock as T, createCommentVNode as R, createElementVNode as G, withCtx as B, resolveDynamicComponent as we, normalizeStyle as K, renderSlot as M, createTextVNode as Ce, toDisplayString as U, createVNode as Fe, TransitionGroup as Re, nextTick as Be } from "vue";
2
+ import "../icon/index.js";
2
3
  import { refDebounced as Me } from "@vueuse/core";
3
4
  import { isBoolean as We, getProp as W, isFunction as ze } from "@vft/utils";
4
5
  import { addUnit as O, castArray as H } from "../../utils/helper.js";
@@ -14,7 +15,7 @@ import Ne from "./form-label-wrap.js";
14
15
  import { useFormSize as Le } from "./hooks/use-form-common-props.js";
15
16
  const je = ["role", "aria-labelledby"], De = Y({
16
17
  name: "vft-form-item"
17
- }), rt = /* @__PURE__ */ Y({
18
+ }), ot = /* @__PURE__ */ Y({
18
19
  ...De,
19
20
  props: {
20
21
  label: {},
@@ -232,5 +233,5 @@ const je = ["role", "aria-labelledby"], De = Y({
232
233
  }
233
234
  });
234
235
  export {
235
- rt as default
236
+ ot as default
236
237
  };
@@ -206,10 +206,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
206
206
  size: {
207
207
  type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
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
  size: {
279
279
  type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
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
  size: {
346
346
  type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
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
  size: {
424
424
  type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
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
  size: {
496
496
  type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
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
  size: {
563
563
  type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
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 { useFormItem as et, useFormItemInputId as tt } from "../form/hooks/use-form-item.js";
17
- import { useFormSize as at, useFormDisabled as ot } from "../form/hooks/use-form-common-props.js";
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 } = et(), { inputId: Y } = tt(xe.props, {
88
+ }), { form: Ce, formItem: F } = at(), { inputId: Y } = ot(xe.props, {
89
89
  formItemContext: F
90
- }), ke = at(), h = ot(), 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", {
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, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
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;
@@ -1,6 +1,6 @@
1
1
  import type { Options, Placement } from 'vft/es/components/popper';
2
2
  import { type ComponentSize } from 'vft/es/constants';
3
- import type { __ExtractPublicPropTypes, EmitFn, ExtractPropTypes, PropType } from 'vue';
3
+ import type { __ExtractPublicPropTypes, CSSProperties, EmitFn, ExtractPropTypes, PropType } from 'vue';
4
4
  import type { Option, OptionType } from './select.types';
5
5
  import SelectV2 from './select.vue';
6
6
  import { type Props } from './useProps';
@@ -172,7 +172,12 @@ export declare const optionV2Props: {
172
172
  __epPropKey: true;
173
173
  };
174
174
  readonly index: NumberConstructor;
175
- readonly style: ObjectConstructor;
175
+ readonly style: {
176
+ readonly type: PropType<CSSProperties>;
177
+ readonly required: false;
178
+ readonly validator: ((val: unknown) => boolean) | undefined;
179
+ __epPropKey: true;
180
+ };
176
181
  readonly selected: BooleanConstructor;
177
182
  readonly created: BooleanConstructor;
178
183
  };
@@ -176,7 +176,9 @@ const S = {
176
176
  required: !0
177
177
  },
178
178
  index: Number,
179
- style: Object,
179
+ style: {
180
+ type: Object
181
+ },
180
182
  selected: Boolean,
181
183
  created: Boolean
182
184
  }), N = {
@@ -9,7 +9,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  __epPropKey: true;
10
10
  };
11
11
  readonly index: NumberConstructor;
12
- readonly style: ObjectConstructor;
12
+ readonly style: {
13
+ readonly type: import("vue").PropType<import("vue").CSSProperties>;
14
+ readonly required: false;
15
+ readonly validator: ((val: unknown) => boolean) | undefined;
16
+ __epPropKey: true;
17
+ };
13
18
  readonly selected: BooleanConstructor;
14
19
  readonly created: BooleanConstructor;
15
20
  }>, {
@@ -48,7 +53,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
48
53
  __epPropKey: true;
49
54
  };
50
55
  readonly index: NumberConstructor;
51
- readonly style: ObjectConstructor;
56
+ readonly style: {
57
+ readonly type: import("vue").PropType<import("vue").CSSProperties>;
58
+ readonly required: false;
59
+ readonly validator: ((val: unknown) => boolean) | undefined;
60
+ __epPropKey: true;
61
+ };
52
62
  readonly selected: BooleanConstructor;
53
63
  readonly created: BooleanConstructor;
54
64
  }>> & Readonly<{
@@ -26,7 +26,7 @@ const ie = {
26
26
  hoveringIndex: Number,
27
27
  width: Number
28
28
  }, Ne = /* @__PURE__ */ _({
29
- name: "ElSelectDropdown",
29
+ name: "VftSelectDropdown",
30
30
  props: ie,
31
31
  setup(w, {
32
32
  slots: m,
@@ -45,14 +45,14 @@ const ie = {
45
45
  } : {
46
46
  estimatedSize: o.props.estimatedOptionHeight,
47
47
  itemSize: (e) => E.value[e]
48
- }), A = (e = [], t) => {
48
+ }), V = (e = [], t) => {
49
49
  const {
50
50
  props: {
51
51
  valueKey: r
52
52
  }
53
53
  } = o;
54
54
  return K(t) ? e && e.some((s) => Q(b(s, r)) === b(t, r)) : e.includes(t);
55
- }, P = (e, t) => {
55
+ }, A = (e, t) => {
56
56
  if (K(t)) {
57
57
  const {
58
58
  valueKey: r
@@ -60,7 +60,7 @@ const ie = {
60
60
  return b(e, r) === b(t, r);
61
61
  } else
62
62
  return e === t;
63
- }, y = (e, t) => o.props.multiple ? A(e, g(t)) : P(e, g(t)), I = (e, t) => {
63
+ }, y = (e, t) => o.props.multiple ? V(e, g(t)) : A(e, g(t)), I = (e, t) => {
64
64
  const {
65
65
  disabled: r,
66
66
  multiple: s,
@@ -83,7 +83,7 @@ const ie = {
83
83
  e && e.resetScrollTop();
84
84
  }
85
85
  });
86
- const V = (e) => {
86
+ const P = (e) => {
87
87
  const {
88
88
  index: t,
89
89
  data: r,
@@ -174,7 +174,7 @@ const ie = {
174
174
  total: e.length,
175
175
  onKeydown: B
176
176
  }), {
177
- default: (i) => p(V, i, null)
177
+ default: (i) => p(P, i, null)
178
178
  }), m.footer?.()]);
179
179
  };
180
180
  }
@@ -78,19 +78,31 @@ export declare const VftSkeleton: import("vft/es/utils").SFCWithInstall<{
78
78
  variant: {
79
79
  type: import("vue").PropType<"button" | "caption" | "h1" | "h3" | "p" | "circle" | "image" | "rect" | "text">;
80
80
  };
81
+ imgIcon: {
82
+ type: import("vue").PropType<import("vft/es/vft").IconProps>;
83
+ };
81
84
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
82
85
  variant: {
83
86
  type: import("vue").PropType<"button" | "caption" | "h1" | "h3" | "p" | "circle" | "image" | "rect" | "text">;
84
87
  };
88
+ imgIcon: {
89
+ type: import("vue").PropType<import("vft/es/vft").IconProps>;
90
+ };
85
91
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
92
  };
87
93
  export declare const VftSkeletonItem: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
88
94
  variant: {
89
95
  type: import("vue").PropType<"button" | "caption" | "h1" | "h3" | "p" | "circle" | "image" | "rect" | "text">;
90
96
  };
97
+ imgIcon: {
98
+ type: import("vue").PropType<import("vft/es/vft").IconProps>;
99
+ };
91
100
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
92
101
  variant: {
93
102
  type: import("vue").PropType<"button" | "caption" | "h1" | "h3" | "p" | "circle" | "image" | "rect" | "text">;
94
103
  };
104
+ imgIcon: {
105
+ type: import("vue").PropType<import("vft/es/vft").IconProps>;
106
+ };
95
107
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
96
108
  export default VftSkeleton;
@@ -1,5 +1,7 @@
1
+ import { type IconProps } from 'vft/es/components/icon';
1
2
  interface Props {
2
3
  variant?: 'circle' | 'rect' | 'h1' | 'h3' | 'text' | 'caption' | 'p' | 'image' | 'button';
4
+ imgIcon?: IconProps;
3
5
  }
4
6
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
7
  export default _default;
@@ -1,32 +1,38 @@
1
- import { defineComponent as m, createElementBlock as n, openBlock as r, normalizeClass as i, unref as e, createBlock as a, createCommentVNode as p } from "vue";
2
- import { VftIcon as c } from "../icon/index.js";
1
+ import { defineComponent as i, computed as c, createElementBlock as a, openBlock as n, normalizeClass as p, unref as e, createBlock as l, createCommentVNode as s } from "vue";
2
+ import { VftIcon as f } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
- import "@vft/utils";
4
+ import { singleAttrToObj as u } from "@vft/utils";
5
5
  import "../config-provider/hooks/use-global-config.js";
6
6
  import "lodash-es";
7
- import { useNamespace as s } from "../../hooks/use-namespace/index.js";
7
+ import { useNamespace as d } from "../../hooks/use-namespace/index.js";
8
8
  import "../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import "../../hooks/use-z-index/index.js";
11
- const l = m({
11
+ const _ = i({
12
12
  name: "VftSkeletonItem"
13
- }), h = /* @__PURE__ */ m({
14
- ...l,
13
+ }), j = /* @__PURE__ */ i({
14
+ ..._,
15
15
  props: {
16
- variant: { default: "text" }
16
+ variant: { default: "text" },
17
+ imgIcon: {}
17
18
  },
18
- setup(f) {
19
- const t = s("skeleton");
20
- return (o, u) => (r(), n("div", {
21
- class: i([e(t).e("item"), e(t).e(o.variant)])
19
+ setup(r) {
20
+ const m = c(
21
+ () => u(r.imgIcon, "icon", {
22
+ size: 20,
23
+ icon: "icon-picture-filled"
24
+ })
25
+ ), o = d("skeleton");
26
+ return (t, k) => (n(), a("div", {
27
+ class: p([e(o).e("item"), e(o).e(t.variant)])
22
28
  }, [
23
- o.variant === "image" ? (r(), a(e(c), {
29
+ t.variant === "image" ? (n(), l(e(f), {
24
30
  key: 0,
25
- icon: "icon-picture-filled"
26
- })) : p("", !0)
31
+ icon: m.value
32
+ }, null, 8, ["icon"])) : s("", !0)
27
33
  ], 2));
28
34
  }
29
35
  });
30
36
  export {
31
- h as default
37
+ j as default
32
38
  };