vft 0.0.172 → 0.0.174

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 (70) hide show
  1. package/dist/index.css +1 -1
  2. package/es/app-components/super-form/use/use-form-context.d.ts +1 -1
  3. package/es/components/autocomplete/autocomplete.vue.d.ts +1 -1
  4. package/es/components/autocomplete/index.d.ts +3 -3
  5. package/es/components/button/use-button.js +3 -3
  6. package/es/components/card/index.d.ts +4 -4
  7. package/es/components/carousel/carousel.vue.d.ts +1 -1
  8. package/es/components/carousel/index.d.ts +7 -7
  9. package/es/components/checkbox/index.d.ts +16 -16
  10. package/es/components/date-picker/date-picker.d.ts +4 -4
  11. package/es/components/date-picker/index.d.ts +8 -8
  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/icon-text/icon-text.vue.d.ts +1 -18
  15. package/es/components/icon-text/icon-text.vue2.js +10 -10
  16. package/es/components/icon-text/index.d.ts +1 -1
  17. package/es/components/icon-text/types.d.ts +18 -0
  18. package/es/components/icon-text/types.js +1 -0
  19. package/es/components/index.js +113 -113
  20. package/es/components/popconfirm/index.d.ts +11 -11
  21. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  22. package/es/components/progress/index.d.ts +4 -4
  23. package/es/components/select/useSelect.d.ts +1 -1
  24. package/es/components/super-form/types.d.ts +176 -0
  25. package/es/components/super-form/use/use-form-context.d.ts +1 -1
  26. package/es/components/table/index.d.ts +12 -12
  27. package/es/components/time-picker/common/picker.vue.d.ts +4 -4
  28. package/es/components/time-picker/index.d.ts +8 -8
  29. package/es/components/time-picker/time-picker.d.ts +4 -4
  30. package/es/index.js +113 -113
  31. package/es/package.json.d.ts +1 -1
  32. package/es/package.json.js +1 -1
  33. package/es/utils/ns-cover.js +4 -4
  34. package/lib/app-components/super-form/use/use-form-context.d.ts +1 -1
  35. package/lib/components/autocomplete/autocomplete.vue.d.ts +1 -1
  36. package/lib/components/autocomplete/index.d.ts +3 -3
  37. package/lib/components/button/use-button.cjs +1 -1
  38. package/lib/components/card/index.d.ts +4 -4
  39. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  40. package/lib/components/carousel/index.d.ts +7 -7
  41. package/lib/components/checkbox/index.d.ts +16 -16
  42. package/lib/components/date-picker/date-picker.d.ts +4 -4
  43. package/lib/components/date-picker/index.d.ts +8 -8
  44. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  45. package/lib/components/dropdown/index.d.ts +19 -19
  46. package/lib/components/icon-text/icon-text.vue.d.ts +1 -18
  47. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  48. package/lib/components/icon-text/index.d.ts +1 -1
  49. package/lib/components/icon-text/types.cjs +1 -0
  50. package/lib/components/icon-text/types.d.ts +18 -0
  51. package/lib/components/index.cjs +1 -1
  52. package/lib/components/popconfirm/index.d.ts +11 -11
  53. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  54. package/lib/components/progress/index.d.ts +4 -4
  55. package/lib/components/select/useSelect.d.ts +1 -1
  56. package/lib/components/super-form/types.d.ts +176 -0
  57. package/lib/components/super-form/use/use-form-context.d.ts +1 -1
  58. package/lib/components/table/index.d.ts +12 -12
  59. package/lib/components/time-picker/common/picker.vue.d.ts +4 -4
  60. package/lib/components/time-picker/index.d.ts +8 -8
  61. package/lib/components/time-picker/time-picker.d.ts +4 -4
  62. package/lib/index.cjs +1 -1
  63. package/lib/package.json.cjs +1 -1
  64. package/lib/package.json.d.ts +1 -1
  65. package/lib/utils/ns-cover.cjs +1 -1
  66. package/package.json +4 -4
  67. package/theme-style/index.css +1 -1
  68. package/theme-style/src/icon-text.scss +0 -1
  69. package/theme-style/vft-icon-text.css +1 -1
  70. package/web-types.json +1 -1
@@ -89,45 +89,45 @@ import { VftLoading as he } from "./loading/index.js";
89
89
  import { VftMessage as Be, VftMessage as He } from "./message/index.js";
90
90
  import { VftInfiniteScroll as Je } from "./infinite-scroll/index.js";
