yc-pro-components 0.0.42 → 0.0.44

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 (207) hide show
  1. package/es/component.mjs +2 -0
  2. package/es/components/check-card/index.d.ts +61 -61
  3. package/es/components/check-card/src/index.vue.d.ts +4 -4
  4. package/es/components/check-card-group/index.d.ts +43 -43
  5. package/es/components/check-card-group/src/index.vue.d.ts +3 -3
  6. package/es/components/date-picker/index.d.ts +20 -20
  7. package/es/components/date-picker/src/index.vue.d.ts +12 -12
  8. package/es/components/dialog/index.d.ts +26 -26
  9. package/es/components/dialog/src/index.vue.d.ts +2 -2
  10. package/es/components/dialog-form/index.d.ts +31 -31
  11. package/es/components/dialog-form/src/index.vue.d.ts +9 -9
  12. package/es/components/display-item/index.d.ts +41 -41
  13. package/es/components/display-item/src/index.vue.d.ts +22 -22
  14. package/es/components/drawer-form/index.d.ts +65 -65
  15. package/es/components/drawer-form/src/index.vue.d.ts +15 -15
  16. package/es/components/form/index.d.ts +45 -45
  17. package/es/components/form/src/form-content.vue.d.ts +20 -20
  18. package/es/components/form/src/index.vue.d.ts +17 -17
  19. package/es/components/form-item/index.d.ts +48 -48
  20. package/es/components/form-item/src/index.vue.d.ts +14 -14
  21. package/es/components/header/index.d.ts +19 -19
  22. package/es/components/header/src/index.vue.d.ts +1 -1
  23. package/es/components/index.d.ts +1 -0
  24. package/es/components/index.mjs +4 -0
  25. package/es/components/input-tag/index.d.ts +15 -15
  26. package/es/components/input-tag/src/index.vue.d.ts +3 -3
  27. package/es/components/layout/index.d.ts +50 -50
  28. package/es/components/layout/src/index.vue.d.ts +11 -11
  29. package/es/components/page/index.d.ts +4166 -2538
  30. package/es/components/page/src/index.vue.d.ts +712 -137
  31. package/es/components/page/src/index.vue2.mjs +120 -31
  32. package/es/components/pagination/index.d.ts +42 -42
  33. package/es/components/pagination/src/index.vue.d.ts +3 -3
  34. package/es/components/radio/index.d.ts +35 -35
  35. package/es/components/radio/src/index.vue.d.ts +27 -27
  36. package/es/components/render/index.d.ts +3 -3
  37. package/es/components/render/src/index.vue.d.ts +1 -1
  38. package/es/components/search/index.d.ts +154 -154
  39. package/es/components/search/src/index.vue.d.ts +50 -50
  40. package/es/components/sidebar/index.d.ts +15 -15
  41. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  42. package/es/components/steps-form/index.d.ts +23 -23
  43. package/es/components/steps-form/src/index.vue.d.ts +2 -2
  44. package/es/components/table/src/table-column.vue.d.ts +37 -37
  45. package/es/components/utils/index.d.ts +2 -2
  46. package/es/components/virtual-table/index.d.ts +646 -0
  47. package/es/components/virtual-table/index.mjs +8 -0
  48. package/es/components/virtual-table/src/index.vue.d.ts +139 -0
  49. package/es/components/virtual-table/src/index.vue.mjs +6 -0
  50. package/es/components/virtual-table/src/index.vue2.mjs +327 -0
  51. package/es/components/virtual-table/src/type.d.ts +295 -0
  52. package/es/components/virtual-table/src/type.mjs +1 -0
  53. package/es/components/virtual-table/src/use-column-adapter.d.ts +40 -0
  54. package/es/components/virtual-table/src/use-column-adapter.mjs +137 -0
  55. package/es/components/virtual-table/src/use-virtual-scroll.d.ts +35 -0
  56. package/es/components/virtual-table/src/use-virtual-scroll.mjs +71 -0
  57. package/es/components/virtual-table/src/use-virtual-selection.d.ts +40 -0
  58. package/es/components/virtual-table/src/use-virtual-selection.mjs +112 -0
  59. package/es/components/virtual-table/src/virtual-table-action-bar.d.ts +11 -0
  60. package/es/components/virtual-table/src/virtual-table-action-bar.mjs +121 -0
  61. package/es/components/virtual-table/src/virtual-table-cell-renderer.d.ts +16 -0
  62. package/es/components/virtual-table/src/virtual-table-cell-renderer.mjs +170 -0
  63. package/es/components/virtual-table/src/virtual-table-header-renderer.d.ts +10 -0
  64. package/es/components/virtual-table/src/virtual-table-header-renderer.mjs +51 -0
  65. package/es/components/virtual-table/style/css.d.ts +3 -0
  66. package/es/components/virtual-table/style/css.mjs +1 -0
  67. package/es/components/virtual-table/style/index.d.ts +12 -0
  68. package/es/components/virtual-table/style/index.mjs +1 -0
  69. package/es/components/yc-dialog/index.d.ts +24 -24
  70. package/es/components/yc-download-dialog/index.d.ts +19 -19
  71. package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  72. package/es/components/yc-form-container-header/index.d.ts +12 -12
  73. package/es/components/yc-more-actions/index.d.ts +46 -46
  74. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  75. package/es/components/yc-plus-page/src/index.vue.d.ts +2445 -1430
  76. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  77. package/es/components/yc-plus-page/src/type.d.ts +8 -2
  78. package/es/components/yc-segmented/index.d.ts +2 -2
  79. package/es/components/yc-segmented/src/index.d.ts +2 -2
  80. package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
  81. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  82. package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
  83. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  84. package/es/hooks/usePlusFormReset.d.ts +238 -238
  85. package/es/index.css +20 -1
  86. package/es/index.d.ts +1 -0
  87. package/es/index.mjs +4 -0
  88. package/es/yc-components/index.d.ts +1 -0
  89. package/index.css +111 -6
  90. package/index.js +1141 -149
  91. package/index.min.css +2 -1
  92. package/index.min.js +13 -10
  93. package/index.min.mjs +13 -10
  94. package/index.mjs +1139 -151
  95. package/lib/component.js +42 -40
  96. package/lib/components/check-card/index.d.ts +61 -61
  97. package/lib/components/check-card/src/index.vue.d.ts +4 -4
  98. package/lib/components/check-card-group/index.d.ts +43 -43
  99. package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
  100. package/lib/components/date-picker/index.d.ts +20 -20
  101. package/lib/components/date-picker/src/index.vue.d.ts +12 -12
  102. package/lib/components/dialog/index.d.ts +26 -26
  103. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  104. package/lib/components/dialog-form/index.d.ts +31 -31
  105. package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
  106. package/lib/components/display-item/index.d.ts +41 -41
  107. package/lib/components/display-item/src/index.vue.d.ts +22 -22
  108. package/lib/components/drawer-form/index.d.ts +65 -65
  109. package/lib/components/drawer-form/src/index.vue.d.ts +15 -15
  110. package/lib/components/form/index.d.ts +45 -45
  111. package/lib/components/form/src/form-content.vue.d.ts +20 -20
  112. package/lib/components/form/src/index.vue.d.ts +17 -17
  113. package/lib/components/form-item/index.d.ts +48 -48
  114. package/lib/components/form-item/src/index.vue.d.ts +14 -14
  115. package/lib/components/header/index.d.ts +19 -19
  116. package/lib/components/header/src/index.vue.d.ts +1 -1
  117. package/lib/components/index.d.ts +1 -0
  118. package/lib/components/index.js +98 -90
  119. package/lib/components/input-tag/index.d.ts +15 -15
  120. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  121. package/lib/components/layout/index.d.ts +50 -50
  122. package/lib/components/layout/src/index.vue.d.ts +11 -11
  123. package/lib/components/page/index.d.ts +4166 -2538
  124. package/lib/components/page/src/index.vue.d.ts +712 -137
  125. package/lib/components/page/src/index.vue2.js +125 -36
  126. package/lib/components/pagination/index.d.ts +42 -42
  127. package/lib/components/pagination/src/index.vue.d.ts +3 -3
  128. package/lib/components/radio/index.d.ts +35 -35
  129. package/lib/components/radio/src/index.vue.d.ts +27 -27
  130. package/lib/components/render/index.d.ts +3 -3
  131. package/lib/components/render/src/index.vue.d.ts +1 -1
  132. package/lib/components/search/index.d.ts +154 -154
  133. package/lib/components/search/src/index.vue.d.ts +50 -50
  134. package/lib/components/sidebar/index.d.ts +15 -15
  135. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  136. package/lib/components/steps-form/index.d.ts +23 -23
  137. package/lib/components/steps-form/src/index.vue.d.ts +2 -2
  138. package/lib/components/table/src/table-column.vue.d.ts +37 -37
  139. package/lib/components/utils/index.d.ts +2 -2
  140. package/lib/components/virtual-table/index.d.ts +646 -0
  141. package/lib/components/virtual-table/index.js +13 -0
  142. package/lib/components/virtual-table/src/index.vue.d.ts +139 -0
  143. package/lib/components/virtual-table/src/index.vue.js +10 -0
  144. package/lib/components/virtual-table/src/index.vue2.js +331 -0
  145. package/lib/components/virtual-table/src/type.d.ts +295 -0
  146. package/lib/components/virtual-table/src/type.js +2 -0
  147. package/lib/components/virtual-table/src/use-column-adapter.d.ts +40 -0
  148. package/lib/components/virtual-table/src/use-column-adapter.js +139 -0
  149. package/lib/components/virtual-table/src/use-virtual-scroll.d.ts +35 -0
  150. package/lib/components/virtual-table/src/use-virtual-scroll.js +73 -0
  151. package/lib/components/virtual-table/src/use-virtual-selection.d.ts +40 -0
  152. package/lib/components/virtual-table/src/use-virtual-selection.js +114 -0
  153. package/lib/components/virtual-table/src/virtual-table-action-bar.d.ts +11 -0
  154. package/lib/components/virtual-table/src/virtual-table-action-bar.js +123 -0
  155. package/lib/components/virtual-table/src/virtual-table-cell-renderer.d.ts +16 -0
  156. package/lib/components/virtual-table/src/virtual-table-cell-renderer.js +172 -0
  157. package/lib/components/virtual-table/src/virtual-table-header-renderer.d.ts +10 -0
  158. package/lib/components/virtual-table/src/virtual-table-header-renderer.js +53 -0
  159. package/lib/components/virtual-table/style/css.d.ts +3 -0
  160. package/lib/components/virtual-table/style/css.js +2 -0
  161. package/lib/components/virtual-table/style/index.d.ts +12 -0
  162. package/lib/components/virtual-table/style/index.js +2 -0
  163. package/lib/components/yc-dialog/index.d.ts +24 -24
  164. package/lib/components/yc-download-dialog/index.d.ts +19 -19
  165. package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  166. package/lib/components/yc-form-container-header/index.d.ts +12 -12
  167. package/lib/components/yc-more-actions/index.d.ts +46 -46
  168. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  169. package/lib/components/yc-plus-page/src/index.vue.d.ts +2445 -1430
  170. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  171. package/lib/components/yc-plus-page/src/type.d.ts +8 -2
  172. package/lib/components/yc-segmented/index.d.ts +2 -2
  173. package/lib/components/yc-segmented/src/index.d.ts +2 -2
  174. package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
  175. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  176. package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
  177. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  178. package/lib/hooks/usePlusFormReset.d.ts +238 -238
  179. package/lib/index.css +20 -1
  180. package/lib/index.d.ts +1 -0
  181. package/lib/index.js +143 -135
  182. package/lib/yc-components/index.d.ts +1 -0
  183. package/locale/en.js +1 -1
  184. package/locale/en.min.js +1 -1
  185. package/locale/en.min.mjs +1 -1
  186. package/locale/en.mjs +1 -1
  187. package/locale/ja.js +1 -1
  188. package/locale/ja.min.js +1 -1
  189. package/locale/ja.min.mjs +1 -1
  190. package/locale/ja.mjs +1 -1
  191. package/locale/ko.js +1 -1
  192. package/locale/ko.min.js +1 -1
  193. package/locale/ko.min.mjs +1 -1
  194. package/locale/ko.mjs +1 -1
  195. package/locale/zh-cn.js +1 -1
  196. package/locale/zh-cn.min.js +1 -1
  197. package/locale/zh-cn.min.mjs +1 -1
  198. package/locale/zh-cn.mjs +1 -1
  199. package/locale/zh-tw.js +1 -1
  200. package/locale/zh-tw.min.js +1 -1
  201. package/locale/zh-tw.min.mjs +1 -1
  202. package/locale/zh-tw.mjs +1 -1
  203. package/package.json +1 -1
  204. package/theme-chalk/index.css +1 -1
  205. package/theme-chalk/plus-virtual-table.css +1 -0
  206. package/theme-chalk/src/index.scss +3 -0
  207. package/theme-chalk/src/virtual-table.scss +128 -0
