@wfrog/vc-ui 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/button/button.d.ts +1 -0
- package/dist/es/components/button/button.mjs +10 -5
- package/dist/es/components/cdn-tag.vue.d.ts +5 -0
- package/dist/es/components/choice/choice.d.ts +1 -0
- package/dist/es/components/choice/choice.mjs +10 -5
- package/dist/es/components/choice/choice.vue.d.ts +1 -0
- package/dist/es/components/currency/currency.d.ts +1 -0
- package/dist/es/components/currency/currency.mjs +6 -2
- package/dist/es/components/currency/currency.vue.d.ts +1 -0
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +1 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +6 -2
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +1 -0
- package/dist/es/components/explorer-form/explorer-form.d.ts +1 -0
- package/dist/es/components/explorer-form/explorer-form.mjs +7 -9
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +363 -2
- package/dist/es/components/explorer-list/explorer-list.mjs +6 -1
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +3 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +7 -1
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +1009 -1
- package/dist/es/components/icon-picker/icon-picker.d.ts +2 -1
- package/dist/es/components/icon-picker/icon-picker.mjs +14 -6
- package/dist/es/components/icon-picker/icon-picker.vue.d.ts +3 -1
- package/dist/es/components/icon-picker/index.css +2 -2
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +1 -0
- package/dist/es/components/input/input.mjs +8 -4
- package/dist/es/components/input/input.vue.d.ts +1 -0
- package/dist/es/components/input-number/index.css +1 -1
- package/dist/es/components/input-number/input-number.d.ts +1 -0
- package/dist/es/components/input-number/input-number.mjs +8 -4
- package/dist/es/components/input-number/input-number.vue.d.ts +1 -0
- package/dist/es/components/pca-picker/pca-picker.mjs +8 -5
- package/dist/es/components/select/index.css +2 -2
- package/dist/es/components/select/select.d.ts +1 -0
- package/dist/es/components/select/select.mjs +8 -4
- package/dist/es/components/select/select.vue.d.ts +1 -0
- package/dist/es/components/switch/switch.mjs +6 -5
- package/dist/es/components/tags/tags.d.ts +1 -1
- package/dist/es/components/tags/tags.mjs +5 -3
- package/dist/es/components/tags/tags.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -2
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +13 -2
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/index.css +2 -2
- package/dist/es/components/tree-picker/tree-picker.mjs +8 -5
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +9 -9
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { f as useTooltipTriggerProps, u as useTooltipContentProps, a as ElToolti
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { b as buttonTypes, E as ElButton } from '../../chunk/CqTa_Vd-.mjs';
|
|
6
6
|
import { defineComponent, ref, computed, unref, createBlock, openBlock, mergeProps, withCtx, renderSlot, createCommentVNode, createElementVNode, normalizeClass, createTextVNode, normalizeStyle, resolveDynamicComponent, toDisplayString, createVNode, withModifiers, createElementBlock } from 'vue';
|
|
7
|
-
import { ElMessageBox } from 'element-plus';
|
|
7
|
+
import { useFormDisabled, ElMessageBox } from 'element-plus';
|
|
8
8
|
import { i as injectConfig } from '../config-provider/config-provider2.mjs';
|
|
9
9
|
import { _ as _sfc_main$2 } from '../icon/icon.mjs';
|
|
10
10
|
import { useThrottleFn } from '@vueuse/core';
|
|
@@ -237,6 +237,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
237
237
|
const props = __props;
|
|
238
238
|
const emits = __emit;
|
|
239
239
|
const { button: buttonConfig } = injectConfig();
|
|
240
|
+
const formDisabled = useFormDisabled();
|
|
240
241
|
const defaultConfirmInfo = { title: "提示", confirmButtonText: "确定", cancelButtonText: "取消", msg: "请确认您的操作" };
|
|
241
242
|
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);
|
|
242
243
|
const { name, type: iconType = "el", position = "left" } = props.icon || {};
|
|
@@ -284,6 +285,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284
285
|
__props.stop ? (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
285
286
|
type: __props.type,
|
|
286
287
|
class: _ctx.$style.button,
|
|
288
|
+
disabled: unref(formDisabled),
|
|
287
289
|
onClick: withModifiers(unref(handleClick), ["stop"])
|
|
288
290
|
}), {
|
|
289
291
|
default: withCtx(() => [
|
|
@@ -302,9 +304,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
302
304
|
}, null, 8, ["type", "name"])) : createCommentVNode("", true)
|
|
303
305
|
]),
|
|
304
306
|
_: 3
|
|
305
|
-
}, 16, ["type", "class", "onClick"])) : (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
307
|
+
}, 16, ["type", "class", "disabled", "onClick"])) : (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
306
308
|
type: __props.type,
|
|
307
309
|
class: _ctx.$style.button,
|
|
310
|
+
disabled: unref(formDisabled),
|
|
308
311
|
onClick: unref(handleClick)
|
|
309
312
|
}), {
|
|
310
313
|
default: withCtx(() => [
|
|
@@ -323,12 +326,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
323
326
|
}, null, 8, ["type", "name"])) : createCommentVNode("", true)
|
|
324
327
|
]),
|
|
325
328
|
_: 3
|
|
326
|
-
}, 16, ["type", "class", "onClick"]))
|
|
329
|
+
}, 16, ["type", "class", "disabled", "onClick"]))
|
|
327
330
|
]),
|
|
328
331
|
_: 3
|
|
329
332
|
}, 8, ["title", "confirm-button-text", "cancel-button-text", "popper-class", "onConfirm"])) : __props.stop ? (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
330
333
|
type: __props.type,
|
|
331
334
|
class: _ctx.$style.button,
|
|
335
|
+
disabled: unref(formDisabled),
|
|
332
336
|
onClick: withModifiers(unref(handleClick), ["stop"])
|
|
333
337
|
}), {
|
|
334
338
|
default: withCtx(() => [
|
|
@@ -347,9 +351,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
347
351
|
}, null, 8, ["type", "name"])) : createCommentVNode("", true)
|
|
348
352
|
]),
|
|
349
353
|
_: 3
|
|
350
|
-
}, 16, ["type", "class", "onClick"])) : (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
354
|
+
}, 16, ["type", "class", "disabled", "onClick"])) : (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
351
355
|
type: __props.type,
|
|
352
356
|
class: _ctx.$style.button,
|
|
357
|
+
disabled: unref(formDisabled),
|
|
353
358
|
onClick: unref(handleClick)
|
|
354
359
|
}), {
|
|
355
360
|
default: withCtx(() => [
|
|
@@ -368,7 +373,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
368
373
|
}, null, 8, ["type", "name"])) : createCommentVNode("", true)
|
|
369
374
|
]),
|
|
370
375
|
_: 3
|
|
371
|
-
}, 16, ["type", "class", "onClick"]));
|
|
376
|
+
}, 16, ["type", "class", "disabled", "onClick"]));
|
|
372
377
|
};
|
|
373
378
|
}
|
|
374
379
|
});
|
|
@@ -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,6 +3,7 @@ import '../../chunk/By7FMB3I.mjs';
|
|
|
3
3
|
import { a as ElCheckboxGroup } from '../../chunk/DSt2uDNE.mjs';
|
|
4
4
|
import { E as ElRadioGroup } from '../../chunk/BL8WhaLp.mjs';
|
|
5
5
|
import { defineComponent, computed, createBlock, openBlock, mergeProps, unref } from 'vue';
|
|
6
|
+
import { useFormDisabled } from 'element-plus';
|
|
6
7
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
8
|
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -10,10 +11,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
11
|
props: {
|
|
11
12
|
multiple: { type: Boolean },
|
|
12
13
|
type: { default: "button" },
|
|
13
|
-
options: {}
|
|
14
|
+
options: {},
|
|
15
|
+
disabled: { type: Boolean, default: void 0 }
|
|
14
16
|
},
|
|
15
17
|
setup(__props) {
|
|
16
18
|
const props = __props;
|
|
19
|
+
const formDisabled = useFormDisabled();
|
|
17
20
|
const myType = props.type;
|
|
18
21
|
const myOptions = computed(() => {
|
|
19
22
|
if (Array.isArray(props.options) && typeof props.options[0] === "string") {
|
|
@@ -26,12 +29,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
29
|
const _component_ElCheckboxGroup = ElCheckboxGroup;
|
|
27
30
|
return !props.multiple ? (openBlock(), createBlock(_component_ElRadioGroup, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
28
31
|
type: unref(myType),
|
|
29
|
-
options: unref(myOptions)
|
|
30
|
-
|
|
32
|
+
options: unref(myOptions),
|
|
33
|
+
disabled: unref(formDisabled)
|
|
34
|
+
}), null, 16, ["type", "options", "disabled"])) : (openBlock(), createBlock(_component_ElCheckboxGroup, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
31
35
|
class: _ctx.$style.checkbox,
|
|
32
36
|
type: unref(myType),
|
|
33
|
-
options: unref(myOptions)
|
|
34
|
-
|
|
37
|
+
options: unref(myOptions),
|
|
38
|
+
disabled: unref(formDisabled)
|
|
39
|
+
}), null, 16, ["class", "type", "options", "disabled"]));
|
|
35
40
|
};
|
|
36
41
|
}
|
|
37
42
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IChoiceProps } from './choice';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IChoiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IChoiceProps> & Readonly<{}>, {
|
|
3
3
|
type: import('element-plus').RadioGroupProps["type"] | import('element-plus').CheckboxGroupProps["type"];
|
|
4
|
+
disabled: boolean;
|
|
4
5
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
6
|
export default _default;
|
|
@@ -5,6 +5,7 @@ import { E as ElSelect, a as ElOption } from '../../chunk/DQi1QPak.mjs';
|
|
|
5
5
|
import '../../chunk/D_Mvdscy.mjs';
|
|
6
6
|
import '../../chunk/BfjuZmry.mjs';
|
|
7
7
|
import { defineComponent, computed, ref, onBeforeMount, createBlock, openBlock, mergeProps, unref, isRef, createSlots, withCtx, createElementBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from 'vue';
|
|
8
|
+
import { useFormDisabled } from 'element-plus';
|
|
8
9
|
import { _ as _sfc_main$1 } from '../flag/flag.mjs';
|
|
9
10
|
import { C as Component$1 } from '../thousand-input/thousand-input.mjs';
|
|
10
11
|
import { useVModel } from '@vueuse/core';
|
|
@@ -53,13 +54,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
54
|
flag: { type: Boolean, default: false },
|
|
54
55
|
prefix: { type: Boolean, default: true },
|
|
55
56
|
prepend: { type: Boolean, default: true },
|
|
56
|
-
append: { type: Boolean, default: false }
|
|
57
|
+
append: { type: Boolean, default: false },
|
|
58
|
+
disabled: { type: Boolean, default: void 0 }
|
|
57
59
|
},
|
|
58
60
|
emits: ["update:modelValue", "change"],
|
|
59
61
|
setup(__props, { emit: __emit }) {
|
|
60
62
|
const props = __props;
|
|
61
63
|
const emits = __emit;
|
|
62
64
|
const myValue = useVModel(props, "modelValue", emits);
|
|
65
|
+
const formDisabled = useFormDisabled();
|
|
63
66
|
const selectStyle = computed(() => ({ width: props.flag ? "7.5em" : "6em" }));
|
|
64
67
|
const formatValue = ref("");
|
|
65
68
|
const myCode = ref();
|
|
@@ -109,6 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
112
|
modelValue: unref(myCode),
|
|
110
113
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myCode) ? myCode.value = $event : null),
|
|
111
114
|
style: normalizeStyle(unref(selectStyle)),
|
|
115
|
+
disabled: unref(formDisabled),
|
|
112
116
|
onChange: handleCodeChange
|
|
113
117
|
}, createSlots({
|
|
114
118
|
default: withCtx(() => [
|
|
@@ -141,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
145
|
]),
|
|
142
146
|
key: "0"
|
|
143
147
|
} : void 0
|
|
144
|
-
]), 1032, ["modelValue", "style"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
148
|
+
]), 1032, ["modelValue", "style", "disabled"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
145
149
|
__props.flag ? (openBlock(), createBlock(_sfc_main$1, {
|
|
146
150
|
key: 0,
|
|
147
151
|
code: unref(currencyInfo).flag,
|
|
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<ICurrencyProps, {}, {}, {}
|
|
|
6
6
|
onChange?: ((value: [string, string, ICurrencyCode]) => any) | undefined;
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
+
disabled: boolean;
|
|
9
10
|
flag: boolean;
|
|
10
11
|
prefix: boolean;
|
|
11
12
|
prepend: boolean;
|
|
@@ -4,6 +4,7 @@ import { E as ElScrollbar } from '../../chunk/D_Mvdscy.mjs';
|
|
|
4
4
|
import { E as ElButton } from '../../chunk/CqTa_Vd-.mjs';
|
|
5
5
|
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/BfjuZmry.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
8
|
import { onClickOutside, unrefElement, useVModel } from '@vueuse/core';
|
|
8
9
|
import { E as ElIcon } from '../../chunk/D1MHFKtN.mjs';
|
|
9
10
|
import { CircleClose, Clock, Calendar, ArrowUp, ArrowDown, DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
@@ -6255,13 +6256,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6255
6256
|
modelValue: {},
|
|
6256
6257
|
valueFormat: { default: "YYYY-MM-DD" },
|
|
6257
6258
|
limitDays: { default: 3 },
|
|
6258
|
-
includeToday: { type: Boolean, default: false }
|
|
6259
|
+
includeToday: { type: Boolean, default: false },
|
|
6260
|
+
disabled: { type: Boolean, default: void 0 }
|
|
6259
6261
|
},
|
|
6260
6262
|
emits: ["update:modelValue", "change"],
|
|
6261
6263
|
setup(__props, { emit: __emit }) {
|
|
6262
6264
|
const props = __props;
|
|
6263
6265
|
const emits = __emit;
|
|
6264
6266
|
const myValue = useVModel(props, "modelValue", emits);
|
|
6267
|
+
const formDisabled = useFormDisabled$1();
|
|
6265
6268
|
function disabledDate(time) {
|
|
6266
6269
|
const now = Date.now();
|
|
6267
6270
|
const pickerTime = time.getTime();
|
|
@@ -6289,8 +6292,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6289
6292
|
"disabled-date": disabledDate,
|
|
6290
6293
|
type: "daterange",
|
|
6291
6294
|
"value-format": __props.valueFormat,
|
|
6295
|
+
disabled: unref(formDisabled),
|
|
6292
6296
|
onChange: handleChange
|
|
6293
|
-
}), null, 16, ["modelValue", "value-format"]);
|
|
6297
|
+
}), null, 16, ["modelValue", "value-format", "disabled"]);
|
|
6294
6298
|
};
|
|
6295
6299
|
}
|
|
6296
6300
|
});
|
|
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<IDateRangePickerProps, {},
|
|
|
6
6
|
onChange?: ((value: string[]) => any) | undefined;
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
+
disabled: boolean;
|
|
9
10
|
valueFormat: string;
|
|
10
11
|
limitDays: number;
|
|
11
12
|
includeToday: boolean;
|
|
@@ -11,6 +11,7 @@ export interface IExplorerFormProps {
|
|
|
11
11
|
initialValues?: Record<string, any>;
|
|
12
12
|
autoInitial?: boolean;
|
|
13
13
|
defaultEditing?: boolean;
|
|
14
|
+
labelPosition?: FormProps['labelPosition'];
|
|
14
15
|
onCancel?: () => void | Promise<void>;
|
|
15
16
|
onSave?: (data: Record<string, any>) => void | Promise<void>;
|
|
16
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/By7FMB3I.mjs';
|
|
3
3
|
import { v as vLoading } from '../../chunk/CwXV7M2F.mjs';
|
|
4
|
-
import { defineComponent, ref, useTemplateRef, watch,
|
|
4
|
+
import { defineComponent, ref, useTemplateRef, watch, onBeforeUnmount, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, unref, withCtx, mergeProps } from 'vue';
|
|
5
5
|
import { ElForm } from 'element-plus';
|
|
6
6
|
import { C as Component$2 } from '../button/button.mjs';
|
|
7
7
|
import { C as Component$1 } from '../iconify-icon/iconify-icon.mjs';
|
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
initialValues: {},
|
|
19
19
|
autoInitial: { type: Boolean, default: true },
|
|
20
20
|
defaultEditing: { type: Boolean },
|
|
21
|
+
labelPosition: { default: "top" },
|
|
21
22
|
onCancel: { type: Function, default: () => {
|
|
22
23
|
} },
|
|
23
24
|
onSave: { type: Function, default: () => {
|
|
@@ -30,7 +31,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
31
|
const isEditing = ref(false);
|
|
31
32
|
const loading = ref(false);
|
|
32
33
|
const formRef = useTemplateRef("formRef");
|
|
33
|
-
const formComponent = ref();
|
|
34
34
|
function handleEdit() {
|
|
35
35
|
emits("clickEdit");
|
|
36
36
|
isEditing.value = true;
|
|
@@ -58,9 +58,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
const initialValuesWatch = watch(() => props.initialValues, () => {
|
|
59
59
|
props.initialValues && formRef.value?.setInitialValues(props.initialValues);
|
|
60
60
|
}, { immediate: true, deep: true });
|
|
61
|
-
onBeforeMount(() => {
|
|
62
|
-
formComponent.value = ElForm;
|
|
63
|
-
});
|
|
64
61
|
onBeforeUnmount(() => {
|
|
65
62
|
initialValuesWatch.stop();
|
|
66
63
|
autoInitialWatch.stop();
|
|
@@ -126,20 +123,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
123
|
], 2),
|
|
127
124
|
createVNode(Component$3, { always: "" }, {
|
|
128
125
|
default: withCtx(() => [
|
|
129
|
-
(
|
|
126
|
+
createVNode(unref(ElForm), mergeProps({
|
|
130
127
|
ref_key: "formRef",
|
|
131
128
|
ref: formRef
|
|
132
|
-
},
|
|
129
|
+
}, __props.formProps, {
|
|
133
130
|
model: __props.form.fields,
|
|
134
131
|
rules: __props.form.rules,
|
|
135
132
|
disabled: !unref(isEditing),
|
|
136
|
-
"require-asterisk-position": "right"
|
|
133
|
+
"require-asterisk-position": "right",
|
|
134
|
+
"label-position": __props.labelPosition
|
|
137
135
|
}), {
|
|
138
136
|
default: withCtx(() => [
|
|
139
137
|
renderSlot(_ctx.$slots, "default")
|
|
140
138
|
]),
|
|
141
139
|
_: 3
|
|
142
|
-
}, 16, ["model", "rules", "disabled"])
|
|
140
|
+
}, 16, ["model", "rules", "disabled", "label-position"])
|
|
143
141
|
]),
|
|
144
142
|
_: 3
|
|
145
143
|
})
|