91
91
  import { VftProgressI as je } from "./progress-i/index.js";
92
- import { default as We } from "./time-picker/common/picker.vue2.js";
93
- import { default as Ze } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
94
- import { buttonGroupContextKey as ot } from "./button/constants.js";
95
- import { checkboxGroupContextKey as et } from "./checkbox/constants.js";
96
- import { configProviderContextKey as ft, messageConfig as mt } from "./config-provider/constants.js";
97
- import { provideGlobalConfig as xt, useGlobalComponentSettings as at, useGlobalConfig as it } from "./config-provider/hooks/use-global-config.js";
98
- import { ROOT_PICKER_INJECTION_KEY as nt, datePickerConfig as st } from "./date-picker/constants.js";
99
- import { datePickerProps as ut } from "./date-picker/props/date-picker.js";
100
- import { dialogInjectionKey as ct } from "./dialog/constants.js";
101
- import { useDialog as Tt } from "./dialog/hooks/use-dialog.js";
102
- import { DROPDOWN_INJECTION_KEY as gt } from "./dropdown/tokens.js";
103
- import { EmptyEnum as Et } from "./empty/constants.js";
104
- import { formContextKey as Mt, formItemContextKey as Ft } from "./form/constants.js";
105
- import { useDisabled as Lt, useFormDisabled as yt, useFormSize as bt, useSize as _t } from "./form/hooks/use-form-common-props.js";
106
- import { useFormItem as Kt, useFormItemInputId as kt } from "./form/hooks/use-form-item.js";
107
- import { formItemValidateStates as Rt } from "./form/types.js";
108
- import { MenuTypeEnum as Ot } from "./horizontal-menu/constants.js";
109
- import { initAffixTabs as zt, useTabsDrag as Nt } from "./multiple-tabs/use/use-multiple-tabs.js";
110
- import { useTabDropdown as Ut } from "./multiple-tabs/use/use-tab-dropdown.js";
111
- import { usePagination as Ht, vftPaginationKey as qt } from "./pagination/usePagination.js";
112
- import { default as Yt } from "./popper/arrow.vue2.js";
113
- import { default as Qt } from "./popper/content.vue2.js";
114
- import { default as Xt } from "./popper/trigger.vue2.js";
115
- import { radioGroupKey as $t } from "./radio/constants.js";
116
- import { rowContextKey as rf } from "./row/constants.js";
117
- import { scrollbarContextKey as tf } from "./scrollbar/constants.js";
118
- import { BAR_MAP as mf, GAP as pf, renderThumbStyle as xf } from "./scrollbar/util.js";
119
- import { selectInjectionKey as Vf } from "./select/token.js";
120
- import { sliderContextKey as sf } from "./slider/constants.js";
121
- import { sliderEmits as uf } from "./slider/slider.js";
122
- import { spaceProps as cf } from "./space/space.js";
123
- import { useSpace as Tf } from "./space/use-space.js";
124
- import { ACTION_FIELD as gf, CHECKED_FIELD as Df, CREATE_TIME_FIELD as Ef, DATE_FIELD as Pf, DATE_TIME_FIELD as Mf, ID_FIELD as Ff, NAME_FIELD as Sf, SEQ_FIELD as Lf, STATUS_FIELD as yf, UPDATE_TIME_FIELD as bf } from "./table/field.js";
125
- import { useTable as Af } from "./table/use/use-table.js";
126
- import { addRequire as kf, removeRequire as vf, selectMapping as Rf } from "./table/utils.js";
127
- import { TabsRootContextKey as Of } from "./tabs/types.js";
128
- import { timePickerDefaultProps as zf } from "./time-picker/common/props.js";
129
- import { DEFAULT_FORMATS_DATE as hf, DEFAULT_FORMATS_DATEPICKER as Uf, DEFAULT_FORMATS_TIME as Bf, timeUnits as Hf } from "./time-picker/constants.js";
130
- import { buildTimeList as Jf, dateEquals as Yf, extractDateFormat as jf, extractTimeFormat as Qf, formatter as Wf, makeList as Xf, parseDate as Zf, rangeArr as $f, valueEquals as om } from "./time-picker/utils.js";
92
+ import { buttonGroupContextKey as We } from "./button/constants.js";
93
+ import { checkboxGroupContextKey as Ze } from "./checkbox/constants.js";
94
+ import { configProviderContextKey as ot, messageConfig as rt } from "./config-provider/constants.js";
95
+ import { provideGlobalConfig as tt, useGlobalComponentSettings as ft, useGlobalConfig as mt } from "./config-provider/hooks/use-global-config.js";
96
+ import { ROOT_PICKER_INJECTION_KEY as xt, datePickerConfig as at } from "./date-picker/constants.js";
97
+ import { datePickerProps as Vt } from "./date-picker/props/date-picker.js";
98
+ import { dialogInjectionKey as st } from "./dialog/constants.js";
99
+ import { useDialog as ut } from "./dialog/hooks/use-dialog.js";
100
+ import { DROPDOWN_INJECTION_KEY as ct } from "./dropdown/tokens.js";
101
+ import { EmptyEnum as Tt } from "./empty/constants.js";
102
+ import { formContextKey as gt, formItemContextKey as Dt } from "./form/constants.js";
103
+ import { useDisabled as Pt, useFormDisabled as Mt, useFormSize as Ft, useSize as St } from "./form/hooks/use-form-common-props.js";
104
+ import { useFormItem as yt, useFormItemInputId as bt } from "./form/hooks/use-form-item.js";
105
+ import { formItemValidateStates as At } from "./form/types.js";
106
+ import { MenuTypeEnum as kt } from "./horizontal-menu/constants.js";
107
+ import { initAffixTabs as Rt, useTabsDrag as Gt } from "./multiple-tabs/use/use-multiple-tabs.js";
108
+ import { useTabDropdown as wt } from "./multiple-tabs/use/use-tab-dropdown.js";
109
+ import { usePagination as Nt, vftPaginationKey as ht } from "./pagination/usePagination.js";
110
+ import { default as Bt } from "./popper/arrow.vue2.js";
111
+ import { default as qt } from "./popper/content.vue2.js";
112
+ import { default as Yt } from "./popper/trigger.vue2.js";
113
+ import { radioGroupKey as Qt } from "./radio/constants.js";
114
+ import { rowContextKey as Xt } from "./row/constants.js";
115
+ import { scrollbarContextKey as $t } from "./scrollbar/constants.js";
116
+ import { BAR_MAP as rf, GAP as ef, renderThumbStyle as tf } from "./scrollbar/util.js";
117
+ import { selectInjectionKey as mf } from "./select/token.js";
118
+ import { sliderContextKey as xf } from "./slider/constants.js";
119
+ import { sliderEmits as Vf } from "./slider/slider.js";
120
+ import { spaceProps as sf } from "./space/space.js";
121
+ import { useSpace as uf } from "./space/use-space.js";
122
+ import { ACTION_FIELD as cf, CHECKED_FIELD as If, CREATE_TIME_FIELD as Tf, DATE_FIELD as Cf, DATE_TIME_FIELD as gf, ID_FIELD as Df, NAME_FIELD as Ef, SEQ_FIELD as Pf, STATUS_FIELD as Mf, UPDATE_TIME_FIELD as Ff } from "./table/field.js";
123
+ import { useTable as Lf } from "./table/use/use-table.js";
124
+ import { addRequire as bf, removeRequire as _f, selectMapping as Af } from "./table/utils.js";
125
+ import { TabsRootContextKey as kf } from "./tabs/types.js";
126
+ import { timePickerDefaultProps as Rf } from "./time-picker/common/props.js";
127
+ import { DEFAULT_FORMATS_DATE as Of, DEFAULT_FORMATS_DATEPICKER as wf, DEFAULT_FORMATS_TIME as zf, timeUnits as Nf } from "./time-picker/constants.js";
128
+ import { buildTimeList as Uf, dateEquals as Bf, extractDateFormat as Hf, extractTimeFormat as qf, formatter as Jf, makeList as Yf, parseDate as jf, rangeArr as Qf, valueEquals as Wf } from "./time-picker/utils.js";
129
+ import { default as Zf } from "./time-picker/common/picker.vue2.js";
130
+ import { default as om } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
131
131
  import { TOOLTIP_INJECTION_KEY as em } from "./tooltip/constants.js";