@@ -1,8 +1,9 @@
1
+ import { VirtualTableColumn } from 'yc-pro-components/es/components/virtual-table';
1
2
  import { Options } from 'sortablejs';
2
3
  import { LooseRequired } from '@vue/shared';
3
4
  import { Arrayable, EpPropMergeType } from 'element-plus/es/utils';
4
5
  import { PlusFormGroupRow, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, PlusFormSelfProps, ElementPlusFormProps } from 'packages/yc-components';
5
- import { RowProps, ColProps, FormItemRule, CardProps, FormInstance, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, PopperEffect, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, TableColumnCtx, TableInstance, TableProps } from 'element-plus';
6
+ import { RowProps, ColProps, FormItemRule, CardProps, FormInstance, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, PopperEffect, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, TableColumnCtx, TableInstance, TableV2Instance, TableProps } from 'element-plus';
6
7
  import { DefineComponent, Ref, ComponentInternalInstance, CSSProperties, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ComputedRef, ShallowRef, PublicProps } from 'vue';
7
8
  import { PlusPaginationProps } from 'yc-pro-components/es/components/pagination';
8
9
  import { PlusTableProps, ActionBarProps, ColumnSetting, ButtonsCallBackParams, FormChangeCallBackParams, FilterTableHeaderEventType, TableFormRefRow, PlusTableSelfProps } from 'yc-pro-components/es/components/table';
@@ -138,9 +139,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
138
139
  $: ComponentInternalInstance;
139
140
  $data: {};
140
141
  $props: Partial<{
141
- modelValue: FieldValues;
142
142
  columns: PlusColumn[];
143
143
  layout: "grid" | "flex";
144
+ modelValue: FieldValues;
144
145
  labelPosition: "top" | "right" | "left";
145
146
  inline: boolean;
146
147
  showNumber: number;
@@ -166,9 +167,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
166
167
  searchIcon: Component | null;
167
168
  resetIcon: Component | null;
168
169
  }> & Omit<{
169
- readonly modelValue: FieldValues;
170
170
  readonly columns: PlusColumn[];
171
171
  readonly layout: "grid" | "flex";
172
+ readonly modelValue: FieldValues;
172
173
  readonly inline: boolean;
173
174
  readonly showNumber: number;
174
175
  readonly defaultValues: FieldValues;
@@ -193,16 +194,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
193
194
  readonly labelPosition?: "top" | "right" | "left" | undefined;
194
195
  readonly searchIcon?: Component | null | undefined;
195
196
  readonly resetIcon?: Component | null | undefined;
196
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
197
197
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
198
198
  onReset?: ((values: FieldValues) => any) | undefined;
199
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
199
200
  onSearch?: ((values: FieldValues) => any) | undefined;
200
201
  onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
201
202
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
202
- modelValue: {
203
- type: PropType<FieldValues>;
204
- default: () => {};
205
- };
206
203
  columns: {
207
204
  type: PropType<PlusColumn[]>;
208
205
  default: () => never[];
@@ -211,6 +208,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
211
208
  type: PropType<"grid" | "flex">;
212
209
  default: "flex";
213
210
  };
211
+ modelValue: {
212
+ type: PropType<FieldValues>;
213
+ default: () => {};
214
+ };
214
215
  labelPosition: {
215
216
  type: PropType<"top" | "right" | "left">;
216
217
  default: undefined;
@@ -298,12 +299,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
298
299
  default: undefined;
299
300
  };
300
301
  }>> & {
301
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
302
302
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
303
303
  onReset?: ((values: FieldValues) => any) | undefined;
304
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
304
305
  onSearch?: ((values: FieldValues) => any) | undefined;
305
306
  onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
306
- }, "modelValue" | "columns" | "layout" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate" | "searchIcon" | "resetIcon">;
307
+ }, "columns" | "layout" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate" | "searchIcon" | "resetIcon">;
307
308
  $attrs: {
308
309
  [x: string]: unknown;
309
310
  };
@@ -315,13 +316,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
315
316
  }>;
316
317
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
317
318
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
318
- $emit: ((event: "search", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "collapse", isShowUnfold: boolean) => void);
319
+ $emit: ((event: "search", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "collapse", isShowUnfold: boolean) => void);
319
320
  $el: any;
