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,314 +0,0 @@
1
- import { EpPropMergeType } from 'element-plus/es/utils';
2
- import { LooseRequired } from '@vue/shared';
3
- import { 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 } from 'element-plus';
4
- import { FieldValues, PlusColumn, RecordType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components';
5
- import { PlusDialogProps, PlusFormProps, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
6
- import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Ref, CSSProperties, Component } from 'vue';
7
- import { default as DialogForm } from './src/index.vue';
8
-
9
- export type { PlusDialogFormProps } from './src/index.vue';
10
- export type PlusDialogFormInstance = InstanceType<typeof DialogForm>;
11
- export declare const PlusDialogForm: {
12
- new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
13
- dialog: {
14
- type: PropType<PlusDialogProps>;
15
- default: () => {};
16
- };
17
- form: {
18
- type: PropType<PlusFormProps>;
19
- default: () => {};
20
- };
21
- visible: {
22
- type: PropType<boolean>;
23
- default: boolean;
24
- };
25
- modelValue: {
26
- type: PropType<FieldValues>;
27
- default: () => {};
28
- };
29
- hasErrorTip: {
30
- type: PropType<boolean>;
31
- default: boolean;
32
- };
33
- }>> & {
34
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
35
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
36
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
37
- onClose?: (() => any) | undefined;
38
- onCancel?: (() => any) | undefined;
39
- onConfirm?: ((values: FieldValues) => any) | undefined;
40
- onConfirmError?: ((errors: unknown) => any) | undefined;
41
- }, {
42
- handleConfirm: () => void;
43
- handleCancel: () => void;
44
- formInstance: ComputedRef<FormInstance>;
45
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
46
- "update:modelValue": (values: FieldValues) => void;
47
- "update:visible": (visible: boolean) => void;
48
- confirm: (values: FieldValues) => void;
49
- change: (values: FieldValues, column: PlusColumn) => void;
50
- cancel: () => void;
51
- close: () => void;
52
- confirmError: (errors: unknown) => void;
53
- }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
54
- dialog: {
55
- type: PropType<PlusDialogProps>;
56
- default: () => {};
57
- };
58
- form: {
59
- type: PropType<PlusFormProps>;
60
- default: () => {};
61
- };
62
- visible: {
63
- type: PropType<boolean>;
64
- default: boolean;
65
- };
66
- modelValue: {
67
- type: PropType<FieldValues>;
68
- default: () => {};
69
- };
70
- hasErrorTip: {
71
- type: PropType<boolean>;
72
- default: boolean;
73
- };
74
- }>> & {
75
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
76
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
77
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
78
- onClose?: (() => any) | undefined;
79
- onCancel?: (() => any) | undefined;
80
- onConfirm?: ((values: FieldValues) => any) | undefined;
81
- onConfirmError?: ((errors: unknown) => any) | undefined;
82
- }, {
83
- dialog: PlusDialogProps;
84
- form: PlusFormProps;
85
- visible: boolean;
86
- modelValue: FieldValues;
87
- hasErrorTip: boolean;
88
- }, true, {}, {}, {
89
- P: {};
90
- B: {};
91
- D: {};
92
- C: {};
93
- M: {};
94
- Defaults: {};
95
- }, Readonly< ExtractPropTypes<{
96
- dialog: {
97
- type: PropType<PlusDialogProps>;
98
- default: () => {};
99
- };
100
- form: {
101
- type: PropType<PlusFormProps>;
102
- default: () => {};
103
- };
104
- visible: {
105
- type: PropType<boolean>;
106
- default: boolean;
107
- };
108
- modelValue: {
109
- type: PropType<FieldValues>;
110
- default: () => {};
111
- };
112
- hasErrorTip: {
113
- type: PropType<boolean>;
114
- default: boolean;
115
- };
116
- }>> & {
117
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
118
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
119
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
120
- onClose?: (() => any) | undefined;
121
- onCancel?: (() => any) | undefined;
122
- onConfirm?: ((values: FieldValues) => any) | undefined;
123
- onConfirmError?: ((errors: unknown) => any) | undefined;
124
- }, {
125
- handleConfirm: () => void;
126
- handleCancel: () => void;
127
- formInstance: ComputedRef<FormInstance>;
128
- }, {}, {}, {}, {
129
- dialog: PlusDialogProps;
130
- form: PlusFormProps;
131
- visible: boolean;
132
- modelValue: FieldValues;
133
- hasErrorTip: boolean;
134
- }>;
135
- __isFragment?: undefined;
136
- __isTeleport?: undefined;
137
- __isSuspense?: undefined;
138
- } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
139
- dialog: {
140
- type: PropType<PlusDialogProps>;
141
- default: () => {};
142
- };
143
- form: {
144
- type: PropType<PlusFormProps>;
145
- default: () => {};
146
- };
147
- visible: {
148
- type: PropType<boolean>;
149
- default: boolean;
150
- };
151
- modelValue: {
152
- type: PropType<FieldValues>;
153
- default: () => {};
154
- };
155
- hasErrorTip: {
156
- type: PropType<boolean>;
157
- default: boolean;
158
- };
159
- }>> & {
160
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
161
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
162
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
163
- onClose?: (() => any) | undefined;
164
- onCancel?: (() => any) | undefined;
165
- onConfirm?: ((values: FieldValues) => any) | undefined;
166
- onConfirmError?: ((errors: unknown) => any) | undefined;
167
- }, {
168
- handleConfirm: () => void;
169
- handleCancel: () => void;
170
- formInstance: ComputedRef<FormInstance>;
171
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
172
- "update:modelValue": (values: FieldValues) => void;
173
- "update:visible": (visible: boolean) => void;
174
- confirm: (values: FieldValues) => void;
175
- change: (values: FieldValues, column: PlusColumn) => void;
176
- cancel: () => void;
177
- close: () => void;
178
- confirmError: (errors: unknown) => void;
179
- }, string, {
180
- dialog: PlusDialogProps;
181
- form: PlusFormProps;
182
- visible: boolean;
183
- modelValue: FieldValues;
184
- hasErrorTip: boolean;
185
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
186
- $slots: Partial<Record<NonNullable<string | number>, (_: {
187
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
188
- readonly label: string | ComputedRef<string>;
189
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
190
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
191
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
192
- style?: CSSProperties | undefined;
193
- class?: any;
194
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
195
- style?: CSSProperties | undefined;
196
- class?: any;
197
- } & RecordType>>;
198
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
199
- [key: string]: any;
200
- style?: CSSProperties | undefined;
201
- }>;
202
- readonly fieldProps: PropsItemType<Partial<{
203
- [index: string]: any;
204
- [index: number]: any;
205
- [index: symbol]: any;
206
- class: any;
207
- style: CSSProperties;
208
- modelModifiers: {
209
- [index: string]: any;
210
- lazy?: boolean | undefined;
211
- trim?: boolean | undefined;
212
- number?: boolean | undefined;
213
- };
214
- rows: number;
215
- autocomplete: string;
216
- 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;
217
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
218
- step: string | number;
219
- format: string | ProgressFn | undefined;
220
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
221
- id: string | [string, string];
222
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
223
- height: string | number;
224
- autosize: InputAutoSize;
225
- } & 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>>>>;
226
- readonly options: OptionsType;
227
- readonly fieldSlots: {
228
- [slotName: string]: (data?: any) => RenderTypes;
229
- };
230
- readonly valueType: TableValueType | FormItemValueType;
231
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
232
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
233
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
234
- readonly renderErrorMessage: ((props: PlusColumn & {
235
- value?: FieldValueType;
236
- error?: string | undefined;
237
- label?: string | undefined;
238
- }) => RenderTypes) | undefined;
239
- readonly optionsMap: {
240
- label?: string | undefined;
241
- value?: string | undefined;
242
- } | undefined;
243
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
244
- store?: any;
245
- method?: string | undefined;
246
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
247
- dictCode?: string | undefined;
248
- } | undefined;
249
- readonly clearable: boolean;
250
- readonly ellipsis: boolean;
251
- readonly index: number;
252
- } & {
253
- readonly ellipsis: boolean;
254
- readonly clearable: boolean;
255
- };
256
- label: string;
257
- fieldProps: RecordType;
258
- formItemProps: RecordType;
259
- options: OptionsRow<undefined>[];
260
- fieldInstance?: any;
261
- valueIsReady?: Ref<boolean> | undefined;
262
- prop: string;
263
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
264
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
265
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
266
- style?: CSSProperties | undefined;
267
- class?: any;
268
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
269
- style?: CSSProperties | undefined;
270
- class?: any;
271
- } & RecordType>>;
272
- fieldSlots: {
273
- [slotName: string]: (data?: any) => RenderTypes;
274
- };
275
- valueType: TableValueType | FormItemValueType;
276
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
277
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
278
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
279
- renderErrorMessage: ((props: PlusColumn & {
280
- value?: FieldValueType;
281
- error?: string | undefined;
282
- label?: string | undefined;
283
- }) => RenderTypes) | undefined;
284
- optionsMap: {
285
- label?: string | undefined;
286
- value?: string | undefined;
287
- } | undefined;
288
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
289
- store?: any;
290
- method?: string | undefined;
291
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
292
- dictCode?: string | undefined;
293
- } | undefined;
294
- clearable: boolean;
295
- ellipsis: boolean;
296
- index: number;
297
- }) => any>> & {
298
- "dialog-header"?(_: {}): any;
299
- "dialog-footer"?(_: {
300
- handleConfirm: () => void;
301
- handleCancel: () => void;
302
- }): any;
303
- "form-footer"?(_: {
304
- handleReset: () => void;
305
- handleSubmit: () => void;
306
- }): any;
307
- "form-group-header"?(_: {
308
- title: string;
309
- columns: PlusColumn[] | undefined;
310
- icon: Component | undefined;
311
- index: number;
312
- }): any;
313
- };
314
- });
@@ -1,214 +0,0 @@
1
- import { EpPropMergeType } from 'element-plus/es/utils';
2
- import { PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
3
- import { LooseRequired } from '@vue/shared';
4
- import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, Ref, CSSProperties, Component, PropType } from 'vue';
5
- import { 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 } from 'element-plus';
6
- import { FieldValues, PlusColumn, RecordType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components/es/types';
7
- import { PlusDialogProps } from 'yc-pro-components/es/components/dialog';
8
- import { PlusFormProps } from 'yc-pro-components/es/components/form';
9
-
10
- export interface PlusDialogFormProps {
11
- modelValue?: FieldValues;
12
- visible?: boolean;
13
- dialog?: PlusDialogProps;
14
- form?: PlusFormProps;
15
- hasErrorTip?: boolean;
16
- }
17
- export interface PlusDialogFormEmits {
18
- (e: 'update:modelValue', values: FieldValues): void;
19
- (e: 'update:visible', visible: boolean): void;
20
- (e: 'confirm', values: FieldValues): void;
21
- (e: 'change', values: FieldValues, column: PlusColumn): void;
22
- (e: 'cancel'): void;
23
- (e: 'close'): void;
24
- (e: 'confirmError', errors: unknown): void;
25
- }
26
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusDialogFormProps>, {
27
- modelValue: () => {};
28
- visible: boolean;
29
- hasErrorTip: boolean;
30
- dialog: () => {};
31
- form: () => {};
32
- }>, {
33
- handleConfirm: () => void;
34
- handleCancel: () => void;
35
- formInstance: ComputedRef<FormInstance>;
36
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
37
- "update:modelValue": (values: FieldValues) => void;
38
- "update:visible": (visible: boolean) => void;
39
- confirm: (values: FieldValues) => void;
40
- change: (values: FieldValues, column: PlusColumn) => void;
41
- cancel: () => void;
42
- close: () => void;
43
- confirmError: (errors: unknown) => void;
44
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusDialogFormProps>, {
45
- modelValue: () => {};
46
- visible: boolean;
47
- hasErrorTip: boolean;
48
- dialog: () => {};
49
- form: () => {};
50
- }>>> & {
51
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
52
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
53
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
54
- onClose?: (() => any) | undefined;
55
- onCancel?: (() => any) | undefined;
56
- onConfirm?: ((values: FieldValues) => any) | undefined;
57
- onConfirmError?: ((errors: unknown) => any) | undefined;
58
- }, {
59
- dialog: PlusDialogProps;
60
- form: PlusFormProps;
61
- visible: boolean;
62
- modelValue: FieldValues;
63
- hasErrorTip: boolean;
64
- }, {}>, Partial<Record<NonNullable<string | number>, (_: {
65
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
66
- readonly label: string | ComputedRef<string>;
67
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
68
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
69
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
70
- style?: CSSProperties | undefined;
71
- class?: any;
72
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
73
- style?: CSSProperties | undefined;
74
- class?: any;
75
- } & RecordType>>;
76
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
77
- [key: string]: any;
78
- style?: CSSProperties | undefined;
79
- }>;
80
- readonly fieldProps: PropsItemType<Partial<{
81
- [index: string]: any;
82
- [index: number]: any;
83
- [index: symbol]: any;
84
- class: any;
85
- style: CSSProperties;
86
- modelModifiers: {
87
- [index: string]: any;
88
- lazy?: boolean | undefined;
89
- trim?: boolean | undefined;
90
- number?: boolean | undefined;
91
- };
92
- rows: number;
93
- autocomplete: string;
94
- 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;
95
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
96
- step: string | number;
97
- format: string | ProgressFn | undefined;
98
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
99
- id: string | [string, string];
100
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
101
- height: string | number;
102
- autosize: InputAutoSize;
103
- } & 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>>>>;
104
- readonly options: OptionsType;
105
- readonly fieldSlots: {
106
- [slotName: string]: (data?: any) => RenderTypes;
107
- };
108
- readonly valueType: TableValueType | FormItemValueType;
109
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
110
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
111
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
112
- readonly renderErrorMessage: ((props: PlusColumn & {
113
- value?: FieldValueType;
114
- error?: string | undefined;
115
- label?: string | undefined;
116
- }) => RenderTypes) | undefined;
117
- readonly optionsMap: {
118
- label?: string | undefined;
119
- value?: string | undefined;
120
- } | undefined;
121
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
122
- store?: any;
123
- method?: string | undefined;
124
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
125
- dictCode?: string | undefined;
126
- } | undefined;
127
- readonly clearable: boolean;
128
- readonly ellipsis: boolean;
129
- readonly index: number;
130
- } & {
131
- readonly ellipsis: boolean;
132
- readonly clearable: boolean;
133
- };
134
- label: string;
135
- fieldProps: RecordType;
136
- formItemProps: RecordType;
137
- options: OptionsRow<undefined>[];
138
- fieldInstance?: any;
139
- valueIsReady?: Ref<boolean> | undefined;
140
- prop: string;
141
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
142
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
143
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
144
- style?: CSSProperties | undefined;
145
- class?: any;
146
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
147
- style?: CSSProperties | undefined;
148
- class?: any;
149
- } & RecordType>>;
150
- fieldSlots: {
151
- [slotName: string]: (data?: any) => RenderTypes;
152
- };
153
- valueType: TableValueType | FormItemValueType;
154
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
155
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
156
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
157
- renderErrorMessage: ((props: PlusColumn & {
158
- value?: FieldValueType;
159
- error?: string | undefined;
160
- label?: string | undefined;
161
- }) => RenderTypes) | undefined;
162
- optionsMap: {
163
- label?: string | undefined;
164
- value?: string | undefined;
165
- } | undefined;
166
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
167
- store?: any;
168
- method?: string | undefined;
169
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
170
- dictCode?: string | undefined;
171
- } | undefined;
172
- clearable: boolean;
173
- ellipsis: boolean;
174
- index: number;
175
- }) => any>> & {
176
- "dialog-header"?(_: {}): any;
177
- "dialog-footer"?(_: {
178
- handleConfirm: () => void;
179
- handleCancel: () => void;
180
- }): any;
181
- "form-footer"?(_: {
182
- handleReset: () => void;
183
- handleSubmit: () => void;
184
- }): any;
185
- "form-group-header"?(_: {
186
- title: string;
187
- columns: PlusColumn[] | undefined;
188
- icon: Component | undefined;
189
- index: number;
190
- }): any;
191
- }>;
192
- export default _default;
193
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
194
- type __VLS_TypePropsToRuntimeProps<T> = {
195
- [K in keyof T]-?: {} extends Pick<T, K> ? {
196
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
197
- } : {
198
- type: PropType<T[K]>;
199
- required: true;
200
- };
201
- };
202
- type __VLS_WithDefaults<P, D> = {
203
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
204
- default: D[K];
205
- }> : P[K];
206
- };
207
- type __VLS_Prettify<T> = {
208
- [K in keyof T]: T[K];
209
- } & {};
210
- type __VLS_WithTemplateSlots<T, S> = T & {
211
- new (): {
212
- $slots: S;
213
- };
214
- };