@wfrog/vc-ui 1.9.11 → 1.9.12
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/choice/choice.d.ts +3 -0
- package/dist/es/components/choice/choice.mjs +14 -4
- package/dist/es/components/choice/choice.vue.d.ts +5 -1
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +5 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +12 -3
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +2 -0
- package/dist/es/components/explorer-form/explorer-form.mjs +9 -4
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +16 -16
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +9 -4
- package/dist/es/components/explorer-modal-form/explorer-modal-form.vue.d.ts +16 -16
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +10 -10
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +4 -0
- package/dist/es/components/input/input.mjs +19 -4
- package/dist/es/components/input/input.vue.d.ts +7 -1
- package/dist/es/components/input-number/index.css +1 -1
- package/dist/es/components/input-number/input-number.mjs +7 -2
- package/dist/es/components/pca-picker/pca-picker.mjs +16 -3
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +2 -0
- package/dist/es/components/select/index.css +2 -2
- package/dist/es/components/select/select.d.ts +4 -0
- package/dist/es/components/select/select.mjs +19 -4
- package/dist/es/components/select/select.vue.d.ts +7 -1
- package/dist/es/components/tags/tags.mjs +6 -1
- package/dist/es/components/thousand-input/thousand-input.d.ts +6 -0
- package/dist/es/components/thousand-input/thousand-input.mjs +2 -1
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +30 -8
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +5 -0
- package/dist/es/components/tinymce/tinymce.mjs +16 -3
- package/dist/es/components/tinymce/tinymce.vue.d.ts +7 -3
- package/dist/es/components/tree-picker/index.css +2 -2
- package/dist/es/components/tree-picker/tree-picker.d.ts +6 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +21 -7
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +2 -0
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +7 -7
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import '../../chunk/Gk1J52Yw.mjs';
|
|
|
3
3
|
import { E as ElCheckboxGroup } from '../../chunk/DBf73TLo.mjs';
|
|
4
4
|
import { E as ElRadioGroup } from '../../chunk/Do7HIVy5.mjs';
|
|
5
5
|
import { defineComponent, computed, createBlock, openBlock, mergeProps, unref } from 'vue';
|
|
6
|
-
import { useFormDisabled } from 'element-plus';
|
|
6
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
7
7
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
8
8
|
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -14,9 +14,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
options: {},
|
|
15
15
|
disabled: { type: Boolean, default: void 0 }
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
emits: ["change"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
18
19
|
const props = __props;
|
|
20
|
+
const emits = __emit;
|
|
19
21
|
const formDisabled = useFormDisabled();
|
|
22
|
+
const { formItem } = useFormItem();
|
|
20
23
|
const myType = props.type;
|
|
21
24
|
const myOptions = computed(() => {
|
|
22
25
|
if (Array.isArray(props.options) && typeof props.options[0] === "string") {
|
|
@@ -24,18 +27,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
27
|
}
|
|
25
28
|
return props.options;
|
|
26
29
|
});
|
|
30
|
+
function handleChange(value) {
|
|
31
|
+
formItem?.validate?.("change").catch(() => {
|
|
32
|
+
});
|
|
33
|
+
emits("change", value);
|
|
34
|
+
}
|
|
27
35
|
return (_ctx, _cache) => {
|
|
28
36
|
const _component_ElRadioGroup = ElRadioGroup;
|
|
29
37
|
const _component_ElCheckboxGroup = ElCheckboxGroup;
|
|
30
38
|
return !props.multiple ? (openBlock(), createBlock(_component_ElRadioGroup, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
31
39
|
type: unref(myType),
|
|
32
40
|
options: unref(myOptions),
|
|
33
|
-
disabled: unref(formDisabled)
|
|
41
|
+
disabled: unref(formDisabled),
|
|
42
|
+
onChange: handleChange
|
|
34
43
|
}), null, 16, ["type", "options", "disabled"])) : (openBlock(), createBlock(_component_ElCheckboxGroup, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
35
44
|
class: _ctx.$style.checkbox,
|
|
36
45
|
type: unref(myType),
|
|
37
46
|
options: unref(myOptions),
|
|
38
|
-
disabled: unref(formDisabled)
|
|
47
|
+
disabled: unref(formDisabled),
|
|
48
|
+
onChange: handleChange
|
|
39
49
|
}), null, 16, ["class", "type", "options", "disabled"]));
|
|
40
50
|
};
|
|
41
51
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { IChoiceProps } from './choice';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<IChoiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IChoiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (value: any) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<IChoiceProps> & Readonly<{
|
|
5
|
+
onChange?: ((value: any) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
type: import('element-plus').RadioGroupProps["type"] | import('element-plus').CheckboxGroupProps["type"];
|
|
4
8
|
disabled: boolean;
|
|
5
9
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,3 +5,8 @@ export interface IDateRangePickerProps {
|
|
|
5
5
|
includeToday?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export interface IDateRangePickerEmits {
|
|
9
|
+
(e: 'update:modelValue', value: string[]): void;
|
|
10
|
+
(e: 'change', value: string[]): void;
|
|
11
|
+
(e: 'blur', event: FocusEvent): void;
|
|
12
|
+
}
|
|
@@ -4,7 +4,7 @@ import { E as ElScrollbar } from '../../chunk/CqhShW5K.mjs';
|
|
|
4
4
|
import { E as ElButton } from '../../chunk/Db0Pk78M.mjs';
|
|
5
5
|
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/BH1e_-Fa.mjs';
|
|
6
6
|
import { ref, computed, defineComponent, reactive, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createElementVNode, mergeProps, useAttrs as useAttrs$1, inject, watch, nextTick, onBeforeUnmount, provide, createBlock, withCtx, withModifiers, createCommentVNode, resolveDynamicComponent, toDisplayString, onMounted, Fragment, renderList, createTextVNode, withDirectives, createVNode, Transition, withKeys, useSlots, toRef, vShow, getCurrentInstance, toRefs, isVNode, isRef } from 'vue';
|
|
7
|
-
import { useFormDisabled as useFormDisabled$1 } from 'element-plus';
|
|
7
|
+
import { useFormDisabled as useFormDisabled$1, useFormItem as useFormItem$1 } from 'element-plus';
|
|
8
8
|
import { onClickOutside, unrefElement, useVModel } from '@vueuse/core';
|
|
9
9
|
import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
|
|
10
10
|
import { CircleClose, Clock, Calendar, ArrowUp, ArrowDown, DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
@@ -6259,12 +6259,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6259
6259
|
includeToday: { type: Boolean, default: false },
|
|
6260
6260
|
disabled: { type: Boolean, default: void 0 }
|
|
6261
6261
|
},
|
|
6262
|
-
emits: ["update:modelValue", "change"],
|
|
6262
|
+
emits: ["update:modelValue", "change", "blur"],
|
|
6263
6263
|
setup(__props, { emit: __emit }) {
|
|
6264
6264
|
const props = __props;
|
|
6265
6265
|
const emits = __emit;
|
|
6266
6266
|
const myValue = useVModel(props, "modelValue", emits);
|
|
6267
6267
|
const formDisabled = useFormDisabled$1();
|
|
6268
|
+
const { formItem } = useFormItem$1();
|
|
6268
6269
|
function disabledDate(time) {
|
|
6269
6270
|
const now = Date.now();
|
|
6270
6271
|
const pickerTime = time.getTime();
|
|
@@ -6282,8 +6283,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6282
6283
|
return pickerTime + todayTime > now + limitTime || pickerTime + todayTime < now;
|
|
6283
6284
|
}
|
|
6284
6285
|
function handleChange(val) {
|
|
6286
|
+
formItem?.validate?.("change").catch(() => {
|
|
6287
|
+
});
|
|
6285
6288
|
emits("change", val);
|
|
6286
6289
|
}
|
|
6290
|
+
function handleBlur(evt) {
|
|
6291
|
+
formItem?.validate?.("blur").catch(() => {
|
|
6292
|
+
});
|
|
6293
|
+
emits("blur", evt);
|
|
6294
|
+
}
|
|
6287
6295
|
return (_ctx, _cache) => {
|
|
6288
6296
|
const _component_ElDatePicker = ElDatePicker;
|
|
6289
6297
|
return openBlock(), createBlock(_component_ElDatePicker, mergeProps(_ctx.$attrs, {
|
|
@@ -6293,7 +6301,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6293
6301
|
type: "daterange",
|
|
6294
6302
|
"value-format": __props.valueFormat,
|
|
6295
6303
|
disabled: unref(formDisabled),
|
|
6296
|
-
onChange: handleChange
|
|
6304
|
+
onChange: handleChange,
|
|
6305
|
+
onBlur: handleBlur
|
|
6297
6306
|
}), null, 16, ["modelValue", "value-format", "disabled"]);
|
|
6298
6307
|
};
|
|
6299
6308
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IDateRangePickerProps } from './daterange-picker';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IDateRangePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
blur: (event: FocusEvent) => any;
|
|
3
4
|
change: (value: string[]) => any;
|
|
4
5
|
"update:modelValue": (value: string[]) => any;
|
|
5
6
|
}, string, import('vue').PublicProps, Readonly<IDateRangePickerProps> & Readonly<{
|
|
7
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
6
8
|
onChange?: ((value: string[]) => any) | undefined;
|
|
7
9
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
8
10
|
}>, {
|
|
@@ -36,11 +36,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
isEditing.value = false;
|
|
37
37
|
}
|
|
38
38
|
async function handleSave() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
try {
|
|
40
|
+
const valid = await formRef.value.validate();
|
|
41
|
+
if (!valid) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
emits("save", props.form.fields);
|
|
45
|
+
return true;
|
|
46
|
+
} catch {
|
|
47
|
+
return false;
|
|
42
48
|
}
|
|
43
|
-
emits("save", props.form.fields);
|
|
44
49
|
}
|
|
45
50
|
__expose({
|
|
46
51
|
formRef,
|
|
@@ -27,13 +27,13 @@ declare function __VLS_template(): {
|
|
|
27
27
|
}> & Omit<{
|
|
28
28
|
readonly disabled: boolean;
|
|
29
29
|
readonly inline: boolean;
|
|
30
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
30
31
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
32
|
+
readonly inlineMessage: boolean;
|
|
33
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
34
|
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
35
|
readonly labelSuffix: string;
|
|
34
|
-
readonly inlineMessage: boolean;
|
|
35
36
|
readonly statusIcon: boolean;
|
|
36
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
37
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
38
38
|
readonly hideRequiredAsterisk: boolean;
|
|
39
39
|
readonly scrollToError: boolean;
|
|
@@ -42,7 +42,7 @@ declare function __VLS_template(): {
|
|
|
42
42
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
43
43
|
readonly model?: Record<string, any> | undefined;
|
|
44
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" | "
|
|
45
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
46
46
|
$attrs: {
|
|
47
47
|
[x: string]: unknown;
|
|
48
48
|
};
|
|
@@ -174,7 +174,7 @@ declare function __VLS_template(): {
|
|
|
174
174
|
readonly disabled: BooleanConstructor;
|
|
175
175
|
}>> & {
|
|
176
176
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
177
|
-
}, "disabled" | "inline" | "
|
|
177
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
178
178
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
179
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
180
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -213,13 +213,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
213
213
|
}> & Omit<{
|
|
214
214
|
readonly disabled: boolean;
|
|
215
215
|
readonly inline: boolean;
|
|
216
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
216
217
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
218
|
+
readonly inlineMessage: boolean;
|
|
219
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
217
220
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
218
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
219
221
|
readonly labelSuffix: string;
|
|
220
|
-
readonly inlineMessage: boolean;
|
|
221
222
|
readonly statusIcon: boolean;
|
|
222
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
223
223
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
224
224
|
readonly hideRequiredAsterisk: boolean;
|
|
225
225
|
readonly scrollToError: boolean;
|
|
@@ -228,7 +228,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
228
228
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
229
229
|
readonly model?: Record<string, any> | undefined;
|
|
230
230
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
231
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
231
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
232
232
|
$attrs: {
|
|
233
233
|
[x: string]: unknown;
|
|
234
234
|
};
|
|
@@ -360,7 +360,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
360
360
|
readonly disabled: BooleanConstructor;
|
|
361
361
|
}>> & {
|
|
362
362
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
363
|
-
}, "disabled" | "inline" | "
|
|
363
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
364
364
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
365
365
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
366
366
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -387,8 +387,8 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
387
387
|
}>, {
|
|
388
388
|
icon: string;
|
|
389
389
|
loading: boolean;
|
|
390
|
-
editable: boolean;
|
|
391
390
|
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
391
|
+
editable: boolean;
|
|
392
392
|
editing: boolean;
|
|
393
393
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
394
394
|
formRef: ({
|
|
@@ -411,13 +411,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
411
411
|
}> & Omit<{
|
|
412
412
|
readonly disabled: boolean;
|
|
413
413
|
readonly inline: boolean;
|
|
414
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
414
415
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
416
|
+
readonly inlineMessage: boolean;
|
|
417
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
415
418
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
416
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
417
419
|
readonly labelSuffix: string;
|
|
418
|
-
readonly inlineMessage: boolean;
|
|
419
420
|
readonly statusIcon: boolean;
|
|
420
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
421
421
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
422
422
|
readonly hideRequiredAsterisk: boolean;
|
|
423
423
|
readonly scrollToError: boolean;
|
|
@@ -426,7 +426,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
426
426
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
427
427
|
readonly model?: Record<string, any> | undefined;
|
|
428
428
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
429
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
429
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
430
430
|
$attrs: {
|
|
431
431
|
[x: string]: unknown;
|
|
432
432
|
};
|
|
@@ -558,7 +558,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
558
558
|
readonly disabled: BooleanConstructor;
|
|
559
559
|
}>> & {
|
|
560
560
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
561
|
-
}, "disabled" | "inline" | "
|
|
561
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
562
562
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
563
563
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
564
564
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -40,11 +40,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
emits("cancel");
|
|
41
41
|
}
|
|
42
42
|
async function handleSave() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
try {
|
|
44
|
+
const valid = await formRef.value.validate();
|
|
45
|
+
if (!valid) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
emits("save", props.form.fields);
|
|
49
|
+
return true;
|
|
50
|
+
} catch {
|
|
51
|
+
return false;
|
|
46
52
|
}
|
|
47
|
-
emits("save", props.form.fields);
|
|
48
53
|
}
|
|
49
54
|
function handleEdit() {
|
|
50
55
|
isEditing.value = true;
|
|
@@ -29,13 +29,13 @@ declare function __VLS_template(): {
|
|
|
29
29
|
}> & Omit<{
|
|
30
30
|
readonly disabled: boolean;
|
|
31
31
|
readonly inline: boolean;
|
|
32
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
32
33
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
34
|
+
readonly inlineMessage: boolean;
|
|
35
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
36
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
34
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
35
37
|
readonly labelSuffix: string;
|
|
36
|
-
readonly inlineMessage: boolean;
|
|
37
38
|
readonly statusIcon: boolean;
|
|
38
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
39
39
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
40
40
|
readonly hideRequiredAsterisk: boolean;
|
|
41
41
|
readonly scrollToError: boolean;
|
|
@@ -44,7 +44,7 @@ declare function __VLS_template(): {
|
|
|
44
44
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
45
45
|
readonly model?: Record<string, any> | undefined;
|
|
46
46
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
47
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
47
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
48
48
|
$attrs: {
|
|
49
49
|
[x: string]: unknown;
|
|
50
50
|
};
|
|
@@ -176,7 +176,7 @@ declare function __VLS_template(): {
|
|
|
176
176
|
readonly disabled: BooleanConstructor;
|
|
177
177
|
}>> & {
|
|
178
178
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
179
|
-
}, "disabled" | "inline" | "
|
|
179
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
180
180
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
181
181
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
182
182
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -215,13 +215,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
215
215
|
}> & Omit<{
|
|
216
216
|
readonly disabled: boolean;
|
|
217
217
|
readonly inline: boolean;
|
|
218
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
218
219
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
220
|
+
readonly inlineMessage: boolean;
|
|
221
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
219
222
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
220
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
221
223
|
readonly labelSuffix: string;
|
|
222
|
-
readonly inlineMessage: boolean;
|
|
223
224
|
readonly statusIcon: boolean;
|
|
224
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
225
225
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
226
226
|
readonly hideRequiredAsterisk: boolean;
|
|
227
227
|
readonly scrollToError: boolean;
|
|
@@ -230,7 +230,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
230
230
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
231
231
|
readonly model?: Record<string, any> | undefined;
|
|
232
232
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
233
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
233
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
234
234
|
$attrs: {
|
|
235
235
|
[x: string]: unknown;
|
|
236
236
|
};
|
|
@@ -362,7 +362,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
362
362
|
readonly disabled: BooleanConstructor;
|
|
363
363
|
}>> & {
|
|
364
364
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
365
|
-
}, "disabled" | "inline" | "
|
|
365
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
366
366
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
367
367
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
368
368
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -389,8 +389,8 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
389
389
|
}>, {
|
|
390
390
|
icon: string;
|
|
391
391
|
loading: boolean;
|
|
392
|
-
editable: boolean;
|
|
393
392
|
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
393
|
+
editable: boolean;
|
|
394
394
|
editing: boolean;
|
|
395
395
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
396
396
|
formRef: ({
|
|
@@ -413,13 +413,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
413
413
|
}> & Omit<{
|
|
414
414
|
readonly disabled: boolean;
|
|
415
415
|
readonly inline: boolean;
|
|
416
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
416
417
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
418
|
+
readonly inlineMessage: boolean;
|
|
419
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
417
420
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
418
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
419
421
|
readonly labelSuffix: string;
|
|
420
|
-
readonly inlineMessage: boolean;
|
|
421
422
|
readonly statusIcon: boolean;
|
|
422
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
423
423
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
424
424
|
readonly hideRequiredAsterisk: boolean;
|
|
425
425
|
readonly scrollToError: boolean;
|
|
@@ -428,7 +428,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
428
428
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
429
429
|
readonly model?: Record<string, any> | undefined;
|
|
430
430
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
431
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
431
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
432
432
|
$attrs: {
|
|
433
433
|
[x: string]: unknown;
|
|
434
434
|
};
|
|
@@ -560,7 +560,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerModalFormP
|
|
|
560
560
|
readonly disabled: BooleanConstructor;
|
|
561
561
|
}>> & {
|
|
562
562
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
563
|
-
}, "disabled" | "inline" | "
|
|
563
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
564
564
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
565
565
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
566
566
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -27,13 +27,13 @@ declare function __VLS_template(): {
|
|
|
27
27
|
}> & Omit<{
|
|
28
28
|
readonly disabled: boolean;
|
|
29
29
|
readonly inline: boolean;
|
|
30
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
30
31
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
32
|
+
readonly inlineMessage: boolean;
|
|
33
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
34
|
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
35
|
readonly labelSuffix: string;
|
|
34
|
-
readonly inlineMessage: boolean;
|
|
35
36
|
readonly statusIcon: boolean;
|
|
36
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
37
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
38
38
|
readonly hideRequiredAsterisk: boolean;
|
|
39
39
|
readonly scrollToError: boolean;
|
|
@@ -42,7 +42,7 @@ declare function __VLS_template(): {
|
|
|
42
42
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
43
43
|
readonly model?: Record<string, any> | undefined;
|
|
44
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" | "
|
|
45
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
46
46
|
$attrs: {
|
|
47
47
|
[x: string]: unknown;
|
|
48
48
|
};
|
|
@@ -174,7 +174,7 @@ declare function __VLS_template(): {
|
|
|
174
174
|
readonly disabled: BooleanConstructor;
|
|
175
175
|
}>> & {
|
|
176
176
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
177
|
-
}, "disabled" | "inline" | "
|
|
177
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
178
178
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
179
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
180
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -224,13 +224,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerQueryProps
|
|
|
224
224
|
}> & Omit<{
|
|
225
225
|
readonly disabled: boolean;
|
|
226
226
|
readonly inline: boolean;
|
|
227
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
227
228
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
229
|
+
readonly inlineMessage: boolean;
|
|
230
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
228
231
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
229
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
230
232
|
readonly labelSuffix: string;
|
|
231
|
-
readonly inlineMessage: boolean;
|
|
232
233
|
readonly statusIcon: boolean;
|
|
233
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
234
234
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
235
235
|
readonly hideRequiredAsterisk: boolean;
|
|
236
236
|
readonly scrollToError: boolean;
|
|
@@ -239,7 +239,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerQueryProps
|
|
|
239
239
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
240
240
|
readonly model?: Record<string, any> | undefined;
|
|
241
241
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
242
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
242
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
243
243
|
$attrs: {
|
|
244
244
|
[x: string]: unknown;
|
|
245
245
|
};
|
|
@@ -371,7 +371,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerQueryProps
|
|
|
371
371
|
readonly disabled: BooleanConstructor;
|
|
372
372
|
}>> & {
|
|
373
373
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
374
|
-
}, "disabled" | "inline" | "
|
|
374
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
375
375
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
376
376
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
377
377
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
3
|
import { E as ElInput } from '../../chunk/DFOYvCRL.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
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
6
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
7
|
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -13,14 +13,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
disabled: { type: Boolean, default: void 0 },
|
|
14
14
|
clearable: { type: Boolean, default: true }
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
emits: ["blur", "change"],
|
|
17
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
18
|
useCssVars((_ctx) => ({
|
|
18
|
-
"
|
|
19
|
+
"v7a89bfe6": unref(myWidth)
|
|
19
20
|
}));
|
|
20
21
|
const props = __props;
|
|
22
|
+
const emits = __emit;
|
|
21
23
|
const $style = useCssModule();
|
|
22
24
|
const inputRef = useTemplateRef("inputRef");
|
|
23
25
|
const formDisabled = useFormDisabled();
|
|
26
|
+
const { formItem } = useFormItem();
|
|
24
27
|
const className = computed(() => ({
|
|
25
28
|
[$style.input]: true,
|
|
26
29
|
[$style.block]: props.block
|
|
@@ -28,6 +31,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
31
|
const myWidth = computed(() => {
|
|
29
32
|
return props.width || (props.block ? "100%" : "240px");
|
|
30
33
|
});
|
|
34
|
+
function handleBlur(evt) {
|
|
35
|
+
formItem?.validate?.("blur").catch(() => {
|
|
36
|
+
});
|
|
37
|
+
emits("blur", evt);
|
|
38
|
+
}
|
|
39
|
+
function handleChange(value, evt) {
|
|
40
|
+
formItem?.validate?.("change").catch(() => {
|
|
41
|
+
});
|
|
42
|
+
emits("change", value, evt);
|
|
43
|
+
}
|
|
31
44
|
__expose({ inputRef });
|
|
32
45
|
return (_ctx, _cache) => {
|
|
33
46
|
const _component_ElInput = ElInput;
|
|
@@ -36,7 +49,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
49
|
ref: inputRef,
|
|
37
50
|
class: normalizeClass(unref(className)),
|
|
38
51
|
disabled: unref(formDisabled),
|
|
39
|
-
clearable: __props.clearable
|
|
52
|
+
clearable: __props.clearable,
|
|
53
|
+
onBlur: handleBlur,
|
|
54
|
+
onChange: handleChange
|
|
40
55
|
}, createSlots({ _: 2 }, [
|
|
41
56
|
_ctx.$slots.prefix ? {
|
|
42
57
|
name: "prefix",
|
|
@@ -823,7 +823,13 @@ declare const __VLS_component: import('vue').DefineComponent<IInputProps, {
|
|
|
823
823
|
append?: (props: {}) => any;
|
|
824
824
|
};
|
|
825
825
|
}) | null>>;
|
|
826
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
826
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
827
|
+
blur: (evnet: FocusEvent) => any;
|
|
828
|
+
change: (value: string, evnet?: Event | undefined) => any;
|
|
829
|
+
}, string, import('vue').PublicProps, Readonly<IInputProps> & Readonly<{
|
|
830
|
+
onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
831
|
+
onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
832
|
+
}>, {
|
|
827
833
|
disabled: boolean;
|
|
828
834
|
clearable: boolean;
|
|
829
835
|
block: boolean;
|