320
321
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
321
- modelValue: {
322
- type: PropType<FieldValues>;
323
- default: () => {};
324
- };
325
322
  columns: {
326
323
  type: PropType<PlusColumn[]>;
327
324
  default: () => never[];
@@ -330,6 +327,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
330
327
  type: PropType<"grid" | "flex">;
331
328
  default: "flex";
332
329
  };
330
+ modelValue: {
331
+ type: PropType<FieldValues>;
332
+ default: () => {};
333
+ };
333
334
  labelPosition: {
334
335
  type: PropType<"top" | "right" | "left">;
335
336
  default: undefined;
@@ -417,9 +418,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
417
418
  default: undefined;
418
419
  };
419
420
  }>> & {
420
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
421
421
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
422
422
  onReset?: ((values: FieldValues) => any) | undefined;
423
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
423
424
  onSearch?: ((values: FieldValues) => any) | undefined;
424
425
  onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
425
426
  }, {
@@ -427,12 +428,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
427
428
  $: ComponentInternalInstance;
428
429
  $data: {};
429
430
  $props: Partial<{
430
- modelValue: FieldValues;
431
431
  collapseDuration: number;
432
432
  collapseTransition: boolean;
433
433
  columns: PlusColumn[];
434
434
  group: false | PlusFormGroupRow[];
435
435
  layout: "grid" | "flex";
436
+ modelValue: FieldValues;
436
437
  rules: Partial<Record<string, Arrayable<FormItemRule>>>;
437
438
  labelPosition: "top" | "right" | "left";
438
439
  labelWidth: string | number;
@@ -453,7 +454,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
453
454
  submitText: string;
454
455
  resetText: string;
455
456
  submitLoading: boolean;
456
- footerAlign: "center" | "right" | "left";
457
+ footerAlign: "right" | "left" | "center";
457
458
  cardProps: Partial< Mutable<CardProps> & {
458
459
  style?: CSSProperties | undefined;
459
460
  class?: any;
@@ -461,9 +462,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
461
462
  prevent: boolean;
462
463
  clearable: boolean;
463
464
  }> & Omit<{
464
- readonly modelValue: FieldValues;
465
465
  readonly columns: PlusColumn[];
466
466
  readonly group: false | PlusFormGroupRow[];
467
+ readonly modelValue: FieldValues;
467
468
  readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
468
469
  readonly labelPosition: "top" | "right" | "left";
469
470
  readonly labelWidth: string | number;
@@ -484,7 +485,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
484
485
  readonly submitText: string;
485
486
  readonly resetText: string;
486
487
  readonly submitLoading: boolean;
487
- readonly footerAlign: "center" | "right" | "left";
488
+ readonly footerAlign: "right" | "left" | "center";
488
489
  readonly cardProps: Partial< Mutable<CardProps> & {
489
490
  style?: CSSProperties | undefined;
490
491
  class?: any;
@@ -494,17 +495,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
494
495
  readonly collapseDuration?: number | undefined;
495
496
  readonly collapseTransition?: boolean | undefined;
496
497
  readonly layout?: "grid" | "flex" | undefined;
497
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
498
498
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
499
499
  onReset?: ((values: FieldValues) => any) | undefined;
500
500
  onSubmit?: ((values: FieldValues) => any) | undefined;
501
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
501
502
  onValidate?: ((...args: any[]) => any) | undefined;
502
503
  onSubmitError?: ((errors: unknown) => any) | undefined;
503
504
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
504
- modelValue: {
505
- type: PropType<FieldValues>;
506
- default: () => {};
507
- };
508
505
  collapseDuration: {
509
506
  type: PropType<number>;
510
507
  default: undefined;
@@ -525,6 +522,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
525
522
  type: PropType<"grid" | "flex">;
526
523
  default: undefined;
527
524
  };
525
+ modelValue: {
526
+ type: PropType<FieldValues>;
527
+ default: () => {};
528
+ };
528
529
  rules: {
529
530
  type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
530
531
  default: () => {};
@@ -588,7 +589,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
588
589
  default: boolean;
589
590
  };
590
591
  footerAlign: {
591
- type: PropType<"center" | "right" | "left">;
592
+ type: PropType<"right" | "left" | "center">;
592
593
  default: string;
593
594
  };
594
595
  cardProps: {
@@ -607,13 +608,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
607
608
  default: boolean;
608
609
  };
609
610
  }>> & {
610
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
611
611
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
612
612
  onReset?: ((values: FieldValues) => any) | undefined;
613
613
  onSubmit?: ((values: FieldValues) => any) | undefined;
614
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
614
615
  onValidate?: ((...args: any[]) => any) | undefined;
615
616
  onSubmitError?: ((errors: unknown) => any) | undefined;
616
- }, "modelValue" | "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
617
+ }, "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
617
618
  $attrs: {
618
619
  [x: string]: unknown;
619
620
  };
@@ -625,13 +626,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
625
626
  }>;
626
627
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
627
628
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
628
- $emit: ((event: "update:modelValue", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
629
+ $emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
629
630
  $el: any;
630
631
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
631
- modelValue: {
632
- type: PropType<FieldValues>;
633
- default: () => {};
634
- };
635
632
  collapseDuration: {
636
633
  type: PropType<number>;
637
634
  default: undefined;
@@ -652,6 +649,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
652
649
  type: PropType<"grid" | "flex">;
653
650
  default: undefined;
654
651
  };
652
+ modelValue: {
653
+ type: PropType<FieldValues>;
654
+ default: () => {};
655
+ };
655
656
  rules: {
656
657
  type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
657
658
  default: () => {};
@@ -715,7 +716,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
715
716
  default: boolean;
716
717
  };
717
718
  footerAlign: {
718
- type: PropType<"center" | "right" | "left">;
719
+ type: PropType<"right" | "left" | "center">;
719
720
  default: string;
720
721
  };
721
722
  cardProps: {
@@ -734,10 +735,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
734
735
  default: boolean;
735
736
  };
736
737
  }>> & {
737
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
738
738
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
739
739
  onReset?: ((values: FieldValues) => any) | undefined;
740
740
  onSubmit?: ((values: FieldValues) => any) | undefined;
741
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
741
742
  onValidate?: ((...args: any[]) => any) | undefined;
742
743
  onSubmitError?: ((errors: unknown) => any) | undefined;
743
744
  }, {
@@ -752,12 +753,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
752
753
  submitError: (errors: unknown) => void;
753
754
  validate: (...args: any[]) => void;
754
755
  }, string, {
755
- modelValue: FieldValues;
756
756
  collapseDuration: number;
757
757
  collapseTransition: boolean;
758
758
  columns: PlusColumn[];
759
759
  group: false | PlusFormGroupRow[];
760
760
  layout: "grid" | "flex";
761
+ modelValue: FieldValues;
761
762
  rules: Partial<Record<string, Arrayable<FormItemRule>>>;
762
763
  labelPosition: "top" | "right" | "left";
763
764
  labelWidth: string | number;
@@ -778,7 +779,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
778
779
  submitText: string;
779
780
  resetText: string;
780
781
  submitLoading: boolean;
781
- footerAlign: "center" | "right" | "left";
782
+ footerAlign: "right" | "left" | "center";
782
783
  cardProps: Partial< Mutable<CardProps> & {
783
784
  style?: CSSProperties | undefined;
784
785
  class?: any;
@@ -806,10 +807,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
806
807
  $nextTick: nextTick;
807
808
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
808
809
  } & Omit<Readonly< ExtractPropTypes<{
809
- modelValue: {
810
- type: PropType<FieldValues>;
811
- default: () => {};
812
- };
813
810
  collapseDuration: {
814
811
  type: PropType<number>;
815
812
  default: undefined;
@@ -830,6 +827,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
830
827
  type: PropType<"grid" | "flex">;
831
828
  default: undefined;
832
829
  };
830
+ modelValue: {
831
+ type: PropType<FieldValues>;
832
+ default: () => {};
833
+ };
833
834
  rules: {
834
835
  type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
835
836
  default: () => {};
@@ -893,7 +894,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
893
894
  default: boolean;
894
895
  };
895
896
  footerAlign: {
896
- type: PropType<"center" | "right" | "left">;
897
+ type: PropType<"right" | "left" | "center">;
897
898
  default: string;
898
899
  };
899
900
  cardProps: {
@@ -912,10 +913,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
912
913
  default: boolean;
913
914
  };
914
915
  }>> & {
915
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
916
916
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
917
917
  onReset?: ((values: FieldValues) => any) | undefined;
918
918
  onSubmit?: ((values: FieldValues) => any) | undefined;
919
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
919
920
  onValidate?: ((...args: any[]) => any) | undefined;
920
921
  onSubmitError?: ((errors: unknown) => any) | undefined;
921
922
  }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
@@ -935,14 +936,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
935
936
  hideInGroup?: boolean | ComputedRef<boolean> | undefined;
936
937
  columns?: PlusColumn[] | undefined;
937
938
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
938
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
939
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
939
940
  readonly label: string | ComputedRef<string>;
940
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
941
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
941
942
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
942
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
943
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
943
944
  style?: CSSProperties | undefined;
944
945
  class?: any;
945
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
946
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
946
947
  style?: CSSProperties | undefined;
947
948
  class?: any;
948
949
  } & RecordType>>;
@@ -967,6 +968,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
967
968
  type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "range" | "password" | "email" | "tel" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
968
969
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
969
970
  step: string | number;
971
+ /**
972
+ * 所有列字段为空时显示的默认文本(全局配置)
973
+ * @version v0.2.0
974
+ * @default "-"
975
+ * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
976
+ * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
977
+ * @desc 仅对未定义 render/renderHTML 的字段生效
978
+ */
970
979
  format: string | ProgressFn | undefined;
971
980
  filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
972
981
  id: string | [string, string];
@@ -1009,12 +1018,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1009
1018
  fieldInstance?: any;
1010
1019
  valueIsReady?: Ref<boolean> | undefined;
1011
1020
  prop: string;
1012
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1021
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1013
1022
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1014
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1023
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
1015
1024
  style?: CSSProperties | undefined;
1016
1025
  class?: any;
1017
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1026
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1018
1027
  style?: CSSProperties | undefined;
1019
1028
  class?: any;
1020
1029
  } & RecordType>>;
@@ -1043,14 +1052,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1043
1052
  clearable: boolean;
1044
1053
  index: number;
1045
1054
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1046
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1055
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1047
1056
  readonly label: string | ComputedRef<string>;
1048
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1057
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1049
1058
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1050
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1059
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
1051
1060
  style?: CSSProperties | undefined;
1052
1061
  class?: any;
1053
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1062
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1054
1063
  style?: CSSProperties | undefined;
1055
1064
  class?: any;
1056
1065
  } & RecordType>>;
