yc-pro-components 0.0.84 → 1.0.0

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 (216) hide show
  1. package/es/components/check-card/index.d.ts +38 -38
  2. package/es/components/check-card/src/index.vue.d.ts +2 -2
  3. package/es/components/check-card-group/index.d.ts +19 -19
  4. package/es/components/check-card-group/src/index.vue.d.ts +1 -1
  5. package/es/components/date-picker/index.d.ts +10 -10
  6. package/es/components/date-picker/src/index.vue.d.ts +10 -10
  7. package/es/components/form/src/form-content.vue2.mjs +11 -2
  8. package/es/components/form/src/index.vue2.mjs +5 -2
  9. package/es/components/form/src/type.d.ts +5 -0
  10. package/es/components/form-item/src/index.vue2.mjs +9 -3
  11. package/es/components/header/index.d.ts +19 -19
  12. package/es/components/header/src/index.vue.d.ts +1 -1
  13. package/es/components/index.d.ts +1 -0
  14. package/es/components/index.mjs +1 -0
  15. package/es/components/input-tag/index.d.ts +9 -9
  16. package/es/components/input-tag/src/index.vue.d.ts +1 -1
  17. package/es/components/page/src/index.vue2.mjs +31 -13
  18. package/es/components/radio/index.d.ts +23 -23
  19. package/es/components/radio/src/index.vue.d.ts +23 -23
  20. package/es/components/render/index.d.ts +6 -6
  21. package/es/components/render/src/index.vue.d.ts +2 -2
  22. package/es/components/search/src/index.vue2.mjs +4 -1
  23. package/es/components/search/src/type.d.ts +5 -0
  24. package/es/components/yc-count-to/index.d.ts +1 -1
  25. package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
  26. package/es/components/yc-dialog/index.d.ts +24 -24
  27. package/es/components/yc-more-actions/index.d.ts +46 -46
  28. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  29. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  30. package/es/components/yc-plus-page/src/index.vue2.mjs +24 -13
  31. package/es/components/yc-plus-page/src/type.d.ts +5 -0
  32. package/es/components/yc-query-filter/index.d.ts +7 -0
  33. package/es/components/yc-query-filter/index.mjs +6 -0
  34. package/es/components/yc-query-filter/src/index.vue.d.ts +32 -0
  35. package/es/components/yc-query-filter/src/index.vue.mjs +6 -0
  36. package/es/components/yc-query-filter/src/index.vue2.mjs +662 -0
  37. package/es/components/yc-query-filter/src/serialize.d.ts +4 -0
  38. package/es/components/yc-query-filter/src/serialize.mjs +17 -0
  39. package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
  40. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  41. package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  42. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  43. package/es/constants/index.d.ts +1 -0
  44. package/es/constants/index.mjs +1 -0
  45. package/es/constants/query-filter.d.ts +69 -0
  46. package/es/constants/query-filter.mjs +3 -0
  47. package/es/hooks/index.d.ts +1 -0
  48. package/es/hooks/index.mjs +1 -0
  49. package/es/hooks/useQueryFilterConfig.d.ts +11 -0
  50. package/es/hooks/useQueryFilterConfig.mjs +38 -0
  51. package/es/index.css +10 -10
  52. package/es/index.d.ts +1 -1
  53. package/es/index.mjs +3 -0
  54. package/es/locale/lang/en.d.ts +33 -0
  55. package/es/locale/lang/en.mjs +33 -0
  56. package/es/locale/lang/ja.d.ts +33 -0
  57. package/es/locale/lang/ja.mjs +33 -0
  58. package/es/locale/lang/ko.d.ts +33 -0
  59. package/es/locale/lang/ko.mjs +33 -0
  60. package/es/locale/lang/zh-cn.d.ts +33 -0
  61. package/es/locale/lang/zh-cn.mjs +33 -0
  62. package/es/locale/lang/zh-tw.d.ts +33 -0
  63. package/es/locale/lang/zh-tw.mjs +33 -0
  64. package/es/types/form.d.ts +5 -0
  65. package/es/version.d.ts +1 -1
  66. package/es/version.mjs +1 -1
  67. package/es/yc-components/index.d.ts +1 -1
  68. package/es/yc-components/version.d.ts +1 -1
  69. package/index.css +1 -1
  70. package/index.js +1097 -221
  71. package/index.min.css +1 -1
  72. package/index.min.js +16 -12
  73. package/index.min.mjs +16 -12
  74. package/index.mjs +1093 -223
  75. package/lib/components/check-card/index.d.ts +38 -38
  76. package/lib/components/check-card/src/index.vue.d.ts +2 -2
  77. package/lib/components/check-card-group/index.d.ts +19 -19
  78. package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
  79. package/lib/components/date-picker/index.d.ts +10 -10
  80. package/lib/components/date-picker/src/index.vue.d.ts +10 -10
  81. package/lib/components/form/src/form-content.vue2.js +11 -2
  82. package/lib/components/form/src/index.vue2.js +5 -2
  83. package/lib/components/form/src/type.d.ts +5 -0
  84. package/lib/components/form-item/src/index.vue2.js +9 -3
  85. package/lib/components/header/index.d.ts +19 -19
  86. package/lib/components/header/src/index.vue.d.ts +1 -1
  87. package/lib/components/index.d.ts +1 -0
  88. package/lib/components/index.js +3 -0
  89. package/lib/components/input-tag/index.d.ts +9 -9
  90. package/lib/components/input-tag/src/index.vue.d.ts +1 -1
  91. package/lib/components/page/src/index.vue2.js +31 -13
  92. package/lib/components/radio/index.d.ts +23 -23
  93. package/lib/components/radio/src/index.vue.d.ts +23 -23
  94. package/lib/components/render/index.d.ts +6 -6
  95. package/lib/components/render/src/index.vue.d.ts +2 -2
  96. package/lib/components/search/src/index.vue2.js +4 -1
  97. package/lib/components/search/src/type.d.ts +5 -0
  98. package/lib/components/yc-count-to/index.d.ts +1 -1
  99. package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
  100. package/lib/components/yc-dialog/index.d.ts +24 -24
  101. package/lib/components/yc-more-actions/index.d.ts +46 -46
  102. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  103. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  104. package/lib/components/yc-plus-page/src/index.vue2.js +26 -15
  105. package/lib/components/yc-plus-page/src/type.d.ts +5 -0
  106. package/lib/components/yc-query-filter/index.d.ts +7 -0
  107. package/lib/components/yc-query-filter/index.js +9 -0
  108. package/lib/components/yc-query-filter/src/index.vue.d.ts +32 -0
  109. package/lib/components/yc-query-filter/src/index.vue.js +10 -0
  110. package/lib/components/yc-query-filter/src/index.vue2.js +666 -0
  111. package/lib/components/yc-query-filter/src/serialize.d.ts +4 -0
  112. package/lib/components/yc-query-filter/src/serialize.js +20 -0
  113. package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
  114. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  115. package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  116. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  117. package/lib/constants/index.d.ts +1 -0
  118. package/lib/constants/index.js +2 -0
  119. package/lib/constants/query-filter.d.ts +69 -0
  120. package/lib/constants/query-filter.js +5 -0
  121. package/lib/hooks/index.d.ts +1 -0
  122. package/lib/hooks/index.js +4 -0
  123. package/lib/hooks/useQueryFilterConfig.d.ts +11 -0
  124. package/lib/hooks/useQueryFilterConfig.js +42 -0
  125. package/lib/index.css +9 -9
  126. package/lib/index.d.ts +1 -1
  127. package/lib/index.js +9 -0
  128. package/lib/locale/lang/en.d.ts +33 -0
  129. package/lib/locale/lang/en.js +33 -0
  130. package/lib/locale/lang/ja.d.ts +33 -0
  131. package/lib/locale/lang/ja.js +33 -0
  132. package/lib/locale/lang/ko.d.ts +33 -0
  133. package/lib/locale/lang/ko.js +33 -0
  134. package/lib/locale/lang/zh-cn.d.ts +33 -0
  135. package/lib/locale/lang/zh-cn.js +33 -0
  136. package/lib/locale/lang/zh-tw.d.ts +33 -0
  137. package/lib/locale/lang/zh-tw.js +33 -0
  138. package/lib/types/form.d.ts +5 -0
  139. package/lib/version.d.ts +1 -1
  140. package/lib/version.js +1 -1
  141. package/lib/yc-components/index.d.ts +1 -1
  142. package/lib/yc-components/version.d.ts +1 -1
  143. package/locale/en.d.ts +33 -0
  144. package/locale/en.js +34 -1
  145. package/locale/en.min.js +1 -1
  146. package/locale/en.min.mjs +1 -1
  147. package/locale/en.mjs +34 -1
  148. package/locale/ja.d.ts +33 -0
  149. package/locale/ja.js +34 -1
  150. package/locale/ja.min.js +1 -1
  151. package/locale/ja.min.mjs +1 -1
  152. package/locale/ja.mjs +34 -1
  153. package/locale/ko.d.ts +33 -0
  154. package/locale/ko.js +34 -1
  155. package/locale/ko.min.js +1 -1
  156. package/locale/ko.min.mjs +1 -1
  157. package/locale/ko.mjs +34 -1
  158. package/locale/zh-cn.d.ts +33 -0
  159. package/locale/zh-cn.js +34 -1
  160. package/locale/zh-cn.min.js +1 -1
  161. package/locale/zh-cn.min.mjs +1 -1
  162. package/locale/zh-cn.mjs +34 -1
  163. package/locale/zh-tw.d.ts +33 -0
  164. package/locale/zh-tw.js +34 -1
  165. package/locale/zh-tw.min.js +1 -1
  166. package/locale/zh-tw.min.mjs +1 -1
  167. package/locale/zh-tw.mjs +34 -1
  168. package/package.json +1 -1
  169. package/theme-chalk/index.css +1 -1
  170. package/theme-chalk/plus-form-item.css +1 -1
  171. package/theme-chalk/plus-yc-query-filter.css +1 -0
  172. package/theme-chalk/src/form-item.scss +60 -39
  173. package/theme-chalk/src/index.scss +1 -0
  174. package/theme-chalk/src/yc-query-filter.scss +163 -0
  175. package/es/components/breadcrumb/index.d.ts +0 -6985
  176. package/es/components/breadcrumb/src/index.vue.d.ts +0 -6947
  177. package/es/components/dialog-form/index.d.ts +0 -311
  178. package/es/components/dialog-form/src/index.vue.d.ts +0 -211
  179. package/es/components/display-item/index.d.ts +0 -571
  180. package/es/components/display-item/src/index.vue.d.ts +0 -437
  181. package/es/components/drawer-form/index.d.ts +0 -1589
  182. package/es/components/drawer-form/src/index.vue.d.ts +0 -627
  183. package/es/components/form/index.d.ts +0 -845
  184. package/es/components/form/src/form-content.vue.d.ts +0 -583
  185. package/es/components/form/src/index.vue.d.ts +0 -373
  186. package/es/components/form-item/index.d.ts +0 -1469
  187. package/es/components/form-item/src/index.vue.d.ts +0 -535
  188. package/es/components/page/index.d.ts +0 -10563
  189. package/es/components/page/src/index.vue.d.ts +0 -3712
  190. package/es/components/search/index.d.ts +0 -2892
  191. package/es/components/search/src/index.vue.d.ts +0 -994
  192. package/es/components/table/src/table-column.vue.d.ts +0 -615
  193. package/es/components/yc-drawer/store.d.ts +0 -2359
  194. package/es/components/yc-plus-page/src/index.vue.d.ts +0 -8127
  195. package/es/hooks/usePlusFormReset.d.ts +0 -4483
  196. package/lib/components/breadcrumb/index.d.ts +0 -6985
  197. package/lib/components/breadcrumb/src/index.vue.d.ts +0 -6947
  198. package/lib/components/dialog-form/index.d.ts +0 -311
  199. package/lib/components/dialog-form/src/index.vue.d.ts +0 -211
  200. package/lib/components/display-item/index.d.ts +0 -571
  201. package/lib/components/display-item/src/index.vue.d.ts +0 -437
  202. package/lib/components/drawer-form/index.d.ts +0 -1589
  203. package/lib/components/drawer-form/src/index.vue.d.ts +0 -627
  204. package/lib/components/form/index.d.ts +0 -845
  205. package/lib/components/form/src/form-content.vue.d.ts +0 -583
  206. package/lib/components/form/src/index.vue.d.ts +0 -373
  207. package/lib/components/form-item/index.d.ts +0 -1469
  208. package/lib/components/form-item/src/index.vue.d.ts +0 -535
  209. package/lib/components/page/index.d.ts +0 -10563
  210. package/lib/components/page/src/index.vue.d.ts +0 -3712
  211. package/lib/components/search/index.d.ts +0 -2892
  212. package/lib/components/search/src/index.vue.d.ts +0 -994
  213. package/lib/components/table/src/table-column.vue.d.ts +0 -615
  214. package/lib/components/yc-drawer/store.d.ts +0 -2359
  215. package/lib/components/yc-plus-page/src/index.vue.d.ts +0 -8127
  216. package/lib/hooks/usePlusFormReset.d.ts +0 -4483
