vft 0.0.205 → 0.0.207

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 (74) hide show
  1. package/es/components/affix/affix.d.ts +1 -1
  2. package/es/components/affix/affix.vue.d.ts +3 -3
  3. package/es/components/affix/index.d.ts +7 -7
  4. package/es/components/autocomplete/autocomplete.vue.d.ts +1 -1
  5. package/es/components/autocomplete/index.d.ts +3 -3
  6. package/es/components/button/index.d.ts +12 -12
  7. package/es/components/button/use-button.js +3 -3
  8. package/es/components/carousel/carousel.vue.d.ts +1 -1
  9. package/es/components/carousel/index.d.ts +19 -19
  10. package/es/components/date-picker/date-picker.d.ts +1 -1
  11. package/es/components/date-picker/index.d.ts +2 -2
  12. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  13. package/es/components/dropdown/index.d.ts +19 -19
  14. package/es/components/focus-trap/utils.d.ts +1 -1
  15. package/es/components/form/form-item.vue.d.ts +1 -1
  16. package/es/components/form/index.d.ts +42 -42
  17. package/es/components/index.js +111 -111
  18. package/es/components/modal/index.d.ts +24 -24
  19. package/es/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  20. package/es/components/popconfirm/index.d.ts +23 -23
  21. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  22. package/es/components/popper/composables/use-content.d.ts +3 -3
  23. package/es/components/progress/index.d.ts +4 -4
  24. package/es/components/super-form/super-form-item.vue2.js +33 -35
  25. package/es/components/switch/index.d.ts +6 -6
  26. package/es/components/table/index.d.ts +40 -40
  27. package/es/components/tabs/index.d.ts +2 -2
  28. package/es/components/time-picker/common/picker.vue.d.ts +1 -1
  29. package/es/components/time-picker/index.d.ts +2 -2
  30. package/es/components/time-picker/time-picker.d.ts +1 -1
  31. package/es/components/timeline/index.d.ts +8 -8
  32. package/es/components/tree/index.d.ts +12 -12
  33. package/es/hooks/use-popper/index.d.ts +3 -3
  34. package/es/index.js +111 -111
  35. package/es/package.json.d.ts +1 -1
  36. package/es/package.json.js +1 -1
  37. package/lib/components/affix/affix.d.ts +1 -1
  38. package/lib/components/affix/affix.vue.d.ts +3 -3
  39. package/lib/components/affix/index.d.ts +7 -7
  40. package/lib/components/autocomplete/autocomplete.vue.d.ts +1 -1
  41. package/lib/components/autocomplete/index.d.ts +3 -3
  42. package/lib/components/button/index.d.ts +12 -12
  43. package/lib/components/button/use-button.cjs +1 -1
  44. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  45. package/lib/components/carousel/index.d.ts +19 -19
  46. package/lib/components/date-picker/date-picker.d.ts +1 -1
  47. package/lib/components/date-picker/index.d.ts +2 -2
  48. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  49. package/lib/components/dropdown/index.d.ts +19 -19
  50. package/lib/components/focus-trap/utils.d.ts +1 -1
  51. package/lib/components/form/form-item.vue.d.ts +1 -1
  52. package/lib/components/form/index.d.ts +42 -42
  53. package/lib/components/index.cjs +1 -1
  54. package/lib/components/modal/index.d.ts +24 -24
  55. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  56. package/lib/components/popconfirm/index.d.ts +23 -23
  57. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  58. package/lib/components/popper/composables/use-content.d.ts +3 -3
  59. package/lib/components/progress/index.d.ts +4 -4
  60. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  61. package/lib/components/switch/index.d.ts +6 -6
  62. package/lib/components/table/index.d.ts +40 -40
  63. package/lib/components/tabs/index.d.ts +2 -2
  64. package/lib/components/time-picker/common/picker.vue.d.ts +1 -1
  65. package/lib/components/time-picker/index.d.ts +2 -2
  66. package/lib/components/time-picker/time-picker.d.ts +1 -1
  67. package/lib/components/timeline/index.d.ts +8 -8
  68. package/lib/components/tree/index.d.ts +12 -12
  69. package/lib/hooks/use-popper/index.d.ts +3 -3
  70. package/lib/index.cjs +1 -1
  71. package/lib/package.json.cjs +1 -1
  72. package/lib/package.json.d.ts +1 -1
  73. package/package.json +4 -4
  74. package/web-types.json +1 -1
@@ -1,12 +1,12 @@
1
1
  export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