@@ -1075,6 +1084,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1075
1084
  type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "range" | "password" | "email" | "tel" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1076
1085
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
1077
1086
  step: string | number;
1087
+ /**
1088
+ * 所有列字段为空时显示的默认文本(全局配置)
1089
+ * @version v0.2.0
1090
+ * @default "-"
1091
+ * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
1092
+ * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
1093
+ * @desc 仅对未定义 render/renderHTML 的字段生效
1094
+ */
1078
1095
  format: string | ProgressFn | undefined;
1079
1096
  filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1080
1097
  id: string | [string, string];
@@ -1117,12 +1134,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1117
1134
  fieldInstance?: any;
1118
1135
  valueIsReady?: Ref<boolean> | undefined;
1119
1136
  prop: string;
1120
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1137
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1121
1138
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1122
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1139
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
1123
1140
  style?: CSSProperties | undefined;
1124
1141
  class?: any;
1125
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1142
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1126
1143
  style?: CSSProperties | undefined;
1127
1144
  class?: any;
1128
1145
  } & RecordType>>;
@@ -1174,9 +1191,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1174
1191
  reset: (values: FieldValues) => void;
1175
1192
  collapse: (isShowUnfold: boolean) => void;
1176
1193
  }, string, {
1177
- modelValue: FieldValues;
1178
1194
  columns: PlusColumn[];
1179
1195
  layout: "grid" | "flex";
1196
+ modelValue: FieldValues;
1180
1197
  labelPosition: "top" | "right" | "left";
1181
1198
  inline: boolean;
1182
1199
  showNumber: number;
@@ -1222,10 +1239,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1222
1239
  $nextTick: nextTick;
1223
1240
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1224
1241
  } & Omit<Readonly< ExtractPropTypes<{
1225
- modelValue: {
1226
- type: PropType<FieldValues>;
1227
- default: () => {};
1228
- };
1229
1242
  columns: {
1230
1243
  type: PropType<PlusColumn[]>;
1231
1244
  default: () => never[];
@@ -1234,6 +1247,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1234
1247
  type: PropType<"grid" | "flex">;
1235
1248
  default: "flex";
1236
1249
  };
1250
+ modelValue: {
1251
+ type: PropType<FieldValues>;
1252
+ default: () => {};
1253
+ };
1237
1254
  labelPosition: {
1238
1255
  type: PropType<"top" | "right" | "left">;
1239
1256
  default: undefined;
@@ -1321,9 +1338,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1321
1338
  default: undefined;
1322
1339
  };
1323
1340
  }>> & {
1324
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1325
1341
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1326
1342
  onReset?: ((values: FieldValues) => any) | undefined;
1343
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1327
1344
  onSearch?: ((values: FieldValues) => any) | undefined;
1328
1345
  onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
1329
1346
  }, "handleReset" | "plusFormInstance" | "handleSearch" | "handleUnfold"> & ShallowUnwrapRef<{
@@ -1331,12 +1348,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1331
1348
  $: ComponentInternalInstance;
1332
1349
  $data: {};
1333
1350
  $props: Partial<{
1334
- modelValue: FieldValues;
1335
1351
  collapseDuration: number;
1336
1352
  collapseTransition: boolean;
1337
1353
  columns: PlusColumn[];
1338
1354
  group: false | PlusFormGroupRow[];
1339
1355
  layout: "grid" | "flex";
1356
+ modelValue: FieldValues;
1340
1357
  rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1341
1358
  labelPosition: "top" | "right" | "left";
1342
1359
  labelWidth: string | number;
@@ -1357,7 +1374,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1357
1374
  submitText: string;
1358
1375
  resetText: string;
1359
1376
  submitLoading: boolean;
1360
- footerAlign: "center" | "right" | "left";
1377
+ footerAlign: "right" | "left" | "center";
1361
1378
  cardProps: Partial< Mutable<CardProps> & {
1362
1379
  style?: CSSProperties | undefined;
1363
1380
  class?: any;
@@ -1365,9 +1382,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1365
1382
  prevent: boolean;
1366
1383
  clearable: boolean;
1367
1384
  }> & Omit<{
1368
- readonly modelValue: FieldValues;
1369
1385
  readonly columns: PlusColumn[];
1370
1386
  readonly group: false | PlusFormGroupRow[];
1387
+ readonly modelValue: FieldValues;
1371
1388
  readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1372
1389
  readonly labelPosition: "top" | "right" | "left";
1373
1390
  readonly labelWidth: string | number;
@@ -1388,7 +1405,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1388
1405
  readonly submitText: string;
1389
1406
  readonly resetText: string;
1390
1407
  readonly submitLoading: boolean;
1391
- readonly footerAlign: "center" | "right" | "left";
1408
+ readonly footerAlign: "right" | "left" | "center";
1392
1409
  readonly cardProps: Partial< Mutable<CardProps> & {
1393
1410
  style?: CSSProperties | undefined;
1394
1411
  class?: any;
@@ -1398,17 +1415,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1398
1415
  readonly collapseDuration?: number | undefined;
1399
1416
  readonly collapseTransition?: boolean | undefined;
1400
1417
  readonly layout?: "grid" | "flex" | undefined;
1401
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1402
1418
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1403
1419
  onReset?: ((values: FieldValues) => any) | undefined;
1404
1420
  onSubmit?: ((values: FieldValues) => any) | undefined;
1421
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1405
1422
  onValidate?: ((...args: any[]) => any) | undefined;
1406
1423
  onSubmitError?: ((errors: unknown) => any) | undefined;
1407
1424
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
1408
- modelValue: {
1409
- type: PropType<FieldValues>;
1410
- default: () => {};
1411
- };
1412
1425
  collapseDuration: {
1413
1426
  type: PropType<number>;
1414
1427
  default: undefined;
@@ -1429,6 +1442,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1429
1442
  type: PropType<"grid" | "flex">;
1430
1443
  default: undefined;
1431
1444
  };
1445
+ modelValue: {
1446
+ type: PropType<FieldValues>;
1447
+ default: () => {};
1448
+ };
1432
1449
  rules: {
1433
1450
  type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1434
1451
  default: () => {};
@@ -1492,7 +1509,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1492
1509
  default: boolean;
1493
1510
  };
1494
1511
  footerAlign: {
1495
- type: PropType<"center" | "right" | "left">;
1512
+ type: PropType<"right" | "left" | "center">;
1496
1513
  default: string;
1497
1514
  };
1498
1515
  cardProps: {
@@ -1511,13 +1528,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1511
1528
  default: boolean;
1512
1529
  };
1513
1530
  }>> & {
1514
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1515
1531
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1516
1532
  onReset?: ((values: FieldValues) => any) | undefined;
1517
1533
  onSubmit?: ((values: FieldValues) => any) | undefined;
1534
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1518
1535
  onValidate?: ((...args: any[]) => any) | undefined;
1519
1536
  onSubmitError?: ((errors: unknown) => any) | undefined;
1520
- }, "modelValue" | "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
1537
+ }, "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
1521
1538
  $attrs: {
1522
1539
  [x: string]: unknown;
1523
1540
  };
@@ -1529,13 +1546,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1529
1546
  }>;
1530
1547
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1531
1548
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1532
- $emit: ((event: "update:modelValue", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
1549
+ $emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
1533
1550
  $el: any;
1534
1551
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
1535
- modelValue: {
1536
- type: PropType<FieldValues>;
1537
- default: () => {};
1538
- };
1539
1552
  collapseDuration: {
1540
1553
  type: PropType<number>;
1541
1554
  default: undefined;
@@ -1556,6 +1569,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1556
1569
  type: PropType<"grid" | "flex">;
1557
1570
  default: undefined;
1558
1571
  };
1572
+ modelValue: {
1573
+ type: PropType<FieldValues>;
1574
+ default: () => {};
1575
+ };
1559
1576
  rules: {
1560
1577
  type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1561
1578
  default: () => {};
@@ -1619,7 +1636,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1619
1636
  default: boolean;
1620
1637
  };
1621
1638
  footerAlign: {
1622
- type: PropType<"center" | "right" | "left">;
1639
+ type: PropType<"right" | "left" | "center">;
1623
1640
  default: string;
1624
1641
  };
1625
1642
  cardProps: {
@@ -1638,10 +1655,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1638
1655
  default: boolean;
1639
1656
  };
1640
1657
  }>> & {
1641
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1642
1658
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1643
1659
  onReset?: ((values: FieldValues) => any) | undefined;
1644
1660
  onSubmit?: ((values: FieldValues) => any) | undefined;
1661
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1645
1662
  onValidate?: ((...args: any[]) => any) | undefined;
1646
1663
  onSubmitError?: ((errors: unknown) => any) | undefined;
1647
1664
  }, {
@@ -1656,12 +1673,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1656
1673
  submitError: (errors: unknown) => void;
1657
1674
  validate: (...args: any[]) => void;
1658
1675
  }, string, {
1659
- modelValue: FieldValues;
1660
1676
  collapseDuration: number;
1661
1677
  collapseTransition: boolean;
1662
1678
  columns: PlusColumn[];
1663
1679
  group: false | PlusFormGroupRow[];
1664
1680
  layout: "grid" | "flex";
1681
+ modelValue: FieldValues;
1665
1682
  rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1666
1683
  labelPosition: "top" | "right" | "left";
1667
1684
  labelWidth: string | number;
@@ -1682,7 +1699,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1682
1699
  submitText: string;
1683
1700
  resetText: string;
1684
1701
  submitLoading: boolean;
1685
- footerAlign: "center" | "right" | "left";
1702
+ footerAlign: "right" | "left" | "center";
1686
1703
  cardProps: Partial< Mutable<CardProps> & {
1687
1704
  style?: CSSProperties | undefined;
1688
1705
  class?: any;
@@ -1710,10 +1727,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1710
1727
  $nextTick: nextTick;
1711
1728
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1712
1729
  } & Omit<Readonly< ExtractPropTypes<{
1713
- modelValue: {
1714
- type: PropType<FieldValues>;
1715
- default: () => {};
1716
- };
1717
1730
  collapseDuration: {
1718
1731
  type: PropType<number>;
1719
1732
  default: undefined;
@@ -1734,6 +1747,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1734
1747
  type: PropType<"grid" | "flex">;
1735
1748
  default: undefined;
1736
1749
  };
1750
+ modelValue: {
1751
+ type: PropType<FieldValues>;
1752
+ default: () => {};
1753
+ };
1737
1754
  rules: {
1738
1755
  type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1739
1756
  default: () => {};
@@ -1797,7 +1814,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1797
1814
  default: boolean;
1798
1815
  };
1799
1816
  footerAlign: {
1800
- type: PropType<"center" | "right" | "left">;
1817
+ type: PropType<"right" | "left" | "center">;
1801
1818
  default: string;
1802
1819
  };
1803
1820
  cardProps: {
@@ -1816,10 +1833,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1816
1833
  default: boolean;
1817
1834
  };
1818
1835
  }>> & {
1819
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1820
1836
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1821
1837
  onReset?: ((values: FieldValues) => any) | undefined;
1822
1838
  onSubmit?: ((values: FieldValues) => any) | undefined;
1839
+ "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1823
1840
  onValidate?: ((...args: any[]) => any) | undefined;
1824
1841
  onSubmitError?: ((errors: unknown) => any) | undefined;
1825
1842
  }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
@@ -1839,14 +1856,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1839
1856
  hideInGroup?: boolean | ComputedRef<boolean> | undefined;
1840
1857
  columns?: PlusColumn[] | undefined;
1841
1858
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1842
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1859
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1843
1860
  readonly label: string | ComputedRef<string>;
1844
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1861
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1845
1862
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1846
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1863
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
1847
1864
  style?: CSSProperties | undefined;
1848
1865
  class?: any;
1849
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1866
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1850
1867
  style?: CSSProperties | undefined;
1851
1868
  class?: any;
1852
1869
  } & RecordType>>;
@@ -1871,6 +1888,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1871
1888
  type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "range" | "password" | "email" | "tel" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1872
1889
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
1873
1890
  step: string | number;
1891
+ /**
1892
+ * 所有列字段为空时显示的默认文本(全局配置)
1893
+ * @version v0.2.0
1894
+ * @default "-"
1895
+ * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
1896
+ * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
1897
+ * @desc 仅对未定义 render/renderHTML 的字段生效
1898
+ */
1874
1899
  format: string | ProgressFn | undefined;
1875
1900
  filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1876
1901
  id: string | [string, string];
@@ -1913,12 +1938,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1913
1938
  fieldInstance?: any;
1914
1939
  valueIsReady?: Ref<boolean> | undefined;
1915
1940
  prop: string;
1916
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1941
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1917
1942
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1918
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1943
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
1919
1944
  style?: CSSProperties | undefined;
1920
1945
  class?: any;
1921
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1946
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1922
1947
  style?: CSSProperties | undefined;
1923
1948
  class?: any;
1924
1949
  } & RecordType>>;
@@ -1947,14 +1972,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1947
1972
  clearable: boolean;
1948
1973
  index: number;
1949
1974
  }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1950
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1975
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1951
1976
  readonly label: string | ComputedRef<string>;
