vft 0.0.260 → 0.0.263

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 (48) hide show
  1. package/es/components/button/button.vue.d.ts +1 -1
  2. package/es/components/button/index.d.ts +3 -3
  3. package/es/components/button/use-button.d.ts +1 -1
  4. package/es/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
  5. package/es/components/checkbox/composables/use-checkbox.d.ts +2 -2
  6. package/es/components/checkbox/index.d.ts +15 -15
  7. package/es/components/color-picker/index.d.ts +2 -2
  8. package/es/components/form/form-item.vue.d.ts +1 -1
  9. package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
  10. package/es/components/form/index.d.ts +15 -15
  11. package/es/components/radio/index.d.ts +15 -15
  12. package/es/components/radio/use-radio.d.ts +1 -1
  13. package/es/components/select/index.d.ts +1 -1
  14. package/es/components/select/select.vue.d.ts +1 -1
  15. package/es/components/select/useSelect.d.ts +1 -1
  16. package/es/components/slider/index.d.ts +4 -4
  17. package/es/components/super-form/super-form-item.vue2.js +26 -26
  18. package/es/components/switch/index.d.ts +2 -2
  19. package/es/components/tree/tree-node.vue.d.ts +9 -9
  20. package/es/constants/size.d.ts +1 -1
  21. package/es/hooks/use-size/index.d.ts +1 -1
  22. package/es/package.json.d.ts +1 -1
  23. package/es/package.json.js +1 -1
  24. package/lib/components/button/button.vue.d.ts +1 -1
  25. package/lib/components/button/index.d.ts +3 -3
  26. package/lib/components/button/use-button.d.ts +1 -1
  27. package/lib/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
  28. package/lib/components/checkbox/composables/use-checkbox.d.ts +2 -2
  29. package/lib/components/checkbox/index.d.ts +15 -15
  30. package/lib/components/color-picker/index.d.ts +2 -2
  31. package/lib/components/form/form-item.vue.d.ts +1 -1
  32. package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
  33. package/lib/components/form/index.d.ts +15 -15
  34. package/lib/components/radio/index.d.ts +15 -15
  35. package/lib/components/radio/use-radio.d.ts +1 -1
  36. package/lib/components/select/index.d.ts +1 -1
  37. package/lib/components/select/select.vue.d.ts +1 -1
  38. package/lib/components/select/useSelect.d.ts +1 -1
  39. package/lib/components/slider/index.d.ts +4 -4
  40. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  41. package/lib/components/switch/index.d.ts +2 -2
  42. package/lib/components/tree/tree-node.vue.d.ts +9 -9
  43. package/lib/constants/size.d.ts +1 -1
  44. package/lib/hooks/use-size/index.d.ts +1 -1
  45. package/lib/package.json.cjs +1 -1
  46. package/lib/package.json.d.ts +1 -1
  47. package/package.json +4 -4
  48. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, computed as j, unref as f, useSlots as Y, createVNode as P, mergeProps as L, withDirectives as Q, vShow as Z, isVNode as _, createTextVNode as ee } from "vue";
1
+ import { defineComponent as J, computed as j, unref as c, useSlots as Y, createVNode as P, mergeProps as L, withDirectives as Q, vShow as Z, isVNode as _, createTextVNode as ee } from "vue";
2
2
  import { VftCol as U } from "../col/index.js";
3
3
  import { VftDivider as te } from "../divider/index.js";
4
4
  import { VftFormItem as ne } from "../form/index.js";
@@ -44,7 +44,7 @@ const ue = J({
44
44
  },
45
45
  schema: o.schema
46
46
  };
47
- }), K = j(() => {
47
+ }), N = j(() => {
48
48
  let {
49
49
  componentProps: e = {}
50
50
  } = o.schema;
@@ -86,16 +86,16 @@ const ue = J({
86
86
  type: l.MONTHRANGE_PICKER
87
87
  }]]);
