yc-pro-components 0.0.85 → 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 (156) hide show
  1. package/es/components/index.d.ts +1 -0
  2. package/es/components/index.mjs +1 -0
  3. package/es/components/page/src/index.vue2.mjs +31 -13
  4. package/es/components/search/src/index.vue2.mjs +1 -0
  5. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  6. package/es/components/yc-plus-page/src/index.vue2.mjs +24 -13
  7. package/es/components/yc-plus-page/src/type.d.ts +5 -0
  8. package/es/components/yc-query-filter/index.d.ts +7 -0
  9. package/es/components/yc-query-filter/index.mjs +6 -0
  10. package/es/components/yc-query-filter/src/index.vue.d.ts +32 -0
  11. package/es/components/yc-query-filter/src/index.vue.mjs +6 -0
  12. package/es/components/yc-query-filter/src/index.vue2.mjs +662 -0
  13. package/es/components/yc-query-filter/src/serialize.d.ts +4 -0
  14. package/es/components/yc-query-filter/src/serialize.mjs +17 -0
  15. package/es/constants/index.d.ts +1 -0
  16. package/es/constants/index.mjs +1 -0
  17. package/es/constants/query-filter.d.ts +69 -0
  18. package/es/constants/query-filter.mjs +3 -0
  19. package/es/hooks/index.d.ts +1 -0
  20. package/es/hooks/index.mjs +1 -0
  21. package/es/hooks/useQueryFilterConfig.d.ts +11 -0
  22. package/es/hooks/useQueryFilterConfig.mjs +38 -0
  23. package/es/index.css +12 -12
  24. package/es/index.d.ts +1 -1
  25. package/es/index.mjs +3 -0
  26. package/es/locale/lang/en.d.ts +33 -0
  27. package/es/locale/lang/en.mjs +33 -0
  28. package/es/locale/lang/ja.d.ts +33 -0
  29. package/es/locale/lang/ja.mjs +33 -0
  30. package/es/locale/lang/ko.d.ts +33 -0
  31. package/es/locale/lang/ko.mjs +33 -0
  32. package/es/locale/lang/zh-cn.d.ts +33 -0
  33. package/es/locale/lang/zh-cn.mjs +33 -0
  34. package/es/locale/lang/zh-tw.d.ts +33 -0
  35. package/es/locale/lang/zh-tw.mjs +33 -0
  36. package/es/version.d.ts +1 -1
  37. package/es/version.mjs +1 -1
  38. package/es/yc-components/index.d.ts +1 -1
  39. package/es/yc-components/version.d.ts +1 -1
  40. package/index.css +1 -1
  41. package/index.js +1069 -213
  42. package/index.min.css +1 -1
  43. package/index.min.js +16 -12
  44. package/index.min.mjs +16 -12
  45. package/index.mjs +1065 -215
  46. package/lib/components/index.d.ts +1 -0
  47. package/lib/components/index.js +3 -0
  48. package/lib/components/page/src/index.vue2.js +31 -13
  49. package/lib/components/search/src/index.vue2.js +1 -0
  50. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  51. package/lib/components/yc-plus-page/src/index.vue2.js +26 -15
  52. package/lib/components/yc-plus-page/src/type.d.ts +5 -0
  53. package/lib/components/yc-query-filter/index.d.ts +7 -0
  54. package/lib/components/yc-query-filter/index.js +9 -0
  55. package/lib/components/yc-query-filter/src/index.vue.d.ts +32 -0
  56. package/lib/components/yc-query-filter/src/index.vue.js +10 -0
  57. package/lib/components/yc-query-filter/src/index.vue2.js +666 -0
  58. package/lib/components/yc-query-filter/src/serialize.d.ts +4 -0
  59. package/lib/components/yc-query-filter/src/serialize.js +20 -0
  60. package/lib/constants/index.d.ts +1 -0
  61. package/lib/constants/index.js +2 -0
  62. package/lib/constants/query-filter.d.ts +69 -0
  63. package/lib/constants/query-filter.js +5 -0
  64. package/lib/hooks/index.d.ts +1 -0
  65. package/lib/hooks/index.js +4 -0
  66. package/lib/hooks/useQueryFilterConfig.d.ts +11 -0
  67. package/lib/hooks/useQueryFilterConfig.js +42 -0
  68. package/lib/index.css +9 -9
  69. package/lib/index.d.ts +1 -1
  70. package/lib/index.js +9 -0
  71. package/lib/locale/lang/en.d.ts +33 -0
  72. package/lib/locale/lang/en.js +33 -0
  73. package/lib/locale/lang/ja.d.ts +33 -0
  74. package/lib/locale/lang/ja.js +33 -0
  75. package/lib/locale/lang/ko.d.ts +33 -0
  76. package/lib/locale/lang/ko.js +33 -0
  77. package/lib/locale/lang/zh-cn.d.ts +33 -0
  78. package/lib/locale/lang/zh-cn.js +33 -0
  79. package/lib/locale/lang/zh-tw.d.ts +33 -0
  80. package/lib/locale/lang/zh-tw.js +33 -0
  81. package/lib/version.d.ts +1 -1
  82. package/lib/version.js +1 -1
  83. package/lib/yc-components/index.d.ts +1 -1
  84. package/lib/yc-components/version.d.ts +1 -1
  85. package/locale/en.d.ts +33 -0
  86. package/locale/en.js +34 -1
  87. package/locale/en.min.js +1 -1
  88. package/locale/en.min.mjs +1 -1
  89. package/locale/en.mjs +34 -1
  90. package/locale/ja.d.ts +33 -0
  91. package/locale/ja.js +34 -1
  92. package/locale/ja.min.js +1 -1
  93. package/locale/ja.min.mjs +1 -1
  94. package/locale/ja.mjs +34 -1
  95. package/locale/ko.d.ts +33 -0
  96. package/locale/ko.js +34 -1
  97. package/locale/ko.min.js +1 -1
  98. package/locale/ko.min.mjs +1 -1
  99. package/locale/ko.mjs +34 -1
  100. package/locale/zh-cn.d.ts +33 -0
  101. package/locale/zh-cn.js +34 -1
  102. package/locale/zh-cn.min.js +1 -1
  103. package/locale/zh-cn.min.mjs +1 -1
  104. package/locale/zh-cn.mjs +34 -1
  105. package/locale/zh-tw.d.ts +33 -0
  106. package/locale/zh-tw.js +34 -1
  107. package/locale/zh-tw.min.js +1 -1
  108. package/locale/zh-tw.min.mjs +1 -1
  109. package/locale/zh-tw.mjs +34 -1
  110. package/package.json +1 -1
  111. package/theme-chalk/index.css +1 -1
  112. package/theme-chalk/plus-yc-query-filter.css +1 -0
  113. package/theme-chalk/src/index.scss +1 -0
  114. package/theme-chalk/src/yc-query-filter.scss +163 -0
  115. package/es/components/breadcrumb/index.d.ts +0 -6985
  116. package/es/components/breadcrumb/src/index.vue.d.ts +0 -6947
  117. package/es/components/dialog-form/index.d.ts +0 -314
  118. package/es/components/dialog-form/src/index.vue.d.ts +0 -214
  119. package/es/components/display-item/index.d.ts +0 -580
  120. package/es/components/display-item/src/index.vue.d.ts +0 -446
  121. package/es/components/drawer-form/index.d.ts +0 -1592
  122. package/es/components/drawer-form/src/index.vue.d.ts +0 -630
  123. package/es/components/form/index.d.ts +0 -870
  124. package/es/components/form/src/form-content.vue.d.ts +0 -598
  125. package/es/components/form/src/index.vue.d.ts +0 -382
  126. package/es/components/form-item/index.d.ts +0 -1492
  127. package/es/components/form-item/src/index.vue.d.ts +0 -550
  128. package/es/components/page/index.d.ts +0 -10746
  129. package/es/components/page/src/index.vue.d.ts +0 -3775
  130. package/es/components/search/index.d.ts +0 -2977
  131. package/es/components/search/src/index.vue.d.ts +0 -1021
  132. package/es/components/table/src/table-column.vue.d.ts +0 -624
  133. package/es/components/yc-drawer/store.d.ts +0 -2359
  134. package/es/components/yc-plus-page/src/index.vue.d.ts +0 -8250
  135. package/es/hooks/usePlusFormReset.d.ts +0 -4501
  136. package/lib/components/breadcrumb/index.d.ts +0 -6985
  137. package/lib/components/breadcrumb/src/index.vue.d.ts +0 -6947
  138. package/lib/components/dialog-form/index.d.ts +0 -314
  139. package/lib/components/dialog-form/src/index.vue.d.ts +0 -214
  140. package/lib/components/display-item/index.d.ts +0 -580
  141. package/lib/components/display-item/src/index.vue.d.ts +0 -446
  142. package/lib/components/drawer-form/index.d.ts +0 -1592
  143. package/lib/components/drawer-form/src/index.vue.d.ts +0 -630
  144. package/lib/components/form/index.d.ts +0 -870
  145. package/lib/components/form/src/form-content.vue.d.ts +0 -598
  146. package/lib/components/form/src/index.vue.d.ts +0 -382
  147. package/lib/components/form-item/index.d.ts +0 -1492
  148. package/lib/components/form-item/src/index.vue.d.ts +0 -550
  149. package/lib/components/page/index.d.ts +0 -10746
  150. package/lib/components/page/src/index.vue.d.ts +0 -3775
  151. package/lib/components/search/index.d.ts +0 -2977
  152. package/lib/components/search/src/index.vue.d.ts +0 -1021
  153. package/lib/components/table/src/table-column.vue.d.ts +0 -624
  154. package/lib/components/yc-drawer/store.d.ts +0 -2359
  155. package/lib/components/yc-plus-page/src/index.vue.d.ts +0 -8250
  156. package/lib/hooks/usePlusFormReset.d.ts +0 -4501
