yc-pro-components 0.0.24 → 0.0.26

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 (198) hide show
  1. package/es/components/check-card/index.d.ts +76 -76
  2. package/es/components/check-card/src/index.vue.d.ts +14 -14
  3. package/es/components/check-card-group/index.d.ts +57 -57
  4. package/es/components/check-card-group/src/index.vue.d.ts +20 -20
  5. package/es/components/date-picker/index.d.ts +10 -10
  6. package/es/components/date-picker/src/index.vue.d.ts +2 -2
  7. package/es/components/descriptions/index.d.ts +39 -39
  8. package/es/components/descriptions/src/index.vue.d.ts +2 -2
  9. package/es/components/dialog/index.d.ts +45 -45
  10. package/es/components/dialog/src/index.vue.d.ts +3 -3
  11. package/es/components/dialog-form/index.d.ts +47 -47
  12. package/es/components/dialog-form/src/index.vue.d.ts +11 -11
  13. package/es/components/display-item/index.d.ts +24 -24
  14. package/es/components/display-item/src/index.vue.d.ts +24 -24
  15. package/es/components/drawer-form/index.d.ts +31 -31
  16. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  17. package/es/components/form/index.d.ts +157 -138
  18. package/es/components/form/src/form-content.vue.d.ts +33 -29
  19. package/es/components/form/src/form-content.vue2.mjs +106 -96
  20. package/es/components/form/src/index.vue.d.ts +28 -25
  21. package/es/components/form/src/index.vue2.mjs +5 -2
  22. package/es/components/form/src/type.d.ts +4 -0
  23. package/es/components/form-item/index.d.ts +150 -150
  24. package/es/components/form-item/src/form-item.mjs +2 -1
  25. package/es/components/form-item/src/index.vue.d.ts +21 -21
  26. package/es/components/form-item/src/index.vue2.mjs +22 -18
  27. package/es/components/header/index.d.ts +19 -19
  28. package/es/components/header/src/index.vue.d.ts +1 -1
  29. package/es/components/input-tag/index.d.ts +16 -16
  30. package/es/components/input-tag/src/index.vue.d.ts +8 -8
  31. package/es/components/layout/index.d.ts +30 -30
  32. package/es/components/layout/src/index.vue.d.ts +10 -10
  33. package/es/components/page/index.d.ts +1175 -1040
  34. package/es/components/page/src/index.vue.d.ts +383 -338
  35. package/es/components/pagination/index.d.ts +38 -38
  36. package/es/components/pagination/src/index.vue.d.ts +2 -2
  37. package/es/components/radio/index.d.ts +34 -34
  38. package/es/components/radio/src/index.vue.d.ts +26 -26
  39. package/es/components/render/index.d.ts +17 -17
  40. package/es/components/render/src/index.vue.d.ts +2 -2
  41. package/es/components/search/index.d.ts +494 -430
  42. package/es/components/search/src/index.vue.d.ts +143 -125
  43. package/es/components/search/src/index.vue2.mjs +3 -1
  44. package/es/components/search/src/type.d.ts +7 -0
  45. package/es/components/sidebar/index.d.ts +15 -15
  46. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  47. package/es/components/steps-form/index.d.ts +19 -19
  48. package/es/components/steps-form/src/index.vue.d.ts +1 -1
  49. package/es/components/table/index.d.ts +38 -38
  50. package/es/components/table/src/index.vue.d.ts +7 -7
  51. package/es/components/table/src/table-action-bar.vue.d.ts +3 -3
  52. package/es/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
  53. package/es/components/table/src/table-column.vue.d.ts +24 -24
  54. package/es/components/table/src/table-title-bar.vue2.mjs +1 -0
  55. package/es/components/utils/index.d.ts +15 -15
  56. package/es/components/yc-count-to/index.d.ts +1 -1
  57. package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
  58. package/es/components/yc-dialog/index.d.ts +24 -24
  59. package/es/components/yc-dialog/src/index.vue2.mjs +1 -1
  60. package/es/components/yc-drawer/src/index.vue.mjs +1 -1
  61. package/es/components/yc-drawer/src/index.vue2.mjs +1 -1
  62. package/es/components/yc-drawer/store.d.ts +6 -6
  63. package/es/components/yc-more-actions/index.d.ts +6 -6
  64. package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
  65. package/es/components/yc-plus-page/src/index.vue.d.ts +826 -736
  66. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  67. package/es/components/yc-plus-page/src/index.vue2.mjs +2 -15
  68. package/es/components/yc-plus-tree/src/index.vue.d.ts +6 -1
  69. package/es/components/yc-plus-tree/src/index.vue.mjs +1 -1
  70. package/es/components/yc-plus-tree/src/index.vue2.mjs +14 -6
  71. package/es/components/yc-segmented/index.d.ts +1 -1
  72. package/es/components/yc-segmented/src/index.d.ts +1 -1
  73. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  74. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  75. package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
  76. package/es/hooks/usePlusFormReset.d.ts +208 -208
  77. package/es/index.css +3 -3
  78. package/index.css +54 -54
  79. package/index.js +160 -144
  80. package/index.min.css +3 -3
  81. package/index.min.js +7 -7
  82. package/index.min.mjs +7 -7
  83. package/index.mjs +160 -144
  84. package/lib/components/check-card/index.d.ts +76 -76
  85. package/lib/components/check-card/src/index.vue.d.ts +14 -14
  86. package/lib/components/check-card-group/index.d.ts +57 -57
  87. package/lib/components/check-card-group/src/index.vue.d.ts +20 -20
  88. package/lib/components/date-picker/index.d.ts +10 -10
  89. package/lib/components/date-picker/src/index.vue.d.ts +2 -2
  90. package/lib/components/descriptions/index.d.ts +39 -39
  91. package/lib/components/descriptions/src/index.vue.d.ts +2 -2
  92. package/lib/components/dialog/index.d.ts +45 -45
  93. package/lib/components/dialog/src/index.vue.d.ts +3 -3
  94. package/lib/components/dialog-form/index.d.ts +47 -47
  95. package/lib/components/dialog-form/src/index.vue.d.ts +11 -11
  96. package/lib/components/display-item/index.d.ts +24 -24
  97. package/lib/components/display-item/src/index.vue.d.ts +24 -24
  98. package/lib/components/drawer-form/index.d.ts +31 -31
  99. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  100. package/lib/components/form/index.d.ts +157 -138
  101. package/lib/components/form/src/form-content.vue.d.ts +33 -29
  102. package/lib/components/form/src/form-content.vue2.js +105 -95
  103. package/lib/components/form/src/index.vue.d.ts +28 -25
  104. package/lib/components/form/src/index.vue2.js +5 -2
  105. package/lib/components/form/src/type.d.ts +4 -0
  106. package/lib/components/form-item/index.d.ts +150 -150
  107. package/lib/components/form-item/src/form-item.js +2 -1
  108. package/lib/components/form-item/src/index.vue.d.ts +21 -21
  109. package/lib/components/form-item/src/index.vue2.js +21 -17
  110. package/lib/components/header/index.d.ts +19 -19
  111. package/lib/components/header/src/index.vue.d.ts +1 -1
  112. package/lib/components/input-tag/index.d.ts +16 -16
  113. package/lib/components/input-tag/src/index.vue.d.ts +8 -8
  114. package/lib/components/layout/index.d.ts +30 -30
  115. package/lib/components/layout/src/index.vue.d.ts +10 -10
  116. package/lib/components/page/index.d.ts +1175 -1040
  117. package/lib/components/page/src/index.vue.d.ts +383 -338
  118. package/lib/components/pagination/index.d.ts +38 -38
  119. package/lib/components/pagination/src/index.vue.d.ts +2 -2
  120. package/lib/components/radio/index.d.ts +34 -34
  121. package/lib/components/radio/src/index.vue.d.ts +26 -26
  122. package/lib/components/render/index.d.ts +17 -17
  123. package/lib/components/render/src/index.vue.d.ts +2 -2
  124. package/lib/components/search/index.d.ts +494 -430
  125. package/lib/components/search/src/index.vue.d.ts +143 -125
  126. package/lib/components/search/src/index.vue2.js +3 -1
  127. package/lib/components/search/src/type.d.ts +7 -0
  128. package/lib/components/sidebar/index.d.ts +15 -15
  129. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  130. package/lib/components/steps-form/index.d.ts +19 -19
  131. package/lib/components/steps-form/src/index.vue.d.ts +1 -1
  132. package/lib/components/table/index.d.ts +38 -38
  133. package/lib/components/table/src/index.vue.d.ts +7 -7
  134. package/lib/components/table/src/table-action-bar.vue.d.ts +3 -3
  135. package/lib/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
  136. package/lib/components/table/src/table-column.vue.d.ts +24 -24
  137. package/lib/components/table/src/table-title-bar.vue2.js +1 -0
  138. package/lib/components/utils/index.d.ts +15 -15
  139. package/lib/components/yc-count-to/index.d.ts +1 -1
  140. package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
  141. package/lib/components/yc-dialog/index.d.ts +24 -24
  142. package/lib/components/yc-dialog/src/index.vue2.js +1 -1
  143. package/lib/components/yc-drawer/src/index.vue.js +1 -1
  144. package/lib/components/yc-drawer/src/index.vue2.js +1 -1
  145. package/lib/components/yc-drawer/store.d.ts +6 -6
  146. package/lib/components/yc-more-actions/index.d.ts +6 -6
  147. package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
  148. package/lib/components/yc-plus-page/src/index.vue.d.ts +826 -736
  149. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  150. package/lib/components/yc-plus-page/src/index.vue2.js +2 -15
  151. package/lib/components/yc-plus-tree/src/index.vue.d.ts +6 -1
  152. package/lib/components/yc-plus-tree/src/index.vue.js +1 -1
  153. package/lib/components/yc-plus-tree/src/index.vue2.js +13 -5
  154. package/lib/components/yc-segmented/index.d.ts +1 -1
  155. package/lib/components/yc-segmented/src/index.d.ts +1 -1
  156. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  157. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  158. package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
  159. package/lib/hooks/usePlusFormReset.d.ts +208 -208
  160. package/lib/index.css +3 -3
  161. package/locale/en.js +1 -1
  162. package/locale/en.min.js +1 -1
  163. package/locale/en.min.mjs +1 -1
  164. package/locale/en.mjs +1 -1
  165. package/locale/ja.js +1 -1
  166. package/locale/ja.min.js +1 -1
  167. package/locale/ja.min.mjs +1 -1
  168. package/locale/ja.mjs +1 -1
  169. package/locale/ko.js +1 -1
  170. package/locale/ko.min.js +1 -1
  171. package/locale/ko.min.mjs +1 -1
  172. package/locale/ko.mjs +1 -1
  173. package/locale/zh-cn.js +1 -1
  174. package/locale/zh-cn.min.js +1 -1
  175. package/locale/zh-cn.min.mjs +1 -1
  176. package/locale/zh-cn.mjs +1 -1
  177. package/locale/zh-tw.js +1 -1
  178. package/locale/zh-tw.min.js +1 -1
  179. package/locale/zh-tw.min.mjs +1 -1
  180. package/locale/zh-tw.mjs +1 -1
  181. package/package.json +1 -1
  182. package/theme-chalk/index.css +1 -1
  183. package/theme-chalk/plus-dialog.css +1 -1
  184. package/theme-chalk/plus-display-item.css +1 -1
  185. package/theme-chalk/plus-form.css +1 -1
  186. package/theme-chalk/plus-search.css +1 -1
  187. package/theme-chalk/plus-table.css +1 -1
  188. package/theme-chalk/plus-yc-dialog.css +1 -1
  189. package/theme-chalk/plus-yc-drawer.css +1 -1
  190. package/theme-chalk/plus-yc-plus-tree.css +1 -1
  191. package/theme-chalk/src/dialog.scss +45 -0
  192. package/theme-chalk/src/display-item.scss +1 -0
  193. package/theme-chalk/src/form.scss +20 -0
  194. package/theme-chalk/src/search.scss +125 -0
  195. package/theme-chalk/src/table.scss +10 -0
  196. package/theme-chalk/src/yc-dialog.scss +50 -0
  197. package/theme-chalk/src/yc-drawer.scss +1 -1
  198. package/theme-chalk/src/yc-plus-tree.scss +1 -0