132
132
  import { getChildState as fm } from "./tree/model/node.js";
133
133
  import { dragEventsKey as pm, useDragNodeHandler as xm } from "./tree/model/useDragNode.js";
@@ -140,36 +140,36 @@ import { vLoading as ym, createLoadingDirective as bm, vLoading as _m } from "./
140
140
  import { Loading as Km } from "./loading/service.js";
141
141
  import { messageDefaults as vm, messageTypes as Rm } from "./message/types.js";
142
142
  export {
143
- gf as ACTION_FIELD,
144
- mf as BAR_MAP,
145
- Df as CHECKED_FIELD,
146
- Ef as CREATE_TIME_FIELD,
147
- We as CommonPicker,
148
- Pf as DATE_FIELD,
149
- Mf as DATE_TIME_FIELD,
150
- hf as DEFAULT_FORMATS_DATE,
151
- Uf as DEFAULT_FORMATS_DATEPICKER,
152
- Bf as DEFAULT_FORMATS_TIME,
153
- gt as DROPDOWN_INJECTION_KEY,
143
+ cf as ACTION_FIELD,
144
+ rf as BAR_MAP,
145
+ If as CHECKED_FIELD,
146
+ Tf as CREATE_TIME_FIELD,
147
+ Zf as CommonPicker,
148
+ Cf as DATE_FIELD,
149
+ gf as DATE_TIME_FIELD,
150
+ Of as DEFAULT_FORMATS_DATE,
151
+ wf as DEFAULT_FORMATS_DATEPICKER,
152
+ zf as DEFAULT_FORMATS_TIME,
153
+ ct as DROPDOWN_INJECTION_KEY,
154
154
  oe as DynamicSizeGrid,
155
155
  ee as DynamicSizeList,
156
- Et as EmptyEnum,
156
+ Tt as EmptyEnum,
157
157
  fe as FixedSizeGrid,
158
158
  pe as FixedSizeList,
159
159
  sm as FormCompEnum,
160
- pf as GAP,
161
- Ff as ID_FIELD,
160
+ ef as GAP,
161
+ Df as ID_FIELD,
162
162
  Po as Icon,
163
- Ot as MenuTypeEnum,
163
+ kt as MenuTypeEnum,
164
164
  Be as Message,
165
- Sf as NAME_FIELD,
166
- nt as ROOT_PICKER_INJECTION_KEY,
167
- Lf as SEQ_FIELD,
168
- yf as STATUS_FIELD,
165
+ Ef as NAME_FIELD,
166
+ xt as ROOT_PICKER_INJECTION_KEY,
167
+ Pf as SEQ_FIELD,
168
+ Mf as STATUS_FIELD,
169
169
  em as TOOLTIP_INJECTION_KEY,
170
- Of as TabsRootContextKey,
171
- Ze as TimePickPanel,
172
- bf as UPDATE_TIME_FIELD,
170
+ kf as TabsRootContextKey,
171
+ om as TimePickPanel,
172
+ Ff as UPDATE_TIME_FIELD,
173
173
  e as VftAlert,
174
174
  k as VftAside,
175
175
  le as VftAutocomplete,
@@ -246,9 +246,9 @@ export {
246
246
  fr as VftPopconfirm,
247
247
  pr as VftPopover,
248
248
  ar as VftPopper,
249
- Yt as VftPopperArrow,
250
- Qt as VftPopperContent,
251
- Xt as VftPopperTrigger,
249
+ Bt as VftPopperArrow,
250
+ qt as VftPopperContent,
251
+ Yt as VftPopperTrigger,
252
252
  Ie as VftProgress,
253
253
  je as VftProgressI,
254
254
  Vr as VftQrcode,
@@ -281,77 +281,77 @@ export {
281
281
  De as VftUpload,
282
282
  Zr as VftVerifyCode,
283
283
  lm as add,
284
- kf as addRequire,
285
- Jf as buildTimeList,
286
- ot as buttonGroupContextKey,
284
+ bf as addRequire,
285
+ Uf as buildTimeList,
286
+ We as buttonGroupContextKey,
287
287
  Sm as carouselContextKey,
288
- et as checkboxGroupContextKey,
288
+ Ze as checkboxGroupContextKey,
289
289
  um as componentMap,
290
- ft as configProviderContextKey,
290
+ ot as configProviderContextKey,
291
291
  z as createContextMenu,
292
292
  bm as createLoadingDirective,
293
- Yf as dateEquals,
294
- st as datePickerConfig,
295
- ut as datePickerProps,
293
+ Bf as dateEquals,
294
+ at as datePickerConfig,
295
+ Vt as datePickerProps,
296
296
  dm as del,
297
297
  N as destroyContextMenu,
298
- ct as dialogInjectionKey,
298
+ st as dialogInjectionKey,
299
299
  pm as dragEventsKey,
300
- jf as extractDateFormat,
301
- Qf as extractTimeFormat,
302
- Mt as formContextKey,
303
- Ft as formItemContextKey,
304
- Rt as formItemValidateStates,
305
- Wf as formatter,
300
+ Hf as extractDateFormat,
301
+ qf as extractTimeFormat,
302
+ gt as formContextKey,
303
+ Dt as formItemContextKey,
304
+ At as formItemValidateStates,
305
+ Jf as formatter,
306
306
  Pm as genFileId,
307
307
  fm as getChildState,
308
308
  gm as getDynamicProps,
309
- zt as initAffixTabs,
309
+ Rt as initAffixTabs,
310
310
  cm as isDatePicker,
311
311
  Im as isInput,
312
312
  Tm as isRangePicker,
313
- Xf as makeList,
314
- mt as messageConfig,
313
+ Yf as makeList,
314
+ rt as messageConfig,
315
315
  vm as messageDefaults,
316
316
  Rm as messageTypes,
317
- Zf as parseDate,
318
- xt as provideGlobalConfig,
319
- $t as radioGroupKey,
320
- $f as rangeArr,
321
- vf as removeRequire,
322
- xf as renderThumbStyle,
323
- rf as rowContextKey,
324
- tf as scrollbarContextKey,
325
- Vf as selectInjectionKey,
326
- Rf as selectMapping,
327
- sf as sliderContextKey,
328
- uf as sliderEmits,
329
- cf as spaceProps,
330
- zf as timePickerDefaultProps,
331
- Hf as timeUnits,
317
+ jf as parseDate,
318
+ tt as provideGlobalConfig,
319
+ Qt as radioGroupKey,
320
+ Qf as rangeArr,
321
+ _f as removeRequire,
322
+ tf as renderThumbStyle,
323
+ Xt as rowContextKey,
324
+ $t as scrollbarContextKey,
325
+ mf as selectInjectionKey,
326
+ Af as selectMapping,
327
+ xf as sliderContextKey,
328
+ Vf as sliderEmits,
329
+ sf as spaceProps,
330
+ Rf as timePickerDefaultProps,
331
+ Nf as timeUnits,
332
332
  Mm as uploadContextKey,
333
333
  U as useContextMenu,
334
- Tt as useDialog,
335
- Lt as useDisabled,
334
+ ut as useDialog,
335
+ Pt as useDisabled,
336
336
  xm as useDragNodeHandler,
337
337
  Dm as useForm,
338
- yt as useFormDisabled,
339
- Kt as useFormItem,
340
- kt as useFormItemInputId,
341
- bt as useFormSize,
342
- at as useGlobalComponentSettings,
343
- it as useGlobalConfig,
338
+ Mt as useFormDisabled,
339
+ yt as useFormItem,
340
+ bt as useFormItemInputId,
341
+ Ft as useFormSize,
342
+ ft as useGlobalComponentSettings,
343
+ mt as useGlobalConfig,
344
344
  im as useModal,
345
345
  Vm as useModalInner,
346
- Ht as usePagination,
347
- _t as useSize,
348
- Tf as useSpace,
349
- Ut as useTabDropdown,
350
- Af as useTable,
351
- Nt as useTabsDrag,
346
+ Nt as usePagination,
347
+ St as useSize,
348
+ uf as useSpace,
349
+ wt as useTabDropdown,
350
+ Lf as useTable,
351
+ Gt as useTabsDrag,
352
352
  _m as vLoading,
353
- om as valueEquals,
354
- qt as vftPaginationKey,
353
+ Wf as valueEquals,
354
+ ht as vftPaginationKey,
355
355
  ae as virtualizedGridProps,
356
356
  ie as virtualizedListProps,
357
357
  Ve as virtualizedProps,
@@ -15,11 +15,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
15
15
  type: globalThis.PropType<string | import("vft/es/components").IconProps>;
16
16
  default: string;
17
17
  };
18
- teleported: {
18
+ persistent: {
19
19
  type: globalThis.PropType<boolean>;
20
20
  default: boolean;
21
21
  };
22
- persistent: {
22
+ teleported: {
23
23
  type: globalThis.PropType<boolean>;
24
24
  default: boolean;
25
25
  };
@@ -66,11 +66,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
66
66
  type: globalThis.PropType<string | import("vft/es/components").IconProps>;
67
67
  default: string;
68
68
  };
69
- teleported: {
69
+ persistent: {
70
70
  type: globalThis.PropType<boolean>;
71
71
  default: boolean;
72
72
  };
73
- persistent: {
73
+ teleported: {
74
74
  type: globalThis.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/components").IconProps;
105
- teleported: boolean;
106
105
  persistent: boolean;
106
+ teleported: boolean;
107
107
  confirmButtonType: import("vft/es/components").ButtonType;
108
108
  iconColor: string;
109
109
  hideIcon: boolean;
@@ -130,11 +130,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
130
130
  type: globalThis.PropType<string | import("vft/es/components").IconProps>;
131
131
  default: string;
132
132
  };
133
- teleported: {
133
+ persistent: {
134
134
  type: globalThis.PropType<boolean>;
135
135
  default: boolean;
136
136
  };
137
- persistent: {
137
+ teleported: {
138
138
  type: globalThis.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/components").IconProps;
169
- teleported: boolean;
170
169
  persistent: boolean;
170
+ teleported: boolean;
171
171
  confirmButtonType: import("vft/es/components").ButtonType;
172
172
  iconColor: string;
173
173
  hideIcon: boolean;
@@ -191,11 +191,11 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
191
191
  type: globalThis.PropType<string | import("vft/es/components").IconProps>;
192
192
  default: string;
193
193
  };
194
- teleported: {
194
+ persistent: {
195
195
  type: globalThis.PropType<boolean>;
196
196
  default: boolean;
197
197
  };
198
- persistent: {
198
+ teleported: {
199
199
  type: globalThis.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/components").IconProps;
233
- teleported: boolean;
234
233
  persistent: boolean;
234
+ teleported: boolean;
235
235
  confirmButtonType: import("vft/es/components").ButtonType;
236
236
  iconColor: string;
237
237
  hideIcon: boolean;
@@ -42,8 +42,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
42
42
  width: string | number;
43
43
  hideAfter: number;
44
44
  icon: string | IconProps;
45
- teleported: boolean;
46
45
  persistent: boolean;
46
+ teleported: boolean;
47
47
  confirmButtonType: ButtonType;
48
48
  iconColor: string;
49
49
  hideIcon: boolean;
@@ -20,7 +20,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
20
20
  type: globalThis.PropType<number>;
21
21
  };
22
22
  strokeLinecap: {
23
- type: globalThis.PropType<"round" | "square" | "butt">;
23
+ type: globalThis.PropType<"round" | "butt" | "square">;
24
24
  };
25
25
  textInside: {
26
26
  type: globalThis.PropType<boolean>;
@@ -63,7 +63,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
63
63
  type: globalThis.PropType<number>;
64
64
  };
65
65
  strokeLinecap: {
66
- type: globalThis.PropType<"round" | "square" | "butt">;
66
+ type: globalThis.PropType<"round" | "butt" | "square">;
67
67
  };
68
68
  textInside: {
69
69
  type: globalThis.PropType<boolean>;
@@ -113,7 +113,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
113
113
  type: globalThis.PropType<number>;
114
114
  };
115
115
  strokeLinecap: {
116
- type: globalThis.PropType<"round" | "square" | "butt">;
116
+ type: globalThis.PropType<"round" | "butt" | "square">;
117
117
  };
118
118
  textInside: {
119
119
  type: globalThis.PropType<boolean>;
@@ -160,7 +160,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
160
160
  type: globalThis.PropType<number>;
161
161
  };
162
162
  strokeLinecap: {
163
- type: globalThis.PropType<"round" | "square" | "butt">;
163
+ type: globalThis.PropType<"round" | "butt" | "square">;
164
164
  };
165
165
  textInside: {
166
166
  type: globalThis.PropType<boolean>;
@@ -126,7 +126,6 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
126
126
  readonly disabled?: boolean | undefined;
127
127
  readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
128
128
  readonly appendTo?: any;
129
- readonly teleported?: boolean | undefined;
130
129
  readonly arrowOffset?: number | undefined;
131
130
  readonly gpuAcceleration?: boolean | undefined;
132
131
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -145,6 +144,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
145
144
  readonly virtualRef?: import("vft/es/components").Measurable | undefined;
146
145
  readonly rawContent?: boolean | undefined;
147
146
  readonly persistent?: boolean | undefined;
147
+ readonly teleported?: boolean | undefined;
148
148
  readonly triggerKeys?: string[] | undefined;
149
149
  readonly showArrow?: boolean | undefined;
150
150
  onClose?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,176 @@
1
+ import type { ButtonProps, ColProps, RowProps } from 'vft/es/components';
2
+ import type { FormItemProp, FormItemProps, FormProps } from 'vft/es/components/form';
3
+ import type { InternalRuleItem, RuleItem } from 'async-validator';
4
+ import type { StyleValue, VNode } from 'vue';
5
+ import { FormCompEnum } from './component-map';
6
+ import type { Arrayable, Recordable } from '../types';
7
+ export type ButtonOptions = Partial<ButtonProps> & {
8
+ btnText?: string;
9
+ };
10
+ export type InternalNamePath = (string | number)[];
11
+ export type NamePath = string | number | InternalNamePath;
12
+ export type FieldMapToTime = [
13
+ string,
14
+ [
15
+ string,
16
+ string
17
+ ],
18
+ (string | [string, string])?
19
+ ][];
20
+ export type Rule = {
21
+ trigger?: 'blur' | 'change' | ['change', 'blur'];
22
+ };
23
+ type FormItemRule = Omit<RuleItem, 'validator'> & Rule & {
24
+ validator?: (rule: InternalRuleItem, value: any, callback?: (error?: string | Error) => void) => Promise<any>;
25
+ } & {
26
+ isNumber?: boolean;
27
+ };
28
+ export interface RenderCallbackParams {
29
+ schema: FormSchema;
30
+ values: Recordable;
31
+ model: Recordable;
32
+ field: string;
33
+ }
34
+ export interface FormActionType {
35
+ submit: () => Promise<void>;
36
+ setFieldsValue: (values: Recordable) => Promise<void>;
37
+ resetFields: (props?: FormItemProp | FormItemProp[]) => Promise<void>;
38
+ getFieldsValue: () => Recordable;
39
+ getFieldValue: (field: string) => string | number | Recordable;
40
+ clearValidate: (name?: string | string[]) => Promise<void>;
41
+ updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
42
+ resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
43
+ setProps: (formProps: Partial<SuperFormProps>) => Promise<void>;
44
+ removeSchemaByField: (field: string | string[]) => Promise<void>;
45
+ setSubmitLoading: (loading?: boolean) => Promise<void>;
46
+ appendSchemaByField: (schema: FormSchema | FormSchema[], prefixField: string | undefined, first?: boolean | undefined) => Promise<void>;
47
+ validateField: (nameList?: NamePath[]) => Promise<any>;
48
+ validate: (nameList?: NamePath[]) => Promise<any>;
49
+ scrollToField: (name: NamePath, options?: ScrollOptions) => Promise<void>;
50
+ setFormItemError: (field: string, errMess: string) => Promise<void>;
51
+ }
52
+ export interface SuperFormActionProps {
53
+ showResetButton?: boolean;
54
+ showSubmitButton?: boolean;
55
+ showCommonButton?: boolean;
56
+ resetButtonOptions?: ButtonOptions;
57
+ submitButtonOptions?: ButtonOptions;
58
+ commonButtonOptions?: ButtonOptions;
59
+ actionRowOptions?: Partial<RowProps>;
60
+ }
61
+ type FormInnerProps = FormProps & SuperFormActionProps;
62
+ export interface SuperFormProps extends FormInnerProps {
63
+ /** 配置表单的 RowProps */
64
+ rowProps?: RowProps;
65
+ /** 配置所有选子项的 ColProps */
66
+ baseColProps?: Partial<ColProps>;
67
+ /** 根据 1/2/3...快速分列 */
68
+ quickColSpan?: number;
69
+ /** 自动设置占位符 */
70
+ autoSetPlaceHolder?: boolean;
71
+ /** 表单配置 */
72
+ schemas?: FormSchema[];
73
+ /** 是否聚焦第一个输入框,只在第一个表单项为 input 的时候作用 */
74
+ autoFocusFirstItem?: boolean;
75
+ /** 重置时是否提交表单 */
76
+ submitOnReset?: boolean;
77
+ /** 额外传递到子组件的参数 values */
78
+ mergeDynamicData?: Recordable;
79
+ /** 将表单内时间区域的值映射成 2 个字段 */
80
+ fieldMapToTime?: FieldMapToTime;
81
+ /** 在input中输入时按回车自动提交 */
82
+ autoSubmitOnEnter?: boolean;
83
+ /** 如果表单项有校验,会自动生成校验信息,该参数控制是否将字段中文名字拼接到自动生成的信息后方 */
84
+ rulesMessageJoinLabel?: boolean;
85
+ /** 表单改变时触发提交 */
86
+ submitOnChange?: boolean;
87
+ /** 是否显示操作按钮(重置/提交) */
88
+ showActionButtonGroup?: boolean;
89
+ /** 自动清除报错信息 */
90
+ autoCleanErrorMessage?: boolean;
91
+ /** 提交前置事件 */
92
+ beforeSubmitFunc?: () => Promise<void>;
93
+ /** 提交 */
94
+ submitFunc?: () => Promise<void>;
95
+ /** 监听数据是否发生改变 */
96
+ watchDataIsChange?: boolean;
97
+ /** Form 下组件宽度是否撑满 */
98
+ compFullWidth?: boolean;
99
+ /** 操作栏是否为行内 */
100
+ actionInline?: boolean;
101
+ /** 自定义 reset 事件 */
102
+ resetFunc?: () => Promise<void>;
103
+ }
104
+ export interface FormSchema {
105
+ /** 字段 key */
106
+ field: string;
107
+ /** 名称 label title 都可以 */
108
+ label?: string | VNode;
109
+ title?: string | VNode;
110
+ /** 值改变的触发事件 */
111
+ changeEvent?: string;
112
+ /** v-model 绑定的 value 值 */
113
+ valueField?: string;
114
+ /** 子 label */
115
+ subLabel?: string;
116
+ /** 是否显示 label */
117
+ showLabel?: boolean;
118
+ /** 标签宽度,如果通过,则 itemProps 配置的 labelCol 和 WrapperCol 将无效 */
119
+ labelWidth?: string | number;
120
+ /** 渲染组件 */
121
+ type?: FormCompEnum;
122
+ /** 组件内置参数 */
123
+ componentProps?: ((opt: {
124
+ schema: FormSchema;
125
+ formActionType: FormActionType;
126
+ formModel: Recordable;
127
+ }) => Recordable) | object;
128
+ /** 是否为必填项 */
129
+ required?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
130
+ /** 组件后自定义内容 */
131
+ suffix?: string | number | ((values: RenderCallbackParams) => string | number) | VNode;
132
+ /** 组件前自定义内容 */
133
+ prefix?: string | number | ((values: RenderCallbackParams) => string | number) | VNode;
134
+ /** 前置内容父级样式 */
135
+ prefixParentStyle?: StyleValue;
136
+ /** 自定义规则 */
137
+ rules?: FormItemRule[] | FormItemRule;
138
+ /** 自定义报错规则是否添加自动添加 label */
139
+ rulesMessageJoinLabel?: boolean;
140
+ /** 自动生成 placeholder */
141
+ placeholderJoinLabel?: boolean;
142
+ /** form-item 参数 */
143
+ itemProps?: Partial<FormItemProps & {
144
+ title: string;
145
+ }>;
146
+ /** col 参数 */
147
+ colProps?: Partial<ColProps>;
148
+ /** 根据 1/2/3...快速分列 */
149
+ quickColSpan?: number;
150
+ /** 默认值 */
151
+ defaultValue?: any;
152
+ /** 是否自动处理与时间相关组件的默认值 */
153
+ isHandleDateDefaultValue?: boolean;
154
+ /** 栅格占据的列数 */
155
+ span?: number;
156
+ /** 动态判断当前组件是否显示,js 控制,会删除 dom */
157
+ ifShow?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
158
+ /** 动态判断当前组件是否显示,css 控制,不会删除 dom */
159
+ show?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
160
+ /** 自定义渲染组件*/
161
+ render?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string;
162
+ /** 自定义渲染组件(需要自行包含 formItem)*/
163
+ renderColContent?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string;
164
+ /** 自定义渲染组内部的 slot */
165
+ renderComponentContent?: ((renderCallbackParams: RenderCallbackParams) => any) | VNode | VNode[] | string;
166
+ /** 自定义 slot,渲染组件 */
167
+ slot?: string;
168
+ /** 自定义 slot,渲染组件 (需要自行包含 formItem)*/
169
+ colSlot?: string;
170
+ /** 动态判断当前组件是否禁用 */
171
+ dynamicDisabled?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
172
+ /** 动态判返当前组件你校验规则 */
173
+ dynamicRule?: (renderCallbackParams: RenderCallbackParams) => Arrayable<FormItemRule>;
174
+ dynamicRuleAdd?: boolean;
175
+ }
176
+ export {};
@@ -5,4 +5,4 @@ export interface FormContextProps {
5
5
  export declare function createFormContext(context: FormContextProps): {
6
6
  state: any;
7
7
  };
8
- export declare function useFormContext(): any;
8
+ export declare function useFormContext(): FormContextProps;