2
2
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
+ title: {
4
+ type: import("vue").PropType<string>;
5
+ };
3
6
  width: {
4
7
  type: import("vue").PropType<string | number>;
5
8
  default: number;
6
9
  };
7
- title: {
8
- type: import("vue").PropType<string>;
9
- };
10
10
  hideAfter: {
11
11
  type: import("vue").PropType<number>;
12
12
  default: number;
@@ -15,11 +15,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
15
15
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
16
16
  default: string;
17
17
  };
18
- teleported: {
18
+ persistent: {
19
19
  type: import("vue").PropType<boolean>;
20
20
  default: boolean;
21
21
  };
22
- persistent: {
22
+ teleported: {
23
23
  type: import("vue").PropType<boolean>;
24
24
  default: boolean;
25
25
  };
@@ -51,13 +51,13 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
51
51
  confirm: (val: MouseEvent) => void;
52
52
  cancel: (val: MouseEvent) => void;
53
53
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
54
+ title: {
55
+ type: import("vue").PropType<string>;
56
+ };
54
57
  width: {
55
58
  type: import("vue").PropType<string | number>;
56
59
  default: number;
57
60
  };
58
- title: {
59
- type: import("vue").PropType<string>;
60
- };
61
61
  hideAfter: {
62
62
  type: import("vue").PropType<number>;
63
63
  default: number;
@@ -66,11 +66,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
66
66
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
67
67
  default: string;
68
68
  };
69
- teleported: {
69
+ persistent: {
70
70
  type: import("vue").PropType<boolean>;
71
71
  default: boolean;
72
72
  };
73
- persistent: {
73
+ teleported: {
74
74
  type: import("vue").PropType<boolean>;
75
75
  default: boolean;
76
76
  };
@@ -102,8 +102,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
102
102
  width: string | number;
103
103
  hideAfter: number;
104
104
  icon: string | import("vft/es/vft").IconProps;
105
- teleported: boolean;
106
105
  persistent: boolean;
106
+ teleported: boolean;
107
107
  confirmButtonType: import("vft/es/vft").ButtonType;
108
108
  iconColor: string;
109
109
  hideIcon: boolean;
@@ -115,13 +115,13 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
115
115
  M: {};
116
116
  Defaults: {};
117
117
  }, Readonly<import("vue").ExtractPropTypes<{
118
+ title: {
119
+ type: import("vue").PropType<string>;
120
+ };
118
121
  width: {
119
122
  type: import("vue").PropType<string | number>;
120
123
  default: number;
121
124
  };
122
- title: {
123
- type: import("vue").PropType<string>;
124
- };
125
125
  hideAfter: {
126
126
  type: import("vue").PropType<number>;
127
127
  default: number;
@@ -130,11 +130,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
130
130
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
131
131
  default: string;
132
132
  };
133
- teleported: {
133
+ persistent: {
134
134
  type: import("vue").PropType<boolean>;
135
135
  default: boolean;
136
136
  };
137
- persistent: {
137
+ teleported: {
138
138
  type: import("vue").PropType<boolean>;
139
139
  default: boolean;
140
140
  };
@@ -166,8 +166,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
166
166
  width: string | number;
167
167
  hideAfter: number;
168
168
  icon: string | import("vft/es/vft").IconProps;
169
- teleported: boolean;
170
169
  persistent: boolean;
170
+ teleported: boolean;
171
171
  confirmButtonType: import("vft/es/vft").ButtonType;
172
172
  iconColor: string;
173
173
  hideIcon: boolean;
@@ -176,13 +176,13 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
176
176
  __isTeleport?: never;
177
177
  __isSuspense?: never;
178
178
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
179
+ title: {
180
+ type: import("vue").PropType<string>;
181
+ };
179
182
  width: {
180
183
  type: import("vue").PropType<string | number>;
181
184
  default: number;
182
185
  };
183
- title: {
184
- type: import("vue").PropType<string>;
185
- };
186
186
  hideAfter: {
187
187
  type: import("vue").PropType<number>;
188
188
  default: number;
@@ -191,11 +191,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
191
191
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
192
192
  default: string;
193
193
  };
194
- teleported: {
194
+ persistent: {
195
195
  type: import("vue").PropType<boolean>;
196
196
  default: boolean;
197
197
  };
198
- persistent: {
198
+ teleported: {
199
199
  type: import("vue").PropType<boolean>;
200
200
  default: boolean;
201
201
  };
@@ -230,8 +230,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
230
230
  width: string | number;
231
231
  hideAfter: number;
232
232
  icon: string | import("vft/es/vft").IconProps;
233
- teleported: boolean;
234
233
  persistent: boolean;
234
+ teleported: boolean;
235
235
  confirmButtonType: import("vft/es/vft").ButtonType;
236
236
  iconColor: string;
237
237
  hideIcon: boolean;
@@ -45,8 +45,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
45
45
  width: string | number;
46
46
  hideAfter: number;
47
47
  icon: string | IconProps;
48
- teleported: boolean;
49
48
  persistent: boolean;
49
+ teleported: boolean;
50
50
  confirmButtonType: ButtonType;
51
51
  iconColor: string;
52
52
  hideIcon: boolean;
@@ -46,11 +46,11 @@ export declare const usePopperContent: (props: PopperContentProps) => {
46
46
  popperEscapeOffsets: import("@popperjs/core").SideObject;
47
47
  };
48
48
  offset?: {
49
- top?: import("@popperjs/core").Offsets | undefined;
50
- bottom?: import("@popperjs/core").Offsets | undefined;
49
+ auto?: import("@popperjs/core").Offsets | undefined;
51
50
  left?: import("@popperjs/core").Offsets | undefined;
52
51
  right?: import("@popperjs/core").Offsets | undefined;
53
- auto?: import("@popperjs/core").Offsets | undefined;
52
+ bottom?: import("@popperjs/core").Offsets | undefined;
53
+ top?: import("@popperjs/core").Offsets | undefined;
54
54
  "auto-start"?: import("@popperjs/core").Offsets | undefined;
55
55
  "auto-end"?: import("@popperjs/core").Offsets | undefined;
56
56
  "top-start"?: import("@popperjs/core").Offsets | undefined;
@@ -20,7 +20,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
20
20
  type: import("vue").PropType<number>;
21
21
  };
22
22
  strokeLinecap: {
23
- type: import("vue").PropType<"round" | "square" | "butt">;
23
+ type: import("vue").PropType<"round" | "butt" | "square">;
24
24
  };
25
25
  textInside: {
26
26
  type: import("vue").PropType<boolean>;
@@ -63,7 +63,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
63
63
  type: import("vue").PropType<number>;
64
64
  };
65
65
  strokeLinecap: {
66
- type: import("vue").PropType<"round" | "square" | "butt">;
66
+ type: import("vue").PropType<"round" | "butt" | "square">;
67
67
  };
68
68
  textInside: {
69
69
  type: import("vue").PropType<boolean>;
@@ -113,7 +113,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
113
113
  type: import("vue").PropType<number>;
114
114
  };
115
115
  strokeLinecap: {
116
- type: import("vue").PropType<"round" | "square" | "butt">;
116
+ type: import("vue").PropType<"round" | "butt" | "square">;
117
117
  };
118
118
  textInside: {
119
119
  type: import("vue").PropType<boolean>;
@@ -160,7 +160,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
160
160
  type: import("vue").PropType<number>;
161
161
  };
162
162
  strokeLinecap: {
163
- type: import("vue").PropType<"round" | "square" | "butt">;
163
+ type: import("vue").PropType<"round" | "butt" | "square">;
164
164
  };
165
165
  textInside: {
166
166
  type: import("vue").PropType<boolean>;
@@ -9,12 +9,12 @@ import "../checkbox/index.js";
9
9
  import "../clamp/index.js";
10
10
  import "../clamp-toggle/index.js";
11
11
  import "../clamp-tooltip/index.js";
12
- import { VftCol as B } from "../col/index.js";
12
+ import { VftCol as H } from "../col/index.js";
13
13
  import "../collapse-transition/index.js";
14
14
  import "../color-picker/index.js";
15
15
  import "../config-provider/index.js";
16
16
  import "../container/index.js";
17
- import { isFunction as P, isBoolean as V, cloneDeep as te, isArray as H, isNull as re, upperFirst as oe, isString as ie } from "@vft/utils";
17
+ import { isFunction as P, isBoolean as V, cloneDeep as te, isArray as B, isNull as re, upperFirst as oe, isString as ie } from "@vft/utils";
18
18
  import "../context-menu/context-menu.vue2.js";
19
19
  import "../date-picker/index.js";
20
20
  import "../date-time-select/index.js";
@@ -194,20 +194,20 @@ const fe = J({
194
194
  isIfShow: l
195
195
  };
196
196
  }
197
- function $() {
197
+ function z() {
198
198
  const {
199
199
  rules: e = [],
200
200
  type: r = s.INPUT,
201
201
  rulesMessageJoinLabel: m,
202
202
  label: l,
203
- title: f,
203
+ title: p,
204
204
  dynamicRule: u,
205
205
  required: R,
206
206
  dynamicRuleAdd: C = !0
207
- } = i.schema, d = l || f;
207
+ } = i.schema, d = l || p;
208
208
  if (P(u) && !C)
209
209
  return u(c(E));
210
- let o = te(H(e) ? e : [e]);
210
+ let o = te(B(e) ? e : [e]);
211
211
  const {
212
212
  rulesMessageJoinLabel: b
213
213
  } = i.formProps, y = Reflect.has(i.schema, "rulesMessageJoinLabel") ? m : b, A = v(r, `${y ? d : ""}`);
@@ -215,12 +215,12 @@ const fe = J({
215
215
  const g = t.message || A;
216
216
  return n === void 0 || re(n) || Array.isArray(n) && n.length === 0 || typeof n == "string" && n.trim() === "" || typeof n == "object" && Reflect.has(n, "checked") && Reflect.has(n, "halfChecked") && Array.isArray(n.checked) && Array.isArray(n.halfChecked) && n.checked.length === 0 && n.halfChecked.length === 0 ? Promise.reject(g) : Promise.resolve();
217
217
  }
218
- const p = P(R) ? R(c(E)) : R;
219
- p && (!o || o.length === 0 ? o = [{
220
- required: p,
218
+ const f = P(R) ? R(c(E)) : R;
219
+ f && (!o || o.length === 0 ? o = [{
220
+ required: f,
221
221
  validator: T
222
222
  }] : o.findIndex((n) => Reflect.has(n, "required")) === -1 && o.unshift({
223
- required: p,
223
+ required: f,
224
224
  validator: T
225
225
  }));
226
226
  const M = o.findIndex((t) => Reflect.has(t, "required") && !Reflect.has(t, "validator"));
@@ -239,18 +239,18 @@ const fe = J({
239
239
  const S = o.findIndex((t) => t.len);
240
240
  if (S !== -1 && (o[S].validator = (t, n) => n.length !== o[S].len ? Promise.reject(d + "必须是" + o[S].len + "位") : Promise.resolve()), P(u) && C) {
241
241
  let t = u(c(E));
242
- t = H(t) ? t : [t], o = o.concat(t);
242
+ t = B(t) ? t : [t], o = o.concat(t);
243
243
  }
244
244
  return o;
245
245
  }
246
- const z = () => {
246
+ const $ = () => {
247
247
  var S;
248
248
  const {
249
249
  renderComponentContent: e,
250
250
  type: r = s.INPUT,
251
251
  field: m,
252
252
  changeEvent: l = "change",
253
- valueField: f,
253
+ valueField: p,
254
254
  label: u,
255
255
  title: R,
256
256
  placeholderJoinLabel: C = !0
@@ -260,28 +260,26 @@ const fe = J({
260
260
  const o = `on${oe(d)}`, b = {
261
261
  [o]: (...t) => {
262
262
  const [n] = t;
263
- p[o] && p[o](...t);
263
+ f[o] && f[o](...t);
264
264
  const g = n ? n.target : null, N = g ? g.value : n;
265
265
  i.setFormModel(m, N, i.schema);
266
266
  }
267
267
  }, y = G.get(r), {
268
268
  autoSetPlaceHolder: A,
269
269
  size: T
270
- } = i.formProps, p = {
270
+ } = i.formProps, f = {
271
271
  clearable: !0,
272
- size: T,
273
- ...c(K),
274
- disabled: c(W)
272
+ ...c(K)
275
273
  };
276
- if (!p.disabled && A && !ce(r) && r) {
274
+ if ([s.SEARCH].includes(r) || (f.size = T, f.disabled = c(W)), !f.disabled && A && !ce(r) && r) {
277
275
  const t = u || R;
278
- p.placeholder = ((S = c(K)) == null ? void 0 : S.placeholder) || v(r, C && ie(t) ? t : "");
276
+ f.placeholder = ((S = c(K)) == null ? void 0 : S.placeholder) || v(r, C && ie(t) ? t : "");
279
277
  }
280
278
  const a = {
281
- [f || "model-value"]: i.formModel[m]
279
+ [p || "model-value"]: i.formModel[m]
282
280
  }, I = {
283
281
  ...b,
284
- ...p,
282
+ ...f,
285
283
  ...a
286
284
  };
287
285
  if (!e)
@@ -301,10 +299,10 @@ const fe = J({
301
299
  label: r,
302
300
  title: m,
303
301
  subLabel: l
304
- } = i.schema, f = r || m;
305
- return e && f ? l ? h("span", null, [f, ee(" "), h("span", {
302
+ } = i.schema, p = r || m;
303
+ return e && p ? l ? h("span", null, [p, ee(" "), h("span", {
306
304
  class: "sub-label"
307
- }, [l])]) : f : void 0;
305
+ }, [l])]) : p : void 0;
308
306
  }
309
307
  const k = Y();
310
308
  function F(e, r = "default", m) {
@@ -321,13 +319,13 @@ const fe = J({
321
319
  slot: r,
322
320
  render: m,
323
321
  field: l,
324
- suffix: f,
322
+ suffix: p,
325
323
  prefix: u,
326
324
  prefixParentStyle: R
327
325
  } = i.schema, {
328
326
  autoCleanErrorMessage: C,
329
327
  compFullWidth: d
330
- } = i.formProps, o = () => r ? F(k, r, c(E)) : m ? m(c(E)) : z(), b = !!f, y = !!u, A = P(f) ? f(c(E)) : f, T = P(u) ? u(c(E)) : u, p = () => {
328
+ } = i.formProps, o = () => r ? F(k, r, c(E)) : m ? m(c(E)) : $(), b = !!p, y = !!u, A = P(p) ? p(c(E)) : p, T = P(u) ? u(c(E)) : u, f = () => {
331
329
  i.updateSchema([{
332
330
  field: l,
333
331
  itemProps: {
@@ -343,9 +341,9 @@ const fe = J({
343
341
  }, x.e("item")]
344
342
  }, e, {
345
343
  label: (e == null ? void 0 : e.label) || (e == null ? void 0 : e.title),
346
- "onUpdate:error": C ? p : () => {
344
+ "onUpdate:error": C ? f : () => {
347
345
  },
348
- rules: $()
346
+ rules: z()
349
347
  }), {
350
348
  default: () => [h("div", {
351
349
  class: x.e("container")
@@ -368,11 +366,11 @@ const fe = J({
368
366
  colProps: r = {},
369
367
  colSlot: m,
370
368
  renderColContent: l,
371
- type: f = s.INPUT,
369
+ type: p = s.INPUT,
372
370
  render: u,
373
371
  quickColSpan: R
374
372
  } = i.schema;
375
- if (!G.has(f) && !l && !u)
373
+ if (!G.has(p) && !l && !u)
376
374
  return null;
377
375
  const {
378
376
  baseColProps: C = {},
@@ -393,10 +391,10 @@ const fe = J({
393
391
  }, {
394
392
  isIfShow: A,
395
393
  isShow: T
396
- } = O(), p = c(E), M = () => m ? F(k, m, p) : l ? l(p) : X();
397
- if (f === s.DIVIDER) {
394
+ } = O(), f = c(E), M = () => m ? F(k, m, f) : l ? l(f) : X();
395
+ if (p === s.DIVIDER) {
398
396
  let a;
399
- return h(B, U({
397
+ return h(H, U({
400
398
  span: 24
401
399
  }, b), {
402
400
  default: () => [h(ne, c(K), q(a = w()) ? a : {
@@ -404,7 +402,7 @@ const fe = J({
404
402
  })]
405
403
  });
406
404
  }
407
- return A && Q(h(B, y, q(e = M()) ? e : {
405
+ return A && Q(h(H, y, q(e = M()) ? e : {
408
406
  default: () => [e]
409
407
  }), [[Z, T]]);
410
408
  };
@@ -1,11 +1,11 @@
1
1
  export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
- width: {
3
- type: import("vue").PropType<string | number>;
4
- };
5
2
  value: {
6
3
  type: import("vue").PropType<string | number | boolean>;
7
4
  default: boolean;
8
5
  };
6
+ width: {
7
+ type: import("vue").PropType<string | number>;
8
+ };
9
9
  borderColor: {
10
10
  type: import("vue").PropType<string>;
11
11
  };
@@ -78,13 +78,13 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
78
78
  change: (...args: any[]) => void;
79
79
  input: (...args: any[]) => void;
80
80
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
- width: {
82
- type: import("vue").PropType<string | number>;
83
- };
84
81
  value: {
85
82
  type: import("vue").PropType<string | number | boolean>;
86
83
  default: boolean;
87
84
  };
85
+ width: {
86
+ type: import("vue").PropType<string | number>;
87
+ };
88
88
  borderColor: {
89
89
  type: import("vue").PropType<string>;
90
90
  };