@@ -3,13 +3,14 @@ import { LooseRequired } from '@vue/shared';
3
3
  import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
4
4
  import { EpPropMergeType } from 'element-plus/es/utils';
5
5
  import { PlusFormProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
6
- import { RowProps, ColProps, ElTooltipProps, TableColumnCtx, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
6
+ import { ColProps, RowProps, ElTooltipProps, TableColumnCtx, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
7
7
  import { PlusColumn, FieldValues, FieldValueType, PlusRowProps, PlusColProps, Mutable, RecordType, TableValueType, FormItemValueType, OptionsType, OptionsRow, RenderTypes, PropsItemType, OmitTypes, CascaderProps } from 'yc-pro-components/es/types';
8
8
  import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, CSSProperties, PropType } from 'vue';
9
9
 
10
10
  export interface PlusFormContentProps {
11
11
  modelValue?: FieldValues;
12
12
  hasLabel?: boolean;
13
+ layout?: 'grid' | 'flex';
13
14
  columns?: PlusColumn[];
14
15
  rowProps?: PlusRowProps;
15
16
  colProps?: PlusColProps;
@@ -35,6 +36,7 @@ export interface PlusFormContentEmits {
35
36
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
36
37
  modelValue: () => {};
37
38
  hasLabel: boolean;
39
+ layout: string;
38
40
  rowProps: () => {};
39
41
  colProps: () => {};
40
42
  columns: () => never[];
@@ -47,6 +49,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
47
49
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
48
50
  modelValue: () => {};
49
51
  hasLabel: boolean;
52
+ layout: string;
50
53
  rowProps: () => {};
51
54
  colProps: () => {};
52
55
  columns: () => never[];
@@ -57,20 +60,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
57
60
  "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
58
61
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
59
62
  }, {
60
- modelValue: FieldValues;
61
- collapseDuration: number;
62
- collapseTransition: boolean;
63
63
  columns: PlusColumn[];
64
+ layout: "grid" | "flex";
65
+ modelValue: FieldValues;
64
66
  hasLabel: boolean;
65
- rowProps: Partial< Mutable<RowProps> & {
67
+ clearable: boolean;
68
+ colProps: Partial< Mutable<ColProps> & {
66
69
  style?: CSSProperties | undefined;
67
70
  class?: any;
68
71
  } & RecordType>;
69
- colProps: Partial< Mutable<ColProps> & {
72
+ collapseDuration: number;
73
+ collapseTransition: boolean;
74
+ rowProps: Partial< Mutable<RowProps> & {
70
75
  style?: CSSProperties | undefined;
71
76
  class?: any;
72
77
  } & RecordType>;
73
- clearable: boolean;
74
78
  }, {}>, Partial<Record<string, (_: {
75
79
  [x: string]: any;
76
80
  label?: string | ComputedRef<string> | undefined;
@@ -94,10 +98,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
94
98
  value: string | number;
95
99
  row: RecordType;
96
100
  }) => OptionsRow<undefined>) | undefined;
97
- tooltip?: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
101
+ tooltip?: string | Partial< Mutable<ElTooltipProps> & {
98
102
  style?: CSSProperties | undefined;
99
103
  class?: any;
100
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
104
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
101
105
  style?: CSSProperties | undefined;
102
106
  class?: any;
103
107
  } & RecordType>> | undefined;
@@ -166,7 +170,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
166
170
  };
167
171
  rows: number;
168
172
  autocomplete: string;
169
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
173
+ type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
170
174
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
171
175
  step: string | number;
172
176
  format: string | ProgressFn | undefined;
@@ -198,14 +202,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
198
202
  label?: string | undefined;
199
203
  }) => RenderTypes) | undefined;
