@maxtan/ez-ui 0.15.0 → 0.25.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.
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1026 -822
- package/dist/types/index.d.ts +1933 -0
- package/package.json +4 -3
- package/dist/types/components/checkbox/index.d.ts +0 -45
- package/dist/types/components/checkbox/src/checkbox.d.ts +0 -12
- package/dist/types/components/checkbox/src/checkbox.vue.d.ts +0 -17
- package/dist/types/components/dialog/index.d.ts +0 -58
- package/dist/types/components/dialog/src/dialog.d.ts +0 -17
- package/dist/types/components/dialog/src/dialog.vue.d.ts +0 -33
- package/dist/types/components/dynamic-form/index.d.ts +0 -245
- package/dist/types/components/dynamic-form/src/dynamic-form.d.ts +0 -128
- package/dist/types/components/dynamic-form/src/dynamic-form.vue.d.ts +0 -398
- package/dist/types/components/fast-table/index.d.ts +0 -71
- package/dist/types/components/fast-table/src/column-config.vue.d.ts +0 -21
- package/dist/types/components/fast-table/src/fast-table.d.ts +0 -51
- package/dist/types/components/fast-table/src/fast-table.vue.d.ts +0 -48
- package/dist/types/components/fast-table/src/use-fast-table.d.ts +0 -13
- package/dist/types/components/icon/index.d.ts +0 -30
- package/dist/types/components/icon/src/icon.d.ts +0 -4
- package/dist/types/components/icon/src/icon.vue.d.ts +0 -23
- package/dist/types/components/image-upload/index.d.ts +0 -479
- package/dist/types/components/image-upload/src/image-upload.d.ts +0 -36
- package/dist/types/components/image-upload/src/image-upload.vue.d.ts +0 -432
- package/dist/types/components/index.d.ts +0 -11
- package/dist/types/components/pagination/index.d.ts +0 -49
- package/dist/types/components/pagination/src/pagination.d.ts +0 -2
- package/dist/types/components/pagination/src/pagination.vue.d.ts +0 -16
- package/dist/types/components/radio/index.d.ts +0 -45
- package/dist/types/components/radio/src/radio.d.ts +0 -10
- package/dist/types/components/radio/src/radio.vue.d.ts +0 -16
- package/dist/types/components/search-form/index.d.ts +0 -50
- package/dist/types/components/search-form/src/search-form.d.ts +0 -4
- package/dist/types/components/search-form/src/search-form.vue.d.ts +0 -35
- package/dist/types/components/select/index.d.ts +0 -37
- package/dist/types/components/select/src/select.d.ts +0 -20
- package/dist/types/components/select/src/select.vue.d.ts +0 -13
- package/dist/types/components/table/index.d.ts +0 -49
- package/dist/types/components/table/src/table.d.ts +0 -27
- package/dist/types/components/table/src/table.vue.d.ts +0 -30
- package/dist/types/ez-ui/component.d.ts +0 -1600
- package/dist/types/ez-ui/defaults.d.ts +0 -4
- package/dist/types/ez-ui/index.d.ts +0 -4
- package/dist/types/ez-ui/make-installer.d.ts +0 -4
- package/dist/types/ez-ui/plugin.d.ts +0 -3
- package/dist/types/ez-ui/vite.config.d.ts +0 -2
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
import { FormInstance } from 'element-plus';
|
|
2
|
-
import { nextTick } from 'vue';
|
|
3
|
-
import { DynamicFormProps, FormItemConfig, DynamicFormSlots } from './dynamic-form';
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
|
-
slots: Readonly<DynamicFormSlots> & DynamicFormSlots;
|
|
7
|
-
refs: {
|
|
8
|
-
formRef: {
|
|
9
|
-
$: import('vue').ComponentInternalInstance;
|
|
10
|
-
$data: {};
|
|
11
|
-
$props: Partial<{
|
|
12
|
-
readonly disabled: boolean;
|
|
13
|
-
readonly inline: boolean;
|
|
14
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
15
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
16
|
-
readonly inlineMessage: boolean;
|
|
17
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
18
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
19
|
-
readonly labelSuffix: string;
|
|
20
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
21
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
22
|
-
readonly statusIcon: boolean;
|
|
23
|
-
readonly hideRequiredAsterisk: boolean;
|
|
24
|
-
readonly scrollToError: boolean;
|
|
25
|
-
}> & Omit<{
|
|
26
|
-
readonly disabled: boolean;
|
|
27
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
28
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
29
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
30
|
-
readonly labelSuffix: string;
|
|
31
|
-
readonly inline: boolean;
|
|
32
|
-
readonly inlineMessage: boolean;
|
|
33
|
-
readonly statusIcon: boolean;
|
|
34
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
35
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
36
|
-
readonly hideRequiredAsterisk: boolean;
|
|
37
|
-
readonly scrollToError: boolean;
|
|
38
|
-
readonly scrollIntoViewOptions: true;
|
|
39
|
-
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>;
|
|
40
|
-
readonly model?: Record<string, any>;
|
|
41
|
-
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>;
|
|
42
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
43
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
44
|
-
$attrs: {
|
|
45
|
-
[x: string]: unknown;
|
|
46
|
-
};
|
|
47
|
-
$refs: {
|
|
48
|
-
[x: string]: unknown;
|
|
49
|
-
};
|
|
50
|
-
$slots: Readonly<{
|
|
51
|
-
[name: string]: import('vue').Slot<any>;
|
|
52
|
-
}>;
|
|
53
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
54
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
55
|
-
$host: Element | null;
|
|
56
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
57
|
-
$el: any;
|
|
58
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
-
readonly model: ObjectConstructor;
|
|
60
|
-
readonly rules: {
|
|
61
|
-
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
62
|
-
readonly required: false;
|
|
63
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
-
__epPropKey: true;
|
|
65
|
-
};
|
|
66
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
67
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
68
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
69
|
-
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
70
|
-
readonly inline: BooleanConstructor;
|
|
71
|
-
readonly inlineMessage: BooleanConstructor;
|
|
72
|
-
readonly statusIcon: BooleanConstructor;
|
|
73
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
74
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
75
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
76
|
-
readonly scrollToError: BooleanConstructor;
|
|
77
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
78
|
-
readonly size: {
|
|
79
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
80
|
-
readonly required: false;
|
|
81
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
|
-
__epPropKey: true;
|
|
83
|
-
};
|
|
84
|
-
readonly disabled: BooleanConstructor;
|
|
85
|
-
}>> & {
|
|
86
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
89
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
90
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
91
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
92
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
93
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
94
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
95
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
96
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
97
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
98
|
-
}, string, {
|
|
99
|
-
readonly disabled: boolean;
|
|
100
|
-
readonly inline: boolean;
|
|
101
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
102
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
103
|
-
readonly inlineMessage: boolean;
|
|
104
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
105
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
106
|
-
readonly labelSuffix: string;
|
|
107
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
108
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
109
|
-
readonly statusIcon: boolean;
|
|
110
|
-
readonly hideRequiredAsterisk: boolean;
|
|
111
|
-
readonly scrollToError: boolean;
|
|
112
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
113
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
114
|
-
created?: (() => void) | (() => void)[];
|
|
115
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
116
|
-
mounted?: (() => void) | (() => void)[];
|
|
117
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
118
|
-
updated?: (() => void) | (() => void)[];
|
|
119
|
-
activated?: (() => void) | (() => void)[];
|
|
120
|
-
deactivated?: (() => void) | (() => void)[];
|
|
121
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
122
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
123
|
-
destroyed?: (() => void) | (() => void)[];
|
|
124
|
-
unmounted?: (() => void) | (() => void)[];
|
|
125
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
126
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
127
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
128
|
-
};
|
|
129
|
-
$forceUpdate: () => void;
|
|
130
|
-
$nextTick: typeof nextTick;
|
|
131
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
132
|
-
} & Readonly<{
|
|
133
|
-
readonly disabled: boolean;
|
|
134
|
-
readonly inline: boolean;
|
|
135
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
136
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
137
|
-
readonly inlineMessage: boolean;
|
|
138
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
139
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
140
|
-
readonly labelSuffix: string;
|
|
141
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
142
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
143
|
-
readonly statusIcon: boolean;
|
|
144
|
-
readonly hideRequiredAsterisk: boolean;
|
|
145
|
-
readonly scrollToError: boolean;
|
|
146
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
147
|
-
readonly model: ObjectConstructor;
|
|
148
|
-
readonly rules: {
|
|
149
|
-
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
150
|
-
readonly required: false;
|
|
151
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
152
|
-
__epPropKey: true;
|
|
153
|
-
};
|
|
154
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
155
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
156
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
157
|
-
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
158
|
-
readonly inline: BooleanConstructor;
|
|
159
|
-
readonly inlineMessage: BooleanConstructor;
|
|
160
|
-
readonly statusIcon: BooleanConstructor;
|
|
161
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
162
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
163
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
164
|
-
readonly scrollToError: BooleanConstructor;
|
|
165
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
166
|
-
readonly size: {
|
|
167
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
168
|
-
readonly required: false;
|
|
169
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
170
|
-
__epPropKey: true;
|
|
171
|
-
};
|
|
172
|
-
readonly disabled: BooleanConstructor;
|
|
173
|
-
}>> & {
|
|
174
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
175
|
-
}, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
176
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
177
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
178
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
179
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
180
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
181
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
182
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
183
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
184
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
185
|
-
$slots: {
|
|
186
|
-
default?: (props: {}) => any;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
rootEl: any;
|
|
191
|
-
};
|
|
192
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
193
|
-
declare const __VLS_component: import('vue').DefineComponent<DynamicFormProps, {
|
|
194
|
-
validate: () => Promise<boolean>;
|
|
195
|
-
validateField: (props: string | string[]) => Promise<boolean>;
|
|
196
|
-
clearValidate: (props?: string | string[]) => void;
|
|
197
|
-
resetFields: (props?: string | string[]) => void;
|
|
198
|
-
getFormData: () => Record<string, any>;
|
|
199
|
-
setFormData: (data: Record<string, any>, merge?: boolean) => void;
|
|
200
|
-
formRef: import('vue').ShallowRef<FormInstance, FormInstance>;
|
|
201
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
202
|
-
"update:modelValue": (value: Record<string, any>) => any;
|
|
203
|
-
}, string, import('vue').PublicProps, Readonly<DynamicFormProps> & Readonly<{
|
|
204
|
-
"onUpdate:modelValue"?: (value: Record<string, any>) => any;
|
|
205
|
-
}>, {
|
|
206
|
-
items: FormItemConfig[];
|
|
207
|
-
cols: number;
|
|
208
|
-
gutter: number;
|
|
209
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
210
|
-
formRef: {
|
|
211
|
-
$: import('vue').ComponentInternalInstance;
|
|
212
|
-
$data: {};
|
|
213
|
-
$props: Partial<{
|
|
214
|
-
readonly disabled: boolean;
|
|
215
|
-
readonly inline: boolean;
|
|
216
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
217
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
218
|
-
readonly inlineMessage: boolean;
|
|
219
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
220
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
221
|
-
readonly labelSuffix: string;
|
|
222
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
223
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
224
|
-
readonly statusIcon: boolean;
|
|
225
|
-
readonly hideRequiredAsterisk: boolean;
|
|
226
|
-
readonly scrollToError: boolean;
|
|
227
|
-
}> & Omit<{
|
|
228
|
-
readonly disabled: boolean;
|
|
229
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
230
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
231
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
232
|
-
readonly labelSuffix: string;
|
|
233
|
-
readonly inline: boolean;
|
|
234
|
-
readonly inlineMessage: boolean;
|
|
235
|
-
readonly statusIcon: boolean;
|
|
236
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
237
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
238
|
-
readonly hideRequiredAsterisk: boolean;
|
|
239
|
-
readonly scrollToError: boolean;
|
|
240
|
-
readonly scrollIntoViewOptions: true;
|
|
241
|
-
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>;
|
|
242
|
-
readonly model?: Record<string, any>;
|
|
243
|
-
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>;
|
|
244
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
245
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
246
|
-
$attrs: {
|
|
247
|
-
[x: string]: unknown;
|
|
248
|
-
};
|
|
249
|
-
$refs: {
|
|
250
|
-
[x: string]: unknown;
|
|
251
|
-
};
|
|
252
|
-
$slots: Readonly<{
|
|
253
|
-
[name: string]: import('vue').Slot<any>;
|
|
254
|
-
}>;
|
|
255
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
256
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
257
|
-
$host: Element | null;
|
|
258
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
259
|
-
$el: any;
|
|
260
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
261
|
-
readonly model: ObjectConstructor;
|
|
262
|
-
readonly rules: {
|
|
263
|
-
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
264
|
-
readonly required: false;
|
|
265
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
266
|
-
__epPropKey: true;
|
|
267
|
-
};
|
|
268
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
269
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
270
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
271
|
-
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
272
|
-
readonly inline: BooleanConstructor;
|
|
273
|
-
readonly inlineMessage: BooleanConstructor;
|
|
274
|
-
readonly statusIcon: BooleanConstructor;
|
|
275
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
276
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
277
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
278
|
-
readonly scrollToError: BooleanConstructor;
|
|
279
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
280
|
-
readonly size: {
|
|
281
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
282
|
-
readonly required: false;
|
|
283
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
284
|
-
__epPropKey: true;
|
|
285
|
-
};
|
|
286
|
-
readonly disabled: BooleanConstructor;
|
|
287
|
-
}>> & {
|
|
288
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
289
|
-
}, {
|
|
290
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
291
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
292
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
293
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
294
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
295
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
296
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
297
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
298
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
299
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
300
|
-
}, string, {
|
|
301
|
-
readonly disabled: boolean;
|
|
302
|
-
readonly inline: boolean;
|
|
303
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
304
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
305
|
-
readonly inlineMessage: boolean;
|
|
306
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
307
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
308
|
-
readonly labelSuffix: string;
|
|
309
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
310
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
311
|
-
readonly statusIcon: boolean;
|
|
312
|
-
readonly hideRequiredAsterisk: boolean;
|
|
313
|
-
readonly scrollToError: boolean;
|
|
314
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
315
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
316
|
-
created?: (() => void) | (() => void)[];
|
|
317
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
318
|
-
mounted?: (() => void) | (() => void)[];
|
|
319
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
320
|
-
updated?: (() => void) | (() => void)[];
|
|
321
|
-
activated?: (() => void) | (() => void)[];
|
|
322
|
-
deactivated?: (() => void) | (() => void)[];
|
|
323
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
324
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
325
|
-
destroyed?: (() => void) | (() => void)[];
|
|
326
|
-
unmounted?: (() => void) | (() => void)[];
|
|
327
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
328
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
329
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
330
|
-
};
|
|
331
|
-
$forceUpdate: () => void;
|
|
332
|
-
$nextTick: typeof nextTick;
|
|
333
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
334
|
-
} & Readonly<{
|
|
335
|
-
readonly disabled: boolean;
|
|
336
|
-
readonly inline: boolean;
|
|
337
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
338
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
339
|
-
readonly inlineMessage: boolean;
|
|
340
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
341
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
342
|
-
readonly labelSuffix: string;
|
|
343
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
345
|
-
readonly statusIcon: boolean;
|
|
346
|
-
readonly hideRequiredAsterisk: boolean;
|
|
347
|
-
readonly scrollToError: boolean;
|
|
348
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
349
|
-
readonly model: ObjectConstructor;
|
|
350
|
-
readonly rules: {
|
|
351
|
-
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
352
|
-
readonly required: false;
|
|
353
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
354
|
-
__epPropKey: true;
|
|
355
|
-
};
|
|
356
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
357
|
-
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
358
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
359
|
-
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
360
|
-
readonly inline: BooleanConstructor;
|
|
361
|
-
readonly inlineMessage: BooleanConstructor;
|
|
362
|
-
readonly statusIcon: BooleanConstructor;
|
|
363
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
364
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
365
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
366
|
-
readonly scrollToError: BooleanConstructor;
|
|
367
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
368
|
-
readonly size: {
|
|
369
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
370
|
-
readonly required: false;
|
|
371
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
372
|
-
__epPropKey: true;
|
|
373
|
-
};
|
|
374
|
-
readonly disabled: BooleanConstructor;
|
|
375
|
-
}>> & {
|
|
376
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
377
|
-
}, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
378
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
379
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
380
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
381
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
382
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
383
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
384
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
385
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
386
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
387
|
-
$slots: {
|
|
388
|
-
default?: (props: {}) => any;
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
}, any>;
|
|
392
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
393
|
-
export default _default;
|
|
394
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
395
|
-
new (): {
|
|
396
|
-
$slots: S;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export type * from './src/fast-table';
|
|
2
|
-
export declare const EzFastTable: ((<T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
3
|
-
slots: Readonly<NonNullable<import('.').FastTableSolt<T>>> & {
|
|
4
|
-
form: () => void;
|
|
5
|
-
header: (props: import('.').TableHeaderProps<T>) => void;
|
|
6
|
-
freeArea: () => void;
|
|
7
|
-
} & {
|
|
8
|
-
[x: string]: (props: {
|
|
9
|
-
row: T;
|
|
10
|
-
column: import('..').TableColumn<T>;
|
|
11
|
-
$index: number;
|
|
12
|
-
}) => import('vue').VNodeChild;
|
|
13
|
-
} & {
|
|
14
|
-
append?: () => import('vue').VNodeChild;
|
|
15
|
-
empty?: () => import('vue').VNodeChild;
|
|
16
|
-
} & {
|
|
17
|
-
[x: `header-${string}`]: (props: {
|
|
18
|
-
column: import('..').TableColumn<T>;
|
|
19
|
-
$index: number;
|
|
20
|
-
}) => import('vue').VNodeChild;
|
|
21
|
-
};
|
|
22
|
-
attrs: any;
|
|
23
|
-
emit: ((event: "reset" | "changePage" | "query", ...args: any[]) => void) & (((evt: "update:columns", value: import('..').TableColumn<T>[]) => void) & ((evt: "update:params", value: import('.').SearchParams) => void) & ((evt: "update:loading", value: boolean) => void));
|
|
24
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
25
|
-
props: {
|
|
26
|
-
readonly onReset?: (...args: any[]) => any;
|
|
27
|
-
readonly "onUpdate:columns"?: (value: import('..').TableColumn<T>[]) => any;
|
|
28
|
-
readonly "onUpdate:params"?: (value: import('.').SearchParams) => any;
|
|
29
|
-
readonly "onUpdate:loading"?: (value: boolean) => any;
|
|
30
|
-
readonly onChangePage?: (...args: any[]) => any;
|
|
31
|
-
readonly onQuery?: (...args: any[]) => any;
|
|
32
|
-
params?: import('.').SearchParams;
|
|
33
|
-
columns?: import('..').TableColumn<T>[] & import('..').TableColumn<any>[];
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
api: (params?: any) => Promise<any>;
|
|
36
|
-
beforeSearch?: (params: import('.').SearchParams) => Promise<void>;
|
|
37
|
-
columnTool?: boolean;
|
|
38
|
-
expanded?: boolean;
|
|
39
|
-
data?: any[];
|
|
40
|
-
rowKey?: string;
|
|
41
|
-
} & import('vue').PublicProps;
|
|
42
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
43
|
-
search: () => void;
|
|
44
|
-
query: () => Promise<void>;
|
|
45
|
-
getTableRef: () => any;
|
|
46
|
-
}>): void;
|
|
47
|
-
attrs: any;
|
|
48
|
-
slots: Readonly<NonNullable<import('.').FastTableSolt<T>>> & {
|
|
49
|
-
form: () => void;
|
|
50
|
-
header: (props: import('.').TableHeaderProps<T>) => void;
|
|
51
|
-
freeArea: () => void;
|
|
52
|
-
} & {
|
|
53
|
-
[x: string]: (props: {
|
|
54
|
-
row: T;
|
|
55
|
-
column: import('..').TableColumn<T>;
|
|
56
|
-
$index: number;
|
|
57
|
-
}) => import('vue').VNodeChild;
|
|
58
|
-
} & {
|
|
59
|
-
append?: () => import('vue').VNodeChild;
|
|
60
|
-
empty?: () => import('vue').VNodeChild;
|
|
61
|
-
} & {
|
|
62
|
-
[x: `header-${string}`]: (props: {
|
|
63
|
-
column: import('..').TableColumn<T>;
|
|
64
|
-
$index: number;
|
|
65
|
-
}) => import('vue').VNodeChild;
|
|
66
|
-
};
|
|
67
|
-
emit: ((event: "reset" | "changePage" | "query", ...args: any[]) => void) & (((evt: "update:columns", value: import('..').TableColumn<T>[]) => void) & ((evt: "update:params", value: import('.').SearchParams) => void) & ((evt: "update:loading", value: boolean) => void));
|
|
68
|
-
}>) => import('vue').VNode & {
|
|
69
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
70
|
-
}) & import('vue').Plugin) & Record<string, any>;
|
|
71
|
-
export default EzFastTable;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TableColumn } from '../../table/index';
|
|
2
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly onChange?: (...args: any[]) => any;
|
|
5
|
-
readonly "onUpdate:modelValue"?: (value: boolean) => any;
|
|
6
|
-
readonly "onUpdate:columns"?: (value: TableColumn<T>[]) => any;
|
|
7
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onChange" | "onUpdate:columns"> & {
|
|
8
|
-
modelValue?: boolean;
|
|
9
|
-
columns?: TableColumn<T>[];
|
|
10
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
11
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
12
|
-
attrs: any;
|
|
13
|
-
slots: {};
|
|
14
|
-
emit: ((event: "change", ...args: any[]) => void) & (((evt: "update:modelValue", value: boolean) => void) & ((evt: "update:columns", value: TableColumn<T>[]) => void));
|
|
15
|
-
}>) => import('vue').VNode & {
|
|
16
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
19
|
-
type __VLS_PrettifyLocal<T> = {
|
|
20
|
-
[K in keyof T]: T[K];
|
|
21
|
-
} & {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { TableSolt, TableProps } from '../../table/index';
|
|
2
|
-
/** 表格上方插槽类型 */
|
|
3
|
-
export type TableHeaderProps<T> = {
|
|
4
|
-
selectList: T[];
|
|
5
|
-
selectIds: string[];
|
|
6
|
-
};
|
|
7
|
-
/** 插槽类型 */
|
|
8
|
-
export type FastTableSolt<D> = {
|
|
9
|
-
form: () => void;
|
|
10
|
-
header: (props: TableHeaderProps<D>) => void;
|
|
11
|
-
freeArea: () => void;
|
|
12
|
-
} & TableSolt<D>;
|
|
13
|
-
interface BasePage {
|
|
14
|
-
current: number;
|
|
15
|
-
size: number;
|
|
16
|
-
}
|
|
17
|
-
interface BaseSort {
|
|
18
|
-
desc?: string;
|
|
19
|
-
asc?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare enum SortEnum {
|
|
22
|
-
ASC = "ascending",
|
|
23
|
-
DESC = "descending",
|
|
24
|
-
EMPTY
|
|
25
|
-
}
|
|
26
|
-
/** 分页参数类型 */
|
|
27
|
-
export type SearchParams<T = any> = BasePage & BaseSort & {
|
|
28
|
-
[k in keyof T]: any;
|
|
29
|
-
};
|
|
30
|
-
/** 公共分页返回类型 */
|
|
31
|
-
export interface Page<T> extends BasePage {
|
|
32
|
-
records: T[];
|
|
33
|
-
size: number;
|
|
34
|
-
}
|
|
35
|
-
/** 公共数据返回类型 */
|
|
36
|
-
export type Response<T> = {
|
|
37
|
-
status: number;
|
|
38
|
-
data: T;
|
|
39
|
-
message: string;
|
|
40
|
-
timestamp: number;
|
|
41
|
-
};
|
|
42
|
-
export interface FastTableProps extends Partial<TableProps> {
|
|
43
|
-
/** 接口方法 */
|
|
44
|
-
api: (params?: any) => Promise<any>;
|
|
45
|
-
/** 查询前钩子 */
|
|
46
|
-
beforeSearch?: (params: SearchParams) => Promise<void>;
|
|
47
|
-
/** 列管理工具 */
|
|
48
|
-
columnTool?: boolean;
|
|
49
|
-
expanded?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { TableColumn } from '../../table/index';
|
|
2
|
-
import { FastTableSolt, FastTableProps, SearchParams } from './fast-table';
|
|
3
|
-
declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
-
readonly onReset?: (...args: any[]) => any;
|
|
6
|
-
readonly "onUpdate:columns"?: (value: TableColumn<T>[]) => any;
|
|
7
|
-
readonly "onUpdate:params"?: (value: SearchParams) => any;
|
|
8
|
-
readonly "onUpdate:loading"?: (value: boolean) => any;
|
|
9
|
-
readonly onChangePage?: (...args: any[]) => any;
|
|
10
|
-
readonly onQuery?: (...args: any[]) => any;
|
|
11
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onUpdate:columns" | "onUpdate:params" | "onUpdate:loading" | "onChangePage" | "onQuery"> & ({
|
|
12
|
-
params?: SearchParams;
|
|
13
|
-
columns?: TableColumn<T>[];
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
} & FastTableProps) & Partial<{}>> & import('vue').PublicProps;
|
|
16
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
17
|
-
search: () => void;
|
|
18
|
-
query: () => Promise<void>;
|
|
19
|
-
getTableRef: () => any;
|
|
20
|
-
}>): void;
|
|
21
|
-
attrs: any;
|
|
22
|
-
slots: Readonly<NonNullable<FastTableSolt<T>>> & {
|
|
23
|
-
form: () => void;
|
|
24
|
-
header: (props: import('./fast-table').TableHeaderProps<T>) => void;
|
|
25
|
-
freeArea: () => void;
|
|
26
|
-
} & {
|
|
27
|
-
[x: string]: (props: {
|
|
28
|
-
row: T;
|
|
29
|
-
column: TableColumn<T>;
|
|
30
|
-
$index: number;
|
|
31
|
-
}) => import('vue').VNodeChild;
|
|
32
|
-
} & {
|
|
33
|
-
append?: () => import('vue').VNodeChild;
|
|
34
|
-
empty?: () => import('vue').VNodeChild;
|
|
35
|
-
} & {
|
|
36
|
-
[x: `header-${string}`]: (props: {
|
|
37
|
-
column: TableColumn<T>;
|
|
38
|
-
$index: number;
|
|
39
|
-
}) => import('vue').VNodeChild;
|
|
40
|
-
};
|
|
41
|
-
emit: ((event: "reset" | "changePage" | "query", ...args: any[]) => void) & (((evt: "update:columns", value: TableColumn<T>[]) => void) & ((evt: "update:params", value: SearchParams) => void) & ((evt: "update:loading", value: boolean) => void));
|
|
42
|
-
}>) => import('vue').VNode & {
|
|
43
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
|
-
};
|
|
45
|
-
export default _default;
|
|
46
|
-
type __VLS_PrettifyLocal<T> = {
|
|
47
|
-
[K in keyof T]: T[K];
|
|
48
|
-
} & {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SortEnum } from './fast-table';
|
|
2
|
-
export declare const useFastTable: (rowKey: string) => {
|
|
3
|
-
selectionChange: (newSelection: []) => void;
|
|
4
|
-
getSelectedList: import('vue').ComputedRef<any[]>;
|
|
5
|
-
getSelectedIds: import('vue').ComputedRef<string[]>;
|
|
6
|
-
getSortParams: ({ prop, order }: {
|
|
7
|
-
prop: string;
|
|
8
|
-
order: SortEnum;
|
|
9
|
-
}) => {
|
|
10
|
-
asc: any;
|
|
11
|
-
desc: any;
|
|
12
|
-
};
|
|
13
|
-
};
|