@@ -1,3712 +0,0 @@
1
- import { VirtualTableColumn } from 'yc-pro-components/es/components/virtual-table';
2
- import { Options } from 'sortablejs';
3
- import { LooseRequired } from '@vue/shared';
4
- import { Arrayable, EpPropMergeType } from 'element-plus/es/utils';
5
- import { PlusFormGroupRow, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, PlusFormSelfProps, ElementPlusFormProps } from 'packages/yc-components';
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';
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';
8
- import { PlusPaginationProps } from 'yc-pro-components/es/components/pagination';
9
- import { PlusTableProps, ActionBarProps, ColumnSetting, ButtonsCallBackParams, FormChangeCallBackParams, FilterTableHeaderEventType, TableFormRefRow, PlusTableSelfProps } from 'yc-pro-components/es/components/table';
10
- import { PlusSearchProps, PlusSearchSelfProps } from 'yc-pro-components/es/components/search';
11
- import { PlusColumn, PageInfo, RecordType, FieldValues, PlusCardProps, IntrinsicAttributes, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components/es/types';
12
-
13
- export interface PlusPageProps {
14
- /**
15
- * 配置
16
- */
17
- columns: PlusColumn[];
18
- /**
19
- *
20
- * params参数中一定会有 pageSize 和 page ,这两个参数是 plus-pro-components 的规范
21
- * @param params
22
- */
23
- request: (params: Partial<PageInfo> & RecordType) => Promise<{
24
- /** 数据 */
25
- data: RecordType[];
26
- /** 不传会使用 data 的长度,如果是分页一定要传*/
27
- total: number;
28
- }>;
29
- /**
30
- * PlusSearchProps
31
- */
32
- search?: false | Partial<PlusSearchProps & IntrinsicAttributes>;
33
- /**
34
- * PlusTableProps
35
- */
36
- table?: Partial<PlusTableProps & IntrinsicAttributes>;
37
- /**
38
- * request的 params 其他参数,默认会带pageSize,page和 PlusSearch组件中的值
39
- */
40
- params?: RecordType;
41
- /**
42
- * 对通过 request 获取的数据进行处理
43
- * @param data
44
- */
45
- postData?: <T = RecordType[]>(data: T[]) => T[];
46
- /**
47
- * 搜索之前进行一些修改
48
- * @param params
49
- */
50
- beforeSearchSubmit?: <T = RecordType>(params: T) => T;
51
- /**
52
- * 表格和搜索是否需要el-card 包裹 默认true
53
- */
54
- isCard?: boolean;
55
- /**
56
- * 搜索外层的el-card的props ,当isCard为true时生效
57
- */
58
- searchCardProps?: PlusCardProps;
59
- /**
60
- * 表格外层的el-card的props ,当isCard为true时生效
61
- */
62
- tableCardProps?: PlusCardProps;
63
- defaultPageInfo?: PageInfo;
64
- defaultPageSizeList?: number[];
65
- pagination?: false | Omit<PlusPaginationProps, 'total' | 'modelValue' | 'pageSizeList'>;
66
- /**
67
- * 组件渲染完成后是否立即调用getList
68
- */
69
- immediate?: boolean;
70
- /**
71
- * 搜索与表格分割线
72
- */
73
- dividerProps?: false | Partial<RecordType>;
74
- /**
75
- * 可以修改默认的分页参数
76
- */
77
- pageInfoMap?: {
78
- page?: string;
79
- pageSize?: string;
80
- };
81
- /**
82
- * 自定义的插槽是否对 PlusSearch 组件提供。当启用时,自定义的插槽 PlusTable 内的表单不生效
83
- * @version v0.1.25
84
- * @default false
85
- */
86
- searchSlot?: boolean;
87
- /**
88
- * 所有列字段为空时显示的默认文本(全局配置)
89
- * @version v0.2.0
90
- * @default "-"
91
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
92
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
93
- * @desc 仅对未定义 render/renderHTML 的字段生效
94
- */
95
- columnsEmptyText?: string;
96
- }
97
- export interface PlusPageEmits {
98
- (e: 'search', data: FieldValues): void;
99
- (e: 'reset', data: FieldValues): void;
100
- (e: 'paginationChange', pageInfo: PageInfo): void;
101
- /**
102
- * 数据加载失败时触发
103
- */
104
- (e: 'requestError', error: unknown): void;
105
- /**
106
- * 数据加载完成时触发
107
- */
108
- (e: 'requestComplete', tableData: RecordType[]): void;
109
- }
110
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusPageProps>, {
111
- params: () => {};
112
- columns: () => never[];
113
- postData: undefined;
114
- beforeSearchSubmit: undefined;
115
- isCard: boolean;
116
- search: () => {};
117
- table: () => {};
118
- defaultPageInfo: () => {
119
- page: number;
120
- pageSize: number;
121
- };
122
- defaultPageSizeList: () => number[];
123
- searchCardProps: () => {};
124
- tableCardProps: () => {};
125
- /**
126
- * 分页组件的其他参数,不包含total,modelValue,pageSizeList
127
- */
128
- pagination: () => {};
129
- immediate: boolean;
130
- dividerProps: boolean;
131
- pageInfoMap: () => {
132
- page: string;
133
- pageSize: string;
134
- };
135
- searchSlot: boolean;
136
- columnsEmptyText: string;
137
- }>, {
138
- plusSearchInstance: Ref<({
139
- $: ComponentInternalInstance;
140
- $data: {};
141
- $props: Partial<{
142
- columns: PlusColumn[];
143
- layout: "grid" | "flex";
144
- modelValue: FieldValues;
145
- labelPosition: "top" | "right" | "left";
146
- inline: boolean;
147
- showNumber: number;
148
- defaultValues: FieldValues;
149
- rowProps: Partial< Mutable<RowProps> & {
150
- style?: CSSProperties | undefined;
151
- class?: any;
152
- } & RecordType>;
153
- colProps: Partial< Mutable<ColProps> & {
154
- style?: CSSProperties | undefined;
155
- class?: any;
156
- } & RecordType>;
157
- hasFooter: boolean;
158
- hasReset: boolean;
159
- resetText: string;
160
- hasUnfold: boolean;
161
- defaultUnfold: boolean;
162
- searchText: string;
163
- retractText: string;
164
- expandText: string;
165
- searchLoading: boolean;
166
- needValidate: boolean;
167
- searchIcon: Component | null;
168
- resetIcon: Component | null;
169
- }> & Omit<{
170
- readonly columns: PlusColumn[];
171
- readonly layout: "grid" | "flex";
172
- readonly modelValue: FieldValues;
173
- readonly inline: boolean;
174
- readonly showNumber: number;
175
- readonly defaultValues: FieldValues;
176
- readonly rowProps: Partial< Mutable<RowProps> & {
177
- style?: CSSProperties | undefined;
178
- class?: any;
179
- } & RecordType>;
180
- readonly colProps: Partial< Mutable<ColProps> & {
181
- style?: CSSProperties | undefined;
182
- class?: any;
183
- } & RecordType>;
184
- readonly hasFooter: boolean;
185
- readonly hasReset: boolean;
186
- readonly resetText: string;
187
- readonly hasUnfold: boolean;
188
- readonly defaultUnfold: boolean;
189
- readonly searchText: string;
190
- readonly retractText: string;
191
- readonly expandText: string;
192
- readonly searchLoading: boolean;
193
- readonly needValidate: boolean;
194
- readonly labelPosition?: "top" | "right" | "left" | undefined;
195
- readonly searchIcon?: Component | null | undefined;
196
- readonly resetIcon?: Component | null | undefined;
197
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
198
- onReset?: ((values: FieldValues) => any) | undefined;
199
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
200
- onSearch?: ((values: FieldValues) => any) | undefined;
201
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
202
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
203
- columns: {
204
- type: PropType<PlusColumn[]>;
205
- default: () => never[];
206
- };
207
- layout: {
208
- type: PropType<"grid" | "flex">;
209
- default: "grid";
210
- };
211
- modelValue: {
212
- type: PropType<FieldValues>;
213
- default: () => {};
214
- };
215
- labelPosition: {
216
- type: PropType<"top" | "right" | "left">;
217
- default: undefined;
218
- };
219
- inline: {
220
- type: PropType<boolean>;
221
- default: boolean;
222
- };
223
- showNumber: {
224
- type: PropType<number>;
225
- default: number;
226
- };
227
- defaultValues: {
228
- type: PropType<FieldValues>;
229
- default: () => {};
230
- };
231
- rowProps: {
232
- type: PropType<Partial< Mutable<RowProps> & {
233
- style?: CSSProperties | undefined;
234
- class?: any;
235
- } & RecordType>>;
236
- default: () => {
237
- gutter: number;
238
- };
239
- };
240
- colProps: {
241
- type: PropType<Partial< Mutable<ColProps> & {
242
- style?: CSSProperties | undefined;
243
- class?: any;
244
- } & RecordType>>;
245
- default: () => {
246
- xs: number;
247
- sm: number;
248
- md: number;
249
- lg: number;
250
- xl: number;
251
- };
252
- };
253
- hasFooter: {
254
- type: PropType<boolean>;
255
- default: boolean;
256
- };
257
- hasReset: {
258
- type: PropType<boolean>;
259
- default: boolean;
260
- };
261
- resetText: {
262
- type: PropType<string>;
263
- default: string;
264
- };
265
- hasUnfold: {
266
- type: PropType<boolean>;
267
- default: boolean;
268
- };
269
- defaultUnfold: {
270
- type: PropType<boolean>;
271
- default: boolean;
272
- };
273
- searchText: {
274
- type: PropType<string>;
275
- default: string;
276
- };
277
- retractText: {
278
- type: PropType<string>;
279
- default: string;
280
- };
281
- expandText: {
282
- type: PropType<string>;
283
- default: string;
284
- };
285
- searchLoading: {
286
- type: PropType<boolean>;
287
- default: boolean;
288
- };
289
- needValidate: {
290
- type: PropType<boolean>;
291
- default: boolean;
292
- };
293
- searchIcon: {
294
- type: PropType< Component | null>;
295
- default: undefined;
296
- };
297
- resetIcon: {
298
- type: PropType< Component | null>;
299
- default: undefined;
300
- };
301
- }>> & {
302
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
303
- onReset?: ((values: FieldValues) => any) | undefined;
304
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
305
- onSearch?: ((values: FieldValues) => any) | undefined;
306
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
307
- }, "columns" | "layout" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate" | "searchIcon" | "resetIcon">;
308
- $attrs: {
309
- [x: string]: unknown;
310
- };
311
- $refs: {
312
- [x: string]: unknown;
313
- };
314
- $slots: Readonly<{
315
- [name: string]: Slot<any> | undefined;
316
- }>;
317
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
318
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
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);
320
- $el: any;
321
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
322
- columns: {
323
- type: PropType<PlusColumn[]>;
324
- default: () => never[];
325
- };
326
- layout: {
327
- type: PropType<"grid" | "flex">;
328
- default: "grid";
329
- };
330
- modelValue: {
331
- type: PropType<FieldValues>;
332
- default: () => {};
333
- };
334
- labelPosition: {
335
- type: PropType<"top" | "right" | "left">;
336
- default: undefined;
337
- };
338
- inline: {
339
- type: PropType<boolean>;
340
- default: boolean;
341
- };
342
- showNumber: {
343
- type: PropType<number>;
344
- default: number;
345
- };
346
- defaultValues: {
347
- type: PropType<FieldValues>;
348
- default: () => {};
349
- };
350
- rowProps: {
351
- type: PropType<Partial< Mutable<RowProps> & {
352
- style?: CSSProperties | undefined;
353
- class?: any;
354
- } & RecordType>>;
355
- default: () => {
356
- gutter: number;
357
- };
358
- };
359
- colProps: {
360
- type: PropType<Partial< Mutable<ColProps> & {
361
- style?: CSSProperties | undefined;
362
- class?: any;
363
- } & RecordType>>;
364
- default: () => {
365
- xs: number;
366
- sm: number;
367
- md: number;
368
- lg: number;
369
- xl: number;
370
- };
371
- };
372
- hasFooter: {
373
- type: PropType<boolean>;
374
- default: boolean;
375
- };
376
- hasReset: {
377
- type: PropType<boolean>;
378
- default: boolean;
379
- };
380
- resetText: {
381
- type: PropType<string>;
382
- default: string;
383
- };
384
- hasUnfold: {
385
- type: PropType<boolean>;
386
- default: boolean;
387
- };
388
- defaultUnfold: {
389
- type: PropType<boolean>;
390
- default: boolean;
391
- };
392
- searchText: {
393
- type: PropType<string>;
394
- default: string;
395
- };
396
- retractText: {
397
- type: PropType<string>;
398
- default: string;
399
- };
400
- expandText: {
401
- type: PropType<string>;
402
- default: string;
403
- };
404
- searchLoading: {
405
- type: PropType<boolean>;
406
- default: boolean;
407
- };
408
- needValidate: {
409
- type: PropType<boolean>;
410
- default: boolean;
411
- };
412
- searchIcon: {
413
- type: PropType< Component | null>;
414
- default: undefined;
415
- };
416
- resetIcon: {
417
- type: PropType< Component | null>;
418
- default: undefined;
419
- };
420
- }>> & {
421
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
422
- onReset?: ((values: FieldValues) => any) | undefined;
423
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
424
- onSearch?: ((values: FieldValues) => any) | undefined;
425
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
426
- }, {
427
- plusFormInstance: Ref<({
428
- $: ComponentInternalInstance;
429
- $data: {};
430
- $props: Partial<{
431
- collapseDuration: number;
432
- collapseTransition: boolean;
433
- columns: PlusColumn[];
434
- group: false | PlusFormGroupRow[];
435
- layout: "grid" | "flex";
436
- modelValue: FieldValues;
437
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
438
- labelPosition: "top" | "right" | "left";
439
- labelWidth: string | number;
440
- labelSuffix: string;
441
- defaultValues: FieldValues;
442
- rowProps: Partial< Mutable<RowProps> & {
443
- style?: CSSProperties | undefined;
444
- class?: any;
445
- } & RecordType>;
446
- colProps: Partial< Mutable<ColProps> & {
447
- style?: CSSProperties | undefined;
448
- class?: any;
449
- } & RecordType>;
450
- hasErrorTip: boolean;
451
- hasFooter: boolean;
452
- hasReset: boolean;
453
- hasLabel: boolean;
454
- submitText: string;
455
- resetText: string;
456
- submitLoading: boolean;
457
- footerAlign: "right" | "left" | "center";
458
- cardProps: Partial< Mutable<CardProps> & {
459
- style?: CSSProperties | undefined;
460
- class?: any;
461
- } & RecordType>;
462
- prevent: boolean;
463
- clearable: boolean;
464
- }> & Omit<{
465
- readonly columns: PlusColumn[];
466
- readonly group: false | PlusFormGroupRow[];
467
- readonly modelValue: FieldValues;
468
- readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
469
- readonly labelPosition: "top" | "right" | "left";
470
- readonly labelWidth: string | number;
471
- readonly labelSuffix: string;
472
- readonly defaultValues: FieldValues;
473
- readonly rowProps: Partial< Mutable<RowProps> & {
474
- style?: CSSProperties | undefined;
475
- class?: any;
476
- } & RecordType>;
477
- readonly colProps: Partial< Mutable<ColProps> & {
478
- style?: CSSProperties | undefined;
479
- class?: any;
480
- } & RecordType>;
481
- readonly hasErrorTip: boolean;
482
- readonly hasFooter: boolean;
483
- readonly hasReset: boolean;
484
- readonly hasLabel: boolean;
485
- readonly submitText: string;
486
- readonly resetText: string;
487
- readonly submitLoading: boolean;
488
- readonly footerAlign: "right" | "left" | "center";
489
- readonly cardProps: Partial< Mutable<CardProps> & {
490
- style?: CSSProperties | undefined;
491
- class?: any;
492
- } & RecordType>;
493
- readonly prevent: boolean;
494
- readonly clearable: boolean;
495
- readonly collapseDuration?: number | undefined;
496
- readonly collapseTransition?: boolean | undefined;
497
- readonly layout?: "grid" | "flex" | undefined;
498
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
499
- onReset?: ((values: FieldValues) => any) | undefined;
500
- onSubmit?: ((values: FieldValues) => any) | undefined;
501
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
502
- onValidate?: ((...args: any[]) => any) | undefined;
503
- onSubmitError?: ((errors: unknown) => any) | undefined;
504
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
505
- collapseDuration: {
506
- type: PropType<number>;
507
- default: undefined;
508
- };
509
- collapseTransition: {
510
- type: PropType<boolean>;
511
- default: undefined;
512
- };
513
- columns: {
514
- type: PropType<PlusColumn[]>;
515
- default: () => never[];
516
- };
517
- group: {
518
- type: PropType<false | PlusFormGroupRow[]>;
519
- default: boolean;
520
- };
521
- layout: {
522
- type: PropType<"grid" | "flex">;
523
- default: undefined;
524
- };
525
- modelValue: {
526
- type: PropType<FieldValues>;
527
- default: () => {};
528
- };
529
- rules: {
530
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
531
- default: () => {};
532
- };
533
- labelPosition: {
534
- type: PropType<"top" | "right" | "left">;
535
- default: string;
536
- };
537
- labelWidth: {
538
- type: PropType<string | number>;
539
- default: string;
540
- };
541
- labelSuffix: {
542
- type: PropType<string>;
543
- default: string;
544
- };
545
- defaultValues: {
546
- type: PropType<FieldValues>;
547
- default: () => {};
548
- };
549
- rowProps: {
550
- type: PropType<Partial< Mutable<RowProps> & {
551
- style?: CSSProperties | undefined;
552
- class?: any;
553
- } & RecordType>>;
554
- default: () => {};
555
- };
556
- colProps: {
557
- type: PropType<Partial< Mutable<ColProps> & {
558
- style?: CSSProperties | undefined;
559
- class?: any;
560
- } & RecordType>>;
561
- default: () => {};
562
- };
563
- hasErrorTip: {
564
- type: PropType<boolean>;
565
- default: boolean;
566
- };
567
- hasFooter: {
568
- type: PropType<boolean>;
569
- default: boolean;
570
- };
571
- hasReset: {
572
- type: PropType<boolean>;
573
- default: boolean;
574
- };
575
- hasLabel: {
576
- type: PropType<boolean>;
577
- default: boolean;
578
- };
579
- submitText: {
580
- type: PropType<string>;
581
- default: string;
582
- };
583
- resetText: {
584
- type: PropType<string>;
585
- default: string;
586
- };
587
- submitLoading: {
588
- type: PropType<boolean>;
589
- default: boolean;
590
- };
591
- footerAlign: {
592
- type: PropType<"right" | "left" | "center">;
593
- default: string;
594
- };
595
- cardProps: {
596
- type: PropType<Partial< Mutable<CardProps> & {
597
- style?: CSSProperties | undefined;
598
- class?: any;
599
- } & RecordType>>;
600
- default: () => {};
601
- };
602
- prevent: {
603
- type: PropType<boolean>;
604
- default: boolean;
605
- };
606
- clearable: {
607
- type: PropType<boolean>;
608
- default: boolean;
609
- };
610
- }>> & {
611
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
612
- onReset?: ((values: FieldValues) => any) | undefined;
613
- onSubmit?: ((values: FieldValues) => any) | undefined;
614
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
615
- onValidate?: ((...args: any[]) => any) | undefined;
616
- onSubmitError?: ((errors: unknown) => any) | undefined;
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">;
618
- $attrs: {
619
- [x: string]: unknown;
620
- };
621
- $refs: {
622
- [x: string]: unknown;
623
- };
624
- $slots: Readonly<{
625
- [name: string]: Slot<any> | undefined;
626
- }>;
627
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
628
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
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);
630
- $el: any;
631
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
632
- collapseDuration: {
633
- type: PropType<number>;
634
- default: undefined;
635
- };
636
- collapseTransition: {
637
- type: PropType<boolean>;
638
- default: undefined;
639
- };
640
- columns: {
641
- type: PropType<PlusColumn[]>;
642
- default: () => never[];
643
- };
644
- group: {
645
- type: PropType<false | PlusFormGroupRow[]>;
646
- default: boolean;
647
- };
648
- layout: {
649
- type: PropType<"grid" | "flex">;
650
- default: undefined;
651
- };
652
- modelValue: {
653
- type: PropType<FieldValues>;
654
- default: () => {};
655
- };
656
- rules: {
657
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
658
- default: () => {};
659
- };
660
- labelPosition: {
661
- type: PropType<"top" | "right" | "left">;
662
- default: string;
663
- };
664
- labelWidth: {
665
- type: PropType<string | number>;
666
- default: string;
667
- };
668
- labelSuffix: {
669
- type: PropType<string>;
670
- default: string;
671
- };
672
- defaultValues: {
673
- type: PropType<FieldValues>;
674
- default: () => {};
675
- };
676
- rowProps: {
677
- type: PropType<Partial< Mutable<RowProps> & {
678
- style?: CSSProperties | undefined;
679
- class?: any;
680
- } & RecordType>>;
681
- default: () => {};
682
- };
683
- colProps: {
684
- type: PropType<Partial< Mutable<ColProps> & {
685
- style?: CSSProperties | undefined;
686
- class?: any;
687
- } & RecordType>>;
688
- default: () => {};
689
- };
690
- hasErrorTip: {
691
- type: PropType<boolean>;
692
- default: boolean;
693
- };
694
- hasFooter: {
695
- type: PropType<boolean>;
696
- default: boolean;
697
- };
698
- hasReset: {
699
- type: PropType<boolean>;
700
- default: boolean;
701
- };
702
- hasLabel: {
703
- type: PropType<boolean>;
704
- default: boolean;
705
- };
706
- submitText: {
707
- type: PropType<string>;
708
- default: string;
709
- };
710
- resetText: {
711
- type: PropType<string>;
712
- default: string;
713
- };
714
- submitLoading: {
715
- type: PropType<boolean>;
716
- default: boolean;
717
- };
718
- footerAlign: {
719
- type: PropType<"right" | "left" | "center">;
720
- default: string;
721
- };
722
- cardProps: {
723
- type: PropType<Partial< Mutable<CardProps> & {
724
- style?: CSSProperties | undefined;
725
- class?: any;
726
- } & RecordType>>;
727
- default: () => {};
728
- };
729
- prevent: {
730
- type: PropType<boolean>;
731
- default: boolean;
732
- };
733
- clearable: {
734
- type: PropType<boolean>;
735
- default: boolean;
736
- };
737
- }>> & {
738
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
739
- onReset?: ((values: FieldValues) => any) | undefined;
740
- onSubmit?: ((values: FieldValues) => any) | undefined;
741
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
742
- onValidate?: ((...args: any[]) => any) | undefined;
743
- onSubmitError?: ((errors: unknown) => any) | undefined;
744
- }, {
745
- formInstance: Ref< FormInstance | null>;
746
- handleSubmit: () => void;
747
- handleReset: () => void;
748
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
749
- "update:modelValue": (values: FieldValues) => void;
750
- submit: (values: FieldValues) => void;
751
- change: (values: FieldValues, column: PlusColumn) => void;
752
- reset: (values: FieldValues) => void;
753
- submitError: (errors: unknown) => void;
754
- validate: (...args: any[]) => void;
755
- }, string, {
756
- collapseDuration: number;
757
- collapseTransition: boolean;
758
- columns: PlusColumn[];
759
- group: false | PlusFormGroupRow[];
760
- layout: "grid" | "flex";
761
- modelValue: FieldValues;
762
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
763
- labelPosition: "top" | "right" | "left";
764
- labelWidth: string | number;
765
- labelSuffix: string;
766
- defaultValues: FieldValues;
767
- rowProps: Partial< Mutable<RowProps> & {
768
- style?: CSSProperties | undefined;
769
- class?: any;
770
- } & RecordType>;
771
- colProps: Partial< Mutable<ColProps> & {
772
- style?: CSSProperties | undefined;
773
- class?: any;
774
- } & RecordType>;
775
- hasErrorTip: boolean;
776
- hasFooter: boolean;
777
- hasReset: boolean;
778
- hasLabel: boolean;
779
- submitText: string;
780
- resetText: string;
781
- submitLoading: boolean;
782
- footerAlign: "right" | "left" | "center";
783
- cardProps: Partial< Mutable<CardProps> & {
784
- style?: CSSProperties | undefined;
785
- class?: any;
786
- } & RecordType>;
787
- prevent: boolean;
788
- clearable: boolean;
789
- }, {}, string, {}> & {
790
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
791
- created?: ((() => void) | (() => void)[]) | undefined;
792
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
793
- mounted?: ((() => void) | (() => void)[]) | undefined;
794
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
795
- updated?: ((() => void) | (() => void)[]) | undefined;
796
- activated?: ((() => void) | (() => void)[]) | undefined;
797
- deactivated?: ((() => void) | (() => void)[]) | undefined;
798
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
799
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
800
- destroyed?: ((() => void) | (() => void)[]) | undefined;
801
- unmounted?: ((() => void) | (() => void)[]) | undefined;
802
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
803
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
804
- 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;
805
- };
806
- $forceUpdate: () => void;
807
- $nextTick: nextTick;
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;
809
- } & Omit<Readonly< ExtractPropTypes<{
810
- collapseDuration: {
811
- type: PropType<number>;
812
- default: undefined;
813
- };
814
- collapseTransition: {
815
- type: PropType<boolean>;
816
- default: undefined;
817
- };
818
- columns: {
819
- type: PropType<PlusColumn[]>;
820
- default: () => never[];
821
- };
822
- group: {
823
- type: PropType<false | PlusFormGroupRow[]>;
824
- default: boolean;
825
- };
826
- layout: {
827
- type: PropType<"grid" | "flex">;
828
- default: undefined;
829
- };
830
- modelValue: {
831
- type: PropType<FieldValues>;
832
- default: () => {};
833
- };
834
- rules: {
835
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
836
- default: () => {};
837
- };
838
- labelPosition: {
839
- type: PropType<"top" | "right" | "left">;
840
- default: string;
841
- };
842
- labelWidth: {
843
- type: PropType<string | number>;
844
- default: string;
845
- };
846
- labelSuffix: {
847
- type: PropType<string>;
848
- default: string;
849
- };
850
- defaultValues: {
851
- type: PropType<FieldValues>;
852
- default: () => {};
853
- };
854
- rowProps: {
855
- type: PropType<Partial< Mutable<RowProps> & {
856
- style?: CSSProperties | undefined;
857
- class?: any;
858
- } & RecordType>>;
859
- default: () => {};
860
- };
861
- colProps: {
862
- type: PropType<Partial< Mutable<ColProps> & {
863
- style?: CSSProperties | undefined;
864
- class?: any;
865
- } & RecordType>>;
866
- default: () => {};
867
- };
868
- hasErrorTip: {
869
- type: PropType<boolean>;
870
- default: boolean;
871
- };
872
- hasFooter: {
873
- type: PropType<boolean>;
874
- default: boolean;
875
- };
876
- hasReset: {
877
- type: PropType<boolean>;
878
- default: boolean;
879
- };
880
- hasLabel: {
881
- type: PropType<boolean>;
882
- default: boolean;
883
- };
884
- submitText: {
885
- type: PropType<string>;
886
- default: string;
887
- };
888
- resetText: {
889
- type: PropType<string>;
890
- default: string;
891
- };
892
- submitLoading: {
893
- type: PropType<boolean>;
894
- default: boolean;
895
- };
896
- footerAlign: {
897
- type: PropType<"right" | "left" | "center">;
898
- default: string;
899
- };
900
- cardProps: {
901
- type: PropType<Partial< Mutable<CardProps> & {
902
- style?: CSSProperties | undefined;
903
- class?: any;
904
- } & RecordType>>;
905
- default: () => {};
906
- };
907
- prevent: {
908
- type: PropType<boolean>;
909
- default: boolean;
910
- };
911
- clearable: {
912
- type: PropType<boolean>;
913
- default: boolean;
914
- };
915
- }>> & {
916
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
917
- onReset?: ((values: FieldValues) => any) | undefined;
918
- onSubmit?: ((values: FieldValues) => any) | undefined;
919
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
920
- onValidate?: ((...args: any[]) => any) | undefined;
921
- onSubmitError?: ((errors: unknown) => any) | undefined;
922
- }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
923
- formInstance: Ref< FormInstance | null>;
924
- handleSubmit: () => void;
925
- handleReset: () => void;
926
- }> & {} & ComponentCustomProperties & {} & {
927
- $slots: Partial<Record<string, (_: {
928
- index: number;
929
- title: string | ComputedRef<string>;
930
- name?: string | undefined;
931
- icon?: Component | undefined;
932
- cardProps?: Partial< Mutable<CardProps> & {
933
- style?: CSSProperties | undefined;
934
- class?: any;
935
- } & RecordType> | undefined;
936
- hideInGroup?: boolean | ComputedRef<boolean> | undefined;
937
- columns?: PlusColumn[] | undefined;
938
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
939
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
940
- readonly label: string | ComputedRef<string>;
941
- readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
942
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
943
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
944
- style?: CSSProperties | undefined;
945
- class?: any;
946
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
947
- style?: CSSProperties | undefined;
948
- class?: any;
949
- } & RecordType>>;
950
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
951
- [key: string]: any;
952
- style?: CSSProperties | undefined;
953
- }>;
954
- readonly fieldProps: PropsItemType<Partial<{
955
- [index: string]: any;
956
- [index: number]: any;
957
- [index: symbol]: any;
958
- class: any;
959
- style: CSSProperties;
960
- modelModifiers: {
961
- [index: string]: any;
962
- lazy?: boolean | undefined;
963
- trim?: boolean | undefined;
964
- number?: boolean | undefined;
965
- };
966
- rows: number;
967
- autocomplete: string;
968
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
969
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
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
- */
979
- format: string | ProgressFn | undefined;
980
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
981
- id: string | [string, string];
982
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
983
- height: string | number;
984
- autosize: InputAutoSize;
985
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
986
- readonly options: OptionsType;
987
- readonly fieldSlots: {
988
- [slotName: string]: (data?: any) => RenderTypes;
989
- };
990
- readonly valueType: TableValueType | FormItemValueType;
991
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
992
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
993
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
994
- readonly renderErrorMessage: ((props: PlusColumn & {
995
- value?: FieldValueType;
996
- error?: string | undefined;
997
- label?: string | undefined;
998
- }) => RenderTypes) | undefined;
999
- readonly optionsMap: {
1000
- label?: string | undefined;
1001
- value?: string | undefined;
1002
- } | undefined;
1003
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1004
- store?: any;
1005
- method?: string | undefined;
1006
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1007
- dictCode?: string | undefined;
1008
- } | undefined;
1009
- readonly clearable: boolean;
1010
- readonly index: number;
1011
- } & {
1012
- readonly clearable: boolean;
1013
- };
1014
- label: string;
1015
- fieldProps: RecordType;
1016
- formItemProps: RecordType;
1017
- options: OptionsRow<undefined>[];
1018
- fieldInstance?: any;
1019
- valueIsReady?: Ref<boolean> | undefined;
1020
- prop: string;
1021
- modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1022
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1023
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1024
- style?: CSSProperties | undefined;
1025
- class?: any;
1026
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1027
- style?: CSSProperties | undefined;
1028
- class?: any;
1029
- } & RecordType>>;
1030
- fieldSlots: {
1031
- [slotName: string]: (data?: any) => RenderTypes;
1032
- };
1033
- valueType: TableValueType | FormItemValueType;
1034
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1035
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1036
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1037
- renderErrorMessage: ((props: PlusColumn & {
1038
- value?: FieldValueType;
1039
- error?: string | undefined;
1040
- label?: string | undefined;
1041
- }) => RenderTypes) | undefined;
1042
- optionsMap: {
1043
- label?: string | undefined;
1044
- value?: string | undefined;
1045
- } | undefined;
1046
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1047
- store?: any;
1048
- method?: string | undefined;
1049
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1050
- dictCode?: string | undefined;
1051
- } | undefined;
1052
- clearable: boolean;
1053
- index: number;
1054
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1055
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1056
- readonly label: string | ComputedRef<string>;
1057
- readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1058
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1059
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1060
- style?: CSSProperties | undefined;
1061
- class?: any;
1062
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1063
- style?: CSSProperties | undefined;
1064
- class?: any;
1065
- } & RecordType>>;
1066
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
1067
- [key: string]: any;
1068
- style?: CSSProperties | undefined;
1069
- }>;
1070
- readonly fieldProps: PropsItemType<Partial<{
1071
- [index: string]: any;
1072
- [index: number]: any;
1073
- [index: symbol]: any;
1074
- class: any;
1075
- style: CSSProperties;
1076
- modelModifiers: {
1077
- [index: string]: any;
1078
- lazy?: boolean | undefined;
1079
- trim?: boolean | undefined;
1080
- number?: boolean | undefined;
1081
- };
1082
- rows: number;
1083
- autocomplete: string;
1084
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1085
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
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
- */
1095
- format: string | ProgressFn | undefined;
1096
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1097
- id: string | [string, string];
1098
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
1099
- height: string | number;
1100
- autosize: InputAutoSize;
1101
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
1102
- readonly options: OptionsType;
1103
- readonly fieldSlots: {
1104
- [slotName: string]: (data?: any) => RenderTypes;
1105
- };
1106
- readonly valueType: TableValueType | FormItemValueType;
1107
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1108
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1109
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1110
- readonly renderErrorMessage: ((props: PlusColumn & {
1111
- value?: FieldValueType;
1112
- error?: string | undefined;
1113
- label?: string | undefined;
1114
- }) => RenderTypes) | undefined;
1115
- readonly optionsMap: {
1116
- label?: string | undefined;
1117
- value?: string | undefined;
1118
- } | undefined;
1119
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1120
- store?: any;
1121
- method?: string | undefined;
1122
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1123
- dictCode?: string | undefined;
1124
- } | undefined;
1125
- readonly clearable: boolean;
1126
- readonly index: number;
1127
- } & {
1128
- readonly clearable: boolean;
1129
- };
1130
- label: string;
1131
- fieldProps: RecordType;
1132
- formItemProps: RecordType;
1133
- options: OptionsRow<undefined>[];
1134
- fieldInstance?: any;
1135
- valueIsReady?: Ref<boolean> | undefined;
1136
- prop: string;
1137
- modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1138
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1139
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1140
- style?: CSSProperties | undefined;
1141
- class?: any;
1142
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1143
- style?: CSSProperties | undefined;
1144
- class?: any;
1145
- } & RecordType>>;
1146
- fieldSlots: {
1147
- [slotName: string]: (data?: any) => RenderTypes;
1148
- };
1149
- valueType: TableValueType | FormItemValueType;
1150
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1151
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1152
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1153
- renderErrorMessage: ((props: PlusColumn & {
1154
- value?: FieldValueType;
1155
- error?: string | undefined;
1156
- label?: string | undefined;
1157
- }) => RenderTypes) | undefined;
1158
- optionsMap: {
1159
- label?: string | undefined;
1160
- value?: string | undefined;
1161
- } | undefined;
1162
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1163
- store?: any;
1164
- method?: string | undefined;
1165
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1166
- dictCode?: string | undefined;
1167
- } | undefined;
1168
- clearable: boolean;
1169
- index: number;
1170
- }) => any>> & {
1171
- default?(_: {}): any;
1172
- "group-header"?(_: {
1173
- title: string;
1174
- columns: PlusColumn[] | undefined;
1175
- icon: Component | undefined;
1176
- index: number;
1177
- }): any;
1178
- footer?(_: {
1179
- handleReset: () => void;
1180
- handleSubmit: () => void;
1181
- }): any;
1182
- };
1183
- }) | null | undefined>;
1184
- handleReset: () => void;
1185
- handleSearch: () => void;
1186
- handleUnfold: (e: MouseEvent) => void;
1187
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1188
- "update:modelValue": (values: FieldValues) => void;
1189
- search: (values: FieldValues) => void;
1190
- change: (values: FieldValues, column: PlusColumn) => void;
1191
- reset: (values: FieldValues) => void;
1192
- collapse: (isShowUnfold: boolean) => void;
1193
- }, string, {
1194
- columns: PlusColumn[];
1195
- layout: "grid" | "flex";
1196
- modelValue: FieldValues;
1197
- labelPosition: "top" | "right" | "left";
1198
- inline: boolean;
1199
- showNumber: number;
1200
- defaultValues: FieldValues;
1201
- rowProps: Partial< Mutable<RowProps> & {
1202
- style?: CSSProperties | undefined;
1203
- class?: any;
1204
- } & RecordType>;
1205
- colProps: Partial< Mutable<ColProps> & {
1206
- style?: CSSProperties | undefined;
1207
- class?: any;
1208
- } & RecordType>;
1209
- hasFooter: boolean;
1210
- hasReset: boolean;
1211
- resetText: string;
1212
- hasUnfold: boolean;
1213
- defaultUnfold: boolean;
1214
- searchText: string;
1215
- retractText: string;
1216
- expandText: string;
1217
- searchLoading: boolean;
1218
- needValidate: boolean;
1219
- searchIcon: Component | null;
1220
- resetIcon: Component | null;
1221
- }, {}, string, {}> & {
1222
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1223
- created?: ((() => void) | (() => void)[]) | undefined;
1224
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
1225
- mounted?: ((() => void) | (() => void)[]) | undefined;
1226
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1227
- updated?: ((() => void) | (() => void)[]) | undefined;
1228
- activated?: ((() => void) | (() => void)[]) | undefined;
1229
- deactivated?: ((() => void) | (() => void)[]) | undefined;
1230
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1231
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1232
- destroyed?: ((() => void) | (() => void)[]) | undefined;
1233
- unmounted?: ((() => void) | (() => void)[]) | undefined;
1234
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1235
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1236
- 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;
1237
- };
1238
- $forceUpdate: () => void;
1239
- $nextTick: nextTick;
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;
1241
- } & Omit<Readonly< ExtractPropTypes<{
1242
- columns: {
1243
- type: PropType<PlusColumn[]>;
1244
- default: () => never[];
1245
- };
1246
- layout: {
1247
- type: PropType<"grid" | "flex">;
1248
- default: "grid";
1249
- };
1250
- modelValue: {
1251
- type: PropType<FieldValues>;
1252
- default: () => {};
1253
- };
1254
- labelPosition: {
1255
- type: PropType<"top" | "right" | "left">;
1256
- default: undefined;
1257
- };
1258
- inline: {
1259
- type: PropType<boolean>;
1260
- default: boolean;
1261
- };
1262
- showNumber: {
1263
- type: PropType<number>;
1264
- default: number;
1265
- };
1266
- defaultValues: {
1267
- type: PropType<FieldValues>;
1268
- default: () => {};
1269
- };
1270
- rowProps: {
1271
- type: PropType<Partial< Mutable<RowProps> & {
1272
- style?: CSSProperties | undefined;
1273
- class?: any;
1274
- } & RecordType>>;
1275
- default: () => {
1276
- gutter: number;
1277
- };
1278
- };
1279
- colProps: {
1280
- type: PropType<Partial< Mutable<ColProps> & {
1281
- style?: CSSProperties | undefined;
1282
- class?: any;
1283
- } & RecordType>>;
1284
- default: () => {
1285
- xs: number;
1286
- sm: number;
1287
- md: number;
1288
- lg: number;
1289
- xl: number;
1290
- };
1291
- };
1292
- hasFooter: {
1293
- type: PropType<boolean>;
1294
- default: boolean;
1295
- };
1296
- hasReset: {
1297
- type: PropType<boolean>;
1298
- default: boolean;
1299
- };
1300
- resetText: {
1301
- type: PropType<string>;
1302
- default: string;
1303
- };
1304
- hasUnfold: {
1305
- type: PropType<boolean>;
1306
- default: boolean;
1307
- };
1308
- defaultUnfold: {
1309
- type: PropType<boolean>;
1310
- default: boolean;
1311
- };
1312
- searchText: {
1313
- type: PropType<string>;
1314
- default: string;
1315
- };
1316
- retractText: {
1317
- type: PropType<string>;
1318
- default: string;
1319
- };
1320
- expandText: {
1321
- type: PropType<string>;
1322
- default: string;
1323
- };
1324
- searchLoading: {
1325
- type: PropType<boolean>;
1326
- default: boolean;
1327
- };
1328
- needValidate: {
1329
- type: PropType<boolean>;
1330
- default: boolean;
1331
- };
1332
- searchIcon: {
1333
- type: PropType< Component | null>;
1334
- default: undefined;
1335
- };
1336
- resetIcon: {
1337
- type: PropType< Component | null>;
1338
- default: undefined;
1339
- };
1340
- }>> & {
1341
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1342
- onReset?: ((values: FieldValues) => any) | undefined;
1343
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1344
- onSearch?: ((values: FieldValues) => any) | undefined;
1345
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
1346
- }, "handleReset" | "plusFormInstance" | "handleSearch" | "handleUnfold"> & ShallowUnwrapRef<{
1347
- plusFormInstance: Ref<({
1348
- $: ComponentInternalInstance;
1349
- $data: {};
1350
- $props: Partial<{
1351
- collapseDuration: number;
1352
- collapseTransition: boolean;
1353
- columns: PlusColumn[];
1354
- group: false | PlusFormGroupRow[];
1355
- layout: "grid" | "flex";
1356
- modelValue: FieldValues;
1357
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1358
- labelPosition: "top" | "right" | "left";
1359
- labelWidth: string | number;
1360
- labelSuffix: string;
1361
- defaultValues: FieldValues;
1362
- rowProps: Partial< Mutable<RowProps> & {
1363
- style?: CSSProperties | undefined;
1364
- class?: any;
1365
- } & RecordType>;
1366
- colProps: Partial< Mutable<ColProps> & {
1367
- style?: CSSProperties | undefined;
1368
- class?: any;
1369
- } & RecordType>;
1370
- hasErrorTip: boolean;
1371
- hasFooter: boolean;
1372
- hasReset: boolean;
1373
- hasLabel: boolean;
1374
- submitText: string;
1375
- resetText: string;
1376
- submitLoading: boolean;
1377
- footerAlign: "right" | "left" | "center";
1378
- cardProps: Partial< Mutable<CardProps> & {
1379
- style?: CSSProperties | undefined;
1380
- class?: any;
1381
- } & RecordType>;
1382
- prevent: boolean;
1383
- clearable: boolean;
1384
- }> & Omit<{
1385
- readonly columns: PlusColumn[];
1386
- readonly group: false | PlusFormGroupRow[];
1387
- readonly modelValue: FieldValues;
1388
- readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1389
- readonly labelPosition: "top" | "right" | "left";
1390
- readonly labelWidth: string | number;
1391
- readonly labelSuffix: string;
1392
- readonly defaultValues: FieldValues;
1393
- readonly rowProps: Partial< Mutable<RowProps> & {
1394
- style?: CSSProperties | undefined;
1395
- class?: any;
1396
- } & RecordType>;
1397
- readonly colProps: Partial< Mutable<ColProps> & {
1398
- style?: CSSProperties | undefined;
1399
- class?: any;
1400
- } & RecordType>;
1401
- readonly hasErrorTip: boolean;
1402
- readonly hasFooter: boolean;
1403
- readonly hasReset: boolean;
1404
- readonly hasLabel: boolean;
1405
- readonly submitText: string;
1406
- readonly resetText: string;
1407
- readonly submitLoading: boolean;
1408
- readonly footerAlign: "right" | "left" | "center";
1409
- readonly cardProps: Partial< Mutable<CardProps> & {
1410
- style?: CSSProperties | undefined;
1411
- class?: any;
1412
- } & RecordType>;
1413
- readonly prevent: boolean;
1414
- readonly clearable: boolean;
1415
- readonly collapseDuration?: number | undefined;
1416
- readonly collapseTransition?: boolean | undefined;
1417
- readonly layout?: "grid" | "flex" | undefined;
1418
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1419
- onReset?: ((values: FieldValues) => any) | undefined;
1420
- onSubmit?: ((values: FieldValues) => any) | undefined;
1421
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1422
- onValidate?: ((...args: any[]) => any) | undefined;
1423
- onSubmitError?: ((errors: unknown) => any) | undefined;
1424
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
1425
- collapseDuration: {
1426
- type: PropType<number>;
1427
- default: undefined;
1428
- };
1429
- collapseTransition: {
1430
- type: PropType<boolean>;
1431
- default: undefined;
1432
- };
1433
- columns: {
1434
- type: PropType<PlusColumn[]>;
1435
- default: () => never[];
1436
- };
1437
- group: {
1438
- type: PropType<false | PlusFormGroupRow[]>;
1439
- default: boolean;
1440
- };
1441
- layout: {
1442
- type: PropType<"grid" | "flex">;
1443
- default: undefined;
1444
- };
1445
- modelValue: {
1446
- type: PropType<FieldValues>;
1447
- default: () => {};
1448
- };
1449
- rules: {
1450
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1451
- default: () => {};
1452
- };
1453
- labelPosition: {
1454
- type: PropType<"top" | "right" | "left">;
1455
- default: string;
1456
- };
1457
- labelWidth: {
1458
- type: PropType<string | number>;
1459
- default: string;
1460
- };
1461
- labelSuffix: {
1462
- type: PropType<string>;
1463
- default: string;
1464
- };
1465
- defaultValues: {
1466
- type: PropType<FieldValues>;
1467
- default: () => {};
1468
- };
1469
- rowProps: {
1470
- type: PropType<Partial< Mutable<RowProps> & {
1471
- style?: CSSProperties | undefined;
1472
- class?: any;
1473
- } & RecordType>>;
1474
- default: () => {};
1475
- };
1476
- colProps: {
1477
- type: PropType<Partial< Mutable<ColProps> & {
1478
- style?: CSSProperties | undefined;
1479
- class?: any;
1480
- } & RecordType>>;
1481
- default: () => {};
1482
- };
1483
- hasErrorTip: {
1484
- type: PropType<boolean>;
1485
- default: boolean;
1486
- };
1487
- hasFooter: {
1488
- type: PropType<boolean>;
1489
- default: boolean;
1490
- };
1491
- hasReset: {
1492
- type: PropType<boolean>;
1493
- default: boolean;
1494
- };
1495
- hasLabel: {
1496
- type: PropType<boolean>;
1497
- default: boolean;
1498
- };
1499
- submitText: {
1500
- type: PropType<string>;
1501
- default: string;
1502
- };
1503
- resetText: {
1504
- type: PropType<string>;
1505
- default: string;
1506
- };
1507
- submitLoading: {
1508
- type: PropType<boolean>;
1509
- default: boolean;
1510
- };
1511
- footerAlign: {
1512
- type: PropType<"right" | "left" | "center">;
1513
- default: string;
1514
- };
1515
- cardProps: {
1516
- type: PropType<Partial< Mutable<CardProps> & {
1517
- style?: CSSProperties | undefined;
1518
- class?: any;
1519
- } & RecordType>>;
1520
- default: () => {};
1521
- };
1522
- prevent: {
1523
- type: PropType<boolean>;
1524
- default: boolean;
1525
- };
1526
- clearable: {
1527
- type: PropType<boolean>;
1528
- default: boolean;
1529
- };
1530
- }>> & {
1531
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1532
- onReset?: ((values: FieldValues) => any) | undefined;
1533
- onSubmit?: ((values: FieldValues) => any) | undefined;
1534
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1535
- onValidate?: ((...args: any[]) => any) | undefined;
1536
- onSubmitError?: ((errors: unknown) => any) | undefined;
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">;
1538
- $attrs: {
1539
- [x: string]: unknown;
1540
- };
1541
- $refs: {
1542
- [x: string]: unknown;
1543
- };
1544
- $slots: Readonly<{
1545
- [name: string]: Slot<any> | undefined;
1546
- }>;
1547
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1548
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
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);
1550
- $el: any;
1551
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
1552
- collapseDuration: {
1553
- type: PropType<number>;
1554
- default: undefined;
1555
- };
1556
- collapseTransition: {
1557
- type: PropType<boolean>;
1558
- default: undefined;
1559
- };
1560
- columns: {
1561
- type: PropType<PlusColumn[]>;
1562
- default: () => never[];
1563
- };
1564
- group: {
1565
- type: PropType<false | PlusFormGroupRow[]>;
1566
- default: boolean;
1567
- };
1568
- layout: {
1569
- type: PropType<"grid" | "flex">;
1570
- default: undefined;
1571
- };
1572
- modelValue: {
1573
- type: PropType<FieldValues>;
1574
- default: () => {};
1575
- };
1576
- rules: {
1577
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1578
- default: () => {};
1579
- };
1580
- labelPosition: {
1581
- type: PropType<"top" | "right" | "left">;
1582
- default: string;
1583
- };
1584
- labelWidth: {
1585
- type: PropType<string | number>;
1586
- default: string;
1587
- };
1588
- labelSuffix: {
1589
- type: PropType<string>;
1590
- default: string;
1591
- };
1592
- defaultValues: {
1593
- type: PropType<FieldValues>;
1594
- default: () => {};
1595
- };
1596
- rowProps: {
1597
- type: PropType<Partial< Mutable<RowProps> & {
1598
- style?: CSSProperties | undefined;
1599
- class?: any;
1600
- } & RecordType>>;
1601
- default: () => {};
1602
- };
1603
- colProps: {
1604
- type: PropType<Partial< Mutable<ColProps> & {
1605
- style?: CSSProperties | undefined;
1606
- class?: any;
1607
- } & RecordType>>;
1608
- default: () => {};
1609
- };
1610
- hasErrorTip: {
1611
- type: PropType<boolean>;
1612
- default: boolean;
1613
- };
1614
- hasFooter: {
1615
- type: PropType<boolean>;
1616
- default: boolean;
1617
- };
1618
- hasReset: {
1619
- type: PropType<boolean>;
1620
- default: boolean;
1621
- };
1622
- hasLabel: {
1623
- type: PropType<boolean>;
1624
- default: boolean;
1625
- };
1626
- submitText: {
1627
- type: PropType<string>;
1628
- default: string;
1629
- };
1630
- resetText: {
1631
- type: PropType<string>;
1632
- default: string;
1633
- };
1634
- submitLoading: {
1635
- type: PropType<boolean>;
1636
- default: boolean;
1637
- };
1638
- footerAlign: {
1639
- type: PropType<"right" | "left" | "center">;
1640
- default: string;
1641
- };
1642
- cardProps: {
1643
- type: PropType<Partial< Mutable<CardProps> & {
1644
- style?: CSSProperties | undefined;
1645
- class?: any;
1646
- } & RecordType>>;
1647
- default: () => {};
1648
- };
1649
- prevent: {
1650
- type: PropType<boolean>;
1651
- default: boolean;
1652
- };
1653
- clearable: {
1654
- type: PropType<boolean>;
1655
- default: boolean;
1656
- };
1657
- }>> & {
1658
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1659
- onReset?: ((values: FieldValues) => any) | undefined;
1660
- onSubmit?: ((values: FieldValues) => any) | undefined;
1661
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1662
- onValidate?: ((...args: any[]) => any) | undefined;
1663
- onSubmitError?: ((errors: unknown) => any) | undefined;
1664
- }, {
1665
- formInstance: Ref< FormInstance | null>;
1666
- handleSubmit: () => void;
1667
- handleReset: () => void;
1668
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1669
- "update:modelValue": (values: FieldValues) => void;
1670
- submit: (values: FieldValues) => void;
1671
- change: (values: FieldValues, column: PlusColumn) => void;
1672
- reset: (values: FieldValues) => void;
1673
- submitError: (errors: unknown) => void;
1674
- validate: (...args: any[]) => void;
1675
- }, string, {
1676
- collapseDuration: number;
1677
- collapseTransition: boolean;
1678
- columns: PlusColumn[];
1679
- group: false | PlusFormGroupRow[];
1680
- layout: "grid" | "flex";
1681
- modelValue: FieldValues;
1682
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1683
- labelPosition: "top" | "right" | "left";
1684
- labelWidth: string | number;
1685
- labelSuffix: string;
1686
- defaultValues: FieldValues;
1687
- rowProps: Partial< Mutable<RowProps> & {
1688
- style?: CSSProperties | undefined;
1689
- class?: any;
1690
- } & RecordType>;
1691
- colProps: Partial< Mutable<ColProps> & {
1692
- style?: CSSProperties | undefined;
1693
- class?: any;
1694
- } & RecordType>;
1695
- hasErrorTip: boolean;
1696
- hasFooter: boolean;
1697
- hasReset: boolean;
1698
- hasLabel: boolean;
1699
- submitText: string;
1700
- resetText: string;
1701
- submitLoading: boolean;
1702
- footerAlign: "right" | "left" | "center";
1703
- cardProps: Partial< Mutable<CardProps> & {
1704
- style?: CSSProperties | undefined;
1705
- class?: any;
1706
- } & RecordType>;
1707
- prevent: boolean;
1708
- clearable: boolean;
1709
- }, {}, string, {}> & {
1710
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1711
- created?: ((() => void) | (() => void)[]) | undefined;
1712
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
1713
- mounted?: ((() => void) | (() => void)[]) | undefined;
1714
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1715
- updated?: ((() => void) | (() => void)[]) | undefined;
1716
- activated?: ((() => void) | (() => void)[]) | undefined;
1717
- deactivated?: ((() => void) | (() => void)[]) | undefined;
1718
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1719
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1720
- destroyed?: ((() => void) | (() => void)[]) | undefined;
1721
- unmounted?: ((() => void) | (() => void)[]) | undefined;
1722
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1723
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1724
- 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;
1725
- };
1726
- $forceUpdate: () => void;
1727
- $nextTick: nextTick;
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;
1729
- } & Omit<Readonly< ExtractPropTypes<{
1730
- collapseDuration: {
1731
- type: PropType<number>;
1732
- default: undefined;
1733
- };
1734
- collapseTransition: {
1735
- type: PropType<boolean>;
1736
- default: undefined;
1737
- };
1738
- columns: {
1739
- type: PropType<PlusColumn[]>;
1740
- default: () => never[];
1741
- };
1742
- group: {
1743
- type: PropType<false | PlusFormGroupRow[]>;
1744
- default: boolean;
1745
- };
1746
- layout: {
1747
- type: PropType<"grid" | "flex">;
1748
- default: undefined;
1749
- };
1750
- modelValue: {
1751
- type: PropType<FieldValues>;
1752
- default: () => {};
1753
- };
1754
- rules: {
1755
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1756
- default: () => {};
1757
- };
1758
- labelPosition: {
1759
- type: PropType<"top" | "right" | "left">;
1760
- default: string;
1761
- };
1762
- labelWidth: {
1763
- type: PropType<string | number>;
1764
- default: string;
1765
- };
1766
- labelSuffix: {
1767
- type: PropType<string>;
1768
- default: string;
1769
- };
1770
- defaultValues: {
1771
- type: PropType<FieldValues>;
1772
- default: () => {};
1773
- };
1774
- rowProps: {
1775
- type: PropType<Partial< Mutable<RowProps> & {
1776
- style?: CSSProperties | undefined;
1777
- class?: any;
1778
- } & RecordType>>;
1779
- default: () => {};
1780
- };
1781
- colProps: {
1782
- type: PropType<Partial< Mutable<ColProps> & {
1783
- style?: CSSProperties | undefined;
1784
- class?: any;
1785
- } & RecordType>>;
1786
- default: () => {};
1787
- };
1788
- hasErrorTip: {
1789
- type: PropType<boolean>;
1790
- default: boolean;
1791
- };
1792
- hasFooter: {
1793
- type: PropType<boolean>;
1794
- default: boolean;
1795
- };
1796
- hasReset: {
1797
- type: PropType<boolean>;
1798
- default: boolean;
1799
- };
1800
- hasLabel: {
1801
- type: PropType<boolean>;
1802
- default: boolean;
1803
- };
1804
- submitText: {
1805
- type: PropType<string>;
1806
- default: string;
1807
- };
1808
- resetText: {
1809
- type: PropType<string>;
1810
- default: string;
1811
- };
1812
- submitLoading: {
1813
- type: PropType<boolean>;
1814
- default: boolean;
1815
- };
1816
- footerAlign: {
1817
- type: PropType<"right" | "left" | "center">;
1818
- default: string;
1819
- };
1820
- cardProps: {
1821
- type: PropType<Partial< Mutable<CardProps> & {
1822
- style?: CSSProperties | undefined;
1823
- class?: any;
1824
- } & RecordType>>;
1825
- default: () => {};
1826
- };
1827
- prevent: {
1828
- type: PropType<boolean>;
1829
- default: boolean;
1830
- };
1831
- clearable: {
1832
- type: PropType<boolean>;
1833
- default: boolean;
1834
- };
1835
- }>> & {
1836
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1837
- onReset?: ((values: FieldValues) => any) | undefined;
1838
- onSubmit?: ((values: FieldValues) => any) | undefined;
1839
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1840
- onValidate?: ((...args: any[]) => any) | undefined;
1841
- onSubmitError?: ((errors: unknown) => any) | undefined;
1842
- }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
1843
- formInstance: Ref< FormInstance | null>;
1844
- handleSubmit: () => void;
1845
- handleReset: () => void;
1846
- }> & {} & ComponentCustomProperties & {} & {
1847
- $slots: Partial<Record<string, (_: {
1848
- index: number;
1849
- title: string | ComputedRef<string>;
1850
- name?: string | undefined;
1851
- icon?: Component | undefined;
1852
- cardProps?: Partial< Mutable<CardProps> & {
1853
- style?: CSSProperties | undefined;
1854
- class?: any;
1855
- } & RecordType> | undefined;
1856
- hideInGroup?: boolean | ComputedRef<boolean> | undefined;
1857
- columns?: PlusColumn[] | undefined;
1858
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1859
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1860
- readonly label: string | ComputedRef<string>;
1861
- readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1862
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1863
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1864
- style?: CSSProperties | undefined;
1865
- class?: any;
1866
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1867
- style?: CSSProperties | undefined;
1868
- class?: any;
1869
- } & RecordType>>;
1870
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
1871
- [key: string]: any;
1872
- style?: CSSProperties | undefined;
1873
- }>;
1874
- readonly fieldProps: PropsItemType<Partial<{
1875
- [index: string]: any;
1876
- [index: number]: any;
1877
- [index: symbol]: any;
1878
- class: any;
1879
- style: CSSProperties;
1880
- modelModifiers: {
1881
- [index: string]: any;
1882
- lazy?: boolean | undefined;
1883
- trim?: boolean | undefined;
1884
- number?: boolean | undefined;
1885
- };
1886
- rows: number;
1887
- autocomplete: string;
1888
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1889
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
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
- */
1899
- format: string | ProgressFn | undefined;
1900
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1901
- id: string | [string, string];
1902
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
1903
- height: string | number;
1904
- autosize: InputAutoSize;
1905
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
1906
- readonly options: OptionsType;
1907
- readonly fieldSlots: {
1908
- [slotName: string]: (data?: any) => RenderTypes;
1909
- };
1910
- readonly valueType: TableValueType | FormItemValueType;
1911
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1912
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1913
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1914
- readonly renderErrorMessage: ((props: PlusColumn & {
1915
- value?: FieldValueType;
1916
- error?: string | undefined;
1917
- label?: string | undefined;
1918
- }) => RenderTypes) | undefined;
1919
- readonly optionsMap: {
1920
- label?: string | undefined;
1921
- value?: string | undefined;
1922
- } | undefined;
1923
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1924
- store?: any;
1925
- method?: string | undefined;
1926
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1927
- dictCode?: string | undefined;
1928
- } | undefined;
1929
- readonly clearable: boolean;
1930
- readonly index: number;
1931
- } & {
1932
- readonly clearable: boolean;
1933
- };
1934
- label: string;
1935
- fieldProps: RecordType;
1936
- formItemProps: RecordType;
1937
- options: OptionsRow<undefined>[];
1938
- fieldInstance?: any;
1939
- valueIsReady?: Ref<boolean> | undefined;
1940
- prop: string;
1941
- modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1942
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1943
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1944
- style?: CSSProperties | undefined;
1945
- class?: any;
1946
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1947
- style?: CSSProperties | undefined;
1948
- class?: any;
1949
- } & RecordType>>;
1950
- fieldSlots: {
1951
- [slotName: string]: (data?: any) => RenderTypes;
1952
- };
1953
- valueType: TableValueType | FormItemValueType;
1954
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1955
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1956
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1957
- renderErrorMessage: ((props: PlusColumn & {
1958
- value?: FieldValueType;
1959
- error?: string | undefined;
1960
- label?: string | undefined;
1961
- }) => RenderTypes) | undefined;
1962
- optionsMap: {
1963
- label?: string | undefined;
1964
- value?: string | undefined;
1965
- } | undefined;
1966
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1967
- store?: any;
1968
- method?: string | undefined;
1969
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1970
- dictCode?: string | undefined;
1971
- } | undefined;
1972
- clearable: boolean;
1973
- index: number;
1974
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1975
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1976
- readonly label: string | ComputedRef<string>;
1977
- readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1978
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1979
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
1980
- style?: CSSProperties | undefined;
1981
- class?: any;
1982
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1983
- style?: CSSProperties | undefined;
1984
- class?: any;
1985
- } & RecordType>>;
1986
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
1987
- [key: string]: any;
1988
- style?: CSSProperties | undefined;
1989
- }>;
1990
- readonly fieldProps: PropsItemType<Partial<{
1991
- [index: string]: any;
1992
- [index: number]: any;
1993
- [index: symbol]: any;
1994
- class: any;
1995
- style: CSSProperties;
1996
- modelModifiers: {
1997
- [index: string]: any;
1998
- lazy?: boolean | undefined;
1999
- trim?: boolean | undefined;
2000
- number?: boolean | undefined;
2001
- };
2002
- rows: number;
2003
- autocomplete: string;
2004
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
2005
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
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
- */
2015
- format: string | ProgressFn | undefined;
2016
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
2017
- id: string | [string, string];
2018
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
2019
- height: string | number;
2020
- autosize: InputAutoSize;
2021
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
2022
- readonly options: OptionsType;
2023
- readonly fieldSlots: {
2024
- [slotName: string]: (data?: any) => RenderTypes;
2025
- };
2026
- readonly valueType: TableValueType | FormItemValueType;
2027
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2028
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2029
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2030
- readonly renderErrorMessage: ((props: PlusColumn & {
2031
- value?: FieldValueType;
2032
- error?: string | undefined;
2033
- label?: string | undefined;
2034
- }) => RenderTypes) | undefined;
2035
- readonly optionsMap: {
2036
- label?: string | undefined;
2037
- value?: string | undefined;
2038
- } | undefined;
2039
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2040
- store?: any;
2041
- method?: string | undefined;
2042
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2043
- dictCode?: string | undefined;
2044
- } | undefined;
2045
- readonly clearable: boolean;
2046
- readonly index: number;
2047
- } & {
2048
- readonly clearable: boolean;
2049
- };
2050
- label: string;
2051
- fieldProps: RecordType;
2052
- formItemProps: RecordType;
2053
- options: OptionsRow<undefined>[];
2054
- fieldInstance?: any;
2055
- valueIsReady?: Ref<boolean> | undefined;
2056
- prop: string;
2057
- modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2058
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2059
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
2060
- style?: CSSProperties | undefined;
2061
- class?: any;
2062
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2063
- style?: CSSProperties | undefined;
2064
- class?: any;
2065
- } & RecordType>>;
2066
- fieldSlots: {
2067
- [slotName: string]: (data?: any) => RenderTypes;
2068
- };
2069
- valueType: TableValueType | FormItemValueType;
2070
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2071
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2072
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2073
- renderErrorMessage: ((props: PlusColumn & {
2074
- value?: FieldValueType;
2075
- error?: string | undefined;
2076
- label?: string | undefined;
2077
- }) => RenderTypes) | undefined;
2078
- optionsMap: {
2079
- label?: string | undefined;
2080
- value?: string | undefined;
2081
- } | undefined;
2082
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2083
- store?: any;
2084
- method?: string | undefined;
2085
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2086
- dictCode?: string | undefined;
2087
- } | undefined;
2088
- clearable: boolean;
2089
- index: number;
2090
- }) => any>> & {
2091
- default?(_: {}): any;
2092
- "group-header"?(_: {
2093
- title: string;
2094
- columns: PlusColumn[] | undefined;
2095
- icon: Component | undefined;
2096
- index: number;
2097
- }): any;
2098
- footer?(_: {
2099
- handleReset: () => void;
2100
- handleSubmit: () => void;
2101
- }): any;
2102
- };
2103
- }) | null | undefined>;
2104
- handleReset: () => void;
2105
- handleSearch: () => void;
2106
- handleUnfold: (e: MouseEvent) => void;
2107
- }> & {} & ComponentCustomProperties & {} & {
2108
- $slots: Partial<Record<NonNullable<string | number>, (_: {
2109
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
2110
- readonly label: string | ComputedRef<string>;
2111
- readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2112
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2113
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
2114
- style?: CSSProperties | undefined;
2115
- class?: any;
2116
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2117
- style?: CSSProperties | undefined;
2118
- class?: any;
2119
- } & RecordType>>;
2120
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
2121
- [key: string]: any;
2122
- style?: CSSProperties | undefined;
2123
- }>;
2124
- readonly fieldProps: PropsItemType<Partial<{
2125
- [index: string]: any;
2126
- [index: number]: any;
2127
- [index: symbol]: any;
2128
- class: any;
2129
- style: CSSProperties;
2130
- modelModifiers: {
2131
- [index: string]: any;
2132
- lazy?: boolean | undefined;
2133
- trim?: boolean | undefined;
2134
- number?: boolean | undefined;
2135
- };
2136
- rows: number;
2137
- autocomplete: string;
2138
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
2139
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
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
- */
2149
- format: string | ProgressFn | undefined;
2150
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
2151
- id: string | [string, string];
2152
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
2153
- height: string | number;
2154
- autosize: InputAutoSize;
2155
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
2156
- readonly options: OptionsType;
2157
- readonly fieldSlots: {
2158
- [slotName: string]: (data?: any) => RenderTypes;
2159
- };
2160
- readonly valueType: TableValueType | FormItemValueType;
2161
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2162
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2163
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2164
- readonly renderErrorMessage: ((props: PlusColumn & {
2165
- value?: FieldValueType;
2166
- error?: string | undefined;
2167
- label?: string | undefined;
2168
- }) => RenderTypes) | undefined;
2169
- readonly optionsMap: {
2170
- label?: string | undefined;
2171
- value?: string | undefined;
2172
- } | undefined;
2173
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2174
- store?: any;
2175
- method?: string | undefined;
2176
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2177
- dictCode?: string | undefined;
2178
- } | undefined;
2179
- readonly clearable: boolean;
2180
- readonly index: number;
2181
- } & {
2182
- readonly clearable: boolean;
2183
- };
2184
- label: string;
2185
- fieldProps: RecordType;
2186
- formItemProps: RecordType;
2187
- options: OptionsRow<undefined>[];
2188
- fieldInstance?: any;
2189
- valueIsReady?: Ref<boolean> | undefined;
2190
- prop: string;
2191
- modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2192
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2193
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
2194
- style?: CSSProperties | undefined;
2195
- class?: any;
2196
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2197
- style?: CSSProperties | undefined;
2198
- class?: any;
2199
- } & RecordType>>;
2200
- fieldSlots: {
2201
- [slotName: string]: (data?: any) => RenderTypes;
2202
- };
2203
- valueType: TableValueType | FormItemValueType;
2204
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2205
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2206
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2207
- renderErrorMessage: ((props: PlusColumn & {
2208
- value?: FieldValueType;
2209
- error?: string | undefined;
2210
- label?: string | undefined;
2211
- }) => RenderTypes) | undefined;
2212
- optionsMap: {
2213
- label?: string | undefined;
2214
- value?: string | undefined;
2215
- } | undefined;
2216
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2217
- store?: any;
2218
- method?: string | undefined;
2219
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2220
- dictCode?: string | undefined;
2221
- } | undefined;
2222
- clearable: boolean;
2223
- index: number;
2224
- }) => any>> & {
2225
- footer?(_: {
2226
- isShowUnfold: boolean;
2227
- handleReset: () => void;
2228
- handleSearch: () => void;
2229
- handleUnfold: (e: MouseEvent) => void;
2230
- searchLoading: boolean;
2231
- }): any;
2232
- };
2233
- }) | null>;
2234
- plusTableInstance: Ref<({
2235
- $: ComponentInternalInstance;
2236
- $data: {};
2237
- $props: Partial<{
2238
- data: RecordType[];
2239
- columns: PlusColumn[];
2240
- headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2241
- row: any[];
2242
- rowIndex: number;
2243
- column: TableColumnCtx<any[]>;
2244
- columnIndex: number;
2245
- }) => CSSProperties>;
2246
- rowKey: string | ((row: any[]) => string);
2247
- actionBar: false | Partial< ActionBarProps>;
2248
- editable: boolean | "click" | "dblclick";
2249
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2250
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2251
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2252
- titleBar: boolean | Partial<Partial<{
2253
- title?: string | undefined;
2254
- refresh?: boolean | undefined;
2255
- density?: boolean | undefined;
2256
- columnSetting?: boolean | ColumnSetting | undefined;
2257
- icon?: {
2258
- size?: string | undefined;
2259
- color?: string | undefined;
2260
- } | undefined;
2261
- }>>;
2262
- defaultSize: "" | "default" | "small" | "large";
2263
- tableData: RecordType[];
2264
- pagination: false | Partial<PlusPaginationProps>;
2265
- hasIndexColumn: boolean;
2266
- isSelection: boolean | "radio";
2267
- isRadio: boolean;
2268
- hasExpand: boolean;
2269
- loadingStatus: boolean;
2270
- dragSortable: false | Partial< Options>;
2271
- selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2272
- radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2273
- radioProps: Partial< PlusRadioProps & {
2274
- style?: CSSProperties | undefined;
2275
- class?: any;
2276
- } & RecordType>;
2277
- defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
2278
- expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2279
- adaptive: boolean | {
2280
- offsetBottom?: number | undefined;
2281
- timeout?: number | undefined;
2282
- };
2283
- columnsEmptyText: string;
2284
- }> & Omit<{
2285
- readonly data: RecordType[];
2286
- readonly columns: PlusColumn[];
2287
- readonly headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2288
- row: any[];
2289
- rowIndex: number;
2290
- column: TableColumnCtx<any[]>;
2291
- columnIndex: number;
2292
- }) => CSSProperties>;
2293
- readonly rowKey: string | ((row: any[]) => string);
2294
- readonly actionBar: false | Partial< ActionBarProps>;
2295
- readonly editable: boolean | "click" | "dblclick";
2296
- readonly indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2297
- readonly indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2298
- readonly dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2299
- readonly titleBar: boolean | Partial<Partial<{
2300
- title?: string | undefined;
2301
- refresh?: boolean | undefined;
2302
- density?: boolean | undefined;
2303
- columnSetting?: boolean | ColumnSetting | undefined;
2304
- icon?: {
2305
- size?: string | undefined;
2306
- color?: string | undefined;
2307
- } | undefined;
2308
- }>>;
2309
- readonly defaultSize: "" | "default" | "small" | "large";
2310
- readonly tableData: RecordType[];
2311
- readonly pagination: false | Partial<PlusPaginationProps>;
2312
- readonly hasIndexColumn: boolean;
2313
- readonly isSelection: boolean | "radio";
2314
- readonly isRadio: boolean;
2315
- readonly hasExpand: boolean;
2316
- readonly loadingStatus: boolean;
2317
- readonly dragSortable: false | Partial< Options>;
2318
- readonly selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2319
- readonly radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2320
- readonly expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2321
- readonly adaptive: boolean | {
2322
- offsetBottom?: number | undefined;
2323
- timeout?: number | undefined;
2324
- };
2325
- readonly columnsEmptyText: string;
2326
- readonly height?: string | number | undefined;
2327
- readonly radioProps?: Partial< PlusRadioProps & {
2328
- style?: CSSProperties | undefined;
2329
- class?: any;
2330
- } & RecordType> | undefined;
2331
- readonly defaultSelectedRadioRow?: RecordType | ComputedRef<RecordType> | undefined;
2332
- readonly filterTableHeaderOverflowLabelLength?: number | undefined;
2333
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2334
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2335
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2336
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2337
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2338
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2339
- onRefresh?: (() => any) | undefined;
2340
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2341
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2342
- onEdited?: (() => any) | undefined;
2343
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2344
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
2345
- data: {
2346
- type: PropType<RecordType[]>;
2347
- default: () => never[];
2348
- };
2349
- columns: {
2350
- type: PropType<PlusColumn[]>;
2351
- default: () => never[];
2352
- };
2353
- height: {
2354
- type: PropType<string | number>;
2355
- };
2356
- headerCellStyle: {
2357
- type: PropType<Partial< CSSProperties> | Partial<(data: {
2358
- row: any[];
2359
- rowIndex: number;
2360
- column: TableColumnCtx<any[]>;
2361
- columnIndex: number;
2362
- }) => CSSProperties>>;
2363
- default: () => {
2364
- 'background-color': string;
2365
- };
2366
- };
2367
- rowKey: {
2368
- type: PropType<string | ((row: any[]) => string)>;
2369
- default: string;
2370
- };
2371
- actionBar: {
2372
- type: PropType<false | Partial< ActionBarProps>>;
2373
- default: boolean;
2374
- };
2375
- editable: {
2376
- type: PropType<boolean | "click" | "dblclick">;
2377
- default: boolean;
2378
- };
2379
- indexTableColumnProps: {
2380
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2381
- default: () => {};
2382
- };
2383
- indexContentStyle: {
2384
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
2385
- default: () => {};
2386
- };
2387
- dragSortableTableColumnProps: {
2388
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2389
- default: () => {};
2390
- };
2391
- titleBar: {
2392
- type: PropType<boolean | Partial<Partial<{
2393
- title?: string | undefined;
2394
- refresh?: boolean | undefined;
2395
- density?: boolean | undefined;
2396
- columnSetting?: boolean | ColumnSetting | undefined;
2397
- icon?: {
2398
- size?: string | undefined;
2399
- color?: string | undefined;
2400
- } | undefined;
2401
- }>>>;
2402
- default: boolean;
2403
- };
2404
- defaultSize: {
2405
- type: PropType<"" | "default" | "small" | "large">;
2406
- default: string;
2407
- };
2408
- tableData: {
2409
- type: PropType<RecordType[]>;
2410
- default: () => never[];
2411
- };
2412
- pagination: {
2413
- type: PropType<false | Partial<PlusPaginationProps>>;
2414
- default: boolean;
2415
- };
2416
- hasIndexColumn: {
2417
- type: PropType<boolean>;
2418
- default: boolean;
2419
- };
2420
- isSelection: {
2421
- type: PropType<boolean | "radio">;
2422
- default: boolean;
2423
- };
2424
- isRadio: {
2425
- type: PropType<boolean>;
2426
- default: boolean;
2427
- };
2428
- hasExpand: {
2429
- type: PropType<boolean>;
2430
- default: boolean;
2431
- };
2432
- loadingStatus: {
2433
- type: PropType<boolean>;
2434
- default: boolean;
2435
- };
2436
- dragSortable: {
2437
- type: PropType<false | Partial< Options>>;
2438
- default: boolean;
2439
- };
2440
- selectionTableColumnProps: {
2441
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2442
- default: () => {
2443
- width: number;
2444
- };
2445
- };
2446
- radioTableColumnProps: {
2447
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2448
- default: () => {
2449
- width: number;
2450
- };
2451
- };
2452
- radioProps: {
2453
- type: PropType<Partial< PlusRadioProps & {
2454
- style?: CSSProperties | undefined;
2455
- class?: any;
2456
- } & RecordType>>;
2457
- default: undefined;
2458
- };
2459
- defaultSelectedRadioRow: {
2460
- type: PropType<RecordType | ComputedRef<RecordType>>;
2461
- default: undefined;
2462
- };
2463
- expandTableColumnProps: {
2464
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2465
- default: () => {};
2466
- };
2467
- adaptive: {
2468
- type: PropType<boolean | {
2469
- offsetBottom?: number | undefined;
2470
- timeout?: number | undefined;
2471
- }>;
2472
- default: boolean;
2473
- };
2474
- filterTableHeaderOverflowLabelLength: {
2475
- type: PropType<number>;
2476
- };
2477
- columnsEmptyText: {
2478
- type: PropType<string>;
2479
- default: string;
2480
- };
2481
- }>> & {
2482
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2483
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2484
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2485
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2486
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2487
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2488
- onRefresh?: (() => any) | undefined;
2489
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2490
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2491
- onEdited?: (() => any) | undefined;
2492
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2493
- }, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive" | "columnsEmptyText">;
2494
- $attrs: {
2495
- [x: string]: unknown;
2496
- };
2497
- $refs: {
2498
- [x: string]: unknown;
2499
- };
2500
- $slots: Readonly<{
2501
- [name: string]: Slot<any> | undefined;
2502
- }>;
2503
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
2504
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
2505
- $emit: ((event: "refresh") => void) & ((event: "paginationChange", pageInfo: PageInfo) => void) & ((event: "clickAction", data: ButtonsCallBackParams) => void) & ((event: "clickActionConfirmCancel", data: ButtonsCallBackParams) => void) & ((event: "dragSortEnd", newIndex: number, oldIndex: number) => void) & ((event: "formChange", data: FormChangeCallBackParams) => void) & ((event: "edited") => void) & ((event: "cell-click", row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void) & ((event: "cell-dblclick", row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void) & ((event: "filterTableHeader", columns: PlusColumn[], eventType: FilterTableHeaderEventType) => void) & ((event: "radioChange", row: RecordType, index: number, value: boolean) => void);
2506
- $el: any;
2507
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
2508
- data: {
2509
- type: PropType<RecordType[]>;
2510
- default: () => never[];
2511
- };
2512
- columns: {
2513
- type: PropType<PlusColumn[]>;
2514
- default: () => never[];
2515
- };
2516
- height: {
2517
- type: PropType<string | number>;
2518
- };
2519
- headerCellStyle: {
2520
- type: PropType<Partial< CSSProperties> | Partial<(data: {
2521
- row: any[];
2522
- rowIndex: number;
2523
- column: TableColumnCtx<any[]>;
2524
- columnIndex: number;
2525
- }) => CSSProperties>>;
2526
- default: () => {
2527
- 'background-color': string;
2528
- };
2529
- };
2530
- rowKey: {
2531
- type: PropType<string | ((row: any[]) => string)>;
2532
- default: string;
2533
- };
2534
- actionBar: {
2535
- type: PropType<false | Partial< ActionBarProps>>;
2536
- default: boolean;
2537
- };
2538
- editable: {
2539
- type: PropType<boolean | "click" | "dblclick">;
2540
- default: boolean;
2541
- };
2542
- indexTableColumnProps: {
2543
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2544
- default: () => {};
2545
- };
2546
- indexContentStyle: {
2547
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
2548
- default: () => {};
2549
- };
2550
- dragSortableTableColumnProps: {
2551
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2552
- default: () => {};
2553
- };
2554
- titleBar: {
2555
- type: PropType<boolean | Partial<Partial<{
2556
- title?: string | undefined;
2557
- refresh?: boolean | undefined;
2558
- density?: boolean | undefined;
2559
- columnSetting?: boolean | ColumnSetting | undefined;
2560
- icon?: {
2561
- size?: string | undefined;
2562
- color?: string | undefined;
2563
- } | undefined;
2564
- }>>>;
2565
- default: boolean;
2566
- };
2567
- defaultSize: {
2568
- type: PropType<"" | "default" | "small" | "large">;
2569
- default: string;
2570
- };
2571
- tableData: {
2572
- type: PropType<RecordType[]>;
2573
- default: () => never[];
2574
- };
2575
- pagination: {
2576
- type: PropType<false | Partial<PlusPaginationProps>>;
2577
- default: boolean;
2578
- };
2579
- hasIndexColumn: {
2580
- type: PropType<boolean>;
2581
- default: boolean;
2582
- };
2583
- isSelection: {
2584
- type: PropType<boolean | "radio">;
2585
- default: boolean;
2586
- };
2587
- isRadio: {
2588
- type: PropType<boolean>;
2589
- default: boolean;
2590
- };
2591
- hasExpand: {
2592
- type: PropType<boolean>;
2593
- default: boolean;
2594
- };
2595
- loadingStatus: {
2596
- type: PropType<boolean>;
2597
- default: boolean;
2598
- };
2599
- dragSortable: {
2600
- type: PropType<false | Partial< Options>>;
2601
- default: boolean;
2602
- };
2603
- selectionTableColumnProps: {
2604
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2605
- default: () => {
2606
- width: number;
2607
- };
2608
- };
2609
- radioTableColumnProps: {
2610
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2611
- default: () => {
2612
- width: number;
2613
- };
2614
- };
2615
- radioProps: {
2616
- type: PropType<Partial< PlusRadioProps & {
2617
- style?: CSSProperties | undefined;
2618
- class?: any;
2619
- } & RecordType>>;
2620
- default: undefined;
2621
- };
2622
- defaultSelectedRadioRow: {
2623
- type: PropType<RecordType | ComputedRef<RecordType>>;
2624
- default: undefined;
2625
- };
2626
- expandTableColumnProps: {
2627
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2628
- default: () => {};
2629
- };
2630
- adaptive: {
2631
- type: PropType<boolean | {
2632
- offsetBottom?: number | undefined;
2633
- timeout?: number | undefined;
2634
- }>;
2635
- default: boolean;
2636
- };
2637
- filterTableHeaderOverflowLabelLength: {
2638
- type: PropType<number>;
2639
- };
2640
- columnsEmptyText: {
2641
- type: PropType<string>;
2642
- default: string;
2643
- };
2644
- }>> & {
2645
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2646
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2647
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2648
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2649
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2650
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2651
- onRefresh?: (() => any) | undefined;
2652
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2653
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2654
- onEdited?: (() => any) | undefined;
2655
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2656
- }, {
2657
- formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
2658
- tableInstance: ShallowRef< TableInstance | null>;
2659
- startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2660
- stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2661
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2662
- paginationChange: (pageInfo: PageInfo) => void;
2663
- clickAction: (data: ButtonsCallBackParams) => void;
2664
- clickActionConfirmCancel: (data: ButtonsCallBackParams) => void;
2665
- dragSortEnd: (newIndex: number, oldIndex: number) => void;
2666
- formChange: (data: FormChangeCallBackParams) => void;
2667
- refresh: () => void;
2668
- edited: () => void;
2669
- "cell-click": (row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void;
2670
- "cell-dblclick": (row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void;
2671
- filterTableHeader: (columns: PlusColumn[], eventType: FilterTableHeaderEventType) => void;
2672
- radioChange: (row: RecordType, index: number, value: boolean) => void;
2673
- }, string, {
2674
- data: RecordType[];
2675
- columns: PlusColumn[];
2676
- headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2677
- row: any[];
2678
- rowIndex: number;
2679
- column: TableColumnCtx<any[]>;
2680
- columnIndex: number;
2681
- }) => CSSProperties>;
2682
- rowKey: string | ((row: any[]) => string);
2683
- actionBar: false | Partial< ActionBarProps>;
2684
- editable: boolean | "click" | "dblclick";
2685
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2686
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2687
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2688
- titleBar: boolean | Partial<Partial<{
2689
- title?: string | undefined;
2690
- refresh?: boolean | undefined;
2691
- density?: boolean | undefined;
2692
- columnSetting?: boolean | ColumnSetting | undefined;
2693
- icon?: {
2694
- size?: string | undefined;
2695
- color?: string | undefined;
2696
- } | undefined;
2697
- }>>;
2698
- defaultSize: "" | "default" | "small" | "large";
2699
- tableData: RecordType[];
2700
- pagination: false | Partial<PlusPaginationProps>;
2701
- hasIndexColumn: boolean;
2702
- isSelection: boolean | "radio";
2703
- isRadio: boolean;
2704
- hasExpand: boolean;
2705
- loadingStatus: boolean;
2706
- dragSortable: false | Partial< Options>;
2707
- selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2708
- radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2709
- radioProps: Partial< PlusRadioProps & {
2710
- style?: CSSProperties | undefined;
2711
- class?: any;
2712
- } & RecordType>;
2713
- defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
2714
- expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2715
- adaptive: boolean | {
2716
- offsetBottom?: number | undefined;
2717
- timeout?: number | undefined;
2718
- };
2719
- columnsEmptyText: string;
2720
- }, {}, string, {}> & {
2721
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
2722
- created?: ((() => void) | (() => void)[]) | undefined;
2723
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
2724
- mounted?: ((() => void) | (() => void)[]) | undefined;
2725
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
2726
- updated?: ((() => void) | (() => void)[]) | undefined;
2727
- activated?: ((() => void) | (() => void)[]) | undefined;
2728
- deactivated?: ((() => void) | (() => void)[]) | undefined;
2729
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
2730
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
2731
- destroyed?: ((() => void) | (() => void)[]) | undefined;
2732
- unmounted?: ((() => void) | (() => void)[]) | undefined;
2733
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
2734
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
2735
- 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;
2736
- };
2737
- $forceUpdate: () => void;
2738
- $nextTick: nextTick;
2739
- $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;
2740
- } & Omit<Readonly< ExtractPropTypes<{
2741
- data: {
2742
- type: PropType<RecordType[]>;
2743
- default: () => never[];
2744
- };
2745
- columns: {
2746
- type: PropType<PlusColumn[]>;
2747
- default: () => never[];
2748
- };
2749
- height: {
2750
- type: PropType<string | number>;
2751
- };
2752
- headerCellStyle: {
2753
- type: PropType<Partial< CSSProperties> | Partial<(data: {
2754
- row: any[];
2755
- rowIndex: number;
2756
- column: TableColumnCtx<any[]>;
2757
- columnIndex: number;
2758
- }) => CSSProperties>>;
2759
- default: () => {
2760
- 'background-color': string;
2761
- };
2762
- };
2763
- rowKey: {
2764
- type: PropType<string | ((row: any[]) => string)>;
2765
- default: string;
2766
- };
2767
- actionBar: {
2768
- type: PropType<false | Partial< ActionBarProps>>;
2769
- default: boolean;
2770
- };
2771
- editable: {
2772
- type: PropType<boolean | "click" | "dblclick">;
2773
- default: boolean;
2774
- };
2775
- indexTableColumnProps: {
2776
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2777
- default: () => {};
2778
- };
2779
- indexContentStyle: {
2780
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
2781
- default: () => {};
2782
- };
2783
- dragSortableTableColumnProps: {
2784
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2785
- default: () => {};
2786
- };
2787
- titleBar: {
2788
- type: PropType<boolean | Partial<Partial<{
2789
- title?: string | undefined;
2790
- refresh?: boolean | undefined;
2791
- density?: boolean | undefined;
2792
- columnSetting?: boolean | ColumnSetting | undefined;
2793
- icon?: {
2794
- size?: string | undefined;
2795
- color?: string | undefined;
2796
- } | undefined;
2797
- }>>>;
2798
- default: boolean;
2799
- };
2800
- defaultSize: {
2801
- type: PropType<"" | "default" | "small" | "large">;
2802
- default: string;
2803
- };
2804
- tableData: {
2805
- type: PropType<RecordType[]>;
2806
- default: () => never[];
2807
- };
2808
- pagination: {
2809
- type: PropType<false | Partial<PlusPaginationProps>>;
2810
- default: boolean;
2811
- };
2812
- hasIndexColumn: {
2813
- type: PropType<boolean>;
2814
- default: boolean;
2815
- };
2816
- isSelection: {
2817
- type: PropType<boolean | "radio">;
2818
- default: boolean;
2819
- };
2820
- isRadio: {
2821
- type: PropType<boolean>;
2822
- default: boolean;
2823
- };
2824
- hasExpand: {
2825
- type: PropType<boolean>;
2826
- default: boolean;
2827
- };
2828
- loadingStatus: {
2829
- type: PropType<boolean>;
2830
- default: boolean;
2831
- };
2832
- dragSortable: {
2833
- type: PropType<false | Partial< Options>>;
2834
- default: boolean;
2835
- };
2836
- selectionTableColumnProps: {
2837
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2838
- default: () => {
2839
- width: number;
2840
- };
2841
- };
2842
- radioTableColumnProps: {
2843
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2844
- default: () => {
2845
- width: number;
2846
- };
2847
- };
2848
- radioProps: {
2849
- type: PropType<Partial< PlusRadioProps & {
2850
- style?: CSSProperties | undefined;
2851
- class?: any;
2852
- } & RecordType>>;
2853
- default: undefined;
2854
- };
2855
- defaultSelectedRadioRow: {
2856
- type: PropType<RecordType | ComputedRef<RecordType>>;
2857
- default: undefined;
2858
- };
2859
- expandTableColumnProps: {
2860
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2861
- default: () => {};
2862
- };
2863
- adaptive: {
2864
- type: PropType<boolean | {
2865
- offsetBottom?: number | undefined;
2866
- timeout?: number | undefined;
2867
- }>;
2868
- default: boolean;
2869
- };
2870
- filterTableHeaderOverflowLabelLength: {
2871
- type: PropType<number>;
2872
- };
2873
- columnsEmptyText: {
2874
- type: PropType<string>;
2875
- default: string;
2876
- };
2877
- }>> & {
2878
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2879
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2880
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2881
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2882
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2883
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2884
- onRefresh?: (() => any) | undefined;
2885
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2886
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2887
- onEdited?: (() => any) | undefined;
2888
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2889
- }, "tableInstance" | "formRefs" | "startRowEdit" | "stopRowEdit"> & ShallowUnwrapRef<{
2890
- formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
2891
- tableInstance: ShallowRef< TableInstance | null>;
2892
- startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2893
- stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2894
- }> & {} & ComponentCustomProperties & {} & {
2895
- $slots: Partial<Record<NonNullable<string | number>, (_: {
2896
- column: any;
2897
- prop: string;
2898
- valueType: TableValueType | FormItemValueType;
2899
- row: RecordType;
2900
- index: number;
2901
- rowIndex: number;
2902
- fieldProps: RecordType;
2903
- options: OptionsRow<undefined>[];
2904
- value: any;
2905
- }) => any>> & {
2906
- title?(_: {}): any;
2907
- toolbar?(_: {}): any;
2908
- "drag-sort-icon"?(_: {}): any;
2909
- "column-settings-icon"?(_: {}): any;
2910
- "density-icon"?(_: {}): any;
2911
- expand?(_: any): any;
2912
- default?(_: {}): any;
2913
- "action-bar-more-icon"?(_: {}): any;
2914
- append?(_: {}): any;
2915
- empty?(_: {}): any;
2916
- "pagination-left"?(_: {}): any;
2917
- "pagination-right"?(_: {}): any;
2918
- };
2919
- }) | null>;
2920
- plusVirtualTableInstance: Ref<({
2921
- $: ComponentInternalInstance;
2922
- $data: {};
2923
- $props: Partial<{
2924
- fixed: boolean;
2925
- data: RecordType[];
2926
- columns: PlusColumn[];
2927
- border: boolean;
2928
- rowKey: string;
2929
- actionBar: false | Partial< ActionBarProps>;
2930
- stripe: boolean;
2931
- scrollbarAlwaysOn: boolean;
2932
- titleBar: boolean | {
2933
- title?: string | undefined;
2934
- refresh?: boolean | undefined;
2935
- };
2936
- defaultSize: "" | "default" | "small" | "large";
2937
- tableData: RecordType[];
2938
- pagination: false | Partial<PlusPaginationProps>;
2939
- hasIndexColumn: boolean;
2940
- isSelection: boolean;
2941
- loadingStatus: boolean;
2942
- columnsEmptyText: string;
2943
- headerHeight: number;
2944
- rowHeight: number;
2945
- defaultColumnWidth: number;
2946
- selectionColumnWidth: number;
2947
- indexColumnWidth: number;
2948
- }> & Omit<{
2949
- readonly fixed: boolean;
2950
- readonly data: RecordType[];
2951
- readonly columns: PlusColumn[];
2952
- readonly border: boolean;
2953
- readonly rowKey: string;
2954
- readonly actionBar: false | Partial< ActionBarProps>;
2955
- readonly stripe: boolean;
2956
- readonly scrollbarAlwaysOn: boolean;
2957
- readonly titleBar: boolean | {
2958
- title?: string | undefined;
2959
- refresh?: boolean | undefined;
2960
- };
2961
- readonly defaultSize: "" | "default" | "small" | "large";
2962
- readonly tableData: RecordType[];
2963
- readonly pagination: false | Partial<PlusPaginationProps>;
2964
- readonly hasIndexColumn: boolean;
2965
- readonly isSelection: boolean;
2966
- readonly loadingStatus: boolean;
2967
- readonly columnsEmptyText: string;
2968
- readonly headerHeight: number;
2969
- readonly rowHeight: number;
2970
- readonly defaultColumnWidth: number;
2971
- readonly selectionColumnWidth: number;
2972
- readonly indexColumnWidth: number;
2973
- readonly width?: string | number | undefined;
2974
- readonly height?: string | number | undefined;
2975
- readonly headerCellStyle?: CSSProperties | undefined;
2976
- readonly rowStyle?: CSSProperties | ((params: {
2977
- rowData: RecordType;
2978
- rowIndex: number;
2979
- }) => CSSProperties) | undefined;
2980
- readonly rowClass?: string | ((params: {
2981
- rowData: RecordType;
2982
- rowIndex: number;
2983
- }) => string) | undefined;
2984
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
2985
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2986
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
2987
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
2988
- "onSort-change"?: ((data: {
2989
- column: VirtualTableColumn;
2990
- prop: string;
2991
- order: string | null;
2992
- }) => any) | undefined;
2993
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
2994
- onRefresh?: (() => any) | undefined;
2995
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2996
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
2997
- fixed: {
2998
- type: PropType<boolean>;
2999
- default: boolean;
3000
- };
3001
- data: {
3002
- type: PropType<RecordType[]>;
3003
- default: () => never[];
3004
- };
3005
- width: {
3006
- type: PropType<string | number>;
3007
- };
3008
- columns: {
3009
- type: PropType<PlusColumn[]>;
3010
- default: () => never[];
3011
- };
3012
- border: {
3013
- type: PropType<boolean>;
3014
- default: boolean;
3015
- };
3016
- height: {
3017
- type: PropType<string | number>;
3018
- };
3019
- headerCellStyle: {
3020
- type: PropType<CSSProperties>;
3021
- };
3022
- rowKey: {
3023
- type: PropType<string>;
3024
- default: string;
3025
- };
3026
- actionBar: {
3027
- type: PropType<false | Partial< ActionBarProps>>;
3028
- default: boolean;
3029
- };
3030
- stripe: {
3031
- type: PropType<boolean>;
3032
- default: boolean;
3033
- };
3034
- rowStyle: {
3035
- type: PropType< CSSProperties | ((params: {
3036
- rowData: RecordType;
3037
- rowIndex: number;
3038
- }) => CSSProperties)>;
3039
- };
3040
- scrollbarAlwaysOn: {
3041
- type: PropType<boolean>;
3042
- default: boolean;
3043
- };
3044
- titleBar: {
3045
- type: PropType<boolean | {
3046
- title?: string | undefined;
3047
- refresh?: boolean | undefined;
3048
- }>;
3049
- default: boolean;
3050
- };
3051
- defaultSize: {
3052
- type: PropType<"" | "default" | "small" | "large">;
3053
- default: string;
3054
- };
3055
- tableData: {
3056
- type: PropType<RecordType[]>;
3057
- default: () => never[];
3058
- };
3059
- pagination: {
3060
- type: PropType<false | Partial<PlusPaginationProps>>;
3061
- default: boolean;
3062
- };
3063
- hasIndexColumn: {
3064
- type: PropType<boolean>;
3065
- default: boolean;
3066
- };
3067
- isSelection: {
3068
- type: PropType<boolean>;
3069
- default: boolean;
3070
- };
3071
- loadingStatus: {
3072
- type: PropType<boolean>;
3073
- default: boolean;
3074
- };
3075
- columnsEmptyText: {
3076
- type: PropType<string>;
3077
- default: string;
3078
- };
3079
- headerHeight: {
3080
- type: PropType<number>;
3081
- default: number;
3082
- };
3083
- rowClass: {
3084
- type: PropType<string | ((params: {
3085
- rowData: RecordType;
3086
- rowIndex: number;
3087
- }) => string)>;
3088
- };
3089
- rowHeight: {
3090
- type: PropType<number>;
3091
- default: number;
3092
- };
3093
- defaultColumnWidth: {
3094
- type: PropType<number>;
3095
- default: number;
3096
- };
3097
- selectionColumnWidth: {
3098
- type: PropType<number>;
3099
- default: number;
3100
- };
3101
- indexColumnWidth: {
3102
- type: PropType<number>;
3103
- default: number;
3104
- };
3105
- }>> & {
3106
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3107
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3108
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3109
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3110
- "onSort-change"?: ((data: {
3111
- column: VirtualTableColumn;
3112
- prop: string;
3113
- order: string | null;
3114
- }) => any) | undefined;
3115
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3116
- onRefresh?: (() => any) | undefined;
3117
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3118
- }, "fixed" | "data" | "columns" | "border" | "rowKey" | "actionBar" | "stripe" | "scrollbarAlwaysOn" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "loadingStatus" | "columnsEmptyText" | "headerHeight" | "rowHeight" | "defaultColumnWidth" | "selectionColumnWidth" | "indexColumnWidth">;
3119
- $attrs: {
3120
- [x: string]: unknown;
3121
- };
3122
- $refs: {
3123
- [x: string]: unknown;
3124
- };
3125
- $slots: Readonly<{
3126
- [name: string]: Slot<any> | undefined;
3127
- }>;
3128
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3129
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3130
- $emit: ((event: "select", selection: RecordType[], row: RecordType) => void) & ((event: "refresh") => 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: {
3131
- column: VirtualTableColumn;
3132
- prop: string;
3133
- order: string | null;
3134
- }) => void) & ((event: "paginationChange", pageInfo: PageInfo) => void) & ((event: "clickAction", data: ButtonsCallBackParams) => void);
3135
- $el: any;
3136
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
3137
- fixed: {
3138
- type: PropType<boolean>;
3139
- default: boolean;
3140
- };
3141
- data: {
3142
- type: PropType<RecordType[]>;
3143
- default: () => never[];
3144
- };
3145
- width: {
3146
- type: PropType<string | number>;
3147
- };
3148
- columns: {
3149
- type: PropType<PlusColumn[]>;
3150
- default: () => never[];
3151
- };
3152
- border: {
3153
- type: PropType<boolean>;
3154
- default: boolean;
3155
- };
3156
- height: {
3157
- type: PropType<string | number>;
3158
- };
3159
- headerCellStyle: {
3160
- type: PropType<CSSProperties>;
3161
- };
3162
- rowKey: {
3163
- type: PropType<string>;
3164
- default: string;
3165
- };
3166
- actionBar: {
3167
- type: PropType<false | Partial< ActionBarProps>>;
3168
- default: boolean;
3169
- };
3170
- stripe: {
3171
- type: PropType<boolean>;
3172
- default: boolean;
3173
- };
3174
- rowStyle: {
3175
- type: PropType< CSSProperties | ((params: {
3176
- rowData: RecordType;
3177
- rowIndex: number;
3178
- }) => CSSProperties)>;
3179
- };
3180
- scrollbarAlwaysOn: {
3181
- type: PropType<boolean>;
3182
- default: boolean;
3183
- };
3184
- titleBar: {
3185
- type: PropType<boolean | {
3186
- title?: string | undefined;
3187
- refresh?: boolean | undefined;
3188
- }>;
3189
- default: boolean;
3190
- };
3191
- defaultSize: {
3192
- type: PropType<"" | "default" | "small" | "large">;
3193
- default: string;
3194
- };
3195
- tableData: {
3196
- type: PropType<RecordType[]>;
3197
- default: () => never[];
3198
- };
3199
- pagination: {
3200
- type: PropType<false | Partial<PlusPaginationProps>>;
3201
- default: boolean;
3202
- };
3203
- hasIndexColumn: {
3204
- type: PropType<boolean>;
3205
- default: boolean;
3206
- };
3207
- isSelection: {
3208
- type: PropType<boolean>;
3209
- default: boolean;
3210
- };
3211
- loadingStatus: {
3212
- type: PropType<boolean>;
3213
- default: boolean;
3214
- };
3215
- columnsEmptyText: {
3216
- type: PropType<string>;
3217
- default: string;
3218
- };
3219
- headerHeight: {
3220
- type: PropType<number>;
3221
- default: number;
3222
- };
3223
- rowClass: {
3224
- type: PropType<string | ((params: {
3225
- rowData: RecordType;
3226
- rowIndex: number;
3227
- }) => string)>;
3228
- };
3229
- rowHeight: {
3230
- type: PropType<number>;
3231
- default: number;
3232
- };
3233
- defaultColumnWidth: {
3234
- type: PropType<number>;
3235
- default: number;
3236
- };
3237
- selectionColumnWidth: {
3238
- type: PropType<number>;
3239
- default: number;
3240
- };
3241
- indexColumnWidth: {
3242
- type: PropType<number>;
3243
- default: number;
3244
- };
3245
- }>> & {
3246
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3247
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3248
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3249
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3250
- "onSort-change"?: ((data: {
3251
- column: VirtualTableColumn;
3252
- prop: string;
3253
- order: string | null;
3254
- }) => any) | undefined;
3255
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3256
- onRefresh?: (() => any) | undefined;
3257
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3258
- }, {
3259
- getSelectionRows: () => RecordType[];
3260
- clearSelection: () => void;
3261
- toggleRowSelection: (row: RecordType, selected?: boolean | undefined) => void;
3262
- toggleAllSelection: (selected?: boolean | undefined) => void;
3263
- scrollToRow: (rowIndex: number) => void;
3264
- data: ComputedRef<RecordType[]>;
3265
- tableRef: ShallowRef< TableV2Instance | null>;
3266
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3267
- paginationChange: (pageInfo: PageInfo) => void;
3268
- clickAction: (data: ButtonsCallBackParams) => void;
3269
- "selection-change": (selection: RecordType[]) => void;
3270
- select: (selection: RecordType[], row: RecordType) => void;
3271
- "select-all": (selection: RecordType[]) => void;
3272
- refresh: () => void;
3273
- "row-click": (rowData: RecordType, rowIndex: number) => void;
3274
- "sort-change": (data: {
3275
- column: VirtualTableColumn;
3276
- prop: string;
3277
- order: string | null;
3278
- }) => void;
3279
- }, string, {
3280
- fixed: boolean;
3281
- data: RecordType[];
3282
- columns: PlusColumn[];
3283
- border: boolean;
3284
- rowKey: string;
3285
- actionBar: false | Partial< ActionBarProps>;
3286
- stripe: boolean;
3287
- scrollbarAlwaysOn: boolean;
3288
- titleBar: boolean | {
3289
- title?: string | undefined;
3290
- refresh?: boolean | undefined;
3291
- };
3292
- defaultSize: "" | "default" | "small" | "large";
3293
- tableData: RecordType[];
3294
- pagination: false | Partial<PlusPaginationProps>;
3295
- hasIndexColumn: boolean;
3296
- isSelection: boolean;
3297
- loadingStatus: boolean;
3298
- columnsEmptyText: string;
3299
- headerHeight: number;
3300
- rowHeight: number;
3301
- defaultColumnWidth: number;
3302
- selectionColumnWidth: number;
3303
- indexColumnWidth: number;
3304
- }, {}, string, {}> & {
3305
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
3306
- created?: ((() => void) | (() => void)[]) | undefined;
3307
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
3308
- mounted?: ((() => void) | (() => void)[]) | undefined;
3309
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
3310
- updated?: ((() => void) | (() => void)[]) | undefined;
3311
- activated?: ((() => void) | (() => void)[]) | undefined;
3312
- deactivated?: ((() => void) | (() => void)[]) | undefined;
3313
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
3314
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
3315
- destroyed?: ((() => void) | (() => void)[]) | undefined;
3316
- unmounted?: ((() => void) | (() => void)[]) | undefined;
3317
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
3318
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
3319
- 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;
3320
- };
3321
- $forceUpdate: () => void;
3322
- $nextTick: nextTick;
3323
- $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;
3324
- } & Omit<Readonly< ExtractPropTypes<{
3325
- fixed: {
3326
- type: PropType<boolean>;
3327
- default: boolean;
3328
- };
3329
- data: {
3330
- type: PropType<RecordType[]>;
3331
- default: () => never[];
3332
- };
3333
- width: {
3334
- type: PropType<string | number>;
3335
- };
3336
- columns: {
3337
- type: PropType<PlusColumn[]>;
3338
- default: () => never[];
3339
- };
3340
- border: {
3341
- type: PropType<boolean>;
3342
- default: boolean;
3343
- };
3344
- height: {
3345
- type: PropType<string | number>;
3346
- };
3347
- headerCellStyle: {
3348
- type: PropType<CSSProperties>;
3349
- };
3350
- rowKey: {
3351
- type: PropType<string>;
3352
- default: string;
3353
- };
3354
- actionBar: {
3355
- type: PropType<false | Partial< ActionBarProps>>;
3356
- default: boolean;
3357
- };
3358
- stripe: {
3359
- type: PropType<boolean>;
3360
- default: boolean;
3361
- };
3362
- rowStyle: {
3363
- type: PropType< CSSProperties | ((params: {
3364
- rowData: RecordType;
3365
- rowIndex: number;
3366
- }) => CSSProperties)>;
3367
- };
3368
- scrollbarAlwaysOn: {
3369
- type: PropType<boolean>;
3370
- default: boolean;
3371
- };
3372
- titleBar: {
3373
- type: PropType<boolean | {
3374
- title?: string | undefined;
3375
- refresh?: boolean | undefined;
3376
- }>;
3377
- default: boolean;
3378
- };
3379
- defaultSize: {
3380
- type: PropType<"" | "default" | "small" | "large">;
3381
- default: string;
3382
- };
3383
- tableData: {
3384
- type: PropType<RecordType[]>;
3385
- default: () => never[];
3386
- };
3387
- pagination: {
3388
- type: PropType<false | Partial<PlusPaginationProps>>;
3389
- default: boolean;
3390
- };
3391
- hasIndexColumn: {
3392
- type: PropType<boolean>;
3393
- default: boolean;
3394
- };
3395
- isSelection: {
3396
- type: PropType<boolean>;
3397
- default: boolean;
3398
- };
3399
- loadingStatus: {
3400
- type: PropType<boolean>;
3401
- default: boolean;
3402
- };
3403
- columnsEmptyText: {
3404
- type: PropType<string>;
3405
- default: string;
3406
- };
3407
- headerHeight: {
3408
- type: PropType<number>;
3409
- default: number;
3410
- };
3411
- rowClass: {
3412
- type: PropType<string | ((params: {
3413
- rowData: RecordType;
3414
- rowIndex: number;
3415
- }) => string)>;
3416
- };
3417
- rowHeight: {
3418
- type: PropType<number>;
3419
- default: number;
3420
- };
3421
- defaultColumnWidth: {
3422
- type: PropType<number>;
3423
- default: number;
3424
- };
3425
- selectionColumnWidth: {
3426
- type: PropType<number>;
3427
- default: number;
3428
- };
3429
- indexColumnWidth: {
3430
- type: PropType<number>;
3431
- default: number;
3432
- };
3433
- }>> & {
3434
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3435
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3436
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3437
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3438
- "onSort-change"?: ((data: {
3439
- column: VirtualTableColumn;
3440
- prop: string;
3441
- order: string | null;
3442
- }) => any) | undefined;
3443
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3444
- onRefresh?: (() => any) | undefined;
3445
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3446
- }, "data" | "getSelectionRows" | "toggleRowSelection" | "clearSelection" | "toggleAllSelection" | "tableRef" | "scrollToRow"> & ShallowUnwrapRef<{
3447
- getSelectionRows: () => RecordType[];
3448
- clearSelection: () => void;
3449
- toggleRowSelection: (row: RecordType, selected?: boolean | undefined) => void;
3450
- toggleAllSelection: (selected?: boolean | undefined) => void;
3451
- scrollToRow: (rowIndex: number) => void;
3452
- data: ComputedRef<RecordType[]>;
3453
- tableRef: ShallowRef< TableV2Instance | null>;
3454
- }> & {} & ComponentCustomProperties & {} & {
3455
- $slots: {
3456
- title?(_: {}): any;
3457
- toolbar?(_: {}): any;
3458
- "pagination-left"?(_: {}): any;
3459
- "pagination-right"?(_: {}): any;
3460
- };
3461
- }) | null>;
3462
- getList: () => Promise<void>;
3463
- handleReset: (val: FieldValues) => void;
3464
- /**
3465
- * TODO: 将会在v0.2.0中移除
3466
- */
3467
- handleRest: (val: FieldValues) => void;
3468
- setSearchFieldsValue: (val: RecordType) => void;
3469
- getSearchFieldsValue: (key?: string | number | symbol | undefined) => FieldValueType;
3470
- clearSearchFieldsValue: () => void;
3471
- /**
3472
- * @version 0.1.23
3473
- */
3474
- setTableData: (data?: RecordType[] | undefined, _total?: number | undefined) => void;
3475
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3476
- search: (data: FieldValues) => void;
3477
- reset: (data: FieldValues) => void;
3478
- paginationChange: (pageInfo: PageInfo) => void;
3479
- requestError: (error: unknown) => void;
3480
- requestComplete: (tableData: RecordType[]) => void;
3481
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusPageProps>, {
3482
- params: () => {};
3483
- columns: () => never[];
3484
- postData: undefined;
3485
- beforeSearchSubmit: undefined;
3486
- isCard: boolean;
3487
- search: () => {};
3488
- table: () => {};
3489
- defaultPageInfo: () => {
3490
- page: number;
3491
- pageSize: number;
3492
- };
3493
- defaultPageSizeList: () => number[];
3494
- searchCardProps: () => {};
3495
- tableCardProps: () => {};
3496
- /**
3497
- * 分页组件的其他参数,不包含total,modelValue,pageSizeList
3498
- */
3499
- pagination: () => {};
3500
- immediate: boolean;
3501
- dividerProps: boolean;
3502
- pageInfoMap: () => {
3503
- page: string;
3504
- pageSize: string;
3505
- };
3506
- searchSlot: boolean;
3507
- columnsEmptyText: string;
3508
- }>>> & {
3509
- onReset?: ((data: FieldValues) => any) | undefined;
3510
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3511
- onSearch?: ((data: FieldValues) => any) | undefined;
3512
- onRequestError?: ((error: unknown) => any) | undefined;
3513
- onRequestComplete?: ((tableData: RecordType[]) => any) | undefined;
3514
- }, {
3515
- search: false | Partial< PlusSearchSelfProps & PlusFormSelfProps & Partial< ElementPlusFormProps> & {
3516
- style?: CSSProperties | undefined;
3517
- class?: any;
3518
- } & RecordType>;
3519
- table: Partial< PlusTableSelfProps & Partial< TableProps<any[]>> & RecordType & {
3520
- style?: CSSProperties | undefined;
3521
- class?: any;
3522
- }>;
3523
- columns: PlusColumn[];
3524
- immediate: boolean;
3525
- params: RecordType;
3526
- pagination: false | Omit<PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
3527
- columnsEmptyText: string;
3528
- postData: <T_1 = RecordType[]>(data: T_1[]) => T_1[];
3529
- beforeSearchSubmit: <T_2 = RecordType>(params: T_2) => T_2;
3530
- isCard: boolean;
3531
- searchCardProps: Partial< Mutable<CardProps> & {
3532
- style?: CSSProperties | undefined;
3533
- class?: any;
3534
- } & RecordType>;
3535
- tableCardProps: Partial< Mutable<CardProps> & {
3536
- style?: CSSProperties | undefined;
3537
- class?: any;
3538
- } & RecordType>;
3539
- defaultPageInfo: PageInfo;
3540
- defaultPageSizeList: number[];
3541
- dividerProps: false | Partial<RecordType>;
3542
- pageInfoMap: {
3543
- page?: string | undefined;
3544
- pageSize?: string | undefined;
3545
- };
3546
- searchSlot: boolean;
3547
- }, {}>, Partial<Record<never, (_: {
3548
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
3549
- readonly label: string | ComputedRef<string>;
3550
- readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3551
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
3552
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
3553
- style?: CSSProperties | undefined;
3554
- class?: any;
3555
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3556
- style?: CSSProperties | undefined;
3557
- class?: any;
3558
- } & RecordType>>;
3559
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
3560
- [key: string]: any;
3561
- style?: CSSProperties | undefined;
3562
- }>;
3563
- readonly fieldProps: PropsItemType<Partial<{
3564
- [index: string]: any;
3565
- [index: number]: any;
3566
- [index: symbol]: any;
3567
- class: any;
3568
- style: CSSProperties;
3569
- modelModifiers: {
3570
- [index: string]: any;
3571
- lazy?: boolean | undefined;
3572
- trim?: boolean | undefined;
3573
- number?: boolean | undefined;
3574
- };
3575
- rows: number;
3576
- autocomplete: string;
3577
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
3578
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
3579
- step: string | number;
3580
- /**
3581
- * 所有列字段为空时显示的默认文本(全局配置)
3582
- * @version v0.2.0
3583
- * @default "-"
3584
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
3585
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
3586
- * @desc 仅对未定义 render/renderHTML 的字段生效
3587
- */
3588
- format: string | ProgressFn | undefined;
3589
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
3590
- id: string | [string, string];
3591
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
3592
- height: string | number;
3593
- autosize: InputAutoSize;
3594
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
3595
- readonly options: OptionsType;
3596
- readonly fieldSlots: {
3597
- [slotName: string]: (data?: any) => RenderTypes;
3598
- };
3599
- readonly valueType: TableValueType | FormItemValueType;
3600
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
3601
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
3602
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
3603
- readonly renderErrorMessage: ((props: PlusColumn & {
3604
- value?: FieldValueType;
3605
- error?: string | undefined;
3606
- label?: string | undefined;
3607
- }) => RenderTypes) | undefined;
3608
- readonly optionsMap: {
3609
- label?: string | undefined;
3610
- value?: string | undefined;
3611
- } | undefined;
3612
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
3613
- store?: any;
3614
- method?: string | undefined;
3615
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
3616
- dictCode?: string | undefined;
3617
- } | undefined;
3618
- readonly clearable: boolean;
3619
- readonly index: number;
3620
- } & {
3621
- readonly clearable: boolean;
3622
- };
3623
- label: string;
3624
- fieldProps: RecordType;
3625
- formItemProps: RecordType;
3626
- options: OptionsRow<undefined>[];
3627
- fieldInstance?: any;
3628
- valueIsReady?: Ref<boolean> | undefined;
3629
- prop: string;
3630
- modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3631
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
3632
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
3633
- style?: CSSProperties | undefined;
3634
- class?: any;
3635
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3636
- style?: CSSProperties | undefined;
3637
- class?: any;
3638
- } & RecordType>>;
3639
- fieldSlots: {
3640
- [slotName: string]: (data?: any) => RenderTypes;
3641
- };
3642
- valueType: TableValueType | FormItemValueType;
3643
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
3644
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
3645
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
3646
- renderErrorMessage: ((props: PlusColumn & {
3647
- value?: FieldValueType;
3648
- error?: string | undefined;
3649
- label?: string | undefined;
3650
- }) => RenderTypes) | undefined;
3651
- optionsMap: {
3652
- label?: string | undefined;
3653
- value?: string | undefined;
3654
- } | undefined;
3655
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
3656
- store?: any;
3657
- method?: string | undefined;
3658
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
3659
- dictCode?: string | undefined;
3660
- } | undefined;
3661
- clearable: boolean;
3662
- index: number;
3663
- }) => any>> & Partial<Record<never, (_: {
3664
- column: any;
3665
- prop: string;
3666
- valueType: TableValueType | FormItemValueType;
3667
- row: RecordType;
3668
- index: number;
3669
- rowIndex: number;
3670
- fieldProps: RecordType;
3671
- options: OptionsRow<undefined>[];
3672
- value: any;
3673
- }) => any>> & {
3674
- "search-footer"?(_: {
3675
- isShowUnfold: boolean;
3676
- handleReset: () => void;
3677
- handleSearch: () => void;
3678
- handleUnfold: (e: MouseEvent) => void;
3679
- searchLoading: boolean;
3680
- }): any;
3681
- extra?(_: {}): any;
3682
- "table-title"?(_: {}): any;
3683
- "table-toolbar"?(_: {}): any;
3684
- "pagination-left"?(_: {}): any;
3685
- "pagination-right"?(_: {}): any;
3686
- "table-expand"?(_: any): any;
3687
- "table-append"?(_: {}): any;
3688
- "table-empty"?(_: {}): any;
3689
- }>;
3690
- export default _default;
3691
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
3692
- type __VLS_TypePropsToRuntimeProps<T> = {
3693
- [K in keyof T]-?: {} extends Pick<T, K> ? {
3694
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
3695
- } : {
3696
- type: PropType<T[K]>;
3697
- required: true;
3698
- };
3699
- };
3700
- type __VLS_WithDefaults<P, D> = {
3701
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
3702
- default: D[K];
3703
- }> : P[K];
3704
- };
3705
- type __VLS_Prettify<T> = {
3706
- [K in keyof T]: T[K];
3707
- } & {};
3708
- type __VLS_WithTemplateSlots<T, S> = T & {
3709
- new (): {
3710
- $slots: S;
3711
- };
3712
- };