@wfrog/vc-ui 1.12.1 → 1.12.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.mjs +2 -3
- package/dist/es/components/cdn-tag.vue.d.ts +5 -0
- package/dist/es/components/choice/choice.d.ts +0 -4
- package/dist/es/components/choice/choice.mjs +6 -21
- package/dist/es/components/choice/choice.vue.d.ts +1 -6
- package/dist/es/components/currency/currency.mjs +3 -4
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +0 -3
- package/dist/es/components/daterange-picker/daterange-picker.mjs +4 -21
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +0 -5
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +16 -16
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +2 -3
- 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/form-item/form-item.d.ts +2 -0
- package/dist/es/components/form-item/form-item.mjs +26 -10
- package/dist/es/components/form-item/form-item.vue.d.ts +4 -1
- package/dist/es/components/form-item/index.css +9 -2
- package/dist/es/components/icon-picker/icon-picker.mjs +3 -3
- package/dist/es/components/icon-picker/index.css +1 -1
- package/dist/es/components/info-tooltip/index.css +2 -2
- package/dist/es/components/info-tooltip/info-tooltip.d.ts +1 -0
- package/dist/es/components/info-tooltip/info-tooltip.mjs +3 -2
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +0 -5
- package/dist/es/components/input/input.mjs +4 -23
- package/dist/es/components/input/input.vue.d.ts +1 -8
- package/dist/es/components/input-number/index.css +1 -1
- package/dist/es/components/input-number/input-number.d.ts +6 -2
- package/dist/es/components/input-number/input-number.mjs +3 -12
- package/dist/es/components/input-number/input-number.vue.d.ts +2 -3
- package/dist/es/components/pca-picker/index.css +1 -1
- package/dist/es/components/pca-picker/pca-picker.mjs +2 -10
- package/dist/es/components/select/index.css +1 -1
- package/dist/es/components/select/select.d.ts +0 -5
- package/dist/es/components/select/select.mjs +5 -24
- package/dist/es/components/select/select.vue.d.ts +1 -8
- package/dist/es/components/switch/switch.mjs +1 -1
- package/dist/es/components/tags/tags.d.ts +6 -0
- package/dist/es/components/thousand-input/thousand-input.d.ts +0 -1
- package/dist/es/components/thousand-input/thousand-input.mjs +1 -2
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -36
- package/dist/es/components/upload-file/index.css +14 -8
- package/dist/es/components/upload-file/upload-file.d.ts +1 -0
- package/dist/es/components/upload-file/upload-file.mjs +13 -9
- package/dist/es/components/upload-file/upload-file.vue.d.ts +1 -0
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +30 -17
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import 'element-plus/es/components/base/style/css';
|
|
|
4
4
|
import 'element-plus/es/components/popconfirm/style/css';
|
|
5
5
|
import 'element-plus/es/components/button/style/css';
|
|
6
6
|
import { defineComponent, computed, createBlock, unref, openBlock, withCtx, mergeProps, withModifiers, createCommentVNode, createElementBlock, renderSlot, normalizeClass } from 'vue';
|
|
7
|
-
import {
|
|
7
|
+
import { ElMessageBox } from 'element-plus';
|
|
8
8
|
import { i as injectConfig } from '../config-provider/config-provider2.mjs';
|
|
9
9
|
import { _ as _sfc_main$1 } from '../icon/icon.mjs';
|
|
10
10
|
import { useThrottleFn } from '@vueuse/core';
|
|
@@ -29,7 +29,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const props = __props;
|
|
30
30
|
const emits = __emit;
|
|
31
31
|
const { button: buttonConfig } = injectConfig();
|
|
32
|
-
const formDisabled = useFormDisabled();
|
|
33
32
|
const defaultConfirmInfo = { title: "提示", confirmButtonText: "确定", cancelButtonText: "取消", msg: "请确认您的操作" };
|
|
34
33
|
const myConfirm = computed(() => buttonConfig?.confirm?.type !== void 0 ? buttonConfig?.confirm?.type : props.confirm?.type !== void 0 ? props.confirm.type : ["danger", "warning"].includes(props.type) ? "messagebox" : void 0);
|
|
35
34
|
const { name, type: iconType = "el", position = "left" } = props.icon || {};
|
|
@@ -38,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
37
|
if (typeof props.disabled === "function") {
|
|
39
38
|
return props.disabled();
|
|
40
39
|
}
|
|
41
|
-
return
|
|
40
|
+
return props.disabled;
|
|
42
41
|
});
|
|
43
42
|
async function handleComfirm() {
|
|
44
43
|
try {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface IPropType {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<IPropType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IPropType> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -3,8 +3,4 @@ export interface IChoiceProps {
|
|
|
3
3
|
multiple?: boolean;
|
|
4
4
|
type?: RadioGroupProps['type'] | CheckboxGroupProps['type'];
|
|
5
5
|
options: RadioGroupProps['options'] | CheckboxGroupProps['options'] | string[];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface IChoiceEmits {
|
|
9
|
-
(e: 'change', value: any): void;
|
|
10
6
|
}
|
|
@@ -4,7 +4,6 @@ import 'element-plus/es/components/base/style/css';
|
|
|
4
4
|
import 'element-plus/es/components/checkbox-group/style/css';
|
|
5
5
|
import 'element-plus/es/components/radio-group/style/css';
|
|
6
6
|
import { defineComponent, computed, createBlock, openBlock, unref, normalizeClass } from 'vue';
|
|
7
|
-
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
8
7
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
9
8
|
|
|
10
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,15 +11,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
11
|
props: {
|
|
13
12
|
multiple: { type: Boolean },
|
|
14
13
|
type: { default: "button" },
|
|
15
|
-
options: {}
|
|
16
|
-
disabled: { type: Boolean, default: void 0 }
|
|
14
|
+
options: {}
|
|
17
15
|
},
|
|
18
|
-
|
|
19
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
+
setup(__props) {
|
|
20
17
|
const props = __props;
|
|
21
|
-
const emits = __emit;
|
|
22
|
-
const formDisabled = useFormDisabled();
|
|
23
|
-
const { formItem } = useFormItem();
|
|
24
18
|
const myType = props.type;
|
|
25
19
|
const myOptions = computed(() => {
|
|
26
20
|
if (Array.isArray(props.options) && typeof props.options[0] === "string") {
|
|
@@ -28,28 +22,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
22
|
}
|
|
29
23
|
return props.options;
|
|
30
24
|
});
|
|
31
|
-
function handleChange(value) {
|
|
32
|
-
formItem?.validate?.("change").catch(() => {
|
|
33
|
-
});
|
|
34
|
-
emits("change", value);
|
|
35
|
-
}
|
|
36
25
|
return (_ctx, _cache) => {
|
|
37
26
|
const _component_ElRadioGroup = ElRadioGroup;
|
|
38
27
|
const _component_ElCheckboxGroup = ElCheckboxGroup;
|
|
39
28
|
return !props.multiple ? (openBlock(), createBlock(_component_ElRadioGroup, {
|
|
40
29
|
key: 0,
|
|
41
30
|
type: unref(myType),
|
|
42
|
-
options: unref(myOptions)
|
|
43
|
-
|
|
44
|
-
onChange: handleChange
|
|
45
|
-
}, null, 8, ["type", "options", "disabled"])) : (openBlock(), createBlock(_component_ElCheckboxGroup, {
|
|
31
|
+
options: unref(myOptions)
|
|
32
|
+
}, null, 8, ["type", "options"])) : (openBlock(), createBlock(_component_ElCheckboxGroup, {
|
|
46
33
|
key: 1,
|
|
47
34
|
class: normalizeClass(_ctx.$style.checkbox),
|
|
48
35
|
type: unref(myType),
|
|
49
|
-
options: unref(myOptions)
|
|
50
|
-
|
|
51
|
-
onChange: handleChange
|
|
52
|
-
}, null, 8, ["class", "type", "options", "disabled"]));
|
|
36
|
+
options: unref(myOptions)
|
|
37
|
+
}, null, 8, ["class", "type", "options"]));
|
|
53
38
|
};
|
|
54
39
|
}
|
|
55
40
|
});
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { IChoiceProps } from './choice';
|
|
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
|
-
}>, {
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IChoiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IChoiceProps> & Readonly<{}>, {
|
|
7
3
|
type: import('element-plus').RadioGroupProps["type"] | import('element-plus').CheckboxGroupProps["type"];
|
|
8
|
-
disabled: boolean;
|
|
9
4
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
5
|
export default _default;
|
|
@@ -4,7 +4,6 @@ import 'element-plus/es/components/base/style/css';
|
|
|
4
4
|
import 'element-plus/es/components/select/style/css';
|
|
5
5
|
import 'element-plus/es/components/option/style/css';
|
|
6
6
|
import { defineComponent, computed, ref, onBeforeMount, createBlock, openBlock, normalizeClass, unref, isRef, createSlots, withCtx, createElementBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
7
|
-
import { useFormDisabled } from 'element-plus';
|
|
8
7
|
import { _ as _sfc_main$1 } from '../flag/flag.mjs';
|
|
9
8
|
import { C as Component$1 } from '../thousand-input/thousand-input.mjs';
|
|
10
9
|
import { useVModel } from '@vueuse/core';
|
|
@@ -61,7 +60,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
60
|
const props = __props;
|
|
62
61
|
const emits = __emit;
|
|
63
62
|
const myValue = useVModel(props, "modelValue", emits);
|
|
64
|
-
const formDisabled = useFormDisabled();
|
|
65
63
|
const selectStyle = computed(() => ({ width: props.flag ? "7.5em" : "6em" }));
|
|
66
64
|
const formatValue = ref("");
|
|
67
65
|
const myCode = ref();
|
|
@@ -100,6 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
98
|
"onUpdate:formatValue": _cache[2] || (_cache[2] = ($event) => isRef(formatValue) ? formatValue.value = $event : null),
|
|
101
99
|
options: unref(thousandOption),
|
|
102
100
|
class: normalizeClass({ [_ctx.$style.append]: __props.append, [_ctx.$style.prepend]: __props.prepend }),
|
|
101
|
+
disabled: __props.disabled,
|
|
103
102
|
onChange: handleChange
|
|
104
103
|
}, createSlots({ _: 2 }, [
|
|
105
104
|
__props.prepend ? {
|
|
@@ -110,7 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
109
|
modelValue: unref(myCode),
|
|
111
110
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myCode) ? myCode.value = $event : null),
|
|
112
111
|
style: normalizeStyle(unref(selectStyle)),
|
|
113
|
-
disabled:
|
|
112
|
+
disabled: __props.disabled,
|
|
114
113
|
onChange: handleCodeChange
|
|
115
114
|
}, createSlots({
|
|
116
115
|
default: withCtx(() => [
|
|
@@ -161,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
160
|
]),
|
|
162
161
|
key: "1"
|
|
163
162
|
} : void 0
|
|
164
|
-
]), 1032, ["modelValue", "format-value", "options", "class"]);
|
|
163
|
+
]), 1032, ["modelValue", "format-value", "options", "class", "disabled"]);
|
|
165
164
|
};
|
|
166
165
|
}
|
|
167
166
|
});
|
|
@@ -3,10 +3,7 @@ export interface IDateRangePickerProps {
|
|
|
3
3
|
valueFormat?: string;
|
|
4
4
|
limitDays?: number;
|
|
5
5
|
includeToday?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export interface IDateRangePickerEmits {
|
|
9
8
|
(e: 'update:modelValue', value: string[]): void;
|
|
10
|
-
(e: 'change', value: string[]): void;
|
|
11
|
-
(e: 'blur', event: FocusEvent): void;
|
|
12
9
|
}
|
|
@@ -2,7 +2,6 @@ import { ElDatePicker } from 'element-plus/es';
|
|
|
2
2
|
import 'element-plus/es/components/base/style/css';
|
|
3
3
|
import 'element-plus/es/components/date-picker/style/css';
|
|
4
4
|
import { defineComponent, createBlock, openBlock, unref, isRef } from 'vue';
|
|
5
|
-
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
6
5
|
import { useVModel } from '@vueuse/core';
|
|
7
6
|
|
|
8
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -11,16 +10,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
10
|
modelValue: {},
|
|
12
11
|
valueFormat: { default: "YYYY-MM-DD" },
|
|
13
12
|
limitDays: { default: 3 },
|
|
14
|
-
includeToday: { type: Boolean, default: false }
|
|
15
|
-
disabled: { type: Boolean, default: void 0 }
|
|
13
|
+
includeToday: { type: Boolean, default: false }
|
|
16
14
|
},
|
|
17
|
-
emits: ["update:modelValue"
|
|
15
|
+
emits: ["update:modelValue"],
|
|
18
16
|
setup(__props, { emit: __emit }) {
|
|
19
17
|
const props = __props;
|
|
20
18
|
const emits = __emit;
|
|
21
19
|
const myValue = useVModel(props, "modelValue", emits);
|
|
22
|
-
const formDisabled = useFormDisabled();
|
|
23
|
-
const { formItem } = useFormItem();
|
|
24
20
|
function disabledDate(time) {
|
|
25
21
|
const now = Date.now();
|
|
26
22
|
const pickerTime = time.getTime();
|
|
@@ -37,16 +33,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
33
|
}
|
|
38
34
|
return pickerTime + todayTime > now + limitTime || pickerTime + todayTime < now;
|
|
39
35
|
}
|
|
40
|
-
function handleChange(val) {
|
|
41
|
-
formItem?.validate?.("change").catch(() => {
|
|
42
|
-
});
|
|
43
|
-
emits("change", val);
|
|
44
|
-
}
|
|
45
|
-
function handleBlur(evt) {
|
|
46
|
-
formItem?.validate?.("blur").catch(() => {
|
|
47
|
-
});
|
|
48
|
-
emits("blur", evt);
|
|
49
|
-
}
|
|
50
36
|
return (_ctx, _cache) => {
|
|
51
37
|
const _component_ElDatePicker = ElDatePicker;
|
|
52
38
|
return openBlock(), createBlock(_component_ElDatePicker, {
|
|
@@ -54,11 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
40
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myValue) ? myValue.value = $event : null),
|
|
55
41
|
"disabled-date": disabledDate,
|
|
56
42
|
type: "daterange",
|
|
57
|
-
"value-format": __props.valueFormat
|
|
58
|
-
|
|
59
|
-
onChange: handleChange,
|
|
60
|
-
onBlur: handleBlur
|
|
61
|
-
}, null, 8, ["modelValue", "value-format", "disabled"]);
|
|
43
|
+
"value-format": __props.valueFormat
|
|
44
|
+
}, null, 8, ["modelValue", "value-format"]);
|
|
62
45
|
};
|
|
63
46
|
}
|
|
64
47
|
});
|
|
@@ -1,14 +1,9 @@
|
|
|
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;
|
|
4
|
-
change: (value: string[]) => any;
|
|
5
3
|
"update:modelValue": (value: string[]) => any;
|
|
6
4
|
}, string, import('vue').PublicProps, Readonly<IDateRangePickerProps> & Readonly<{
|
|
7
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
8
|
-
onChange?: ((value: string[]) => any) | undefined;
|
|
9
5
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
10
6
|
}>, {
|
|
11
|
-
disabled: boolean;
|
|
12
7
|
valueFormat: string;
|
|
13
8
|
limitDays: number;
|
|
14
9
|
includeToday: boolean;
|
|
@@ -30,13 +30,13 @@ declare function __VLS_template(): {
|
|
|
30
30
|
}> & Omit<{
|
|
31
31
|
readonly disabled: boolean;
|
|
32
32
|
readonly inline: boolean;
|
|
33
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
34
33
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
35
|
-
readonly inlineMessage: boolean;
|
|
36
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
34
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
35
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
38
36
|
readonly labelSuffix: string;
|
|
37
|
+
readonly inlineMessage: boolean;
|
|
39
38
|
readonly statusIcon: boolean;
|
|
39
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
40
40
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
41
|
readonly hideRequiredAsterisk: boolean;
|
|
42
42
|
readonly scrollToError: boolean;
|
|
@@ -45,7 +45,7 @@ declare function __VLS_template(): {
|
|
|
45
45
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
46
46
|
readonly model?: Record<string, any> | undefined;
|
|
47
47
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
48
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
48
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
49
49
|
$attrs: {
|
|
50
50
|
[x: string]: unknown;
|
|
51
51
|
};
|
|
@@ -177,7 +177,7 @@ declare function __VLS_template(): {
|
|
|
177
177
|
readonly disabled: BooleanConstructor;
|
|
178
178
|
}>> & {
|
|
179
179
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
180
|
-
}, "disabled" | "inline" | "
|
|
180
|
+
}, "disabled" | "inline" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
181
181
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
182
182
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
183
183
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -216,13 +216,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
216
216
|
}> & Omit<{
|
|
217
217
|
readonly disabled: boolean;
|
|
218
218
|
readonly inline: boolean;
|
|
219
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
220
219
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
221
|
-
readonly inlineMessage: boolean;
|
|
222
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
223
220
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
221
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
224
222
|
readonly labelSuffix: string;
|
|
223
|
+
readonly inlineMessage: boolean;
|
|
225
224
|
readonly statusIcon: boolean;
|
|
225
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
226
226
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
227
227
|
readonly hideRequiredAsterisk: boolean;
|
|
228
228
|
readonly scrollToError: boolean;
|
|
@@ -231,7 +231,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
231
231
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
232
232
|
readonly model?: Record<string, any> | undefined;
|
|
233
233
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
234
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
234
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
235
235
|
$attrs: {
|
|
236
236
|
[x: string]: unknown;
|
|
237
237
|
};
|
|
@@ -363,7 +363,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
363
363
|
readonly disabled: BooleanConstructor;
|
|
364
364
|
}>> & {
|
|
365
365
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
366
|
-
}, "disabled" | "inline" | "
|
|
366
|
+
}, "disabled" | "inline" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
367
367
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
368
368
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
369
369
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -390,8 +390,8 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
390
390
|
}>, {
|
|
391
391
|
icon: string;
|
|
392
392
|
loading: boolean;
|
|
393
|
-
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
394
393
|
editable: boolean;
|
|
394
|
+
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
395
395
|
editing: boolean;
|
|
396
396
|
showCancel: boolean;
|
|
397
397
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -415,13 +415,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
415
415
|
}> & Omit<{
|
|
416
416
|
readonly disabled: boolean;
|
|
417
417
|
readonly inline: boolean;
|
|
418
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
419
418
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
420
|
-
readonly inlineMessage: boolean;
|
|
421
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
422
419
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
420
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
423
421
|
readonly labelSuffix: string;
|
|
422
|
+
readonly inlineMessage: boolean;
|
|
424
423
|
readonly statusIcon: boolean;
|
|
424
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
425
425
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
426
426
|
readonly hideRequiredAsterisk: boolean;
|
|
427
427
|
readonly scrollToError: boolean;
|
|
@@ -430,7 +430,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
430
430
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
431
431
|
readonly model?: Record<string, any> | undefined;
|
|
432
432
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
433
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
433
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
434
434
|
$attrs: {
|
|
435
435
|
[x: string]: unknown;
|
|
436
436
|
};
|
|
@@ -562,7 +562,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
562
562
|
readonly disabled: BooleanConstructor;
|
|
563
563
|
}>> & {
|
|
564
564
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
565
|
-
}, "disabled" | "inline" | "
|
|
565
|
+
}, "disabled" | "inline" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
566
566
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
567
567
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
568
568
|
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 { ElLoadingDirective } from 'element-plus/es';
|
|
3
3
|
import 'element-plus/es/components/base/style/css';
|
|
4
4
|
import 'element-plus/es/components/loading/style/css';
|
|
5
|
-
import { defineComponent, useTemplateRef,
|
|
5
|
+
import { defineComponent, useTemplateRef, ref, computed, watch, onUnmounted, createBlock, openBlock, resolveDynamicComponent, unref, isRef, withCtx, withDirectives, mergeProps, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, toDisplayString } from 'vue';
|
|
6
6
|
import { ElForm } from 'element-plus';
|
|
7
7
|
import { C as Component$3 } from '../button/button.mjs';
|
|
8
8
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
@@ -32,7 +32,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
const emits = __emit;
|
|
33
33
|
const modalVisible = useVModel(props, "modelValue", emits);
|
|
34
34
|
const formRef = useTemplateRef("formRef");
|
|
35
|
-
const formComponent = shallowRef(ElForm);
|
|
36
35
|
const isEditing = ref(false);
|
|
37
36
|
const component = computed(() => props.type === "dialog" ? Component$1 : Component$2);
|
|
38
37
|
const modalTitle = computed(() => props.title || (props.form.fields.id ? "编辑" : "新增"));
|
|
@@ -128,7 +127,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
127
|
}, 8, ["disabled", "loading"])) : createCommentVNode("", true)
|
|
129
128
|
]),
|
|
130
129
|
default: withCtx(() => [
|
|
131
|
-
withDirectives((openBlock(), createBlock(
|
|
130
|
+
withDirectives((openBlock(), createBlock(unref(ElForm), mergeProps({
|
|
132
131
|
ref_key: "formRef",
|
|
133
132
|
ref: formRef,
|
|
134
133
|
"require-asterisk-position": "right",
|
|
@@ -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>;
|
|
33
32
|
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>;
|
|
36
33
|
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>;
|
|
37
35
|
readonly labelSuffix: string;
|
|
36
|
+
readonly inlineMessage: boolean;
|
|
38
37
|
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" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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>;
|
|
219
218
|
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>;
|
|
222
219
|
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>;
|
|
223
221
|
readonly labelSuffix: string;
|
|
222
|
+
readonly inlineMessage: boolean;
|
|
224
223
|
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" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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
|
-
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
393
392
|
editable: boolean;
|
|
393
|
+
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
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>;
|
|
417
416
|
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>;
|
|
420
417
|
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>;
|
|
421
419
|
readonly labelSuffix: string;
|
|
420
|
+
readonly inlineMessage: boolean;
|
|
422
421
|
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" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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>;
|
|
31
30
|
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>;
|
|
34
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>;
|
|
35
33
|
readonly labelSuffix: string;
|
|
34
|
+
readonly inlineMessage: boolean;
|
|
36
35
|
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" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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>;
|
|
228
227
|
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>;
|
|
231
228
|
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>;
|
|
232
230
|
readonly labelSuffix: string;
|
|
231
|
+
readonly inlineMessage: boolean;
|
|
233
232
|
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" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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" | "fields" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "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;
|
|
@@ -3,6 +3,8 @@ import { IInfoTooltipProps } from '../info-tooltip/info-tooltip';
|
|
|
3
3
|
export interface IFormItemProps extends IInfoTooltipProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
tooltipProps?: Partial<ElTooltipProps>;
|
|
6
|
+
noEdit?: boolean;
|
|
7
|
+
noEditText?: string;
|
|
6
8
|
}
|
|
7
9
|
export interface IFormItemEmits {
|
|
8
10
|
(e: 'click', code: string | undefined, label: string | undefined): void;
|