@@ -1,624 +0,0 @@
1
- import { EpPropMergeType } from 'element-plus/es/utils';
2
- import { ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, PopperEffect, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
3
- import { LooseRequired } from '@vue/shared';
4
- import { PlusFormProps, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
5
- import { FormChangeCallBackParams } from './type';
6
- import { Ref, DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CSSProperties, PublicProps } from 'vue';
7
- import { PageInfo, PlusColumn, RecordType, FieldValueType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, OptionsRow } from 'yc-pro-components/es/types';
8
-
9
- export interface PlusTableColumnProps {
10
- columns?: PlusColumn[];
11
- editable?: boolean | 'click' | 'dblclick';
12
- tableDataLength?: number;
13
- subPageInfo?: Partial<PageInfo>;
14
- }
15
- export interface PlusTableColumnEmits {
16
- (e: 'formChange', data: FormChangeCallBackParams): void;
17
- }
18
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusTableColumnProps>, {
19
- columns: () => never[];
20
- tableDataLength: number;
21
- editable: boolean;
22
- subPageInfo: () => {};
23
- }>, {
24
- plusDisplayItemInstance: Ref<({
25
- $: ComponentInternalInstance;
26
- $data: {};
27
- $props: Partial<{
28
- index: number;
29
- rest: RecordType;
30
- formProps: PlusFormProps;
31
- column: PlusColumn;
32
- row: RecordType;
33
- editable: boolean | "click" | "dblclick";
34
- }> & Omit<{
35
- readonly index: number;
36
- readonly rest: RecordType;
37
- readonly formProps: PlusFormProps;
38
- readonly column: PlusColumn;
39
- readonly row: RecordType;
40
- readonly editable: boolean | "click" | "dblclick";
41
- onChange?: ((data: {
42
- value: FieldValueType;
43
- prop: string;
44
- row: RecordType;
45
- }) => any) | undefined;
46
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
47
- index: {
48
- type: PropType<number>;
49
- default: number;
50
- };
51
- rest: {
52
- type: PropType<RecordType>;
53
- default: () => {};
54
- };
55
- formProps: {
56
- type: PropType<PlusFormProps>;
57
- default: () => {};
58
- };
59
- column: {
60
- type: PropType<PlusColumn>;
61
- required: true;
62
- default: () => {
63
- prop: string;
64
- label: string;
65
- };
66
- };
67
- row: {
68
- type: PropType<RecordType>;
69
- required: true;
70
- default: () => {};
71
- };
72
- editable: {
73
- type: PropType<boolean | "click" | "dblclick">;
74
- default: boolean;
75
- };
76
- }>> & {
77
- onChange?: ((data: {
78
- value: FieldValueType;
79
- prop: string;
80
- row: RecordType;
81
- }) => any) | undefined;
82
- }, "index" | "rest" | "formProps" | "column" | "row" | "editable">;
83
- $attrs: {
84
- [x: string]: unknown;
85
- };
86
- $refs: {
87
- [x: string]: unknown;
88
- };
89
- $slots: Readonly<{
90
- [name: string]: Slot<any> | undefined;
91
- }>;
92
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
93
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
94
- $emit: (event: "change", data: {
95
- value: FieldValueType;
96
- prop: string;
97
- row: RecordType;
98
- }) => void;
99
- $el: any;
100
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
101
- index: {
102
- type: PropType<number>;
103
- default: number;
104
- };
105
- rest: {
106
- type: PropType<RecordType>;
107
- default: () => {};
108
- };
109
- formProps: {
110
- type: PropType<PlusFormProps>;
111
- default: () => {};
112
- };
113
- column: {
114
- type: PropType<PlusColumn>;
115
- required: true;
116
- default: () => {
117
- prop: string;
118
- label: string;
119
- };
120
- };
121
- row: {
122
- type: PropType<RecordType>;
123
- required: true;
124
- default: () => {};
125
- };
126
- editable: {
127
- type: PropType<boolean | "click" | "dblclick">;
128
- default: boolean;
129
- };
130
- }>> & {
131
- onChange?: ((data: {
132
- value: FieldValueType;
133
- prop: string;
134
- row: RecordType;
135
- }) => any) | undefined;
136
- }, {
137
- startCellEdit: () => void;
138
- stopCellEdit: () => void;
139
- getDisplayItemInstance: () => {
140
- isEdit: Ref<boolean>;
141
- index: number;
142
- rowIndex: number;
143
- cellIndex: any;
144
- prop: string;
145
- formInstance: ComputedRef<any>;
146
- };
147
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
148
- change: (data: {
149
- value: FieldValueType;
150
- prop: string;
151
- row: RecordType;
152
- }) => void;
153
- }, string, {
154
- index: number;
155
- rest: RecordType;
156
- formProps: PlusFormProps;
157
- column: PlusColumn;
158
- row: RecordType;
159
- editable: boolean | "click" | "dblclick";
160
- }, {}, string, {}> & {
161
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
162
- created?: ((() => void) | (() => void)[]) | undefined;
163
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
164
- mounted?: ((() => void) | (() => void)[]) | undefined;
165
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
166
- updated?: ((() => void) | (() => void)[]) | undefined;
167
- activated?: ((() => void) | (() => void)[]) | undefined;
168
- deactivated?: ((() => void) | (() => void)[]) | undefined;
169
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
170
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
171
- destroyed?: ((() => void) | (() => void)[]) | undefined;
172
- unmounted?: ((() => void) | (() => void)[]) | undefined;
173
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
174
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
175
- 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;
176
- };
177
- $forceUpdate: () => void;
178
- $nextTick: nextTick;
179
- $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;
180
- } & Omit<Readonly< ExtractPropTypes<{
181
- index: {
182
- type: PropType<number>;
183
- default: number;
184
- };
185
- rest: {
186
- type: PropType<RecordType>;
187
- default: () => {};
188
- };
189
- formProps: {
190
- type: PropType<PlusFormProps>;
191
- default: () => {};
192
- };
193
- column: {
194
- type: PropType<PlusColumn>;
195
- required: true;
196
- default: () => {
197
- prop: string;
198
- label: string;
199
- };
200
- };
201
- row: {
202
- type: PropType<RecordType>;
203
- required: true;
204
- default: () => {};
205
- };
206
- editable: {
207
- type: PropType<boolean | "click" | "dblclick">;
208
- default: boolean;
209
- };
210
- }>> & {
211
- onChange?: ((data: {
212
- value: FieldValueType;
213
- prop: string;
214
- row: RecordType;
215
- }) => any) | undefined;
216
- }, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance"> & ShallowUnwrapRef<{
217
- startCellEdit: () => void;
218
- stopCellEdit: () => void;
219
- getDisplayItemInstance: () => {
220
- isEdit: Ref<boolean>;
221
- index: number;
222
- rowIndex: number;
223
- cellIndex: any;
224
- prop: string;
225
- formInstance: ComputedRef<any>;
226
- };
227
- }> & {} & ComponentCustomProperties & {} & {
228
- $slots: Partial<Record<string, (_: {
229
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
230
- readonly label: string | ComputedRef<string>;
231
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
232
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
233
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
234
- style?: CSSProperties | undefined;
235
- class?: any;
236
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
237
- style?: CSSProperties | undefined;
238
- class?: any;
239
- } & RecordType>>;
240
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
241
- [key: string]: any;
242
- style?: CSSProperties | undefined;
243
- }>;
244
- readonly fieldProps: PropsItemType<Partial<{
245
- [index: string]: any;
246
- [index: number]: any;
247
- [index: symbol]: any;
248
- class: any;
249
- style: CSSProperties;
250
- modelModifiers: {
251
- [index: string]: any;
252
- lazy?: boolean | undefined;
253
- trim?: boolean | undefined;
254
- number?: boolean | undefined;
255
- };
256
- rows: number;
257
- autocomplete: string;
258
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
259
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
260
- step: string | number;
261
- format: string | ProgressFn | undefined;
262
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
263
- id: string | [string, string];
264
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
265
- height: string | number;
266
- autosize: InputAutoSize;
267
- } & 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>>>>;
268
- readonly options: OptionsType;
269
- readonly fieldSlots: {
270
- [slotName: string]: (data?: any) => RenderTypes;
271
- };
272
- readonly valueType: TableValueType | FormItemValueType;
273
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
274
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
275
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
276
- readonly renderErrorMessage: ((props: PlusColumn & {
277
- value?: FieldValueType;
278
- error?: string | undefined;
279
- label?: string | undefined;
280
- }) => RenderTypes) | undefined;
281
- readonly optionsMap: {
282
- label?: string | undefined;
283
- value?: string | undefined;
284
- } | undefined;
285
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
286
- store?: any;
287
- method?: string | undefined;
288
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
289
- dictCode?: string | undefined;
290
- } | undefined;
291
- readonly clearable: boolean;
292
- readonly ellipsis: boolean;
293
- readonly index: number;
294
- } & {
295
- readonly ellipsis: boolean;
296
- readonly clearable: boolean;
297
- };
298
- label: string;
299
- fieldProps: RecordType;
300
- formItemProps: RecordType;
301
- options: OptionsRow<undefined>[];
302
- fieldInstance?: any;
303
- valueIsReady?: Ref<boolean> | undefined;
304
- prop: string;
305
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
306
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
307
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
308
- style?: CSSProperties | undefined;
309
- class?: any;
310
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
311
- style?: CSSProperties | undefined;
312
- class?: any;
313
- } & RecordType>>;
314
- fieldSlots: {
315
- [slotName: string]: (data?: any) => RenderTypes;
316
- };
317
- valueType: TableValueType | FormItemValueType;
318
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
319
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
320
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
321
- renderErrorMessage: ((props: PlusColumn & {
322
- value?: FieldValueType;
323
- error?: string | undefined;
324
- label?: string | undefined;
325
- }) => RenderTypes) | undefined;
326
- optionsMap: {
327
- label?: string | undefined;
328
- value?: string | undefined;
329
- } | undefined;
330
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
331
- store?: any;
332
- method?: string | undefined;
333
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
334
- dictCode?: string | undefined;
335
- } | undefined;
336
- clearable: boolean;
337
- ellipsis: boolean;
338
- index: number;
339
- }) => any>> & Partial<Record<string, (_: {
340
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
341
- readonly label: string | ComputedRef<string>;
342
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
343
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
344
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
345
- style?: CSSProperties | undefined;
346
- class?: any;
347
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
348
- style?: CSSProperties | undefined;
349
- class?: any;
350
- } & RecordType>>;
351
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
352
- [key: string]: any;
353
- style?: CSSProperties | undefined;
354
- }>;
355
- readonly fieldProps: PropsItemType<Partial<{
356
- [index: string]: any;
357
- [index: number]: any;
358
- [index: symbol]: any;
359
- class: any;
360
- style: CSSProperties;
361
- modelModifiers: {
362
- [index: string]: any;
363
- lazy?: boolean | undefined;
364
- trim?: boolean | undefined;
365
- number?: boolean | undefined;
366
- };
367
- rows: number;
368
- autocomplete: string;
369
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
370
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
371
- step: string | number;
372
- format: string | ProgressFn | undefined;
373
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
374
- id: string | [string, string];
375
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
376
- height: string | number;
377
- autosize: InputAutoSize;
378
- } & 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>>>>;
379
- readonly options: OptionsType;
380
- readonly fieldSlots: {
381
- [slotName: string]: (data?: any) => RenderTypes;
382
- };
383
- readonly valueType: TableValueType | FormItemValueType;
384
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
385
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
386
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
387
- readonly renderErrorMessage: ((props: PlusColumn & {
388
- value?: FieldValueType;
389
- error?: string | undefined;
390
- label?: string | undefined;
391
- }) => RenderTypes) | undefined;
392
- readonly optionsMap: {
393
- label?: string | undefined;
394
- value?: string | undefined;
395
- } | undefined;
396
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
397
- store?: any;
398
- method?: string | undefined;
399
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
400
- dictCode?: string | undefined;
401
- } | undefined;
402
- readonly clearable: boolean;
403
- readonly ellipsis: boolean;
404
- readonly index: number;
405
- } & {
406
- readonly ellipsis: boolean;
407
- readonly clearable: boolean;
408
- };
409
- label: string;
410
- fieldProps: RecordType;
411
- formItemProps: RecordType;
412
- options: OptionsRow<undefined>[];
413
- fieldInstance?: any;
414
- valueIsReady?: Ref<boolean> | undefined;
415
- prop: string;
416
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
417
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
418
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
419
- style?: CSSProperties | undefined;
420
- class?: any;
421
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
422
- style?: CSSProperties | undefined;
423
- class?: any;
424
- } & RecordType>>;
425
- fieldSlots: {
426
- [slotName: string]: (data?: any) => RenderTypes;
427
- };
428
- valueType: TableValueType | FormItemValueType;
429
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
430
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
431
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
432
- renderErrorMessage: ((props: PlusColumn & {
433
- value?: FieldValueType;
434
- error?: string | undefined;
435
- label?: string | undefined;
436
- }) => RenderTypes) | undefined;
437
- optionsMap: {
438
- label?: string | undefined;
439
- value?: string | undefined;
440
- } | undefined;
441
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
442
- store?: any;
443
- method?: string | undefined;
444
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
445
- dictCode?: string | undefined;
446
- } | undefined;
447
- clearable: boolean;
448
- ellipsis: boolean;
449
- index: number;
450
- }) => any>> & Partial<Record<string, (_: {
451
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
452
- readonly label: string | ComputedRef<string>;
453
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
454
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
455
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
456
- style?: CSSProperties | undefined;
457
- class?: any;
458
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
459
- style?: CSSProperties | undefined;
460
- class?: any;
461
- } & RecordType>>;
462
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
463
- [key: string]: any;
464
- style?: CSSProperties | undefined;
465
- }>;
466
- readonly fieldProps: PropsItemType<Partial<{
467
- [index: string]: any;
468
- [index: number]: any;
469
- [index: symbol]: any;
470
- class: any;
471
- style: CSSProperties;
472
- modelModifiers: {
473
- [index: string]: any;
474
- lazy?: boolean | undefined;
475
- trim?: boolean | undefined;
476
- number?: boolean | undefined;
477
- };
478
- rows: number;
479
- autocomplete: string;
480
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
481
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
482
- step: string | number;
483
- format: string | ProgressFn | undefined;
484
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
485
- id: string | [string, string];
486
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
487
- height: string | number;
488
- autosize: InputAutoSize;
489
- } & 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>>>>;
490
- readonly options: OptionsType;
491
- readonly fieldSlots: {
492
- [slotName: string]: (data?: any) => RenderTypes;
493
- };
494
- readonly valueType: TableValueType | FormItemValueType;
495
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
496
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
497
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
498
- readonly renderErrorMessage: ((props: PlusColumn & {
499
- value?: FieldValueType;
500
- error?: string | undefined;
501
- label?: string | undefined;
502
- }) => RenderTypes) | undefined;
503
- readonly optionsMap: {
504
- label?: string | undefined;
505
- value?: string | undefined;
506
- } | undefined;
507
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
508
- store?: any;
509
- method?: string | undefined;
510
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
511
- dictCode?: string | undefined;
512
- } | undefined;
513
- readonly clearable: boolean;
514
- readonly ellipsis: boolean;
515
- readonly index: number;
516
- } & {
517
- readonly ellipsis: boolean;
518
- readonly clearable: boolean;
519
- };
520
- label: string;
521
- fieldProps: RecordType;
522
- formItemProps: RecordType;
523
- options: OptionsRow<undefined>[];
524
- fieldInstance?: any;
525
- valueIsReady?: Ref<boolean> | undefined;
526
- prop: string;
527
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
528
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
529
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
530
- style?: CSSProperties | undefined;
531
- class?: any;
532
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
533
- style?: CSSProperties | undefined;
534
- class?: any;
535
- } & RecordType>>;
536
- fieldSlots: {
537
- [slotName: string]: (data?: any) => RenderTypes;
538
- };
539
- valueType: TableValueType | FormItemValueType;
540
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
541
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
542
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
543
- renderErrorMessage: ((props: PlusColumn & {
544
- value?: FieldValueType;
545
- error?: string | undefined;
546
- label?: string | undefined;
547
- }) => RenderTypes) | undefined;
548
- optionsMap: {
549
- label?: string | undefined;
550
- value?: string | undefined;
551
- } | undefined;
552
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
553
- store?: any;
554
- method?: string | undefined;
555
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
556
- dictCode?: string | undefined;
557
- } | undefined;
558
- clearable: boolean;
559
- ellipsis: boolean;
560
- index: number;
561
- }) => any>> & Partial<Record<string, (_: {
562
- column: any;
563
- prop: string;
564
- valueType: TableValueType | FormItemValueType;
565
- row: RecordType;
566
- index: number;
567
- rowIndex: number;
568
- fieldProps: RecordType;
569
- options: OptionsRow<undefined>[];
570
- value: any;
571
- }) => any>> & {
572
- "edit-icon"?(_: {}): any;
573
- };
574
- })[] | null | undefined>;
575
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
576
- formChange: (data: FormChangeCallBackParams) => void;
577
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusTableColumnProps>, {
578
- columns: () => never[];
579
- tableDataLength: number;
580
- editable: boolean;
581
- subPageInfo: () => {};
582
- }>>> & {
583
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
584
- }, {
585
- columns: PlusColumn[];
586
- editable: boolean | "click" | "dblclick";
587
- tableDataLength: number;
588
- subPageInfo: Partial<PageInfo>;
589
- }, {}>, Partial<Record<string, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: {
590
- column: any;
591
- prop: string;
592
- valueType: TableValueType | FormItemValueType;
593
- row: RecordType;
594
- index: number;
595
- rowIndex: number;
596
- fieldProps: RecordType;
597
- options: OptionsRow<undefined>[];
598
- value: any;
599
- }) => any>> & {
600
- "tooltip-icon"?(_: {}): any;
601
- }>;
602
- export default _default;
603
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
604
- type __VLS_TypePropsToRuntimeProps<T> = {
605
- [K in keyof T]-?: {} extends Pick<T, K> ? {
606
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
607
- } : {
608
- type: PropType<T[K]>;
609
- required: true;
610
- };
611
- };
612
- type __VLS_WithDefaults<P, D> = {
613
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
614
- default: D[K];
615
- }> : P[K];
616
- };
617
- type __VLS_Prettify<T> = {
618
- [K in keyof T]: T[K];
619
- } & {};
620
- type __VLS_WithTemplateSlots<T, S> = T & {
621
- new (): {
622
- $slots: S;
623
- };
624
- };