200
204
  }) => any>> & Partial<Record<string, (_: {
201
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
205
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
202
206
  readonly label: string | ComputedRef<string>;
203
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
207
+ readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
204
208
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
205
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
209
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
206
210
  style?: CSSProperties | undefined;
207
211
  class?: any;
208
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
212
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
209
213
  style?: CSSProperties | undefined;
210
214
  class?: any;
211
215
  } & RecordType>>;
@@ -227,7 +231,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
227
231
  };
228
232
  rows: number;
229
233
  autocomplete: string;
230
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
234
+ type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
231
235
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
232
236
  step: string | number;
233
237
  format: string | ProgressFn | undefined;
@@ -272,12 +276,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
272
276
  fieldInstance?: any;
273
277
  valueIsReady?: Ref<boolean> | undefined;
274
278
  prop: string;
275
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
279
+ modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
276
280
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
277
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
281
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
278
282
  style?: CSSProperties | undefined;
279
283
  class?: any;
280
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
284
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
281
285
  style?: CSSProperties | undefined;
282
286
  class?: any;
283
287
  } & RecordType>>;
@@ -306,14 +310,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
306
310
  clearable: boolean;
307
311
  index: number;
308
312
  }) => any>> & Partial<Record<string, (_: {
309
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
313
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
310
314
  readonly label: string | ComputedRef<string>;
311
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
315
+ readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
312
316
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
313
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
317
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
314
318
  style?: CSSProperties | undefined;
315
319
  class?: any;
316
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
320
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
317
321
  style?: CSSProperties | undefined;
318
322
  class?: any;
319
323
  } & RecordType>>;
@@ -335,7 +339,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
335
339
  };