88
88
  return t.has(o.schema.type) && (e = Object.assign(t.get(o.schema.type) || {}, e)), e;
89
- }), W = j(() => {
89
+ }), z = j(() => {
90
90
  const {
91
91
  disabled: e
92
92
  } = o.formProps, {
93
93
  dynamicDisabled: t
94
94
  } = o.schema, {
95
95
  disabled: a = !1
96
- } = f(K);
96
+ } = c(N);
97
97
  let i = !!e || a;
98
- return v(t) && (i = t), E(t) && (i = t(f(p))), i;
98
+ return v(t) && (i = t), E(t) && (i = t(c(p))), i;
99
99
  });
100
100
  function q() {
101
101
  const {
@@ -103,12 +103,12 @@ const ue = J({
103
103
  ifShow: t
104
104
  } = o.schema;
105
105
  let a = !0, i = !0;
106
- return v(e) && (a = e), v(t) && (i = t), E(e) && (a = e(f(p))), E(t) && (i = t(f(p))), {
106
+ return v(e) && (a = e), v(t) && (i = t), E(e) && (a = e(c(p))), E(t) && (i = t(c(p))), {
107
107
  isShow: a,
108
108
  isIfShow: i
109
109
  };
110
110
  }
111
- function z() {
111
+ function W() {
112
112
  const {
113
113
  rules: e = [],
114
114
  type: t = l.INPUT,
@@ -120,7 +120,7 @@ const ue = J({
120
120
  dynamicRuleAdd: C = !0
121
121
  } = o.schema, h = i || m;
122
122
  if (E(d) && !C)
123
- return d(f(p));
123
+ return d(c(p));
124
124
  let n = re(H(e) ? e : [e]);
125
125
  const {
126
126
  rulesMessageJoinLabel: b
@@ -129,7 +129,7 @@ const ue = J({
129
129
  const y = r.message || T;
130
130
  return s === void 0 || oe(s) || Array.isArray(s) && s.length === 0 || typeof s == "string" && s.trim() === "" || typeof s == "object" && Reflect.has(s, "checked") && Reflect.has(s, "halfChecked") && Array.isArray(s.checked) && Array.isArray(s.halfChecked) && s.checked.length === 0 && s.halfChecked.length === 0 ? Promise.reject(y) : Promise.resolve();
131
131
  }
132
- const u = E(R) ? R(f(p)) : R;
132
+ const u = E(R) ? R(c(p)) : R;
133
133
  u && (!n || n.length === 0 ? n = [{
134
134
  required: u,
135
135
  validator: M
@@ -144,15 +144,15 @@ const ue = J({
144
144
  } = q();
145
145
  s || (r.required = !1), t && (r.message = r.message || T);
146
146
  }
147
- const c = n.findIndex((r) => r.min), I = n.findIndex((r) => r.max);
147
+ const f = n.findIndex((r) => r.min), I = n.findIndex((r) => r.max);
148
148
  function S(r, s, y = "all") {
149
- const N = n[s], F = N.isNumber ? isNaN(r) ? r?.length || 0 : Number(r) : r?.length || 0;
150
- return ["min", "all"].includes(y) && F < N.min ? Promise.reject(h + "至少为" + N.min + "位") : ["max", "all"].includes(y) && F > N.max ? Promise.reject(h + "最多" + N.max + "位") : Promise.resolve();
149
+ const K = n[s], F = K.isNumber ? isNaN(r) ? r?.length || 0 : Number(r) : r?.length || 0;
150
+ return ["min", "all"].includes(y) && F < K.min ? Promise.reject(h + "至少为" + K.min + "位") : ["max", "all"].includes(y) && F > K.max ? Promise.reject(h + "最多" + K.max + "位") : Promise.resolve();
151
151
  }
152
- (c !== -1 || I !== -1) && (c !== -1 && I !== -1 && !n[c].validator && !n[c].message ? n[c].validator = (r, s) => S(s, c) : c !== -1 && !n[c].validator && !n[c].message ? n[c].validator = (r, s) => S(s, c, "min") : I !== -1 && !n[I].validator && !n[I].message && (n[I].validator = (r, s) => S(s, I, "max")));
152
+ (f !== -1 || I !== -1) && (f !== -1 && I !== -1 && !n[f].validator && !n[f].message ? n[f].validator = (r, s) => S(s, f) : f !== -1 && !n[f].validator && !n[f].message ? n[f].validator = (r, s) => S(s, f, "min") : I !== -1 && !n[I].validator && !n[I].message && (n[I].validator = (r, s) => S(s, I, "max")));
153
153
  const g = n.findIndex((r) => r.len);
154
154
  if (g !== -1 && (n[g].validator = (r, s) => s.length !== n[g].len ? Promise.reject(h + "必须是" + n[g].len + "位") : Promise.resolve()), E(d) && C) {
155
- let r = d(f(p));
155
+ let r = d(c(p));
156
156
  r = H(r) ? r : [r], n = n.concat(r);
157
157
  }
158
158
  return n;
@@ -182,23 +182,23 @@ const ue = J({
182
182
  size: M
183
183
  } = o.formProps, u = {
184
184
  clearable: !0,
185
- ...f(K)
185
+ ...c(N)
186
186
  };
187
- if ([l.SEARCH].includes(t) || (u.size = M, u.disabled = f(W)), !u.disabled && T && !fe(t) && t) {
187
+ if ([l.SEARCH].includes(t) || (u.size = c(N)?.size || M, u.disabled = c(z)), !u.disabled && T && !fe(t) && t) {
188
188
  const g = d || R;
189
- u.placeholder = f(K)?.placeholder || G(t, C && le(g) ? g : "");
189
+ u.placeholder = c(N)?.placeholder || G(t, C && le(g) ? g : "");
190
190
  }
191
- const c = {
191
+ const f = {
192
192
  [m || "model-value"]: o.formModel[a]
193
193
  }, I = {
194
194
  ...b,
195
195
  ...u,
196
- ...c
196
+ ...f
197
197
  };
198
198
  if (!e)
199
199
  return P(A, I, null);
200
200
  const S = E(e) ? {
201
- ...e(f(p))
201
+ ...e(c(p))
202
202
  } : {
203
203
  default: () => e
204
204
  };
@@ -238,7 +238,7 @@ const ue = J({
238
238
  } = o.schema, {
239
239
  autoCleanErrorMessage: C,
240
240
  compFullWidth: h
241
- } = o.formProps, n = () => t ? k(O, t, f(p)) : a ? a(f(p)) : $(), b = !!m, A = !!d, T = E(m) ? m(f(p)) : m, M = E(d) ? d(f(p)) : d, u = () => {
241
+ } = o.formProps, n = () => t ? k(O, t, c(p)) : a ? a(c(p)) : $(), b = !!m, A = !!d, T = E(m) ? m(c(p)) : m, M = E(d) ? d(c(p)) : d, u = () => {
242
242
  o.updateSchema([{
243
243
  field: i,
244
244
  itemProps: {
@@ -256,7 +256,7 @@ const ue = J({
256
256
  label: e?.label || e?.title,
257
257
  "onUpdate:error": C ? u : () => {
258
258
  },
259
- rules: z()
259
+ rules: W()
260
260
  }), {
261
261
  default: () => [P("div", {
262
262
  class: D.e("container")
@@ -304,14 +304,14 @@ const ue = J({
304
304
  }, {
305
305
  isIfShow: T,
306
306
  isShow: M
307
- } = q(), u = f(p), x = () => a ? k(O, a, u) : i ? i(u) : X();
307
+ } = q(), u = c(p), x = () => a ? k(O, a, u) : i ? i(u) : X();
308
308
  if (m === l.DIVIDER) {
309
- let c;
309
+ let f;
310
310
  return P(U, L({
311
311
  span: 24
312
312
  }, b), {
313
- default: () => [P(te, f(K), V(c = w()) ? c : {
314
- default: () => [c]
313
+ default: () => [P(te, c(N), V(f = w()) ? f : {
314
+ default: () => [f]
315
315
  })]
316
316
  });
317
317
  }
@@ -20,7 +20,7 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
20
20
  default: boolean;
21
21
  };
22
22
  size: {
23
- type: import("vue").PropType<"" | "default" | "small" | "large">;
23
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
24
24
  };
25
25
  modelValue: {
26
26
  type: import("vue").PropType<string | number | boolean>;
@@ -99,7 +99,7 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
99
99
  default: boolean;
100
100
  };
101
101
  size: {
102
- type: import("vue").PropType<"" | "default" | "small" | "large">;
102
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
103
103
  };
104
104
  modelValue: {
105
105
  type: import("vue").PropType<string | number | boolean>;
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
118
118
  type: import("vue").PropType<boolean>;
119
119
  };
120
120
  size: {
121
- type: import("vue").PropType<"" | "default" | "small" | "large">;
121
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
122
122
  };
123
123
  modelValue: {
124
124
  type: import("vue").PropType<string | number | boolean>;
@@ -180,7 +180,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
180
180
  type: import("vue").PropType<boolean>;
181
181
  };
182
182
  size: {
183
- type: import("vue").PropType<"" | "default" | "small" | "large">;
183
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
184
184
  };
185
185
  modelValue: {
186
186
  type: import("vue").PropType<string | number | boolean>;
@@ -236,7 +236,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
236
236
  type: import("vue").PropType<boolean>;
237
237
  };
238
238
  size: {
239
- type: import("vue").PropType<"" | "default" | "small" | "large">;
239
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
240
240
  };
241
241
  modelValue: {
242
242
  type: import("vue").PropType<string | number | boolean>;
@@ -315,7 +315,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
315
315
  type: import("vue").PropType<boolean>;
316
316
  };
317
317
  size: {
318
- type: import("vue").PropType<"" | "default" | "small" | "large">;
318
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
319
319
  };
320
320
  tabindex: {
321
321
  type: import("vue").PropType<string | number>;
@@ -374,7 +374,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
374
374
  type: import("vue").PropType<boolean>;
375
375
  };
376
376
  size: {
377
- type: import("vue").PropType<"" | "default" | "small" | "large">;
377
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
378
378
  };
379
379
  tabindex: {
380
380
  type: import("vue").PropType<string | number>;
@@ -427,7 +427,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
427
427
  type: import("vue").PropType<boolean>;
428
428
  };
429
429
  size: {
430
- type: import("vue").PropType<"" | "default" | "small" | "large">;
430
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
431
431
  };
432
432
  tabindex: {
433
433
  type: import("vue").PropType<string | number>;
@@ -458,7 +458,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
458
458
  type: import("vue").PropType<boolean>;
459
459
  };
460
460
  size: {
461
- type: import("vue").PropType<"" | "default" | "small" | "large">;
461
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
462
462
  };
463
463
  modelValue: {
464
464
  type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
@@ -515,7 +515,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
515
515
  type: import("vue").PropType<boolean>;
516
516
  };
517
517
  size: {
518
- type: import("vue").PropType<"" | "default" | "small" | "large">;
518
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
519
519
  };
520
520
  modelValue: {
521
521
  type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
@@ -566,7 +566,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
566
566
  type: import("vue").PropType<boolean>;
567
567
  };
568
568
  size: {
569
- type: import("vue").PropType<"" | "default" | "small" | "large">;
569
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
570
570
  };
571
571
  modelValue: {
572
572
  type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
@@ -1,5 +1,5 @@
1
1
  export declare const componentSizes: readonly ["", "default", "small", "large"];
2
- export type ComponentSize = (typeof componentSizes)[number];
2
+ export type ComponentSize = '' | 'default' | 'small' | 'large';
3
3
  export declare const componentSizeMap: {
4
4
  readonly large: 40;
5
5
  readonly default: 32;
@@ -4,4 +4,4 @@ export interface SizeContext {
4
4
  size: Ref<ComponentSize>;
5
5
  }
6
6
  export declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
7
- export declare const useGlobalSize: () => import("vue").ComputedRef<"" | "default" | "small" | "large">;
7
+ export declare const useGlobalSize: () => import("vue").ComputedRef<ComponentSize>;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.260",
3
+ "version": "0.0.263",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.260";
1
+ const o = "0.0.263";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -10,7 +10,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
10
10
  throttleTime: number;
11
11
  }>>, {
12
12
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
13
- size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
13
+ size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
14
14
  type: import("vue").ComputedRef<any>;
15
15
  disabled: import("vue").ComputedRef<boolean>;
16
16
  shouldAddSpace: import("vue").ComputedRef<boolean>;
@@ -71,7 +71,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
71
71
  onClick?: ((evt: MouseEvent) => any) | undefined;
72
72
  }>, {
73
73
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
74
- size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
74
+ size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
75
75
  type: import("vue").ComputedRef<any>;
76
76
  disabled: import("vue").ComputedRef<boolean>;
77
77
  shouldAddSpace: import("vue").ComputedRef<boolean>;
@@ -161,7 +161,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
161
161
  onClick?: ((evt: MouseEvent) => any) | undefined;
162
162
  }>, {
163
163
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
164
- size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
164
+ size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
165
165
  type: import("vue").ComputedRef<any>;
166
166
  disabled: import("vue").ComputedRef<boolean>;
167
167
  shouldAddSpace: import("vue").ComputedRef<boolean>;
@@ -246,7 +246,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
246
246
  onClick?: ((evt: MouseEvent) => any) | undefined;
247
247
  }>, {
248
248
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
249
- size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
249
+ size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
250
250
  type: import("vue").ComputedRef<any>;
251
251
  disabled: import("vue").ComputedRef<boolean>;
252
252
  shouldAddSpace: import("vue").ComputedRef<boolean>;
@@ -12,7 +12,7 @@ export declare const useButton: (props: ButtonProps, emit: any) => {
12
12
  type?: undefined;
13
13
  }>;
14
14
  _disabled: import("vue").ComputedRef<boolean>;
15
- _size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
15
+ _size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
16
16
  _type: import("vue").ComputedRef<any>;
17
17
  _ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
18
18
  shouldAddSpace: import("vue").ComputedRef<boolean>;
@@ -2,10 +2,10 @@ import type { ComponentInternalInstance } from 'vue';
2
2
  import type { CheckboxModel } from '../composables';
3
3
  import type { CheckboxProps } from '../types';
4
4
  export declare const useCheckboxStatus: (props: CheckboxProps, slots: ComponentInternalInstance["slots"], { model }: Pick<CheckboxModel, "model">) => {
5
- checkboxButtonSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
5
+ checkboxButtonSize: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
6
6
  isChecked: import("vue").ComputedRef<boolean>;
7
7
  isFocused: import("vue").Ref<boolean, boolean>;
8
- checkboxSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
8
+ checkboxSize: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
9
9
  hasOwnLabel: import("vue").ComputedRef<boolean>;
10
10
  };
11
11
  export type CheckboxStatus = ReturnType<typeof useCheckboxStatus>;
@@ -6,8 +6,8 @@ export declare const useCheckbox: (props: CheckboxProps, slots: ComponentInterna
6
6
  isChecked: import("vue").ComputedRef<boolean>;
7
7
  isDisabled: import("vue").ComputedRef<boolean>;
8
8
  isFocused: import("vue").Ref<boolean, boolean>;
9
- checkboxButtonSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
10
- checkboxSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
9
+ checkboxButtonSize: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
10
+ checkboxSize: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
11
11
  hasOwnLabel: import("vue").ComputedRef<boolean>;
12
12
  model: import("vue").WritableComputedRef<any, unknown>;
13
13
  handleChange: (e: Event) => void;
@@ -19,7 +19,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
19
19
  type: import("vue").PropType<boolean>;
20
20
  };
21
21
  size: {
22
- type: import("vue").PropType<"" | "default" | "small" | "large">;
22
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
23
23
  };
24
24
  modelValue: {
25
25
  type: import("vue").PropType<string | number | boolean>;
@@ -81,7 +81,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
81
81
  type: import("vue").PropType<boolean>;
82
82
  };
83
83
  size: {
84
- type: import("vue").PropType<"" | "default" | "small" | "large">;
84
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
85
85
  };
86
86
  modelValue: {
87
87
  type: import("vue").PropType<string | number | boolean>;
@@ -137,7 +137,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
137
137
  type: import("vue").PropType<boolean>;
138
138
  };
139
139
  size: {
140
- type: import("vue").PropType<"" | "default" | "small" | "large">;
140
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
141
141
  };
142
142
  modelValue: {
143
143
  type: import("vue").PropType<string | number | boolean>;
@@ -216,7 +216,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
216
216
  type: import("vue").PropType<boolean>;
217
217
  };
218
218
  size: {
219
- type: import("vue").PropType<"" | "default" | "small" | "large">;
219
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
220
220
  };
221
221
  tabindex: {
222
222
  type: import("vue").PropType<string | number>;
@@ -275,7 +275,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
275
275
  type: import("vue").PropType<boolean>;
276
276
  };
277
277
  size: {
278
- type: import("vue").PropType<"" | "default" | "small" | "large">;
278
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
279
279
  };
280
280
  tabindex: {
281
281
  type: import("vue").PropType<string | number>;
@@ -328,7 +328,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
328
328
  type: import("vue").PropType<boolean>;
329
329
  };
330
330
  size: {
331
- type: import("vue").PropType<"" | "default" | "small" | "large">;
331
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
332
332
  };
333
333
  tabindex: {
334
334
  type: import("vue").PropType<string | number>;
@@ -359,7 +359,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
359
359
  type: import("vue").PropType<boolean>;
360
360
  };
361
361
  size: {
362
- type: import("vue").PropType<"" | "default" | "small" | "large">;
362
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
363
363
  };
364
364
  modelValue: {
365
365
  type: import("vue").PropType<import("./types").CheckboxGroupValueType>;
@@ -416,7 +416,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
416
416
  type: import("vue").PropType<boolean>;
417
417
  };
418
418
  size: {
419
- type: import("vue").PropType<"" | "default" | "small" | "large">;
419
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
420
420
  };
421
421
  modelValue: {
422
422
  type: import("vue").PropType<import("./types").CheckboxGroupValueType>;
@@ -467,7 +467,7 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
467
467
  type: import("vue").PropType<boolean>;
468
468
  };
469
469
  size: {
470
- type: import("vue").PropType<"" | "default" | "small" | "large">;
470
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
471
471
  };
472
472
  modelValue: {
473
473
  type: import("vue").PropType<import("./types").CheckboxGroupValueType>;
@@ -552,7 +552,7 @@ export declare const VftCheckboxButton: import("vft/es/utils").SFCWithInstall<{
552
552
  type: import("vue").PropType<boolean>;
553
553
  };
554
554
  size: {
555
- type: import("vue").PropType<"" | "default" | "small" | "large">;
555
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
556
556
  };
557
557
  tabindex: {
558
558
  type: import("vue").PropType<string | number>;
@@ -611,7 +611,7 @@ export declare const VftCheckboxButton: import("vft/es/utils").SFCWithInstall<{
611
611
  type: import("vue").PropType<boolean>;
612
612
  };
613
613
  size: {
614
- type: import("vue").PropType<"" | "default" | "small" | "large">;
614
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
615
615
  };
616
616
  tabindex: {
617
617
  type: import("vue").PropType<string | number>;
@@ -664,7 +664,7 @@ export declare const VftCheckboxButton: import("vft/es/utils").SFCWithInstall<{
664
664
  type: import("vue").PropType<boolean>;
665
665
  };
666
666
  size: {
667
- type: import("vue").PropType<"" | "default" | "small" | "large">;
667
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
668
668
  };
669
669
  tabindex: {
670
670
  type: import("vue").PropType<string | number>;
@@ -695,7 +695,7 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
695
695
  type: import("vue").PropType<boolean>;
696
696
  };
697
697
  size: {
698
- type: import("vue").PropType<"" | "default" | "small" | "large">;
698
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
699
699
  };
700
700
  modelValue: {
701
701
  type: import("vue").PropType<import("./types").CheckboxGroupValueType>;
@@ -752,7 +752,7 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
752
752
  type: import("vue").PropType<boolean>;
753
753
  };
754
754
  size: {
755
- type: import("vue").PropType<"" | "default" | "small" | "large">;
755
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
756
756
  };
757
757
  modelValue: {
758
758
  type: import("vue").PropType<import("./types").CheckboxGroupValueType>;
@@ -803,7 +803,7 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
803
803
  type: import("vue").PropType<boolean>;
804
804
  };
805
805
  size: {
806
- type: import("vue").PropType<"" | "default" | "small" | "large">;
806
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
807
807
  };
808
808
  modelValue: {
809
809
  type: import("vue").PropType<import("./types").CheckboxGroupValueType>;
@@ -9,7 +9,7 @@ export declare const VftColorPicker: import("vft/es/utils").SFCWithInstall<impor
9
9
  type: import("vue").PropType<boolean>;
10
10
  };
11
11
  size: {
12
- type: import("vue").PropType<"" | "default" | "small" | "large">;
12
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
13
13
  };
14
14
  modelValue: {
15
15
  type: import("vue").PropType<string>;
@@ -53,7 +53,7 @@ export declare const VftColorPicker: import("vft/es/utils").SFCWithInstall<impor
53
53
  type: import("vue").PropType<boolean>;
54
54
  };
55
55
  size: {
56
- type: import("vue").PropType<"" | "default" | "small" | "large">;
56
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
57
57
  };
58
58
  modelValue: {
59
59
  type: import("vue").PropType<string>;
@@ -14,7 +14,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
14
14
  labelWidth: string;
15
15
  showMessage: boolean;
16
16
  }>>, {
17
- size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
17
+ size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
18
18
  validateMessage: import("vue").Ref<string, string>;
19
19
  validateState: import("vue").Ref<FormItemValidateState, FormItemValidateState>;
20
20
  validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentSize } from 'vft/es/constants';
2
2
  import type { MaybeRef } from '@vueuse/core';
3
- export declare const useFormSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<"prop" | "form" | "formItem" | "global", boolean>>) => import("vue").ComputedRef<"" | "default" | "small" | "large">;
3
+ export declare const useFormSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<"prop" | "form" | "formItem" | "global", boolean>>) => import("vue").ComputedRef<ComponentSize>;
4
4
  export declare const useFormDisabled: (fallback?: MaybeRef<boolean | undefined>) => import("vue").ComputedRef<boolean>;
5
- export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<"prop" | "form" | "formItem" | "global", boolean>>) => import("vue").ComputedRef<"" | "default" | "small" | "large">;
5
+ export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<"prop" | "form" | "formItem" | "global", boolean>>) => import("vue").ComputedRef<ComponentSize>;
6
6
  export declare const useDisabled: (fallback?: MaybeRef<boolean | undefined>) => import("vue").ComputedRef<boolean>;