@wfrog/vc-ui 1.5.1 → 1.5.2
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/es/components/button/button.d.ts +1 -0
- package/dist/es/components/button/button.mjs +10 -5
- package/dist/es/components/cdn-tag.vue.d.ts +5 -0
- package/dist/es/components/choice/choice.d.ts +1 -0
- package/dist/es/components/choice/choice.mjs +10 -5
- package/dist/es/components/choice/choice.vue.d.ts +1 -0
- package/dist/es/components/currency/currency.d.ts +1 -0
- package/dist/es/components/currency/currency.mjs +6 -2
- package/dist/es/components/currency/currency.vue.d.ts +1 -0
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +1 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +6 -2
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +1 -0
- package/dist/es/components/explorer-form/explorer-form.d.ts +1 -0
- package/dist/es/components/explorer-form/explorer-form.mjs +7 -9
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +363 -2
- package/dist/es/components/icon-picker/icon-picker.d.ts +2 -1
- package/dist/es/components/icon-picker/icon-picker.mjs +14 -6
- package/dist/es/components/icon-picker/icon-picker.vue.d.ts +3 -1
- package/dist/es/components/icon-picker/index.css +2 -2
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +1 -0
- package/dist/es/components/input/input.mjs +8 -4
- package/dist/es/components/input/input.vue.d.ts +1 -0
- package/dist/es/components/input-number/index.css +1 -1
- package/dist/es/components/input-number/input-number.d.ts +1 -0
- package/dist/es/components/input-number/input-number.mjs +8 -4
- package/dist/es/components/input-number/input-number.vue.d.ts +1 -0
- package/dist/es/components/pca-picker/pca-picker.mjs +8 -5
- package/dist/es/components/select/index.css +2 -2
- package/dist/es/components/select/select.d.ts +1 -0
- package/dist/es/components/select/select.mjs +8 -4
- package/dist/es/components/select/select.vue.d.ts +1 -0
- package/dist/es/components/switch/switch.mjs +6 -5
- package/dist/es/components/tags/tags.d.ts +1 -1
- package/dist/es/components/tags/tags.mjs +5 -3
- package/dist/es/components/tags/tags.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -2
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +13 -2
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/index.css +2 -2
- package/dist/es/components/tree-picker/tree-picker.mjs +8 -5
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +9 -9
- package/package.json +1 -1
|
@@ -7,7 +7,187 @@ declare function __VLS_template(): {
|
|
|
7
7
|
default?(_: {}): any;
|
|
8
8
|
};
|
|
9
9
|
refs: {
|
|
10
|
-
formRef:
|
|
10
|
+
formRef: ({
|
|
11
|
+
$: import('vue').ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: Partial<{
|
|
14
|
+
readonly disabled: boolean;
|
|
15
|
+
readonly inline: boolean;
|
|
16
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
17
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
18
|
+
readonly inlineMessage: boolean;
|
|
19
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
21
|
+
readonly labelSuffix: string;
|
|
22
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
23
|
+
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>;
|
|
24
|
+
readonly statusIcon: boolean;
|
|
25
|
+
readonly hideRequiredAsterisk: boolean;
|
|
26
|
+
readonly scrollToError: boolean;
|
|
27
|
+
}> & Omit<{
|
|
28
|
+
readonly disabled: boolean;
|
|
29
|
+
readonly inline: boolean;
|
|
30
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
31
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
32
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
33
|
+
readonly labelSuffix: string;
|
|
34
|
+
readonly inlineMessage: boolean;
|
|
35
|
+
readonly statusIcon: boolean;
|
|
36
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
38
|
+
readonly hideRequiredAsterisk: boolean;
|
|
39
|
+
readonly scrollToError: boolean;
|
|
40
|
+
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>;
|
|
41
|
+
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
|
|
42
|
+
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
43
|
+
readonly model?: Record<string, any> | undefined;
|
|
44
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
45
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
46
|
+
$attrs: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
$refs: {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
};
|
|
52
|
+
$slots: Readonly<{
|
|
53
|
+
[name: string]: globalThis.Slot | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
$root: ComponentPublicInstance | null;
|
|
56
|
+
$parent: ComponentPublicInstance | null;
|
|
57
|
+
$host: Element | null;
|
|
58
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
59
|
+
$el: any;
|
|
60
|
+
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
61
|
+
readonly model: ObjectConstructor;
|
|
62
|
+
readonly rules: {
|
|
63
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
+
__epPropKey: true;
|
|
67
|
+
};
|
|
68
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
69
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
70
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
71
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
72
|
+
readonly inline: BooleanConstructor;
|
|
73
|
+
readonly inlineMessage: BooleanConstructor;
|
|
74
|
+
readonly statusIcon: BooleanConstructor;
|
|
75
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
76
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
77
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
78
|
+
readonly scrollToError: BooleanConstructor;
|
|
79
|
+
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>;
|
|
80
|
+
readonly size: {
|
|
81
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
82
|
+
readonly required: false;
|
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
+
__epPropKey: true;
|
|
85
|
+
};
|
|
86
|
+
readonly disabled: BooleanConstructor;
|
|
87
|
+
}>> & {
|
|
88
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
91
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
92
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
93
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
94
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
95
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
96
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
97
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
98
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
99
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
100
|
+
}, string, {
|
|
101
|
+
readonly disabled: boolean;
|
|
102
|
+
readonly inline: boolean;
|
|
103
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
104
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
105
|
+
readonly inlineMessage: boolean;
|
|
106
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
107
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
108
|
+
readonly labelSuffix: string;
|
|
109
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
110
|
+
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>;
|
|
111
|
+
readonly statusIcon: boolean;
|
|
112
|
+
readonly hideRequiredAsterisk: boolean;
|
|
113
|
+
readonly scrollToError: boolean;
|
|
114
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
115
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
116
|
+
created?: (() => void) | (() => void)[];
|
|
117
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
118
|
+
mounted?: (() => void) | (() => void)[];
|
|
119
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
120
|
+
updated?: (() => void) | (() => void)[];
|
|
121
|
+
activated?: (() => void) | (() => void)[];
|
|
122
|
+
deactivated?: (() => void) | (() => void)[];
|
|
123
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
124
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
125
|
+
destroyed?: (() => void) | (() => void)[];
|
|
126
|
+
unmounted?: (() => void) | (() => void)[];
|
|
127
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
128
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
129
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
130
|
+
};
|
|
131
|
+
$forceUpdate: () => void;
|
|
132
|
+
$nextTick: typeof import('vue').nextTick;
|
|
133
|
+
$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;
|
|
134
|
+
} & Readonly<{
|
|
135
|
+
readonly disabled: boolean;
|
|
136
|
+
readonly inline: boolean;
|
|
137
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
138
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
139
|
+
readonly inlineMessage: boolean;
|
|
140
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
141
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
142
|
+
readonly labelSuffix: string;
|
|
143
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
144
|
+
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>;
|
|
145
|
+
readonly statusIcon: boolean;
|
|
146
|
+
readonly hideRequiredAsterisk: boolean;
|
|
147
|
+
readonly scrollToError: boolean;
|
|
148
|
+
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
149
|
+
readonly model: ObjectConstructor;
|
|
150
|
+
readonly rules: {
|
|
151
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
152
|
+
readonly required: false;
|
|
153
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
154
|
+
__epPropKey: true;
|
|
155
|
+
};
|
|
156
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
157
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
158
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
159
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
160
|
+
readonly inline: BooleanConstructor;
|
|
161
|
+
readonly inlineMessage: BooleanConstructor;
|
|
162
|
+
readonly statusIcon: BooleanConstructor;
|
|
163
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
164
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
165
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
166
|
+
readonly scrollToError: BooleanConstructor;
|
|
167
|
+
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>;
|
|
168
|
+
readonly size: {
|
|
169
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
170
|
+
readonly required: false;
|
|
171
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
+
__epPropKey: true;
|
|
173
|
+
};
|
|
174
|
+
readonly disabled: BooleanConstructor;
|
|
175
|
+
}>> & {
|
|
176
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
177
|
+
}, "disabled" | "inline" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
178
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
179
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
180
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
181
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
182
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
183
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
184
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
185
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
186
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
187
|
+
$slots: {
|
|
188
|
+
default?: (props: {}) => any;
|
|
189
|
+
};
|
|
190
|
+
}) | null;
|
|
11
191
|
};
|
|
12
192
|
rootEl: HTMLDivElement;
|
|
13
193
|
};
|
|
@@ -20,9 +200,190 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
20
200
|
icon: string;
|
|
21
201
|
onCancel: () => void | Promise<void>;
|
|
22
202
|
onSave: (data: Record<string, any>) => void | Promise<void>;
|
|
203
|
+
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
23
204
|
autoInitial: boolean;
|
|
24
205
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
-
formRef:
|
|
206
|
+
formRef: ({
|
|
207
|
+
$: import('vue').ComponentInternalInstance;
|
|
208
|
+
$data: {};
|
|
209
|
+
$props: Partial<{
|
|
210
|
+
readonly disabled: boolean;
|
|
211
|
+
readonly inline: boolean;
|
|
212
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
213
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
214
|
+
readonly inlineMessage: boolean;
|
|
215
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
216
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
217
|
+
readonly labelSuffix: string;
|
|
218
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
219
|
+
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>;
|
|
220
|
+
readonly statusIcon: boolean;
|
|
221
|
+
readonly hideRequiredAsterisk: boolean;
|
|
222
|
+
readonly scrollToError: boolean;
|
|
223
|
+
}> & Omit<{
|
|
224
|
+
readonly disabled: boolean;
|
|
225
|
+
readonly inline: boolean;
|
|
226
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
227
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
228
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
229
|
+
readonly labelSuffix: string;
|
|
230
|
+
readonly inlineMessage: boolean;
|
|
231
|
+
readonly statusIcon: boolean;
|
|
232
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
233
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
234
|
+
readonly hideRequiredAsterisk: boolean;
|
|
235
|
+
readonly scrollToError: boolean;
|
|
236
|
+
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>;
|
|
237
|
+
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
|
|
238
|
+
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
239
|
+
readonly model?: Record<string, any> | undefined;
|
|
240
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
241
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
242
|
+
$attrs: {
|
|
243
|
+
[x: string]: unknown;
|
|
244
|
+
};
|
|
245
|
+
$refs: {
|
|
246
|
+
[x: string]: unknown;
|
|
247
|
+
};
|
|
248
|
+
$slots: Readonly<{
|
|
249
|
+
[name: string]: globalThis.Slot | undefined;
|
|
250
|
+
}>;
|
|
251
|
+
$root: ComponentPublicInstance | null;
|
|
252
|
+
$parent: ComponentPublicInstance | null;
|
|
253
|
+
$host: Element | null;
|
|
254
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
255
|
+
$el: any;
|
|
256
|
+
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
257
|
+
readonly model: ObjectConstructor;
|
|
258
|
+
readonly rules: {
|
|
259
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
260
|
+
readonly required: false;
|
|
261
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
262
|
+
__epPropKey: true;
|
|
263
|
+
};
|
|
264
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
265
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
266
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
267
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
268
|
+
readonly inline: BooleanConstructor;
|
|
269
|
+
readonly inlineMessage: BooleanConstructor;
|
|
270
|
+
readonly statusIcon: BooleanConstructor;
|
|
271
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
272
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
273
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
274
|
+
readonly scrollToError: BooleanConstructor;
|
|
275
|
+
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>;
|
|
276
|
+
readonly size: {
|
|
277
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
278
|
+
readonly required: false;
|
|
279
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
280
|
+
__epPropKey: true;
|
|
281
|
+
};
|
|
282
|
+
readonly disabled: BooleanConstructor;
|
|
283
|
+
}>> & {
|
|
284
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
285
|
+
}, {
|
|
286
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
287
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
288
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
289
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
290
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
291
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
292
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
293
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
294
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
295
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
296
|
+
}, string, {
|
|
297
|
+
readonly disabled: boolean;
|
|
298
|
+
readonly inline: boolean;
|
|
299
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
300
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
301
|
+
readonly inlineMessage: boolean;
|
|
302
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
303
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
304
|
+
readonly labelSuffix: string;
|
|
305
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
306
|
+
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>;
|
|
307
|
+
readonly statusIcon: boolean;
|
|
308
|
+
readonly hideRequiredAsterisk: boolean;
|
|
309
|
+
readonly scrollToError: boolean;
|
|
310
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
311
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
312
|
+
created?: (() => void) | (() => void)[];
|
|
313
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
314
|
+
mounted?: (() => void) | (() => void)[];
|
|
315
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
316
|
+
updated?: (() => void) | (() => void)[];
|
|
317
|
+
activated?: (() => void) | (() => void)[];
|
|
318
|
+
deactivated?: (() => void) | (() => void)[];
|
|
319
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
320
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
321
|
+
destroyed?: (() => void) | (() => void)[];
|
|
322
|
+
unmounted?: (() => void) | (() => void)[];
|
|
323
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
324
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
325
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
326
|
+
};
|
|
327
|
+
$forceUpdate: () => void;
|
|
328
|
+
$nextTick: typeof import('vue').nextTick;
|
|
329
|
+
$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;
|
|
330
|
+
} & Readonly<{
|
|
331
|
+
readonly disabled: boolean;
|
|
332
|
+
readonly inline: boolean;
|
|
333
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
334
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
335
|
+
readonly inlineMessage: boolean;
|
|
336
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
337
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
338
|
+
readonly labelSuffix: string;
|
|
339
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
340
|
+
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>;
|
|
341
|
+
readonly statusIcon: boolean;
|
|
342
|
+
readonly hideRequiredAsterisk: boolean;
|
|
343
|
+
readonly scrollToError: boolean;
|
|
344
|
+
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
345
|
+
readonly model: ObjectConstructor;
|
|
346
|
+
readonly rules: {
|
|
347
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
348
|
+
readonly required: false;
|
|
349
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
350
|
+
__epPropKey: true;
|
|
351
|
+
};
|
|
352
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
353
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
354
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
355
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
356
|
+
readonly inline: BooleanConstructor;
|
|
357
|
+
readonly inlineMessage: BooleanConstructor;
|
|
358
|
+
readonly statusIcon: BooleanConstructor;
|
|
359
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
360
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
361
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
362
|
+
readonly scrollToError: BooleanConstructor;
|
|
363
|
+
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>;
|
|
364
|
+
readonly size: {
|
|
365
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
366
|
+
readonly required: false;
|
|
367
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
368
|
+
__epPropKey: true;
|
|
369
|
+
};
|
|
370
|
+
readonly disabled: BooleanConstructor;
|
|
371
|
+
}>> & {
|
|
372
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
373
|
+
}, "disabled" | "inline" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
374
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
375
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
376
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
377
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
378
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
379
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
380
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
381
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
382
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
383
|
+
$slots: {
|
|
384
|
+
default?: (props: {}) => any;
|
|
385
|
+
};
|
|
386
|
+
}) | null;
|
|
26
387
|
}, HTMLDivElement>;
|
|
27
388
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
389
|
export default _default;
|
|
@@ -2,8 +2,9 @@ import './index.css'
|
|
|
2
2
|
import '../../chunk/By7FMB3I.mjs';
|
|
3
3
|
import '../../chunk/BfjuZmry.mjs';
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { ref, computed, watch, defineComponent, useTemplateRef, onMounted, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, isRef, Fragment, renderList, createTextVNode, toDisplayString, createBlock, useCssModule, h, onUnmounted, createCommentVNode, createSlots, mergeProps } from 'vue';
|
|
5
|
+
import { ref, computed, watch, defineComponent, useTemplateRef, onMounted, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, isRef, Fragment, renderList, createTextVNode, toDisplayString, createBlock, useCssModule, h, onUnmounted, createCommentVNode, createSlots, useCssVars, mergeProps } from 'vue';
|
|
6
6
|
import { promiseTimeout, useVModel } from '@vueuse/core';
|
|
7
|
+
import { useFormDisabled } from 'element-plus';
|
|
7
8
|
import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
|
|
8
9
|
import { C as Component$4 } from '../input/input.mjs';
|
|
9
10
|
import { E as ElPagination } from '../../chunk/fueZ9sVu.mjs';
|
|
@@ -236,7 +237,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
236
237
|
props: {
|
|
237
238
|
modelValue: {},
|
|
238
239
|
collection: {},
|
|
239
|
-
collections: {}
|
|
240
|
+
collections: {},
|
|
241
|
+
disabled: { type: Boolean }
|
|
240
242
|
},
|
|
241
243
|
emits: ["choiced"],
|
|
242
244
|
setup(__props, { emit: __emit }) {
|
|
@@ -419,12 +421,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
419
421
|
props: {
|
|
420
422
|
modelValue: {},
|
|
421
423
|
collection: {},
|
|
422
|
-
collections: {}
|
|
424
|
+
collections: {},
|
|
425
|
+
disabled: { type: Boolean, default: void 0 }
|
|
423
426
|
},
|
|
424
427
|
emits: ["update:modelValue", "change"],
|
|
425
428
|
setup(__props, { emit: __emit }) {
|
|
429
|
+
useCssVars((_ctx) => ({
|
|
430
|
+
"v71d94840": !unref(formDisabled) ? "pointer" : "not-allowed"
|
|
431
|
+
}));
|
|
426
432
|
const props = __props;
|
|
427
433
|
const emits = __emit;
|
|
434
|
+
const formDisabled = useFormDisabled();
|
|
428
435
|
const visible = ref(false);
|
|
429
436
|
const panelVisible = ref(false);
|
|
430
437
|
const myValue = useVModel(props, "modelValue", emits);
|
|
@@ -448,7 +455,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
448
455
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => isRef(visible) ? visible.value = $event : null),
|
|
449
456
|
placement: "bottom-start",
|
|
450
457
|
trigger: "click",
|
|
451
|
-
width: "350px"
|
|
458
|
+
width: "350px",
|
|
459
|
+
disabled: unref(formDisabled)
|
|
452
460
|
}, {
|
|
453
461
|
reference: withCtx(() => [
|
|
454
462
|
createVNode(Component$4, mergeProps({
|
|
@@ -469,12 +477,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
469
477
|
unref(panelVisible) ? (openBlock(), createBlock(Panel, mergeProps({ key: 0 }, props, { onChoiced: handleChoiced }), null, 16)) : createCommentVNode("", true)
|
|
470
478
|
]),
|
|
471
479
|
_: 1
|
|
472
|
-
}, 8, ["visible"]);
|
|
480
|
+
}, 8, ["visible", "disabled"]);
|
|
473
481
|
};
|
|
474
482
|
}
|
|
475
483
|
});
|
|
476
484
|
|
|
477
|
-
/* unplugin-vue-components disabled */const input = "
|
|
485
|
+
/* unplugin-vue-components disabled */const input = "_input_yhkzo_1";
|
|
478
486
|
const style0 = {
|
|
479
487
|
input: input
|
|
480
488
|
};
|
|
@@ -5,5 +5,7 @@ declare const _default: import('vue').DefineComponent<IIconPickerProps, {}, {},
|
|
|
5
5
|
}, string, import('vue').PublicProps, Readonly<IIconPickerProps> & Readonly<{
|
|
6
6
|
onChange?: ((value: string) => any) | undefined;
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
-
}>, {
|
|
8
|
+
}>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
11
|
export default _default;
|
|
@@ -117,7 +117,7 @@ button._collections-button_1f8df_15 .el-icon {
|
|
|
117
117
|
}
|
|
118
118
|
._pagination_1f8df_79 {
|
|
119
119
|
justify-content: center;
|
|
120
|
-
}.
|
|
120
|
+
}._input_yhkzo_1 .el-input-group__prepend {
|
|
121
121
|
padding: 0 4px;
|
|
122
|
-
cursor:
|
|
122
|
+
cursor: var(--v71d94840);
|
|
123
123
|
}
|
|
@@ -2,21 +2,24 @@ import './index.css'
|
|
|
2
2
|
import '../../chunk/By7FMB3I.mjs';
|
|
3
3
|
import { E as ElInput } from '../../chunk/CKZGL4_3.mjs';
|
|
4
4
|
import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, createBlock, openBlock, normalizeClass, createSlots, withCtx, renderSlot } from 'vue';
|
|
5
|
+
import { useFormDisabled } from 'element-plus';
|
|
5
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
7
|
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
__name: "input",
|
|
9
10
|
props: {
|
|
10
11
|
block: { type: Boolean, default: false },
|
|
11
|
-
width: {}
|
|
12
|
+
width: {},
|
|
13
|
+
disabled: { type: Boolean, default: void 0 }
|
|
12
14
|
},
|
|
13
15
|
setup(__props, { expose: __expose }) {
|
|
14
16
|
useCssVars((_ctx) => ({
|
|
15
|
-
"
|
|
17
|
+
"v2586680e": unref(myWidth)
|
|
16
18
|
}));
|
|
17
19
|
const props = __props;
|
|
18
20
|
const $style = useCssModule();
|
|
19
21
|
const inputRef = useTemplateRef("inputRef");
|
|
22
|
+
const formDisabled = useFormDisabled();
|
|
20
23
|
const className = computed(() => ({
|
|
21
24
|
[$style.input]: true,
|
|
22
25
|
[$style.block]: props.block
|
|
@@ -30,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
33
|
return openBlock(), createBlock(_component_ElInput, {
|
|
31
34
|
ref_key: "inputRef",
|
|
32
35
|
ref: inputRef,
|
|
33
|
-
class: normalizeClass(unref(className))
|
|
36
|
+
class: normalizeClass(unref(className)),
|
|
37
|
+
disabled: unref(formDisabled)
|
|
34
38
|
}, createSlots({ _: 2 }, [
|
|
35
39
|
_ctx.$slots.prefix ? {
|
|
36
40
|
name: "prefix",
|
|
@@ -60,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
64
|
]),
|
|
61
65
|
key: "3"
|
|
62
66
|
} : void 0
|
|
63
|
-
]), 1032, ["class"]);
|
|
67
|
+
]), 1032, ["class", "disabled"]);
|
|
64
68
|
};
|
|
65
69
|
}
|
|
66
70
|
});
|
|
@@ -824,6 +824,7 @@ declare const __VLS_component: import('vue').DefineComponent<IInputProps, {
|
|
|
824
824
|
};
|
|
825
825
|
}) | null>>;
|
|
826
826
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IInputProps> & Readonly<{}>, {
|
|
827
|
+
disabled: boolean;
|
|
827
828
|
block: boolean;
|
|
828
829
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
829
830
|
inputRef: ({
|
|
@@ -3,6 +3,7 @@ import '../../chunk/By7FMB3I.mjs';
|
|
|
3
3
|
import '../../chunk/CKZGL4_3.mjs';
|
|
4
4
|
import { E as ElInputNumber } from '../../chunk/DX84QR5M.mjs';
|
|
5
5
|
import { defineComponent, useCssVars, useSlots, useCssModule, ref, useTemplateRef, computed, watch, onUnmounted, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, renderSlot, mergeProps, isRef, createSlots, withCtx, nextTick } from 'vue';
|
|
6
|
+
import { useFormDisabled } from 'element-plus';
|
|
6
7
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
8
|
|
|
8
9
|
const _hoisted_1 = {
|
|
@@ -17,12 +18,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
controlsPosition: {},
|
|
18
19
|
size: {},
|
|
19
20
|
inputNumberClass: {},
|
|
20
|
-
inputWidth: { default: "80px" }
|
|
21
|
+
inputWidth: { default: "80px" },
|
|
22
|
+
disabled: { type: Boolean, default: void 0 }
|
|
21
23
|
},
|
|
22
24
|
emits: ["update:modelValue", "change", "blur"],
|
|
23
25
|
setup(__props, { emit: __emit }) {
|
|
24
26
|
useCssVars((_ctx) => ({
|
|
25
|
-
"
|
|
27
|
+
"v233f0811": _ctx.inputWidth
|
|
26
28
|
}));
|
|
27
29
|
const props = __props;
|
|
28
30
|
const emits = __emit;
|
|
@@ -30,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
32
|
const $style = useCssModule();
|
|
31
33
|
const visible = ref(true);
|
|
32
34
|
const inputNumberRef = useTemplateRef("inputNumberRef");
|
|
35
|
+
const formDisabled = useFormDisabled();
|
|
33
36
|
const mainClass = computed(() => {
|
|
34
37
|
const className = {
|
|
35
38
|
[$style["input-number"]]: true,
|
|
@@ -93,7 +96,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
96
|
size: __props.size,
|
|
94
97
|
class: [__props.inputNumberClass, unref($style)["el-input-number"]],
|
|
95
98
|
precision: __props.precision,
|
|
96
|
-
"controls-position": unref(myControlsPosition)
|
|
99
|
+
"controls-position": unref(myControlsPosition),
|
|
100
|
+
disabled: unref(formDisabled)
|
|
97
101
|
}, _ctx.$attrs, {
|
|
98
102
|
onKeydown: limitInputValue,
|
|
99
103
|
onChange: handleChange,
|
|
@@ -113,7 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
117
|
]),
|
|
114
118
|
key: "1"
|
|
115
119
|
} : void 0
|
|
116
|
-
]), 1040, ["modelValue", "size", "class", "precision", "controls-position"])) : createCommentVNode("", true)
|
|
120
|
+
]), 1040, ["modelValue", "size", "class", "precision", "controls-position", "disabled"])) : createCommentVNode("", true)
|
|
117
121
|
], 2);
|
|
118
122
|
};
|
|
119
123
|
}
|