1952
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1977
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1953
1978
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1954
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1979
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
1955
1980
  style?: CSSProperties | undefined;
1956
1981
  class?: any;
1957
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1982
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1958
1983
  style?: CSSProperties | undefined;
1959
1984
  class?: any;
1960
1985
  } & RecordType>>;
@@ -1979,6 +2004,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1979
2004
  type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "range" | "password" | "email" | "tel" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1980
2005
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
1981
2006
  step: string | number;
2007
+ /**
2008
+ * 所有列字段为空时显示的默认文本(全局配置)
2009
+ * @version v0.2.0
2010
+ * @default "-"
2011
+ * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
2012
+ * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
2013
+ * @desc 仅对未定义 render/renderHTML 的字段生效
2014
+ */
1982
2015
  format: string | ProgressFn | undefined;
1983
2016
  filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1984
2017
  id: string | [string, string];
@@ -2021,12 +2054,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2021
2054
  fieldInstance?: any;
2022
2055
  valueIsReady?: Ref<boolean> | undefined;
2023
2056
  prop: string;
2024
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2057
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2025
2058
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2026
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
2059
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
2027
2060
  style?: CSSProperties | undefined;
2028
2061
  class?: any;
2029
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2062
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2030
2063
  style?: CSSProperties | undefined;
2031
2064
  class?: any;
2032
2065
  } & RecordType>>;
@@ -2073,14 +2106,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2073
2106
  handleUnfold: (e: MouseEvent) => void;
