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,550 +0,0 @@
1
- import { LooseRequired } from '@vue/shared';
2
- import { PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
3
- import { FormItemProp, FormItemRule, FormValidateCallback, FormValidationResult, 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 { EpPropMergeType, Arrayable, EpPropFinalized } from 'element-plus/es/utils';
5
- import { PlusColumn, FieldValueType, OptionsRow, RecordType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType } from 'yc-pro-components/es/types';
6
- import { Ref, nextTick, DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps, CSSProperties } from 'vue';
7
-
8
- export interface PlusFormItemProps {
9
- modelValue?: FieldValueType;
10
- hasLabel?: PlusColumn['hasLabel'];
11
- label?: PlusColumn['label'];
12
- prop: PlusColumn['prop'];
13
- fieldProps?: PlusColumn['fieldProps'];
14
- valueType?: PlusColumn['valueType'];
15
- options?: PlusColumn['options'];
16
- formItemProps?: PlusColumn['formItemProps'];
17
- renderField?: PlusColumn['renderField'];
18
- renderLabel?: PlusColumn['renderLabel'];
19
- tooltip?: PlusColumn['tooltip'];
20
- fieldSlots?: PlusColumn['fieldSlots'];
21
- fieldChildrenSlot?: PlusColumn['fieldChildrenSlot'];
22
- renderErrorMessage?: PlusColumn['renderErrorMessage'];
23
- /**
24
- * @desc 对options 进行映射
25
- * @version v0.1.15
26
- * @default{ label: 'label'; value: 'value' }
27
- */
28
- optionsMap?: PlusColumn['optionsMap'];
29
- /**
30
- * @desc 自动字典注入
31
- * @version v0.2.0
32
- */
33
- autoDict?: PlusColumn['autoDict'];
34
- index?: number;
35
- /**
36
- * @version v0.1.18
37
- */
38
- clearable?: boolean;
39
- /**
40
- * 标签和占位符超出宽度时省略,悬停显示全文。默认关闭。
41
- */
42
- ellipsis?: boolean;
43
- }
44
- export interface PlusFormItemEmits {
45
- (e: 'update:modelValue', value: FieldValueType): void;
46
- (e: 'change', value: FieldValueType): void;
47
- }
48
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormItemProps>, {
49
- label: string;
50
- modelValue: string;
51
- hasLabel: boolean;
52
- tooltip: string;
53
- formItemProps: () => {};
54
- fieldProps: () => {};
55
- options: () => never[];
56
- fieldSlots: () => {};
57
- valueType: undefined;
58
- renderField: undefined;
59
- renderLabel: undefined;
60
- fieldChildrenSlot: undefined;
61
- renderErrorMessage: undefined;
62
- optionsMap: undefined;
63
- autoDict: undefined;
64
- clearable: boolean;
65
- ellipsis: boolean;
66
- index: number;
67
- }>, {
68
- formItemInstance: Ref<({
69
- $: ComponentInternalInstance;
70
- $data: {};
71
- $props: Partial<{
72
- readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
73
- readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "right" | "left", unknown>;
74
- readonly inlineMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
75
- readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
76
- }> & Omit<{
77
- readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "right" | "left", unknown>;
78
- readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
79
- readonly label?: string | undefined;
80
- readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
81
- readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
82
- readonly size?: EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown> | undefined;
83
- readonly rules?: EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown> | undefined;
84
- readonly error?: string | undefined;
85
- readonly labelWidth?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
86
- readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
87
- readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown> | undefined;
88
- readonly for?: string | undefined;
89
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
90
- readonly label: StringConstructor;
91
- readonly labelWidth: {
92
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
93
- readonly required: false;
94
- readonly validator: ((val: unknown) => boolean) | undefined;
95
- __epPropKey: true;
96
- };
97
- readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "right" | "left", unknown, "", boolean>;
98
- readonly prop: {
99
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
100
- readonly required: false;
101
- readonly validator: ((val: unknown) => boolean) | undefined;
102
- __epPropKey: true;
103
- };
104
- readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
105
- readonly rules: {
106
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
107
- readonly required: false;
108
- readonly validator: ((val: unknown) => boolean) | undefined;
109
- __epPropKey: true;
110
- };
111
- readonly error: StringConstructor;
112
- readonly validateStatus: {
113
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
114
- readonly required: false;
115
- readonly validator: ((val: unknown) => boolean) | undefined;
116
- __epPropKey: true;
117
- };
118
- readonly for: StringConstructor;
119
- readonly inlineMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
120
- readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
121
- readonly size: {
122
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
123
- readonly required: false;
124
- readonly validator: ((val: unknown) => boolean) | undefined;
125
- __epPropKey: true;
126
- };
127
- }>>, "required" | "labelPosition" | "inlineMessage" | "showMessage">;
128
- $attrs: {
129
- [x: string]: unknown;
130
- };
131
- $refs: {
132
- [x: string]: unknown;
133
- };
134
- $slots: Readonly<{
135
- [name: string]: Slot<any> | undefined;
136
- }>;
137
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
138
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
139
- $emit: (event: string, ...args: any[]) => void;
140
- $el: any;
141
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
142
- readonly label: StringConstructor;
143
- readonly labelWidth: {
144
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
145
- readonly required: false;
146
- readonly validator: ((val: unknown) => boolean) | undefined;
147
- __epPropKey: true;
148
- };
149
- readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "right" | "left", unknown, "", boolean>;
150
- readonly prop: {
151
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
152
- readonly required: false;
153
- readonly validator: ((val: unknown) => boolean) | undefined;
154
- __epPropKey: true;
155
- };
156
- readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
157
- readonly rules: {
158
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
159
- readonly required: false;
160
- readonly validator: ((val: unknown) => boolean) | undefined;
161
- __epPropKey: true;
162
- };
163
- readonly error: StringConstructor;
164
- readonly validateStatus: {
165
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
166
- readonly required: false;
167
- readonly validator: ((val: unknown) => boolean) | undefined;
168
- __epPropKey: true;
169
- };
170
- readonly for: StringConstructor;
171
- readonly inlineMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
172
- readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
173
- readonly size: {
174
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
175
- readonly required: false;
176
- readonly validator: ((val: unknown) => boolean) | undefined;
177
- __epPropKey: true;
178
- };
179
- }>>, {
180
- size: ComputedRef<"" | "default" | "small" | "large">;
181
- validateMessage: Ref<string>;
182
- validateState: Ref<"" | "success" | "error" | "validating">;
183
- validate: (trigger: string, callback?: FormValidateCallback | undefined) => FormValidationResult;
184
- clearValidate: () => void;
185
- resetField: () => void;
186
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
187
- readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
188
- readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "right" | "left", unknown>;
189
- readonly inlineMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
190
- readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
191
- }, {}, string, {}> & {
192
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
193
- created?: ((() => void) | (() => void)[]) | undefined;
194
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
195
- mounted?: ((() => void) | (() => void)[]) | undefined;
196
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
197
- updated?: ((() => void) | (() => void)[]) | undefined;
198
- activated?: ((() => void) | (() => void)[]) | undefined;
199
- deactivated?: ((() => void) | (() => void)[]) | undefined;
200
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
201
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
202
- destroyed?: ((() => void) | (() => void)[]) | undefined;
203
- unmounted?: ((() => void) | (() => void)[]) | undefined;
204
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
205
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
206
- 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;
207
- };
208
- $forceUpdate: () => void;
209
- $nextTick: typeof nextTick;
210
- $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;
211
- } & Omit<Readonly< ExtractPropTypes<{
212
- readonly label: StringConstructor;
213
- readonly labelWidth: {
214
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
215
- readonly required: false;
216
- readonly validator: ((val: unknown) => boolean) | undefined;
217
- __epPropKey: true;
218
- };
219
- readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "right" | "left", unknown, "", boolean>;
220
- readonly prop: {
221
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
222
- readonly required: false;
223
- readonly validator: ((val: unknown) => boolean) | undefined;
224
- __epPropKey: true;
225
- };
226
- readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
227
- readonly rules: {
228
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
229
- readonly required: false;
230
- readonly validator: ((val: unknown) => boolean) | undefined;
231
- __epPropKey: true;
232
- };
233
- readonly error: StringConstructor;
234
- readonly validateStatus: {
235
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
236
- readonly required: false;
237
- readonly validator: ((val: unknown) => boolean) | undefined;
238
- __epPropKey: true;
239
- };
240
- readonly for: StringConstructor;
241
- readonly inlineMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
242
- readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
243
- readonly size: {
244
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
245
- readonly required: false;
246
- readonly validator: ((val: unknown) => boolean) | undefined;
247
- __epPropKey: true;
248
- };
249
- }>>, "size" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField"> & ShallowUnwrapRef<{
250
- size: ComputedRef<"" | "default" | "small" | "large">;
251
- validateMessage: Ref<string>;
252
- validateState: Ref<"" | "success" | "error" | "validating">;
253
- validate: (trigger: string, callback?: FormValidateCallback | undefined) => FormValidationResult;
254
- clearValidate: () => void;
255
- resetField: () => void;
256
- }> & {} & ComponentCustomProperties & {} & {
257
- $slots: {
258
- label?: ((props: {
259
- label: string;
260
- }) => any) | undefined;
261
- } & {
262
- default?: ((props: {}) => any) | undefined;
263
- } & {
264
- error?: ((props: {
265
- error: string;
266
- }) => any) | undefined;
267
- };
268
- }) | null | undefined>;
269
- fieldInstance: Ref<any>;
270
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
271
- "update:modelValue": (value: FieldValueType) => void;
272
- change: (value: FieldValueType) => void;
273
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormItemProps>, {
274
- label: string;
275
- modelValue: string;
276
- hasLabel: boolean;
277
- tooltip: string;
278
- formItemProps: () => {};
279
- fieldProps: () => {};
280
- options: () => never[];
281
- fieldSlots: () => {};
282
- valueType: undefined;
283
- renderField: undefined;
284
- renderLabel: undefined;
285
- fieldChildrenSlot: undefined;
286
- renderErrorMessage: undefined;
287
- optionsMap: undefined;
288
- autoDict: undefined;
289
- clearable: boolean;
290
- ellipsis: boolean;
291
- index: number;
292
- }>>> & {
293
- onChange?: ((value: FieldValueType) => any) | undefined;
294
- "onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
295
- }, {
296
- index: number;
297
- label: string | ComputedRef<string>;
298
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
299
- style?: CSSProperties | undefined;
300
- class?: any;
301
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
302
- style?: CSSProperties | undefined;
303
- class?: any;
304
- } & RecordType>>;
305
- formItemProps: PropsItemType< Mutable<FormItemProps> & {
306
- [key: string]: any;
307
- style?: CSSProperties | undefined;
308
- }>;
309
- fieldProps: PropsItemType<Partial<{
310
- [index: string]: any;
311
- [index: number]: any;
312
- [index: symbol]: any;
313
- class: any;
314
- style: CSSProperties;
315
- modelModifiers: {
316
- [index: string]: any;
317
- lazy?: boolean | undefined;
318
- trim?: boolean | undefined;
319
- /**
320
- * @desc 自动字典注入
321
- * @version v0.2.0
322
- */
323
- number?: boolean | undefined;
324
- };
325
- rows: number; /**
326
- * 标签和占位符超出宽度时省略,悬停显示全文。默认关闭。
327
- */
328
- autocomplete: string;
329
- 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;
330
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
331
- step: string | number;
332
- format: string | ProgressFn | undefined;
333
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
334
- id: string | [string, string];
335
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
336
- height: string | number;
337
- autosize: InputAutoSize;
338
- } & 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>>>>;
339
- options: OptionsType;
340
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
341
- fieldSlots: {
342
- [slotName: string]: (data?: any) => RenderTypes;
343
- };
344
- fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
345
- ellipsis: boolean;
346
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
347
- clearable: boolean;
348
- valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
349
- renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
350
- renderLabel: (label: string, props: PlusColumn) => RenderTypes;
351
- renderErrorMessage: (props: PlusColumn & {
352
- value?: FieldValueType;
353
- error?: string | undefined;
354
- label?: string | undefined;
355
- }) => RenderTypes;
356
- optionsMap: {
357
- label?: string | undefined;
358
- value?: string | undefined;
359
- };
360
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
361
- store?: any;
362
- method?: string | undefined;
363
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
364
- dictCode?: string | undefined;
365
- };
366
- }, {}>, Partial<Record<string, (_: {
367
- label: string;
368
- fieldProps: RecordType;
369
- formItemProps: RecordType;
370
- options: OptionsRow<undefined>[];
371
- fieldInstance?: any;
372
- valueIsReady?: Ref<boolean> | undefined;
373
- prop: string;
374
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
375
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
376
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
377
- style?: CSSProperties | undefined;
378
- class?: any;
379
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
380
- style?: CSSProperties | undefined;
381
- class?: any;
382
- } & RecordType>>;
383
- fieldSlots: {
384
- [slotName: string]: (data?: any) => RenderTypes;
385
- };
386
- valueType: TableValueType | FormItemValueType;
387
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
388
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
389
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
390
- renderErrorMessage: ((props: PlusColumn & {
391
- value?: FieldValueType;
392
- error?: string | undefined;
393
- label?: string | undefined;
394
- }) => RenderTypes) | undefined;
395
- optionsMap: {
396
- label?: string | undefined;
397
- value?: string | undefined;
398
- } | undefined;
399
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
400
- store?: any;
401
- method?: string | undefined;
402
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
403
- dictCode?: string | undefined;
404
- } | undefined;
405
- clearable: boolean;
406
- ellipsis: boolean;
407
- index: number;
408
- }) => any>> & Partial<Record<string, (_: {
409
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
410
- readonly label: string | ComputedRef<string>;
411
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
412
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
413
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
414
- style?: CSSProperties | undefined;
415
- class?: any;
416
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
417
- style?: CSSProperties | undefined;
418
- class?: any;
419
- } & RecordType>>;
420
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
421
- [key: string]: any;
422
- style?: CSSProperties | undefined;
423
- }>;
424
- readonly fieldProps: PropsItemType<Partial<{
425
- [index: string]: any;
426
- [index: number]: any;
427
- [index: symbol]: any;
428
- class: any;
429
- style: CSSProperties;
430
- modelModifiers: {
431
- [index: string]: any;
432
- lazy?: boolean | undefined;
433
- trim?: boolean | undefined;
434
- /**
435
- * @desc 自动字典注入
436
- * @version v0.2.0
437
- */
438
- number?: boolean | undefined;
439
- };
440
- rows: number; /**
441
- * 标签和占位符超出宽度时省略,悬停显示全文。默认关闭。
442
- */
443
- autocomplete: string;
444
- 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;
445
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
446
- step: string | number;
447
- format: string | ProgressFn | undefined;
448
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
449
- id: string | [string, string];
450
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
451
- height: string | number;
452
- autosize: InputAutoSize;
453
- } & 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>>>>;
454
- readonly options: OptionsType;
455
- readonly fieldSlots: {
456
- [slotName: string]: (data?: any) => RenderTypes;
457
- };
458
- readonly valueType: TableValueType | FormItemValueType;
459
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
460
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
461
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
462
- readonly renderErrorMessage: ((props: PlusColumn & {
463
- value?: FieldValueType;
464
- error?: string | undefined;
465
- label?: string | undefined;
466
- }) => RenderTypes) | undefined;
467
- readonly optionsMap: {
468
- label?: string | undefined;
469
- value?: string | undefined;
470
- } | undefined;
471
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
472
- store?: any;
473
- method?: string | undefined;
474
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
475
- dictCode?: string | undefined;
476
- } | undefined;
477
- readonly clearable: boolean;
478
- readonly ellipsis: boolean;
479
- readonly index: number;
480
- } & {
481
- readonly ellipsis: boolean;
482
- readonly clearable: boolean;
483
- };
484
- label: string;
485
- fieldProps: RecordType;
486
- formItemProps: RecordType;
487
- options: OptionsRow<undefined>[];
488
- fieldInstance?: any;
489
- valueIsReady?: Ref<boolean> | undefined;
490
- prop: string;
491
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
492
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
493
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
494
- style?: CSSProperties | undefined;
495
- class?: any;
496
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
497
- style?: CSSProperties | undefined;
498
- class?: any;
499
- } & RecordType>>;
500
- fieldSlots: {
501
- [slotName: string]: (data?: any) => RenderTypes;
502
- };
503
- valueType: TableValueType | FormItemValueType;
504
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
505
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
506
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
507
- renderErrorMessage: ((props: PlusColumn & {
508
- value?: FieldValueType;
509
- error?: string | undefined;
510
- label?: string | undefined;
511
- }) => RenderTypes) | undefined;
512
- optionsMap: {
513
- label?: string | undefined;
514
- value?: string | undefined;
515
- } | undefined;
516
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise<OptionsRow<undefined>[]>) | {
517
- store?: any;
518
- method?: string | undefined;
519
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
520
- dictCode?: string | undefined;
521
- } | undefined;
522
- clearable: boolean;
523
- ellipsis: boolean;
524
- index: number;
525
- }) => any>> & {
526
- "tooltip-icon"?(_: {}): any;
527
- }>;
528
- export default _default;
529
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
530
- type __VLS_TypePropsToRuntimeProps<T> = {
531
- [K in keyof T]-?: {} extends Pick<T, K> ? {
532
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
533
- } : {
534
- type: PropType<T[K]>;
535
- required: true;
536
- };
537
- };
538
- type __VLS_WithDefaults<P, D> = {
539
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
540
- default: D[K];
541
- }> : P[K];
542
- };
543
- type __VLS_Prettify<T> = {
544
- [K in keyof T]: T[K];
545
- } & {};
546
- type __VLS_WithTemplateSlots<T, S> = T & {
547
- new (): {
548
- $slots: S;
549
- };
550
- };