336
340
  rows: number;
337
341
  autocomplete: string;
338
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
342
+ type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
339
343
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
340
344
  step: string | number;
341
345
  format: string | ProgressFn | undefined;
@@ -380,12 +384,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
380
384
  fieldInstance?: any;
381
385
  valueIsReady?: Ref<boolean> | undefined;
382
386
  prop: string;
383
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
387
+ modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
384
388
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
385
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
389
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
386
390
  style?: CSSProperties | undefined;
387
391
  class?: any;
388
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
392
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
389
393
  style?: CSSProperties | undefined;
390
394
  class?: any;
391
395
  } & RecordType>>;
@@ -436,10 +440,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
436
440
  value: string | number;
437
441
  row: RecordType;
438
442
  }) => OptionsRow<undefined>) | undefined;
439
- tooltip?: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
443
+ tooltip?: string | Partial< Mutable<ElTooltipProps> & {
440
444
  style?: CSSProperties | undefined;
441
445
  class?: any;
442
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
446
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
443
447
  style?: CSSProperties | undefined;
444
448
  class?: any;
445
449
  } & RecordType>> | undefined;
@@ -508,7 +512,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
508
512
  };
509
513
  rows: number;
510
514
  autocomplete: string;
511
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
515
+ type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
512
516
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
513
517
  step: string | number;