2074
2107
  }> & {} & ComponentCustomProperties & {} & {
2075
2108
  $slots: Partial<Record<NonNullable<string | number>, (_: {
2076
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
2109
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
2077
2110
  readonly label: string | ComputedRef<string>;
2078
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2111
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2079
2112
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2080
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
2113
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
2081
2114
  style?: CSSProperties | undefined;
2082
2115
  class?: any;
2083
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2116
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2084
2117
  style?: CSSProperties | undefined;
2085
2118
  class?: any;
2086
2119
  } & RecordType>>;
@@ -2105,6 +2138,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2105
2138
  type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "range" | "password" | "email" | "tel" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
2106
2139
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
2107
2140
  step: string | number;
2141
+ /**
2142
+ * 所有列字段为空时显示的默认文本(全局配置)
2143
+ * @version v0.2.0
2144
+ * @default "-"
2145
+ * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
2146
+ * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
2147
+ * @desc 仅对未定义 render/renderHTML 的字段生效
2148
+ */
2108
2149
  format: string | ProgressFn | undefined;
2109
2150
  filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
2110
2151
  id: string | [string, string];
@@ -2147,12 +2188,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2147
2188
  fieldInstance?: any;
2148
2189
  valueIsReady?: Ref<boolean> | undefined;
2149
2190
  prop: string;
2150
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2191
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2151
2192
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2152
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
2193
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
2153
2194
  style?: CSSProperties | undefined;
2154
2195
  class?: any;
2155
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2196
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2156
2197
  style?: CSSProperties | undefined;
2157
2198
  class?: any;
2158
2199
  } & RecordType>>;
@@ -2198,9 +2239,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2198
2239
  columns: PlusColumn[];
2199
2240
  headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2200
2241
  row: any[];
2201
- /**
2202
- * 可以修改默认的分页参数
2203
- */
2204
2242
  rowIndex: number;
2205
2243
  column: TableColumnCtx<any[]>;
2206
2244
  columnIndex: number;
@@ -2248,9 +2286,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2248
2286
  readonly columns: PlusColumn[];
2249
2287
  readonly headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2250
2288
  row: any[];
2251
- /**
2252
- * 可以修改默认的分页参数
2253
- */
2254
2289
  rowIndex: number;
2255
2290
  column: TableColumnCtx<any[]>;
2256
2291
  columnIndex: number;
@@ -2321,9 +2356,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2321
2356
  headerCellStyle: {
2322
2357
  type: PropType<Partial< CSSProperties> | Partial<(data: {
2323
2358
  row: any[];
2324
- /**
2325
- * 可以修改默认的分页参数
2326
- */
2327
2359
  rowIndex: number;
2328
2360
  column: TableColumnCtx<any[]>;
2329
2361
  columnIndex: number;
@@ -2487,9 +2519,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2487
2519
  headerCellStyle: {
2488
2520
  type: PropType<Partial< CSSProperties> | Partial<(data: {
2489
2521
  row: any[];
2490
- /**
2491
- * 可以修改默认的分页参数
2492
- */
2493
2522
  rowIndex: number;
2494
2523
  column: TableColumnCtx<any[]>;
2495
2524
  columnIndex: number;
@@ -2644,9 +2673,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2644
2673
  columns: PlusColumn[];
2645
2674
  headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2646
2675
  row: any[];
2647
- /**
2648
- * 可以修改默认的分页参数
2649
- */
2650
2676
  rowIndex: number;
2651
2677
  column: TableColumnCtx<any[]>;
2652
2678
  columnIndex: number;
@@ -2724,9 +2750,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2724
2750
  headerCellStyle: {
2725
2751
  type: PropType<Partial< CSSProperties> | Partial<(data: {
2726
2752
  row: any[];
2727
- /**
2728
- * 可以修改默认的分页参数
2729
- */
2730
2753
  rowIndex: number;
2731
2754
  column: TableColumnCtx<any[]>;
2732
2755
  columnIndex: number;
@@ -2890,6 +2913,548 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2890
2913
  "pagination-right"?(_: {}): any;
2891
2914
  };
2892
2915
  }) | null>;
2916
+ plusVirtualTableInstance: Ref<({
2917
+ $: ComponentInternalInstance;
2918
+ $data: {};
2919
+ $props: Partial<{
2920
+ fixed: boolean;
2921
+ data: RecordType[];
2922
+ columns: PlusColumn[];
2923
+ border: boolean;
2924
+ rowKey: string;
2925
+ actionBar: false | Partial< ActionBarProps>;
2926
+ stripe: boolean;
2927
+ scrollbarAlwaysOn: boolean;
2928
+ titleBar: boolean | {
2929
+ title?: string | undefined;
2930
+ refresh?: boolean | undefined;
2931
+ };
2932
+ defaultSize: "" | "default" | "small" | "large";
2933
+ tableData: RecordType[];
2934
+ pagination: false | Partial<PlusPaginationProps>;
2935
+ hasIndexColumn: boolean;
2936
+ isSelection: boolean;
2937
+ loadingStatus: boolean;
2938
+ columnsEmptyText: string;
2939
+ headerHeight: number;
2940
+ rowHeight: number;
2941
+ defaultColumnWidth: number;
2942
+ selectionColumnWidth: number;
2943
+ indexColumnWidth: number;
2944
+ }> & Omit<{
2945
+ readonly fixed: boolean;
2946
+ readonly data: RecordType[];
2947
+ readonly columns: PlusColumn[];
2948
+ readonly border: boolean;
2949
+ readonly rowKey: string;
2950
+ readonly actionBar: false | Partial< ActionBarProps>;
2951
+ readonly stripe: boolean;
2952
+ readonly scrollbarAlwaysOn: boolean;
2953
+ readonly titleBar: boolean | {
2954
+ title?: string | undefined;
2955
+ refresh?: boolean | undefined;
2956
+ };
2957
+ readonly defaultSize: "" | "default" | "small" | "large";
2958
+ readonly tableData: RecordType[];
2959
+ readonly pagination: false | Partial<PlusPaginationProps>;
2960
+ readonly hasIndexColumn: boolean;
2961
+ readonly isSelection: boolean;
2962
+ readonly loadingStatus: boolean;
2963
+ readonly columnsEmptyText: string;
2964
+ readonly headerHeight: number;
2965
+ readonly rowHeight: number;
2966
+ readonly defaultColumnWidth: number;
2967
+ readonly selectionColumnWidth: number;
2968
+ readonly indexColumnWidth: number;
2969
+ readonly width?: string | number | undefined;
2970
+ readonly height?: string | number | undefined;
2971
+ readonly headerCellStyle?: CSSProperties | undefined;
2972
+ readonly rowStyle?: CSSProperties | ((params: {
2973
+ rowData: RecordType;
2974
+ rowIndex: number;
2975
+ }) => CSSProperties) | undefined;
2976
+ readonly rowClass?: string | ((params: {
2977
+ rowData: RecordType;
2978
+ rowIndex: number;
2979
+ }) => string) | undefined;
2980
+ onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
2981
+ onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2982
+ "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
2983
+ "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
2984
+ "onSort-change"?: ((data: {
2985
+ column: VirtualTableColumn;
2986
+ prop: string;
2987
+ order: string | null;
2988
+ }) => any) | undefined;
2989
+ "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
2990
+ onRefresh?: (() => any) | undefined;
2991
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2992
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
2993
+ fixed: {
2994
+ type: PropType<boolean>;
2995
+ default: boolean;
2996
+ };
2997
+ data: {
2998
+ type: PropType<RecordType[]>;
2999
+ default: () => never[];
3000
+ };
3001
+ width: {
3002
+ type: PropType<string | number>;
3003
+ };
3004
+ columns: {
3005
+ type: PropType<PlusColumn[]>;
3006
+ default: () => never[];
3007
+ };
3008
+ border: {
3009
+ type: PropType<boolean>;
3010
+ default: boolean;
3011
+ };
3012
+ height: {
3013
+ type: PropType<string | number>;
3014
+ };
3015
+ headerCellStyle: {
3016
+ type: PropType<CSSProperties>;
3017
+ };
3018
+ rowKey: {
3019
+ type: PropType<string>;
3020
+ default: string;
3021
+ };
3022
+ actionBar: {
3023
+ type: PropType<false | Partial< ActionBarProps>>;
3024
+ default: boolean;
3025
+ };
3026
+ stripe: {
3027
+ type: PropType<boolean>;
3028
+ default: boolean;
3029
+ };
3030
+ rowStyle: {
3031
+ type: PropType< CSSProperties | ((params: {
3032
+ rowData: RecordType;
3033
+ rowIndex: number;
3034
+ }) => CSSProperties)>;
3035
+ };
3036
+ scrollbarAlwaysOn: {
3037
+ type: PropType<boolean>;
3038
+ default: boolean;
3039
+ };
3040
+ titleBar: {
3041
+ type: PropType<boolean | {
3042
+ title?: string | undefined;
3043
+ refresh?: boolean | undefined;
3044
+ }>;
3045
+ default: boolean;
3046
+ };
3047
+ defaultSize: {
3048
+ type: PropType<"" | "default" | "small" | "large">;
3049
+ default: string;
3050
+ };
3051
+ tableData: {
3052
+ type: PropType<RecordType[]>;
3053
+ default: () => never[];
3054
+ };
3055
+ pagination: {
3056
+ type: PropType<false | Partial<PlusPaginationProps>>;
3057
+ default: boolean;
3058
+ };
3059
+ hasIndexColumn: {
3060
+ type: PropType<boolean>;
3061
+ default: boolean;
3062
+ };
3063
+ isSelection: {
3064
+ type: PropType<boolean>;
3065
+ default: boolean;
3066
+ };
3067
+ loadingStatus: {
3068
+ type: PropType<boolean>;
3069
+ default: boolean;
3070
+ };
3071
+ columnsEmptyText: {
3072
+ type: PropType<string>;
3073
+ default: string;
3074
+ };
3075
+ headerHeight: {
3076
+ type: PropType<number>;
3077
+ default: number;
3078
+ };
3079
+ rowClass: {
3080
+ type: PropType<string | ((params: {
3081
+ rowData: RecordType;
3082
+ rowIndex: number;
3083
+ }) => string)>;
3084
+ };
3085
+ rowHeight: {
3086
+ type: PropType<number>;
3087
+ default: number;
3088
+ };
3089
+ defaultColumnWidth: {
3090
+ type: PropType<number>;
3091
+ default: number;
3092
+ };
3093
+ selectionColumnWidth: {
3094
+ type: PropType<number>;
3095
+ default: number;
3096
+ };
3097
+ indexColumnWidth: {
3098
+ type: PropType<number>;
3099
+ default: number;
3100
+ };
3101
+ }>> & {
3102
+ onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3103
+ onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3104
+ "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3105
+ "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3106
+ "onSort-change"?: ((data: {
3107
+ column: VirtualTableColumn;
3108
+ prop: string;
3109
+ order: string | null;
3110
+ }) => any) | undefined;
3111
+ "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3112
+ onRefresh?: (() => any) | undefined;
3113
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3114
+ }, "fixed" | "data" | "columns" | "border" | "rowKey" | "actionBar" | "stripe" | "scrollbarAlwaysOn" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "loadingStatus" | "columnsEmptyText" | "headerHeight" | "rowHeight" | "defaultColumnWidth" | "selectionColumnWidth" | "indexColumnWidth">;
3115
+ $attrs: {
3116
+ [x: string]: unknown;
3117
+ };
3118
+ $refs: {
3119
+ [x: string]: unknown;
3120
+ };
3121
+ $slots: Readonly<{
3122
+ [name: string]: Slot<any> | undefined;
3123
+ }>;
3124
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3125
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3126
+ $emit: ((event: "select", selection: RecordType[], row: RecordType) => void) & ((event: "select-all", selection: RecordType[]) => void) & ((event: "selection-change", selection: RecordType[]) => void) & ((event: "row-click", rowData: RecordType, rowIndex: number) => void) & ((event: "sort-change", data: {
3127
+ column: VirtualTableColumn;
3128
+ prop: string;
3129
+ order: string | null;
3130
+ }) => void) & ((event: "paginationChange", pageInfo: PageInfo) => void) & ((event: "clickAction", data: ButtonsCallBackParams) => void) & ((event: "refresh") => void);
3131
+ $el: any;
3132
+ $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
3133
+ fixed: {
3134
+ type: PropType<boolean>;
3135
+ default: boolean;
3136
+ };
3137
+ data: {
3138
+ type: PropType<RecordType[]>;
3139
+ default: () => never[];
3140
+ };
3141
+ width: {
3142
+ type: PropType<string | number>;
3143
+ };
3144
+ columns: {
3145
+ type: PropType<PlusColumn[]>;
3146
+ default: () => never[];
3147
+ };
3148
+ border: {
3149
+ type: PropType<boolean>;
3150
+ default: boolean;
3151
+ };
3152
+ height: {
3153
+ type: PropType<string | number>;
3154
+ };
3155
+ headerCellStyle: {
3156
+ type: PropType<CSSProperties>;
3157
+ };
3158
+ rowKey: {
3159
+ type: PropType<string>;
3160
+ default: string;
3161
+ };
3162
+ actionBar: {
3163
+ type: PropType<false | Partial< ActionBarProps>>;
3164
+ default: boolean;
3165
+ };
3166
+ stripe: {
3167
+ type: PropType<boolean>;
3168
+ default: boolean;
3169
+ };
3170
+ rowStyle: {
3171
+ type: PropType< CSSProperties | ((params: {
3172
+ rowData: RecordType;
3173
+ rowIndex: number;
3174
+ }) => CSSProperties)>;
3175
+ };
3176
+ scrollbarAlwaysOn: {
3177
+ type: PropType<boolean>;
3178
+ default: boolean;
3179
+ };
3180
+ titleBar: {
3181
+ type: PropType<boolean | {
3182
+ title?: string | undefined;
3183
+ refresh?: boolean | undefined;
3184
+ }>;
3185
+ default: boolean;
3186
+ };
3187
+ defaultSize: {
3188
+ type: PropType<"" | "default" | "small" | "large">;
3189
+ default: string;
3190
+ };
3191
+ tableData: {
3192
+ type: PropType<RecordType[]>;
3193
+ default: () => never[];
3194
+ };
3195
+ pagination: {
3196
+ type: PropType<false | Partial<PlusPaginationProps>>;
3197
+ default: boolean;
3198
+ };
3199
+ hasIndexColumn: {
3200
+ type: PropType<boolean>;
3201
+ default: boolean;
3202
+ };
3203
+ isSelection: {
3204
+ type: PropType<boolean>;
3205
+ default: boolean;
3206
+ };
3207
+ loadingStatus: {
3208
+ type: PropType<boolean>;
3209
+ default: boolean;
3210
+ };
3211
+ columnsEmptyText: {
3212
+ type: PropType<string>;
3213
+ default: string;
3214
+ };
3215
+ headerHeight: {
3216
+ type: PropType<number>;
3217
+ default: number;
3218
+ };
3219
+ rowClass: {
3220
+ type: PropType<string | ((params: {
3221
+ rowData: RecordType;
3222
+ rowIndex: number;
3223
+ }) => string)>;
3224
+ };
3225
+ rowHeight: {
3226
+ type: PropType<number>;
3227
+ default: number;
3228
+ };
3229
+ defaultColumnWidth: {
3230
+ type: PropType<number>;
3231
+ default: number;
3232
+ };
3233
+ selectionColumnWidth: {
3234
+ type: PropType<number>;
3235
+ default: number;
3236
+ };
3237
+ indexColumnWidth: {
3238
+ type: PropType<number>;
3239
+ default: number;
3240
+ };
3241
+ }>> & {
3242
+ onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3243
+ onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3244
+ "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3245
+ "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3246
+ "onSort-change"?: ((data: {
3247
+ column: VirtualTableColumn;
3248
+ prop: string;
3249
+ order: string | null;
3250
+ }) => any) | undefined;
3251
+ "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3252
+ onRefresh?: (() => any) | undefined;
3253
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3254
+ }, {
3255
+ getSelectionRows: () => RecordType[];
3256
+ clearSelection: () => void;
3257
+ toggleRowSelection: (row: RecordType, selected?: boolean | undefined) => void;
3258
+ toggleAllSelection: (selected?: boolean | undefined) => void;
3259
+ scrollToRow: (rowIndex: number) => void;
3260
+ data: ComputedRef<RecordType[]>;
3261
+ tableRef: ShallowRef< TableV2Instance | null>;
3262
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3263
+ paginationChange: (pageInfo: PageInfo) => void;
3264
+ clickAction: (data: ButtonsCallBackParams) => void;
3265
+ "selection-change": (selection: RecordType[]) => void;
3266
+ select: (selection: RecordType[], row: RecordType) => void;
3267
+ "select-all": (selection: RecordType[]) => void;
3268
+ refresh: () => void;
3269
+ "row-click": (rowData: RecordType, rowIndex: number) => void;
3270
+ "sort-change": (data: {
3271
+ column: VirtualTableColumn;
3272
+ prop: string;
3273
+ order: string | null;
3274
+ }) => void;
3275
+ }, string, {
3276
+ fixed: boolean;
3277
+ data: RecordType[];
3278
+ columns: PlusColumn[];
3279
+ border: boolean;
3280
+ rowKey: string;
3281
+ actionBar: false | Partial< ActionBarProps>;
3282
+ stripe: boolean;
3283
+ scrollbarAlwaysOn: boolean;
3284
+ titleBar: boolean | {
3285
+ title?: string | undefined;
3286
+ refresh?: boolean | undefined;
3287
+ };
3288
+ defaultSize: "" | "default" | "small" | "large";
3289
+ tableData: RecordType[];
3290
+ pagination: false | Partial<PlusPaginationProps>;
3291
+ hasIndexColumn: boolean;
3292
+ isSelection: boolean;
3293
+ loadingStatus: boolean;
3294
+ columnsEmptyText: string;
3295
+ headerHeight: number;
3296
+ rowHeight: number;
3297
+ defaultColumnWidth: number;
3298
+ selectionColumnWidth: number;
3299
+ indexColumnWidth: number;
3300
+ }, {}, string, {}> & {
3301
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
3302
+ created?: ((() => void) | (() => void)[]) | undefined;
3303
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
3304
+ mounted?: ((() => void) | (() => void)[]) | undefined;
3305
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
3306
+ updated?: ((() => void) | (() => void)[]) | undefined;
3307
+ activated?: ((() => void) | (() => void)[]) | undefined;
3308
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
3309
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
3310
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
3311
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
3312
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
3313
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
3314
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
3315
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
3316
+ };
3317
+ $forceUpdate: () => void;
3318
+ $nextTick: nextTick;
3319
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
3320
+ } & Omit<Readonly< ExtractPropTypes<{
3321
+ fixed: {
3322
+ type: PropType<boolean>;
3323
+ default: boolean;
3324
+ };
3325
+ data: {
3326
+ type: PropType<RecordType[]>;
3327
+ default: () => never[];
3328
+ };
3329
+ width: {
3330
+ type: PropType<string | number>;
3331
+ };
3332
+ columns: {
3333
+ type: PropType<PlusColumn[]>;
3334
+ default: () => never[];
3335
+ };
3336
+ border: {
3337
+ type: PropType<boolean>;
3338
+ default: boolean;
3339
+ };
3340
+ height: {
3341
+ type: PropType<string | number>;
3342
+ };
3343
+ headerCellStyle: {
3344
+ type: PropType<CSSProperties>;
3345
+ };
3346
+ rowKey: {
3347
+ type: PropType<string>;
3348
+ default: string;
3349
+ };
3350
+ actionBar: {
3351
+ type: PropType<false | Partial< ActionBarProps>>;
3352
+ default: boolean;
3353
+ };
3354
+ stripe: {
3355
+ type: PropType<boolean>;
3356
+ default: boolean;
3357
+ };
3358
+ rowStyle: {
3359
+ type: PropType< CSSProperties | ((params: {
3360
+ rowData: RecordType;
3361
+ rowIndex: number;
3362
+ }) => CSSProperties)>;
3363
+ };
3364
+ scrollbarAlwaysOn: {
3365
+ type: PropType<boolean>;
3366
+ default: boolean;
3367
+ };
3368
+ titleBar: {
3369
+ type: PropType<boolean | {
3370
+ title?: string | undefined;
3371
+ refresh?: boolean | undefined;
3372
+ }>;
3373
+ default: boolean;
3374
+ };
3375
+ defaultSize: {
3376
+ type: PropType<"" | "default" | "small" | "large">;
3377
+ default: string;
3378
+ };
3379
+ tableData: {
3380
+ type: PropType<RecordType[]>;
3381
+ default: () => never[];
3382
+ };
3383
+ pagination: {
3384
+ type: PropType<false | Partial<PlusPaginationProps>>;
3385
+ default: boolean;
3386
+ };
3387
+ hasIndexColumn: {
3388
+ type: PropType<boolean>;
3389
+ default: boolean;
3390
+ };
3391
+ isSelection: {
3392
+ type: PropType<boolean>;
3393
+ default: boolean;
3394
+ };
3395
+ loadingStatus: {
3396
+ type: PropType<boolean>;
3397
+ default: boolean;
3398
+ };
3399
+ columnsEmptyText: {
3400
+ type: PropType<string>;
3401
+ default: string;
3402
+ };
3403
+ headerHeight: {
3404
+ type: PropType<number>;
3405
+ default: number;
3406
+ };
3407
+ rowClass: {
3408
+ type: PropType<string | ((params: {
3409
+ rowData: RecordType;
3410
+ rowIndex: number;
3411
+ }) => string)>;
3412
+ };
3413
+ rowHeight: {
3414
+ type: PropType<number>;
3415
+ default: number;
3416
+ };
3417
+ defaultColumnWidth: {
3418
+ type: PropType<number>;
3419
+ default: number;
3420
+ };
3421
+ selectionColumnWidth: {
3422
+ type: PropType<number>;
3423
+ default: number;
3424
+ };
3425
+ indexColumnWidth: {
3426
+ type: PropType<number>;
3427
+ default: number;
3428
+ };
3429
+ }>> & {
3430
+ onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3431
+ onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3432
+ "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3433
+ "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3434
+ "onSort-change"?: ((data: {
3435
+ column: VirtualTableColumn;
3436
+ prop: string;
3437
+ order: string | null;
3438
+ }) => any) | undefined;
3439
+ "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3440
+ onRefresh?: (() => any) | undefined;
3441
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3442
+ }, "data" | "getSelectionRows" | "toggleRowSelection" | "clearSelection" | "toggleAllSelection" | "tableRef" | "scrollToRow"> & ShallowUnwrapRef<{
3443
+ getSelectionRows: () => RecordType[];
3444
+ clearSelection: () => void;
3445
+ toggleRowSelection: (row: RecordType, selected?: boolean | undefined) => void;
3446
+ toggleAllSelection: (selected?: boolean | undefined) => void;
3447
+ scrollToRow: (rowIndex: number) => void;
3448
+ data: ComputedRef<RecordType[]>;
3449
+ tableRef: ShallowRef< TableV2Instance | null>;
3450
+ }> & {} & ComponentCustomProperties & {} & {
3451
+ $slots: {
3452
+ title?(_: {}): any;
3453
+ toolbar?(_: {}): any;
3454
+ "pagination-left"?(_: {}): any;
3455
+ "pagination-right"?(_: {}): any;
3456
+ };
3457
+ }) | null>;
2893
3458
  getList: () => Promise<void>;
2894
3459
  handleReset: (val: FieldValues) => void;
2895
3460
  /**
@@ -2954,7 +3519,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2954
3519
  columns: PlusColumn[];
2955
3520
  immediate: boolean;
2956
3521
  params: RecordType;
2957
- pagination: false | Omit<PlusPaginationProps, "modelValue" | "total" | "pageSizeList">;
3522
+ pagination: false | Omit<PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
2958
3523
  columnsEmptyText: string;
2959
3524
  postData: <T_1 = RecordType[]>(data: T_1[]) => T_1[];
2960
3525
  beforeSearchSubmit: <T_2 = RecordType>(params: T_2) => T_2;
@@ -2976,14 +3541,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2976
3541
  };
2977
3542
  searchSlot: boolean;
2978
3543
  }, {}>, Partial<Record<never, (_: {
2979
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
3544
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
2980
3545
  readonly label: string | ComputedRef<string>;
2981
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3546
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2982
3547
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2983
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
3548
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
2984
3549
  style?: CSSProperties | undefined;
2985
3550
  class?: any;
2986
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3551
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2987
3552
  style?: CSSProperties | undefined;
2988
3553
  class?: any;
2989
3554
  } & RecordType>>;
@@ -3008,6 +3573,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
3008
3573
  type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "range" | "password" | "email" | "tel" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
3009
3574
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
3010
3575
  step: string | number;
3576
+ /**
3577
+ * 所有列字段为空时显示的默认文本(全局配置)
3578
+ * @version v0.2.0
3579
+ * @default "-"
3580
+ * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
3581
+ * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
3582
+ * @desc 仅对未定义 render/renderHTML 的字段生效
3583
+ */
3011
3584
  format: string | ProgressFn | undefined;
3012
3585
  filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
3013
3586
  id: string | [string, string];
@@ -3050,12 +3623,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
3050
3623
  fieldInstance?: any;
3051
3624
  valueIsReady?: Ref<boolean> | undefined;
3052
3625
  prop: string;
3053
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3626
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3054
3627
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
3055
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
3628
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
3056
3629
  style?: CSSProperties | undefined;
3057
3630
  class?: any;
3058
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3631
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3059
3632
  style?: CSSProperties | undefined;
3060
3633
  class?: any;
3061
3634
  } & RecordType>>;
@@ -3104,6 +3677,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
3104
3677
  extra?(_: {}): any;
3105
3678
  "table-title"?(_: {}): any;
3106
3679
  "table-toolbar"?(_: {}): any;
3680
+ "pagination-left"?(_: {}): any;
3681
+ "pagination-right"?(_: {}): any;
3107
3682
  "table-expand"?(_: any): any;
3108
3683
  "table-append"?(_: {}): any;
3109
3684
  "table-empty"?(_: {}): any;