yc-pro-components 0.0.26 → 0.0.28

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 (161) hide show
  1. package/es/components/check-card/index.d.ts +57 -57
  2. package/es/components/check-card/src/index.vue.d.ts +14 -14
  3. package/es/components/check-card-group/index.d.ts +22 -22
  4. package/es/components/check-card-group/src/index.vue.d.ts +19 -19
  5. package/es/components/date-picker/index.d.ts +1 -1
  6. package/es/components/date-picker/src/index.vue.d.ts +1 -1
  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 +19 -19
  10. package/es/components/dialog/src/index.vue.d.ts +1 -1
  11. package/es/components/dialog-form/index.d.ts +47 -47
  12. package/es/components/dialog-form/src/index.vue.d.ts +7 -7
  13. package/es/components/display-item/index.d.ts +32 -32
  14. package/es/components/display-item/src/index.vue.d.ts +13 -13
  15. package/es/components/drawer-form/index.d.ts +28 -28
  16. package/es/components/drawer-form/src/index.vue.d.ts +6 -6
  17. package/es/components/form/index.d.ts +111 -111
  18. package/es/components/form/src/form-content.vue.d.ts +25 -19
  19. package/es/components/form/src/form-content.vue2.mjs +1 -1
  20. package/es/components/form/src/index.vue.d.ts +18 -18
  21. package/es/components/form/src/index.vue2.mjs +1 -1
  22. package/es/components/form-item/index.d.ts +128 -128
  23. package/es/components/form-item/src/index.vue.d.ts +16 -16
  24. package/es/components/header/index.d.ts +19 -19
  25. package/es/components/header/src/index.vue.d.ts +1 -1
  26. package/es/components/input-tag/index.d.ts +11 -11
  27. package/es/components/input-tag/src/index.vue.d.ts +3 -3
  28. package/es/components/page/index.d.ts +928 -928
  29. package/es/components/page/src/index.vue.d.ts +297 -297
  30. package/es/components/pagination/index.d.ts +4 -4
  31. package/es/components/pagination/src/index.vue.d.ts +1 -1
  32. package/es/components/radio/index.d.ts +26 -26
  33. package/es/components/radio/src/index.vue.d.ts +26 -26
  34. package/es/components/render/index.d.ts +17 -17
  35. package/es/components/render/src/index.vue.d.ts +2 -2
  36. package/es/components/search/index.d.ts +340 -340
  37. package/es/components/search/src/index.vue.d.ts +99 -99
  38. package/es/components/steps-form/index.d.ts +23 -23
  39. package/es/components/steps-form/src/index.vue.d.ts +2 -2
  40. package/es/components/table/index.d.ts +74 -74
  41. package/es/components/table/src/index.vue.d.ts +19 -19
  42. package/es/components/table/src/table-action-bar.vue.d.ts +3 -3
  43. package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
  44. package/es/components/table/src/table-column.vue.d.ts +28 -28
  45. package/es/components/utils/index.d.ts +15 -15
  46. package/es/components/yc-count-to/index.d.ts +1 -1
  47. package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
  48. package/es/components/yc-download-dialog/index.d.ts +19 -19
  49. package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  50. package/es/components/yc-drawer/store.d.ts +6 -6
  51. package/es/components/yc-form-container-header/index.d.ts +12 -12
  52. package/es/components/yc-more-actions/index.d.ts +46 -46
  53. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  54. package/es/components/yc-plus-page/src/index.vue.d.ts +744 -902
  55. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  56. package/es/components/yc-plus-page/src/index.vue2.mjs +4 -2
  57. package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  58. package/es/components/yc-segmented/index.d.ts +1 -1
  59. package/es/components/yc-segmented/src/index.d.ts +1 -1
  60. package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
  61. package/es/components/yc-status-dialog/src/index.vue.d.ts +2 -2
  62. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  63. package/es/hooks/usePlusFormReset.d.ts +193 -193
  64. package/es/index.css +1 -1
  65. package/index.css +6 -6
  66. package/index.js +8 -6
  67. package/index.min.css +1 -1
  68. package/index.min.js +3 -3
  69. package/index.min.mjs +3 -3
  70. package/index.mjs +8 -6
  71. package/lib/components/check-card/index.d.ts +57 -57
  72. package/lib/components/check-card/src/index.vue.d.ts +14 -14
  73. package/lib/components/check-card-group/index.d.ts +22 -22
  74. package/lib/components/check-card-group/src/index.vue.d.ts +19 -19
  75. package/lib/components/date-picker/index.d.ts +1 -1
  76. package/lib/components/date-picker/src/index.vue.d.ts +1 -1
  77. package/lib/components/descriptions/index.d.ts +39 -39
  78. package/lib/components/descriptions/src/index.vue.d.ts +2 -2
  79. package/lib/components/dialog/index.d.ts +19 -19
  80. package/lib/components/dialog/src/index.vue.d.ts +1 -1
  81. package/lib/components/dialog-form/index.d.ts +47 -47
  82. package/lib/components/dialog-form/src/index.vue.d.ts +7 -7
  83. package/lib/components/display-item/index.d.ts +32 -32
  84. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  85. package/lib/components/drawer-form/index.d.ts +28 -28
  86. package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
  87. package/lib/components/form/index.d.ts +111 -111
  88. package/lib/components/form/src/form-content.vue.d.ts +25 -19
  89. package/lib/components/form/src/form-content.vue2.js +1 -1
  90. package/lib/components/form/src/index.vue.d.ts +18 -18
  91. package/lib/components/form/src/index.vue2.js +1 -1
  92. package/lib/components/form-item/index.d.ts +128 -128
  93. package/lib/components/form-item/src/index.vue.d.ts +16 -16
  94. package/lib/components/header/index.d.ts +19 -19
  95. package/lib/components/header/src/index.vue.d.ts +1 -1
  96. package/lib/components/input-tag/index.d.ts +11 -11
  97. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  98. package/lib/components/page/index.d.ts +928 -928
  99. package/lib/components/page/src/index.vue.d.ts +297 -297
  100. package/lib/components/pagination/index.d.ts +4 -4
  101. package/lib/components/pagination/src/index.vue.d.ts +1 -1
  102. package/lib/components/radio/index.d.ts +26 -26
  103. package/lib/components/radio/src/index.vue.d.ts +26 -26
  104. package/lib/components/render/index.d.ts +17 -17
  105. package/lib/components/render/src/index.vue.d.ts +2 -2
  106. package/lib/components/search/index.d.ts +340 -340
  107. package/lib/components/search/src/index.vue.d.ts +99 -99
  108. package/lib/components/steps-form/index.d.ts +23 -23
  109. package/lib/components/steps-form/src/index.vue.d.ts +2 -2
  110. package/lib/components/table/index.d.ts +74 -74
  111. package/lib/components/table/src/index.vue.d.ts +19 -19
  112. package/lib/components/table/src/table-action-bar.vue.d.ts +3 -3
  113. package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
  114. package/lib/components/table/src/table-column.vue.d.ts +28 -28
  115. package/lib/components/utils/index.d.ts +15 -15
  116. package/lib/components/yc-count-to/index.d.ts +1 -1
  117. package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
  118. package/lib/components/yc-download-dialog/index.d.ts +19 -19
  119. package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  120. package/lib/components/yc-drawer/store.d.ts +6 -6
  121. package/lib/components/yc-form-container-header/index.d.ts +12 -12
  122. package/lib/components/yc-more-actions/index.d.ts +46 -46
  123. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  124. package/lib/components/yc-plus-page/src/index.vue.d.ts +744 -902
  125. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  126. package/lib/components/yc-plus-page/src/index.vue2.js +4 -2
  127. package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  128. package/lib/components/yc-segmented/index.d.ts +1 -1
  129. package/lib/components/yc-segmented/src/index.d.ts +1 -1
  130. package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
  131. package/lib/components/yc-status-dialog/src/index.vue.d.ts +2 -2
  132. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  133. package/lib/hooks/usePlusFormReset.d.ts +193 -193
  134. package/lib/index.css +1 -1
  135. package/locale/en.js +1 -1
  136. package/locale/en.min.js +1 -1
  137. package/locale/en.min.mjs +1 -1
  138. package/locale/en.mjs +1 -1
  139. package/locale/ja.js +1 -1
  140. package/locale/ja.min.js +1 -1
  141. package/locale/ja.min.mjs +1 -1
  142. package/locale/ja.mjs +1 -1
  143. package/locale/ko.js +1 -1
  144. package/locale/ko.min.js +1 -1
  145. package/locale/ko.min.mjs +1 -1
  146. package/locale/ko.mjs +1 -1
  147. package/locale/zh-cn.js +1 -1
  148. package/locale/zh-cn.min.js +1 -1
  149. package/locale/zh-cn.min.mjs +1 -1
  150. package/locale/zh-cn.mjs +1 -1
  151. package/locale/zh-tw.js +1 -1
  152. package/locale/zh-tw.min.js +1 -1
  153. package/locale/zh-tw.min.mjs +1 -1
  154. package/locale/zh-tw.mjs +1 -1
  155. package/package.json +1 -1
  156. package/theme-chalk/index.css +1 -1
  157. package/theme-chalk/plus-drawer-form.css +1 -1
  158. package/theme-chalk/plus-form.css +1 -1
  159. package/theme-chalk/src/drawer-form.scss +6 -0
  160. package/theme-chalk/src/form.scss +31 -13
  161. package/theme-chalk/src/index.scss +10 -0