514
518
  format: string | ProgressFn | undefined;
@@ -25,6 +25,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
25
  props: {
26
26
  modelValue: { default: () => ({}) },
27
27
  hasLabel: { type: Boolean, default: true },
28
+ layout: { default: "grid" },
28
29
  columns: { default: () => [] },
29
30
  rowProps: { default: () => ({}) },
30
31
  colProps: { default: () => ({}) },
@@ -37,6 +38,19 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
37
38
  const props = __props;
38
39
  const emit = __emit;
39
40
  const values = vue.ref({});
41
+ const isNativeLayout = vue.computed(() => props.layout === "flex" || props.layout === "grid");
42
+ const isFlexLayout = vue.computed(() => props.layout === "flex");
43
+ const isGridLayout = vue.computed(() => props.layout === "grid");
44
+ const layoutRowClass = vue.computed(() => ({
45
+ "plus-form__row--flex": isFlexLayout.value,
46
+ "plus-form__row--grid": isGridLayout.value
47
+ }));
48
+ const layoutItemClass = vue.computed(() => ({
49
+ "plus-form__item-wrapper--flex": isFlexLayout.value,
50
+ "plus-form__item-wrapper--grid": isGridLayout.value
51
+ }));
52
+ const rowComponent = vue.computed(() => isNativeLayout.value ? "div" : elementPlus.ElRow);
53
+ const colComponent = vue.computed(() => isNativeLayout.value ? "div" : elementPlus.ElCol);
40
54
  const getHasLabel = (hasLabel) => {
41
55
  const has = vue.unref(hasLabel);
42
56
  if (is.isBoolean(has)) {
@@ -59,104 +73,100 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
59
73
  emit("update:modelValue", values.value);
60
74
  emit("change", values.value, column);
61
75
  };
76
+ const getColBinding = (item) => {
77
+ if (isNativeLayout.value) return void 0;
78
+ return vue.unref(item.colProps) || props.colProps;
79
+ };
62
80
  return (_ctx, _cache) => {
63
- return vue.openBlock(), vue.createBlock(
64
- vue.unref(elementPlus.ElRow),
65
- vue.mergeProps(_ctx.rowProps, { class: "plus-form__row" }),
66
- {
67
- default: vue.withCtx(() => [
68
- vue.createVNode(collapseTransition.default, {
69
- "collapse-duration": _ctx.collapseDuration,
70
- "collapse-transition": _ctx.collapseTransition
71
- }, {
72
- default: vue.withCtx(() => [
73
- (vue.openBlock(true), vue.createElementBlock(
74
- vue.Fragment,
75
- null,
76
- vue.renderList(_ctx.columns, (item) => {
77
- return vue.openBlock(), vue.createBlock(
78
- vue.unref(elementPlus.ElCol),
79
- vue.mergeProps({
80
- key: item.prop
81
- }, vue.unref(item.colProps) || _ctx.colProps),
82
- {
83
- default: vue.withCtx(() => [
84
- vue.createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
85
- item.renderPrevious || _ctx.$slots[vue.unref(index.getPreviousSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
86
- vue.unref(is.isFunction)(item.renderPrevious) ? (vue.openBlock(), vue.createBlock(
87
- vue.resolveDynamicComponent(item.renderPrevious),
88
- vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
89
- null,
90
- 16
91
- /* FULL_PROPS */
92
- )) : _ctx.$slots[vue.unref(index.getPreviousSlotName)(item.prop)] ? vue.renderSlot(_ctx.$slots, vue.unref(index.getPreviousSlotName)(item.prop), vue.normalizeProps(vue.mergeProps({ key: 1 }, item))) : vue.createCommentVNode("v-if", true)
93
- ])) : vue.createCommentVNode("v-if", true),
94
- vue.createVNode(vue.unref(index$1.PlusFormItem), vue.mergeProps({
95
- "model-value": getModelValue(item.prop)
96
- }, item, {
97
- clearable: _ctx.clearable,
98
- "has-label": getHasLabel(item.hasLabel),
99
- onChange: (value) => handleChange(value, item)
100
- }), vue.createSlots({
101
- _: 2
102
- /* DYNAMIC */
103
- }, [
104
- _ctx.$slots[vue.unref(index.getLabelSlotName)(item.prop)] ? {
105
- name: vue.unref(index.getLabelSlotName)(item.prop),
106
- fn: vue.withCtx((data) => [
107
- vue.renderSlot(_ctx.$slots, vue.unref(index.getLabelSlotName)(item.prop), vue.normalizeProps(vue.guardReactiveProps(data)))
108
- ]),
109
- key: "0"
110
- } : void 0,
111
- _ctx.$slots[vue.unref(index.getFieldSlotName)(item.prop)] ? {
112
- name: vue.unref(index.getFieldSlotName)(item.prop),
113
- fn: vue.withCtx((data) => [
114
- vue.renderSlot(_ctx.$slots, vue.unref(index.getFieldSlotName)(item.prop), vue.normalizeProps(vue.guardReactiveProps(data)))
115
- ]),
116
- key: "1"
117
- } : void 0,
118
- _ctx.$slots["tooltip-icon"] ? {
119
- name: "tooltip-icon",
120
- fn: vue.withCtx(() => [
121
- vue.renderSlot(_ctx.$slots, "tooltip-icon")
122
- ]),
123
- key: "2"
124
- } : void 0
125
- ]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
126
- vue.createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
127
- item.renderExtra || _ctx.$slots[vue.unref(index.getExtraSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
128
- item.renderExtra && vue.unref(is.isFunction)(item.renderExtra) ? (vue.openBlock(), vue.createBlock(
129
- vue.resolveDynamicComponent(item.renderExtra),
130
- vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
131
- null,
132
- 16
133
- /* FULL_PROPS */
134
- )) : _ctx.$slots[vue.unref(index.getExtraSlotName)(item.prop)] ? vue.renderSlot(_ctx.$slots, vue.unref(index.getExtraSlotName)(item.prop), vue.normalizeProps(vue.mergeProps({ key: 1 }, item))) : vue.createCommentVNode("v-if", true)
135
- ])) : vue.createCommentVNode("v-if", true)
136
- ]),
81
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(rowComponent.value), vue.mergeProps(isNativeLayout.value ? void 0 : _ctx.rowProps, {
82
+ class: ["plus-form__row", layoutRowClass.value]
83
+ }), {
84
+ default: vue.withCtx(() => [
85
+ vue.createVNode(collapseTransition.default, {
86
+ "collapse-duration": _ctx.collapseDuration,
87
+ "collapse-transition": _ctx.collapseTransition
88
+ }, {
89
+ default: vue.withCtx(() => [
90
+ (vue.openBlock(true), vue.createElementBlock(
91
+ vue.Fragment,
92
+ null,
93
+ vue.renderList(_ctx.columns, (item) => {
94
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(colComponent.value), vue.mergeProps({
95
+ key: item.prop
96
+ }, getColBinding(item), {
97
+ class: ["plus-form__item-wrapper", layoutItemClass.value]
98
+ }), {
99
+ default: vue.withCtx(() => [
100
+ vue.createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
101
+ item.renderPrevious || _ctx.$slots[vue.unref(index.getPreviousSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
102
+ vue.unref(is.isFunction)(item.renderPrevious) ? (vue.openBlock(), vue.createBlock(
103
+ vue.resolveDynamicComponent(item.renderPrevious),
104
+ vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
105
+ null,
106
+ 16
107
+ /* FULL_PROPS */
108
+ )) : _ctx.$slots[vue.unref(index.getPreviousSlotName)(item.prop)] ? vue.renderSlot(_ctx.$slots, vue.unref(index.getPreviousSlotName)(item.prop), vue.normalizeProps(vue.mergeProps({ key: 1 }, item))) : vue.createCommentVNode("v-if", true)
109
+ ])) : vue.createCommentVNode("v-if", true),
110
+ vue.createVNode(vue.unref(index$1.PlusFormItem), vue.mergeProps({
111
+ "model-value": getModelValue(item.prop)
112
+ }, item, {
113
+ clearable: _ctx.clearable,
114
+ "has-label": getHasLabel(item.hasLabel),
115
+ onChange: (value) => handleChange(value, item)
116
+ }), vue.createSlots({
137
117
  _: 2
138
118
  /* DYNAMIC */
139
- },
140
- 1040
141
- /* FULL_PROPS, DYNAMIC_SLOTS */
142
- );
143
- }),
144
- 128
145
- /* KEYED_FRAGMENT */
146
- ))
147
- ]),
148
- _: 3
149
- /* FORWARDED */
150
- }, 8, ["collapse-duration", "collapse-transition"]),
151
- vue.createCommentVNode(" \u641C\u7D22\u7684footer\u63D2\u69FD "),
152
- vue.renderSlot(_ctx.$slots, "search-footer")
153
- ]),
154
- _: 3
155
- /* FORWARDED */
156
- },
157
- 16
158
- /* FULL_PROPS */
159
- );
119
+ }, [
120
+ _ctx.$slots[vue.unref(index.getLabelSlotName)(item.prop)] ? {
121
+ name: vue.unref(index.getLabelSlotName)(item.prop),
122
+ fn: vue.withCtx((data) => [
123
+ vue.renderSlot(_ctx.$slots, vue.unref(index.getLabelSlotName)(item.prop), vue.normalizeProps(vue.guardReactiveProps(data)))
124
+ ]),
125
+ key: "0"
126
+ } : void 0,
127
+ _ctx.$slots[vue.unref(index.getFieldSlotName)(item.prop)] ? {
128
+ name: vue.unref(index.getFieldSlotName)(item.prop),
129
+ fn: vue.withCtx((data) => [
130
+ vue.renderSlot(_ctx.$slots, vue.unref(index.getFieldSlotName)(item.prop), vue.normalizeProps(vue.guardReactiveProps(data)))
131
+ ]),
132
+ key: "1"
133
+ } : void 0,
134
+ _ctx.$slots["tooltip-icon"] ? {
135
+ name: "tooltip-icon",
136
+ fn: vue.withCtx(() => [
137
+ vue.renderSlot(_ctx.$slots, "tooltip-icon")
138
+ ]),
139
+ key: "2"
140
+ } : void 0
141
+ ]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
142
+ vue.createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
143
+ item.renderExtra || _ctx.$slots[vue.unref(index.getExtraSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
144
+ item.renderExtra && vue.unref(is.isFunction)(item.renderExtra) ? (vue.openBlock(), vue.createBlock(
145
+ vue.resolveDynamicComponent(item.renderExtra),
146
+ vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
147
+ null,
148
+ 16
149
+ /* FULL_PROPS */
150
+ )) : _ctx.$slots[vue.unref(index.getExtraSlotName)(item.prop)] ? vue.renderSlot(_ctx.$slots, vue.unref(index.getExtraSlotName)(item.prop), vue.normalizeProps(vue.mergeProps({ key: 1 }, item))) : vue.createCommentVNode("v-if", true)
151
+ ])) : vue.createCommentVNode("v-if", true)
152
+ ]),
153
+ _: 2
154
+ /* DYNAMIC */
155
+ }, 1040, ["class"]);
156
+ }),
157
+ 128
158
+ /* KEYED_FRAGMENT */
159
+ ))
160
+ ]),
161
+ _: 3
162
+ /* FORWARDED */
163
+ }, 8, ["collapse-duration", "collapse-transition"]),
164
+ vue.createCommentVNode(" \u641C\u7D22\u7684footer\u63D2\u69FD "),
165
+ vue.renderSlot(_ctx.$slots, "search-footer")
166
+ ]),
167
+ _: 3
168
+ /* FORWARDED */
169
+ }, 16, ["class"]);
160
170
  };