@@ -3,13 +3,19 @@ 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 { 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';
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';
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
+ /**
14
+ * @desc 表单布局方式
15
+ * @version v0.1.15
16
+ * @default undefined (使用 Element Plus 的 Row/Col 布局)
17
+ * @values 'flex' | 'grid' | undefined
18
+ */
13
19
  layout?: 'grid' | 'flex';
14
20
  columns?: PlusColumn[];
15
21
  rowProps?: PlusRowProps;
@@ -36,7 +42,7 @@ export interface PlusFormContentEmits {
36
42
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
37
43
  modelValue: () => {};
38
44
  hasLabel: boolean;
39
- layout: string;
45
+ layout: undefined;
40
46
  rowProps: () => {};
41
47
  colProps: () => {};
42
48
  columns: () => never[];
@@ -49,7 +55,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
49
55
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
50
56
  modelValue: () => {};
51
57
  hasLabel: boolean;
52
- layout: string;
58
+ layout: undefined;
53
59
  rowProps: () => {};
54
60
  colProps: () => {};
55
61
  columns: () => never[];
@@ -57,24 +63,24 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
57
63
  collapseTransition: undefined;
58
64
  clearable: boolean;
59
65
  }>>> & {
60
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
61
66
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
67
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
62
68
  }, {
69
+ collapseDuration: number;
70
+ collapseTransition: boolean;
63
71
  columns: PlusColumn[];
64
72
  layout: "grid" | "flex";
65
73
  modelValue: FieldValues;
66
74
  hasLabel: boolean;
67
- clearable: boolean;
68
- colProps: Partial< Mutable<ColProps> & {
75
+ rowProps: Partial< Mutable<RowProps> & {
69
76
  style?: CSSProperties | undefined;
70
77
  class?: any;
71
78
  } & RecordType>;
72
- collapseDuration: number;
73
- collapseTransition: boolean;
74
- rowProps: Partial< Mutable<RowProps> & {
79
+ colProps: Partial< Mutable<ColProps> & {
75
80
  style?: CSSProperties | undefined;
76
81
  class?: any;
77
82
  } & RecordType>;
83
+ clearable: boolean;
78
84
  }, {}>, Partial<Record<string, (_: {
79
85
  [x: string]: any;
80
86
  label?: string | ComputedRef<string> | undefined;
@@ -170,7 +176,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
170
176
  };
171
177
  rows: number;
172
178
  autocomplete: string;
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";
179
+ 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";
174
180
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
175
181
  step: string | number;
176
182
  format: string | ProgressFn | undefined;
@@ -202,9 +208,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
202
208
  label?: string | undefined;
203
209
  }) => RenderTypes) | undefined;
204
210
  }) => any>> & Partial<Record<string, (_: {
205
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
211
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
206
212
  readonly label: string | ComputedRef<string>;
207
- readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
213
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
208
214
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
209
215
  readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
210
216
  style?: CSSProperties | undefined;
@@ -231,7 +237,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
231
237
  };
232
238
  rows: number;
233
239
  autocomplete: string;
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";
240
+ 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";
235
241
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
236
242
  step: string | number;
237
243
  format: string | ProgressFn | undefined;
@@ -276,7 +282,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
276
282
  fieldInstance?: any;
277
283
  valueIsReady?: Ref<boolean> | undefined;
278
284
  prop: string;
279
- modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
285
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
280
286
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
281
287
  tooltip: string | Partial< Mutable<ElTooltipProps> & {
282
288
  style?: CSSProperties | undefined;
@@ -310,9 +316,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
310
316
  clearable: boolean;
311
317
  index: number;
312
318
  }) => any>> & Partial<Record<string, (_: {
313
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
319
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
314
320
  readonly label: string | ComputedRef<string>;
315
- readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
321
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
316
322
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
317
323
  readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
318
324
  style?: CSSProperties | undefined;
@@ -339,7 +345,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
339
345
  };
340
346
  rows: number;
341
347
  autocomplete: string;
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";
348
+ 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";
343
349
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
344
350
  step: string | number;
345
351
  format: string | ProgressFn | undefined;
@@ -384,7 +390,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
384
390
  fieldInstance?: any;
385
391
  valueIsReady?: Ref<boolean> | undefined;
386
392
  prop: string;
387
- modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
393
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
388
394
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
389
395
  tooltip: string | Partial< Mutable<ElTooltipProps> & {
390
396
  style?: CSSProperties | undefined;
@@ -512,7 +518,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
512
518
  };
513
519
  rows: number;
514
520
  autocomplete: string;
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";
521
+ 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";
516
522
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
517
523
  step: string | number;
518
524
  format: string | ProgressFn | undefined;
@@ -21,7 +21,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  props: {
22
22
  modelValue: { default: () => ({}) },
23
23
  hasLabel: { type: Boolean, default: true },
24
- layout: { default: "grid" },
24
+ layout: { default: void 0 },
25
25
  columns: { default: () => [] },
26
26
  rowProps: { default: () => ({}) },
27
27
  colProps: { default: () => ({}) },
@@ -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, 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';
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';
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,7 +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
+ layout: undefined;
16
16
  rowProps: () => {};
17
17
  colProps: () => {};
18
18
  labelSuffix: string;
@@ -329,7 +329,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
329
329
  defaultValues: () => {};
330
330
  labelWidth: string;
331
331
  labelPosition: string;
332
- layout: string;
332
+ layout: undefined;
333
333
  rowProps: () => {};
334
334
  colProps: () => {};
335
335
  labelSuffix: string;
@@ -350,13 +350,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
350
350
  collapseTransition: undefined;
351
351
  clearable: boolean;
352
352
  }>>> & {
353
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
354
353
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
355
354
  onReset?: ((values: FieldValues) => any) | undefined;
356
355
  onSubmit?: ((values: FieldValues) => any) | undefined;
356
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
357
357
  onValidate?: ((...args: any[]) => any) | undefined;
358
358
  onSubmitError?: ((errors: unknown) => any) | undefined;
359
359
  }, {
360
+ collapseDuration: number;
361
+ collapseTransition: boolean;
360
362
  columns: PlusColumn[];
361
363
  group: false | PlusFormGroupRow[];
362
364
  layout: "grid" | "flex";
@@ -366,18 +368,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
366
368
  labelWidth: string | number;
367
369
  labelSuffix: string;
368
370
  hasLabel: boolean;
369
- clearable: boolean;
370
- colProps: Partial< Mutable<ColProps> & {
371
+ defaultValues: FieldValues;
372
+ rowProps: Partial< Mutable<RowProps> & {
371
373
  style?: CSSProperties | undefined;
372
374
  class?: any;
373
375
  } & RecordType>;
374
- collapseDuration: number;
375
- collapseTransition: boolean;
376
- rowProps: Partial< Mutable<RowProps> & {
376
+ colProps: Partial< Mutable<ColProps> & {
377
377
  style?: CSSProperties | undefined;
378
378
  class?: any;
379
379
  } & RecordType>;
380
- defaultValues: FieldValues;
381
380
  hasErrorTip: boolean;
382
381
  hasFooter: boolean;
383
382
  hasReset: boolean;
@@ -390,6 +389,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
390
389
  class?: any;
391
390
  } & RecordType>;
392
391
  prevent: boolean;
392
+ clearable: boolean;
393
393
  }, {}>, Partial<Record<string, (_: {
394
394
  index: number;
395
395
  title: string | ComputedRef<string>;
@@ -402,9 +402,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
402
402
  hideInGroup?: boolean | ComputedRef<boolean> | undefined;
403
403
  columns?: PlusColumn[] | undefined;
404
404
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
405
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
405
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
406
406
  readonly label: string | ComputedRef<string>;
407
- readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
407
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
408
408
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
409
409
  readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
410
410
  style?: CSSProperties | undefined;
@@ -431,7 +431,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
431
431
  };
432
432
  rows: number;
433
433
  autocomplete: string;
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";
434
+ 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";
435
435
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
436
436
  step: string | number;
437
437
  format: string | ProgressFn | undefined;
@@ -476,7 +476,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
476
476
  fieldInstance?: any;
477
477
  valueIsReady?: Ref<boolean> | undefined;
478
478
  prop: string;
479
- modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
479
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
480
480
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
481
481
  tooltip: string | Partial< Mutable<ElTooltipProps> & {
482
482
  style?: CSSProperties | undefined;
@@ -510,9 +510,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
510
510
  clearable: boolean;
511
511
  index: number;
512
512
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
513
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
513
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
514
514
  readonly label: string | ComputedRef<string>;
515
- readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
515
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
516
516
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
517
517
  readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
518
518
  style?: CSSProperties | undefined;
@@ -539,7 +539,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
539
539
  };
540
540
  rows: number;
541
541
  autocomplete: string;
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";
542
+ 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";
543
543
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
544
544
  step: string | number;
545
545
  format: string | ProgressFn | undefined;
@@ -584,7 +584,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
584
584
  fieldInstance?: any;
585
585
  valueIsReady?: Ref<boolean> | undefined;
586
586
  prop: string;
587
- modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
587
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
588
588
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
589
589
  tooltip: string | Partial< Mutable<ElTooltipProps> & {
590
590
  style?: CSSProperties | undefined;
@@ -20,7 +20,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  columns: { default: () => [] },
21
21
  labelWidth: { default: "80px" },
22
22
  labelPosition: { default: "left" },
23
- layout: { default: "grid" },
23
+ layout: { default: void 0 },
24
24
  rowProps: { default: () => ({}) },
25
25
  colProps: { default: () => ({}) },
26
26
  labelSuffix: { default: ":" },