161
171
  }
162
172
  });
@@ -1,7 +1,7 @@
1
1
  import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
2
2
  import { PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
3
3
  import { LooseRequired } from '@vue/shared';
4
- import { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, RowProps, ColProps, CardProps, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
4
+ import { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, ColProps, RowProps, CardProps, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
5
5
  import { Arrayable, EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
6
6
  import { DefineComponent, Ref, CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, CSSProperties, Component } from 'vue';
7
7
  import { PlusFormSelfProps, PlusFormGroupRow } from './type';
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
12
12
  defaultValues: () => {};
13
13
  labelWidth: string;
14
14
  labelPosition: string;
15
+ layout: string;
15
16
  rowProps: () => {};
16
17
  colProps: () => {};
17
18
  labelSuffix: string;
@@ -328,6 +329,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
328
329
  defaultValues: () => {};
329
330
  labelWidth: string;
330
331
  labelPosition: string;
332
+ layout: string;
331
333
  rowProps: () => {};
332
334
  colProps: () => {};
333
335
  labelSuffix: string;
@@ -355,38 +357,39 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
355
357
  onValidate?: ((...args: any[]) => any) | undefined;
356
358
  onSubmitError?: ((errors: unknown) => any) | undefined;
357
359
  }, {
358
- modelValue: FieldValues;
359
- collapseDuration: number;
360
- collapseTransition: boolean;
361
360
  columns: PlusColumn[];
362
361
  group: false | PlusFormGroupRow[];
362
+ layout: "grid" | "flex";
363
+ modelValue: FieldValues;
363
364
  rules: Partial<Record<string, Arrayable<FormItemRule>>>;
364
365
  labelPosition: "top" | "right" | "left";
365
366
  labelWidth: string | number;
366
367
  labelSuffix: string;
367
368
  hasLabel: boolean;
368
- defaultValues: FieldValues;
369
- rowProps: Partial< Mutable<RowProps> & {
369
+ clearable: boolean;
370
+ colProps: Partial< Mutable<ColProps> & {
370
371
  style?: CSSProperties | undefined;
371
372
  class?: any;
372
373
  } & RecordType>;
373
- colProps: Partial< Mutable<ColProps> & {
374
+ collapseDuration: number;
375
+ collapseTransition: boolean;
376
+ rowProps: Partial< Mutable<RowProps> & {
374
377
  style?: CSSProperties | undefined;
375
378
  class?: any;
376
379
  } & RecordType>;
380
+ defaultValues: FieldValues;
377
381
  hasErrorTip: boolean;
378
382
  hasFooter: boolean;
379
383
  hasReset: boolean;
380
384
  submitText: string;
381
385
  resetText: string;
382
386
  submitLoading: boolean;
383
- footerAlign: "center" | "right" | "left";
387
+ footerAlign: "right" | "left" | "center";
384
388
  cardProps: Partial< Mutable<CardProps> & {
385
389
  style?: CSSProperties | undefined;
386
390
  class?: any;
387
391
  } & RecordType>;
388
392
  prevent: boolean;
389
- clearable: boolean;
390
393
  }, {}>, Partial<Record<string, (_: {
391
394
  index: number;
392
395
  title: string | ComputedRef<string>;
@@ -399,14 +402,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
399
402
  hideInGroup?: boolean | ComputedRef<boolean> | undefined;
400
403
  columns?: PlusColumn[] | undefined;
401
404
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
402
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
405
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
403
406
  readonly label: string | ComputedRef<string>;
404
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
407
+ readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
405
408
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
406
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
409
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
407
410
  style?: CSSProperties | undefined;
408
411
  class?: any;
409
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
412
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
410
413
  style?: CSSProperties | undefined;
411
414
  class?: any;
412
415
  } & RecordType>>;
@@ -428,7 +431,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
428
431
  };
429
432
  rows: number;
430
433
  autocomplete: string;
431
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
434
+ type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
432
435
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
433
436
  step: string | number;
434
437
  format: string | ProgressFn | undefined;
@@ -473,12 +476,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
473
476
  fieldInstance?: any;
474
477
  valueIsReady?: Ref<boolean> | undefined;
475
478
  prop: string;
476
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
479
+ modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
477
480
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
478
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
481
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
479
482
  style?: CSSProperties | undefined;
480
483
  class?: any;
481
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
484
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
482
485
  style?: CSSProperties | undefined;
483
486
  class?: any;
484
487
  } & RecordType>>;
@@ -507,14 +510,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
507
510
  clearable: boolean;
508
511
  index: number;
509
512
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
510
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
513
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
511
514
  readonly label: string | ComputedRef<string>;
512
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
515
+ readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
513
516
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
514
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
517
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
515
518
  style?: CSSProperties | undefined;
516
519
  class?: any;
517
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
520
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
518
521
  style?: CSSProperties | undefined;
519
522
  class?: any;
520
523
  } & RecordType>>;
@@ -536,7 +539,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
536
539
  };
537
540
  rows: number;
538
541
  autocomplete: string;
539
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
542
+ type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
540
543
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
541
544
  step: string | number;
542
545
  format: string | ProgressFn | undefined;
@@ -581,12 +584,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
581
584
  fieldInstance?: any;
582
585
  valueIsReady?: Ref<boolean> | undefined;
583
586
  prop: string;
584
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
587
+ modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
585
588
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
586
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
589
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
587
590
  style?: CSSProperties | undefined;
588
591
  class?: any;
589
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
592
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
590
593
  style?: CSSProperties | undefined;
591
594
  class?: any;
592
595
  } & RecordType>>;