element-less 0.0.12 → 0.0.14
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/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +138 -137
- package/element-less.umd.cjs +1 -1
- package/index-BkICNn3E.cjs +1 -0
- package/{index-DnQps7ZS.js → index-ByP0XZDD.js} +833 -1554
- package/index.d.ts +2 -2
- package/inner-BRKJGDhJ.cjs +1 -0
- package/inner-DAknse9T.js +735 -0
- package/{innerItem-uCEFyNIq.js → innerItem-BcHNw8pL.js} +6 -6
- package/{innerItem-BN3TWTPo.cjs → innerItem-BhD_mhIw.cjs} +1 -1
- package/{mode-csharp-CmQlBjeT.cjs → mode-csharp-BVemVZZS.cjs} +1 -1
- package/{mode-csharp-B0VfPAlW.js → mode-csharp-CfZix4xS.js} +1 -1
- package/{mode-css-R4u3ctw_.cjs → mode-css-Ce0-76IU.cjs} +1 -1
- package/{mode-css-C10iQrgP.js → mode-css-dGoCtWNX.js} +1 -1
- package/{mode-javascript-vzdVW-Fs.cjs → mode-javascript-BC4-F8y2.cjs} +1 -1
- package/{mode-javascript-CftGwKZl.js → mode-javascript-DofEY5ld.js} +1 -1
- package/{mode-json-BMCcxkSL.js → mode-json-97FfpFO7.js} +1 -1
- package/{mode-json-D69Nd7OE.cjs → mode-json-BFST77yY.cjs} +1 -1
- package/{mode-mysql-1a9Qs7iA.cjs → mode-mysql-CbBtnRJd.cjs} +1 -1
- package/{mode-mysql-D6zJjR-k.js → mode-mysql-DNH3mgOK.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/utils/index.d.ts +0 -1
- package/index-BFQbXKQE.cjs +0 -1
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import pkg from "file-saver";
|
|
5
5
|
import * as XLSX from "xlsx";
|
|
6
6
|
import { ElMessage, formItemProps as formItemProps$2, formProps as formProps$2, inputProps as inputProps$1, ElSpace, inputEmits, radioProps as radioProps$1, checkboxProps as checkboxProps$1, rowProps, useNamespace, rowContextKey, colProps, ElForm, ElButton, paginationProps, ElLoading, menuProps as menuProps$1, ElMenu, menuItemProps as menuItemProps$1, menuItemEmits, ElMenuItem, subMenuProps as subMenuProps$1, ElSubMenu, switchProps as switchProps$1, imageProps as imageProps$1, imageViewerProps as imageViewerProps$1, autocompleteProps as autocompleteProps$1, cascaderProps as cascaderProps$1, dialogProps as dialogProps$1, drawerProps as drawerProps$1, dropdownProps as dropdownProps$1, sliderProps as sliderProps$1, inputNumberProps as inputNumberProps$1, uploadProps as uploadProps$1, ElNotification, timePickerDefaultProps, datePickerProps as datePickerProps$1, tabsProps as tabsProps$1, colorPickerProps as colorPickerProps$1, ElContainer, ElMessageBox, useSizeProp as useSizeProp$1 } from "element-plus";
|
|
7
|
-
import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, computed, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, createApp,
|
|
7
|
+
import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, computed, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, createApp, openBlock, createElementBlock, createElementVNode, warn, useAttrs, useSlots, resolveComponent, renderSlot, withCtx, createBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createTextVNode, toDisplayString, renderList, resolveDynamicComponent, normalizeClass, normalizeStyle, mergeModels, useModel as useModel$1, onErrorCaptured, h, resolveDirective, withModifiers, pushScopeId, popScopeId, defineAsyncComponent, Suspense, createStaticVNode, shallowRef } from "vue";
|
|
8
8
|
import axios from "axios";
|
|
9
9
|
import lodash from "lodash";
|
|
10
10
|
import draggable from "vuedraggable";
|
|
@@ -1644,14 +1644,6 @@ const handler = {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
1646
|
const ProxyElsMessage = new Proxy(ElsMessage, handler);
|
|
1647
|
-
const loadAsyncComponent = (loader) => defineAsyncComponent({
|
|
1648
|
-
loader,
|
|
1649
|
-
delay: 1e3
|
|
1650
|
-
});
|
|
1651
|
-
const loadSkeletonAsyncComponent = (loader) => defineAsyncComponent({
|
|
1652
|
-
loader,
|
|
1653
|
-
delay: 1e3
|
|
1654
|
-
});
|
|
1655
1647
|
const defaultConfig = {
|
|
1656
1648
|
api: {
|
|
1657
1649
|
code: "ResultCode",
|
|
@@ -3311,9 +3303,9 @@ function useProps(props = {}) {
|
|
|
3311
3303
|
if (parent && utils.isDef(parent[key])) {
|
|
3312
3304
|
return parent[key];
|
|
3313
3305
|
}
|
|
3314
|
-
const
|
|
3315
|
-
if (
|
|
3316
|
-
return
|
|
3306
|
+
const form = useForm();
|
|
3307
|
+
if (form && utils.isDef(form[key])) {
|
|
3308
|
+
return form[key];
|
|
3317
3309
|
}
|
|
3318
3310
|
const container = useContainer();
|
|
3319
3311
|
if (container && utils.isDef(container[key])) {
|
|
@@ -3722,10 +3714,10 @@ const inputProps = buildProps({
|
|
|
3722
3714
|
}
|
|
3723
3715
|
});
|
|
3724
3716
|
const formItemProps = formItemProps$1;
|
|
3725
|
-
const _hoisted_1$
|
|
3726
|
-
const _hoisted_2$
|
|
3727
|
-
const _hoisted_3$
|
|
3728
|
-
const _sfc_main$
|
|
3717
|
+
const _hoisted_1$1s = ["innerHTML"];
|
|
3718
|
+
const _hoisted_2$1a = { class: "els-form-item-append" };
|
|
3719
|
+
const _hoisted_3$Q = ["innerHTML"];
|
|
3720
|
+
const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
3729
3721
|
...{ name: "ElsFormItem" },
|
|
3730
3722
|
__name: "formItem",
|
|
3731
3723
|
props: formItemProps,
|
|
@@ -3908,10 +3900,10 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
3908
3900
|
placement: "top"
|
|
3909
3901
|
}, {
|
|
3910
3902
|
content: withCtx(() => [
|
|
3911
|
-
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$
|
|
3903
|
+
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$1s)
|
|
3912
3904
|
]),
|
|
3913
3905
|
default: withCtx(() => [
|
|
3914
|
-
createElementVNode("span", _hoisted_2$
|
|
3906
|
+
createElementVNode("span", _hoisted_2$1a, [
|
|
3915
3907
|
createVNode(_component_el_icon, { style: { "margin-left": "5px", "cursor": "pointer" } }, {
|
|
3916
3908
|
default: withCtx(() => [
|
|
3917
3909
|
createVNode(_component_Question_Filled)
|
|
@@ -3926,7 +3918,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
3926
3918
|
key: 2,
|
|
3927
3919
|
innerHTML: _ctx.suffixContent,
|
|
3928
3920
|
class: "els-form-item-append"
|
|
3929
|
-
}, null, 8, _hoisted_3$
|
|
3921
|
+
}, null, 8, _hoisted_3$Q)) : createCommentVNode("", true),
|
|
3930
3922
|
unref(slots).error ? renderSlot(_ctx.$slots, "error", { key: 3 }, void 0, true) : createCommentVNode("", true)
|
|
3931
3923
|
]),
|
|
3932
3924
|
_: 2
|
|
@@ -3971,9 +3963,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
3971
3963
|
}
|
|
3972
3964
|
return target;
|
|
3973
3965
|
};
|
|
3974
|
-
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3966
|
+
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$26, [["__scopeId", "data-v-69f701ab"]]);
|
|
3975
3967
|
const ElsFormItem = withInstall(FormItem);
|
|
3976
|
-
const _sfc_main$
|
|
3968
|
+
const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
3977
3969
|
...{ name: "ElsFormNode" },
|
|
3978
3970
|
__name: "formNode",
|
|
3979
3971
|
props: formItemProps$1,
|
|
@@ -4039,9 +4031,9 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
4039
4031
|
};
|
|
4040
4032
|
}
|
|
4041
4033
|
});
|
|
4042
|
-
const FormNode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4034
|
+
const FormNode = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["__scopeId", "data-v-ec8c3ebd"]]);
|
|
4043
4035
|
const ElsFormNode = withInstall(FormNode);
|
|
4044
|
-
const _sfc_main$
|
|
4036
|
+
const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
4045
4037
|
...{
|
|
4046
4038
|
name: "ElsInput",
|
|
4047
4039
|
inheritAttrs: false
|
|
@@ -4168,8 +4160,8 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
4168
4160
|
};
|
|
4169
4161
|
}
|
|
4170
4162
|
});
|
|
4171
|
-
const ElsInput = withInstall(_sfc_main$
|
|
4172
|
-
const _sfc_main$
|
|
4163
|
+
const ElsInput = withInstall(_sfc_main$24);
|
|
4164
|
+
const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
4173
4165
|
...{
|
|
4174
4166
|
name: "ElsTextarea",
|
|
4175
4167
|
inheritAttrs: false
|
|
@@ -4203,7 +4195,7 @@ const _sfc_main$2a = /* @__PURE__ */ defineComponent({
|
|
|
4203
4195
|
};
|
|
4204
4196
|
}
|
|
4205
4197
|
});
|
|
4206
|
-
const ElsTextarea = withInstall(_sfc_main$
|
|
4198
|
+
const ElsTextarea = withInstall(_sfc_main$23);
|
|
4207
4199
|
const inputRangeProps = buildProps({
|
|
4208
4200
|
...inputProps,
|
|
4209
4201
|
/**
|
|
@@ -4260,7 +4252,7 @@ const inputRangeProps = buildProps({
|
|
|
4260
4252
|
default: "100px"
|
|
4261
4253
|
}
|
|
4262
4254
|
});
|
|
4263
|
-
const _sfc_main$
|
|
4255
|
+
const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
4264
4256
|
...{
|
|
4265
4257
|
name: "ElsInputRange",
|
|
4266
4258
|
inheritAttrs: false
|
|
@@ -4311,7 +4303,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
4311
4303
|
};
|
|
4312
4304
|
}
|
|
4313
4305
|
});
|
|
4314
|
-
const ElsInputRange = withInstall(_sfc_main$
|
|
4306
|
+
const ElsInputRange = withInstall(_sfc_main$22);
|
|
4315
4307
|
var E = "top", R = "bottom", W = "right", P = "left", me = "auto", G = [E, R, W, P], U = "start", J = "end", Xe = "clippingParents", je = "viewport", K = "popper", Ye = "reference", De = G.reduce(function(t, e) {
|
|
4316
4308
|
return t.concat([e + "-" + U, e + "-" + J]);
|
|
4317
4309
|
}, []), Ee = [].concat(G, [me]).reduce(function(t, e) {
|
|
@@ -5237,15 +5229,15 @@ const selectProps = buildProps({
|
|
|
5237
5229
|
type: String
|
|
5238
5230
|
}
|
|
5239
5231
|
});
|
|
5240
|
-
const _hoisted_1$
|
|
5232
|
+
const _hoisted_1$1r = {
|
|
5241
5233
|
key: 0,
|
|
5242
5234
|
class: "check"
|
|
5243
5235
|
};
|
|
5244
|
-
const _hoisted_2$
|
|
5236
|
+
const _hoisted_2$19 = {
|
|
5245
5237
|
key: 0,
|
|
5246
5238
|
class: "check"
|
|
5247
5239
|
};
|
|
5248
|
-
const _hoisted_3$
|
|
5240
|
+
const _hoisted_3$P = {
|
|
5249
5241
|
key: 0,
|
|
5250
5242
|
class: "check"
|
|
5251
5243
|
};
|
|
@@ -5253,7 +5245,7 @@ const _hoisted_4$F = {
|
|
|
5253
5245
|
key: 0,
|
|
5254
5246
|
class: "check"
|
|
5255
5247
|
};
|
|
5256
|
-
const _sfc_main$
|
|
5248
|
+
const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
5257
5249
|
...{
|
|
5258
5250
|
name: "ElsSelect",
|
|
5259
5251
|
inheritAttrs: false
|
|
@@ -5682,7 +5674,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5682
5674
|
value: item[_ctx.valueField]
|
|
5683
5675
|
}, {
|
|
5684
5676
|
default: withCtx(() => [
|
|
5685
|
-
_ctx.multiple ? (openBlock(), createElementBlock("i", _hoisted_1$
|
|
5677
|
+
_ctx.multiple ? (openBlock(), createElementBlock("i", _hoisted_1$1r)) : createCommentVNode("", true),
|
|
5686
5678
|
renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
5687
5679
|
createTextVNode(toDisplayString(item[_ctx.labelField]), 1)
|
|
5688
5680
|
])
|
|
@@ -5703,7 +5695,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5703
5695
|
value: item[_ctx.valueField]
|
|
5704
5696
|
}, {
|
|
5705
5697
|
default: withCtx(() => [
|
|
5706
|
-
_ctx.multiple ? (openBlock(), createElementBlock("i", _hoisted_2$
|
|
5698
|
+
_ctx.multiple ? (openBlock(), createElementBlock("i", _hoisted_2$19)) : createCommentVNode("", true),
|
|
5707
5699
|
renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
5708
5700
|
createTextVNode(toDisplayString(item[_ctx.labelField]), 1)
|
|
5709
5701
|
])
|
|
@@ -5723,7 +5715,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5723
5715
|
value: item[_ctx.valueField]
|
|
5724
5716
|
}, {
|
|
5725
5717
|
default: withCtx(() => [
|
|
5726
|
-
_ctx.multiple ? (openBlock(), createElementBlock("i", _hoisted_3$
|
|
5718
|
+
_ctx.multiple ? (openBlock(), createElementBlock("i", _hoisted_3$P)) : createCommentVNode("", true),
|
|
5727
5719
|
createTextVNode(" " + toDisplayString(item[_ctx.labelField]), 1)
|
|
5728
5720
|
]),
|
|
5729
5721
|
_: 2
|
|
@@ -5833,12 +5825,12 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5833
5825
|
};
|
|
5834
5826
|
}
|
|
5835
5827
|
});
|
|
5836
|
-
const ElsSelect = withInstall(_sfc_main$
|
|
5837
|
-
const _hoisted_1$
|
|
5828
|
+
const ElsSelect = withInstall(_sfc_main$21);
|
|
5829
|
+
const _hoisted_1$1q = {
|
|
5838
5830
|
key: 0,
|
|
5839
5831
|
class: "check"
|
|
5840
5832
|
};
|
|
5841
|
-
const _sfc_main$
|
|
5833
|
+
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
5842
5834
|
...{ name: "ElsOption" },
|
|
5843
5835
|
__name: "option",
|
|
5844
5836
|
props: {
|
|
@@ -5902,7 +5894,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
5902
5894
|
value: _ctx.value ?? currLabel.value
|
|
5903
5895
|
}), {
|
|
5904
5896
|
default: withCtx(() => [
|
|
5905
|
-
multiple.value ? (openBlock(), createElementBlock("i", _hoisted_1$
|
|
5897
|
+
multiple.value ? (openBlock(), createElementBlock("i", _hoisted_1$1q)) : createCommentVNode("", true),
|
|
5906
5898
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5907
5899
|
createTextVNode(toDisplayString(currLabel.value), 1)
|
|
5908
5900
|
])
|
|
@@ -5961,12 +5953,12 @@ const optionGroupProps = buildProps({
|
|
|
5961
5953
|
*/
|
|
5962
5954
|
label: String
|
|
5963
5955
|
});
|
|
5964
|
-
const _hoisted_1$
|
|
5956
|
+
const _hoisted_1$1p = {
|
|
5965
5957
|
key: 1,
|
|
5966
5958
|
style: { "width": "100%" }
|
|
5967
5959
|
};
|
|
5968
|
-
const _hoisted_2$
|
|
5969
|
-
const _sfc_main$
|
|
5960
|
+
const _hoisted_2$18 = { class: "els-radio-group-item" };
|
|
5961
|
+
const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
5970
5962
|
...{ name: "ElsOptionGroup" },
|
|
5971
5963
|
__name: "optionGroup",
|
|
5972
5964
|
props: optionGroupProps,
|
|
@@ -5989,14 +5981,14 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
5989
5981
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5990
5982
|
]),
|
|
5991
5983
|
_: 3
|
|
5992
|
-
}, 16, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5993
|
-
createElementVNode("div", _hoisted_2$
|
|
5984
|
+
}, 16, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
5985
|
+
createElementVNode("div", _hoisted_2$18, toDisplayString(_ctx.label), 1),
|
|
5994
5986
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(attrs))), void 0, true)
|
|
5995
5987
|
]));
|
|
5996
5988
|
};
|
|
5997
5989
|
}
|
|
5998
5990
|
});
|
|
5999
|
-
const OptionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5991
|
+
const OptionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1$, [["__scopeId", "data-v-e69e7edd"]]);
|
|
6000
5992
|
const radioProps = buildProps({
|
|
6001
5993
|
...formItemProps$1,
|
|
6002
5994
|
...radioProps$1,
|
|
@@ -6107,8 +6099,8 @@ const radioProps = buildProps({
|
|
|
6107
6099
|
default: -1
|
|
6108
6100
|
}
|
|
6109
6101
|
});
|
|
6110
|
-
const _hoisted_1$
|
|
6111
|
-
const _sfc_main$
|
|
6102
|
+
const _hoisted_1$1o = { key: 0 };
|
|
6103
|
+
const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
6112
6104
|
...{
|
|
6113
6105
|
name: "ElsRadio",
|
|
6114
6106
|
inheritAttrs: false
|
|
@@ -6367,7 +6359,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
6367
6359
|
class: normalizeClass(radioClass),
|
|
6368
6360
|
style: normalizeStyle(radioStyle)
|
|
6369
6361
|
}, [
|
|
6370
|
-
props.filterable ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6362
|
+
props.filterable ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
6371
6363
|
_ctx.filterable ? (openBlock(), createBlock(_component_el_input, {
|
|
6372
6364
|
key: 0,
|
|
6373
6365
|
style: { "width": "200px" },
|
|
@@ -6395,7 +6387,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
6395
6387
|
default: withCtx(() => [
|
|
6396
6388
|
renderSlot(_ctx.$slots, "extra", {}, void 0, true),
|
|
6397
6389
|
filterText.value && !optionData.value.length ? (openBlock(), createBlock(_component_el_empty, { key: 0 })) : (_ctx.url || _ctx.data && _ctx.data.length > 0 || options.length) && !_ctx.groupField ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(options, (item, index) => {
|
|
6398
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6390
|
+
return openBlock(), createBlock(_sfc_main$20, {
|
|
6399
6391
|
type: _ctx.type,
|
|
6400
6392
|
key: index,
|
|
6401
6393
|
value: item[_ctx.valueField],
|
|
@@ -6415,7 +6407,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
6415
6407
|
}, {
|
|
6416
6408
|
default: withCtx(() => [
|
|
6417
6409
|
(openBlock(true), createElementBlock(Fragment, null, renderList(gitem.value, (item, index) => {
|
|
6418
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6410
|
+
return openBlock(), createBlock(_sfc_main$20, {
|
|
6419
6411
|
type: _ctx.type,
|
|
6420
6412
|
key: index,
|
|
6421
6413
|
value: item[_ctx.valueField],
|
|
@@ -6435,7 +6427,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
6435
6427
|
}, 1032, ["label"]);
|
|
6436
6428
|
}), 256)) : renderSlot(_ctx.$slots, "default", { key: 3 }, void 0, true),
|
|
6437
6429
|
(openBlock(true), createElementBlock(Fragment, null, renderList(noExistOption, (item) => {
|
|
6438
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6430
|
+
return openBlock(), createBlock(_sfc_main$20, {
|
|
6439
6431
|
type: _ctx.type,
|
|
6440
6432
|
key: item[_ctx.valueField],
|
|
6441
6433
|
value: item[_ctx.valueField],
|
|
@@ -6457,7 +6449,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
6457
6449
|
};
|
|
6458
6450
|
}
|
|
6459
6451
|
});
|
|
6460
|
-
const ElsRadio$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6452
|
+
const ElsRadio$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1_, [["__scopeId", "data-v-a7fae6d8"]]);
|
|
6461
6453
|
const ElsRadio = withInstall(ElsRadio$1);
|
|
6462
6454
|
const checkboxProps = Object.assign({}, checkboxProps$1, buildProps({
|
|
6463
6455
|
...formItemProps$1,
|
|
@@ -6571,11 +6563,11 @@ const checkboxProps = Object.assign({}, checkboxProps$1, buildProps({
|
|
|
6571
6563
|
*/
|
|
6572
6564
|
showInverse: Boolean
|
|
6573
6565
|
}));
|
|
6574
|
-
const _hoisted_1$
|
|
6566
|
+
const _hoisted_1$1n = {
|
|
6575
6567
|
key: 0,
|
|
6576
6568
|
style: { "margin-bottom": "15px", "text-align": "left" }
|
|
6577
6569
|
};
|
|
6578
|
-
const _sfc_main$
|
|
6570
|
+
const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
6579
6571
|
...{ name: "ElsCheckbox", inheritAttrs: false },
|
|
6580
6572
|
__name: "checkbox",
|
|
6581
6573
|
props: checkboxProps,
|
|
@@ -6902,7 +6894,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
6902
6894
|
class: normalizeClass(checkboxClass),
|
|
6903
6895
|
style: normalizeStyle(checkboxStyle)
|
|
6904
6896
|
}, [
|
|
6905
|
-
_ctx.showCheckAll || _ctx.filterable ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6897
|
+
_ctx.showCheckAll || _ctx.filterable ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
6906
6898
|
_ctx.showCheckAll ? (openBlock(), createBlock(_component_el_checkbox, {
|
|
6907
6899
|
key: 0,
|
|
6908
6900
|
indeterminate: isIndeterminate.value,
|
|
@@ -7013,9 +7005,9 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
7013
7005
|
};
|
|
7014
7006
|
}
|
|
7015
7007
|
});
|
|
7016
|
-
const ElsCheckbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7008
|
+
const ElsCheckbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["__scopeId", "data-v-ae15118c"]]);
|
|
7017
7009
|
const ElsCheckbox = withInstall(ElsCheckbox$1);
|
|
7018
|
-
const _sfc_main$
|
|
7010
|
+
const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
7019
7011
|
...{
|
|
7020
7012
|
name: "ElsCheckboxButton"
|
|
7021
7013
|
},
|
|
@@ -7055,8 +7047,8 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
7055
7047
|
};
|
|
7056
7048
|
}
|
|
7057
7049
|
});
|
|
7058
|
-
const ElsCheckboxButton = withInstall(_sfc_main$
|
|
7059
|
-
const _sfc_main$
|
|
7050
|
+
const ElsCheckboxButton = withInstall(_sfc_main$1Y);
|
|
7051
|
+
const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
7060
7052
|
...{
|
|
7061
7053
|
name: "ElsRadioButton"
|
|
7062
7054
|
},
|
|
@@ -7096,7 +7088,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
7096
7088
|
};
|
|
7097
7089
|
}
|
|
7098
7090
|
});
|
|
7099
|
-
const ElsRadioButton = withInstall(_sfc_main$
|
|
7091
|
+
const ElsRadioButton = withInstall(_sfc_main$1X);
|
|
7100
7092
|
const optionProps = buildProps({
|
|
7101
7093
|
/**
|
|
7102
7094
|
* @description 文本
|
|
@@ -7107,9 +7099,9 @@ const optionProps = buildProps({
|
|
|
7107
7099
|
*/
|
|
7108
7100
|
value: String
|
|
7109
7101
|
});
|
|
7110
|
-
const ElsOption = withInstall(_sfc_main$
|
|
7102
|
+
const ElsOption = withInstall(_sfc_main$20);
|
|
7111
7103
|
const ElsOptionGroup = withInstall(OptionGroup);
|
|
7112
|
-
const _sfc_main$
|
|
7104
|
+
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
7113
7105
|
...{
|
|
7114
7106
|
name: "ElsRow"
|
|
7115
7107
|
},
|
|
@@ -7172,8 +7164,8 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
7172
7164
|
};
|
|
7173
7165
|
}
|
|
7174
7166
|
});
|
|
7175
|
-
const ElsRow = withInstall(_sfc_main$
|
|
7176
|
-
const _sfc_main$
|
|
7167
|
+
const ElsRow = withInstall(_sfc_main$1W);
|
|
7168
|
+
const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
7177
7169
|
...{
|
|
7178
7170
|
name: "ElsCol"
|
|
7179
7171
|
},
|
|
@@ -7256,8 +7248,8 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
7256
7248
|
};
|
|
7257
7249
|
}
|
|
7258
7250
|
});
|
|
7259
|
-
const ElsCol = withInstall(_sfc_main$
|
|
7260
|
-
const _sfc_main$
|
|
7251
|
+
const ElsCol = withInstall(_sfc_main$1V);
|
|
7252
|
+
const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
7261
7253
|
...{ name: "ElsForm", inheritAttrs: false },
|
|
7262
7254
|
__name: "form",
|
|
7263
7255
|
props: /* @__PURE__ */ mergeModels(formProps$1, {
|
|
@@ -7461,7 +7453,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
7461
7453
|
};
|
|
7462
7454
|
}
|
|
7463
7455
|
});
|
|
7464
|
-
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7456
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["__scopeId", "data-v-7a4522d4"]]);
|
|
7465
7457
|
const formProps = formProps$1;
|
|
7466
7458
|
const ElsForm = withInstall(Form);
|
|
7467
7459
|
const formQueryProps = buildProps({
|
|
@@ -7491,7 +7483,7 @@ const formQueryProps = buildProps({
|
|
|
7491
7483
|
default: false
|
|
7492
7484
|
}
|
|
7493
7485
|
});
|
|
7494
|
-
const _sfc_main$
|
|
7486
|
+
const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
7495
7487
|
...{ name: "ElsFormQuery" },
|
|
7496
7488
|
__name: "formQuery",
|
|
7497
7489
|
props: /* @__PURE__ */ mergeModels(formQueryProps, {
|
|
@@ -7761,7 +7753,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
7761
7753
|
};
|
|
7762
7754
|
}
|
|
7763
7755
|
});
|
|
7764
|
-
const FormQuery = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7756
|
+
const FormQuery = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["__scopeId", "data-v-c068f02c"]]);
|
|
7765
7757
|
const ElsFormQuery = withInstall(FormQuery);
|
|
7766
7758
|
var defaultProps$1 = {
|
|
7767
7759
|
type: {
|
|
@@ -8022,16 +8014,16 @@ const tableColumnProps = Object.assign({}, defaultProps$1, buildProps({
|
|
|
8022
8014
|
}
|
|
8023
8015
|
}
|
|
8024
8016
|
}));
|
|
8025
|
-
const _hoisted_1$
|
|
8026
|
-
const _hoisted_2$
|
|
8027
|
-
const _hoisted_3$
|
|
8017
|
+
const _hoisted_1$1m = { key: 0 };
|
|
8018
|
+
const _hoisted_2$17 = /* @__PURE__ */ createElementVNode("i", { class: "el-icon-question" }, null, -1);
|
|
8019
|
+
const _hoisted_3$O = ["innerHTML"];
|
|
8028
8020
|
const _hoisted_4$E = ["innerHTML"];
|
|
8029
8021
|
const _hoisted_5$q = ["innerHTML"];
|
|
8030
8022
|
const _hoisted_6$i = {
|
|
8031
8023
|
key: 0,
|
|
8032
8024
|
class: "el-table-tr-split"
|
|
8033
8025
|
};
|
|
8034
|
-
const _sfc_main$
|
|
8026
|
+
const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
8035
8027
|
...{ name: "ElsColumn" },
|
|
8036
8028
|
__name: "tableColumn",
|
|
8037
8029
|
props: tableColumnProps,
|
|
@@ -8246,14 +8238,14 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
8246
8238
|
column,
|
|
8247
8239
|
$index
|
|
8248
8240
|
}, () => [
|
|
8249
|
-
_ctx.tip ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
8241
|
+
_ctx.tip ? (openBlock(), createElementBlock("span", _hoisted_1$1m, [
|
|
8250
8242
|
createTextVNode(toDisplayString(unref(attrs)["label"]) + " ", 1),
|
|
8251
8243
|
createVNode(_component_el_tooltip, {
|
|
8252
8244
|
content: _ctx.tip,
|
|
8253
8245
|
placement: "right"
|
|
8254
8246
|
}, {
|
|
8255
8247
|
default: withCtx(() => [
|
|
8256
|
-
_hoisted_2$
|
|
8248
|
+
_hoisted_2$17
|
|
8257
8249
|
]),
|
|
8258
8250
|
_: 1
|
|
8259
8251
|
}, 8, ["content"])
|
|
@@ -8274,7 +8266,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
8274
8266
|
_ctx.prop ? (openBlock(), createElementBlock("span", {
|
|
8275
8267
|
key: 0,
|
|
8276
8268
|
innerHTML: row[_ctx.prop]
|
|
8277
|
-
}, null, 8, _hoisted_3$
|
|
8269
|
+
}, null, 8, _hoisted_3$O)) : createCommentVNode("", true)
|
|
8278
8270
|
]) : !unref(tableGlobalData).isEdit && (!row.edit || !_ctx.isEdit) && _ctx.prop ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8279
8271
|
_ctx.type == "image" ? (openBlock(), createBlock(_component_els_image, {
|
|
8280
8272
|
key: 0,
|
|
@@ -8371,7 +8363,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
8371
8363
|
};
|
|
8372
8364
|
}
|
|
8373
8365
|
});
|
|
8374
|
-
const _sfc_main$
|
|
8366
|
+
const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
8375
8367
|
...{ name: "ElsColumnBool" },
|
|
8376
8368
|
__name: "tableColumnBool",
|
|
8377
8369
|
props: tableColumnProps,
|
|
@@ -8379,7 +8371,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
|
8379
8371
|
const props = __props;
|
|
8380
8372
|
const slots = useSlots();
|
|
8381
8373
|
return (_ctx, _cache) => {
|
|
8382
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8374
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, { type: "bool" }), createSlots({ _: 2 }, [
|
|
8383
8375
|
unref(slots).default ? {
|
|
8384
8376
|
name: "default",
|
|
8385
8377
|
fn: withCtx(({ row, $index }) => [
|
|
@@ -8404,7 +8396,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
|
8404
8396
|
};
|
|
8405
8397
|
}
|
|
8406
8398
|
});
|
|
8407
|
-
const _sfc_main$
|
|
8399
|
+
const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
8408
8400
|
...{ name: "ElsColumnCheckbox" },
|
|
8409
8401
|
__name: "tableColumnCheckbox",
|
|
8410
8402
|
props: tableColumnProps,
|
|
@@ -8412,7 +8404,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
8412
8404
|
const props = __props;
|
|
8413
8405
|
const slots = useSlots();
|
|
8414
8406
|
return (_ctx, _cache) => {
|
|
8415
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8407
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, {
|
|
8416
8408
|
type: "selection",
|
|
8417
8409
|
isExport: false
|
|
8418
8410
|
}), createSlots({ _: 2 }, [
|
|
@@ -8440,7 +8432,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
8440
8432
|
};
|
|
8441
8433
|
}
|
|
8442
8434
|
});
|
|
8443
|
-
const _sfc_main$
|
|
8435
|
+
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
8444
8436
|
...{ name: "ElsColumnEnum" },
|
|
8445
8437
|
__name: "tableColumnEnum",
|
|
8446
8438
|
props: tableColumnProps,
|
|
@@ -8448,7 +8440,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
8448
8440
|
const props = __props;
|
|
8449
8441
|
const slots = useSlots();
|
|
8450
8442
|
return (_ctx, _cache) => {
|
|
8451
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8443
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, { type: "enum" }), createSlots({ _: 2 }, [
|
|
8452
8444
|
unref(slots).default ? {
|
|
8453
8445
|
name: "default",
|
|
8454
8446
|
fn: withCtx(({ row, $index }) => [
|
|
@@ -8473,7 +8465,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
8473
8465
|
};
|
|
8474
8466
|
}
|
|
8475
8467
|
});
|
|
8476
|
-
const _sfc_main$
|
|
8468
|
+
const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
8477
8469
|
...{ name: "ElsColumnExpand" },
|
|
8478
8470
|
__name: "tableColumnExpand",
|
|
8479
8471
|
props: tableColumnProps,
|
|
@@ -8481,7 +8473,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
8481
8473
|
const props = __props;
|
|
8482
8474
|
const slots = useSlots();
|
|
8483
8475
|
return (_ctx, _cache) => {
|
|
8484
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8476
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, {
|
|
8485
8477
|
type: "expand",
|
|
8486
8478
|
isExport: false
|
|
8487
8479
|
}), createSlots({ _: 2 }, [
|
|
@@ -8499,7 +8491,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
8499
8491
|
};
|
|
8500
8492
|
}
|
|
8501
8493
|
});
|
|
8502
|
-
const _sfc_main$
|
|
8494
|
+
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
8503
8495
|
...{ name: "ElsColumnHeader" },
|
|
8504
8496
|
__name: "tableColumnHeader",
|
|
8505
8497
|
props: tableColumnProps,
|
|
@@ -8507,7 +8499,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
8507
8499
|
const props = __props;
|
|
8508
8500
|
const slots = useSlots();
|
|
8509
8501
|
return (_ctx, _cache) => {
|
|
8510
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8502
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, { type: "header" }), createSlots({ _: 2 }, [
|
|
8511
8503
|
unref(slots).default ? {
|
|
8512
8504
|
name: "default",
|
|
8513
8505
|
fn: withCtx(({ row, $index }) => [
|
|
@@ -8522,7 +8514,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
8522
8514
|
};
|
|
8523
8515
|
}
|
|
8524
8516
|
});
|
|
8525
|
-
const _sfc_main$
|
|
8517
|
+
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
8526
8518
|
...{ name: "ElsColumnImage" },
|
|
8527
8519
|
__name: "tableColumnImage",
|
|
8528
8520
|
props: tableColumnProps,
|
|
@@ -8530,7 +8522,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
8530
8522
|
const props = __props;
|
|
8531
8523
|
const slots = useSlots();
|
|
8532
8524
|
return (_ctx, _cache) => {
|
|
8533
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8525
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, {
|
|
8534
8526
|
type: "image",
|
|
8535
8527
|
width: "80"
|
|
8536
8528
|
}), createSlots({ _: 2 }, [
|
|
@@ -8558,7 +8550,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
8558
8550
|
};
|
|
8559
8551
|
}
|
|
8560
8552
|
});
|
|
8561
|
-
const _sfc_main$
|
|
8553
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
8562
8554
|
...{ name: "ElsColumnOperate" },
|
|
8563
8555
|
__name: "tableColumnOperate",
|
|
8564
8556
|
props: tableColumnProps,
|
|
@@ -8566,7 +8558,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
8566
8558
|
const props = __props;
|
|
8567
8559
|
const slots = useSlots();
|
|
8568
8560
|
return (_ctx, _cache) => {
|
|
8569
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8561
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, {
|
|
8570
8562
|
label: "操作",
|
|
8571
8563
|
type: "operate",
|
|
8572
8564
|
width: "100",
|
|
@@ -8588,7 +8580,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
8588
8580
|
};
|
|
8589
8581
|
}
|
|
8590
8582
|
});
|
|
8591
|
-
const _sfc_main$
|
|
8583
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
8592
8584
|
...{ name: "ElsColumnSelect" },
|
|
8593
8585
|
__name: "tableColumnSelect",
|
|
8594
8586
|
props: tableColumnProps,
|
|
@@ -8596,7 +8588,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
8596
8588
|
const props = __props;
|
|
8597
8589
|
const slots = useSlots();
|
|
8598
8590
|
return (_ctx, _cache) => {
|
|
8599
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8591
|
+
return openBlock(), createBlock(_sfc_main$1S, mergeProps(props, {
|
|
8600
8592
|
type: "select",
|
|
8601
8593
|
label: "操作",
|
|
8602
8594
|
width: "120",
|
|
@@ -8617,15 +8609,15 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
8617
8609
|
};
|
|
8618
8610
|
}
|
|
8619
8611
|
});
|
|
8620
|
-
const ElsColumn = withInstall(_sfc_main$
|
|
8621
|
-
const ElsColumnBool = withInstall(_sfc_main$
|
|
8622
|
-
const ElsColumnCheckbox = withInstall(_sfc_main$
|
|
8623
|
-
const ElsColumnEnum = withInstall(_sfc_main$
|
|
8624
|
-
const ElsColumnExpand = withInstall(_sfc_main$
|
|
8625
|
-
const ElsColumnHeader = withInstall(_sfc_main$
|
|
8626
|
-
const ElsColumnImage = withInstall(_sfc_main$
|
|
8627
|
-
const ElsColumnOperate = withInstall(_sfc_main$
|
|
8628
|
-
const ElsColumnSelect = withInstall(_sfc_main$
|
|
8612
|
+
const ElsColumn = withInstall(_sfc_main$1S);
|
|
8613
|
+
const ElsColumnBool = withInstall(_sfc_main$1R);
|
|
8614
|
+
const ElsColumnCheckbox = withInstall(_sfc_main$1Q);
|
|
8615
|
+
const ElsColumnEnum = withInstall(_sfc_main$1P);
|
|
8616
|
+
const ElsColumnExpand = withInstall(_sfc_main$1O);
|
|
8617
|
+
const ElsColumnHeader = withInstall(_sfc_main$1N);
|
|
8618
|
+
const ElsColumnImage = withInstall(_sfc_main$1M);
|
|
8619
|
+
const ElsColumnOperate = withInstall(_sfc_main$1L);
|
|
8620
|
+
const ElsColumnSelect = withInstall(_sfc_main$1K);
|
|
8629
8621
|
var defaultProps = {
|
|
8630
8622
|
data: {
|
|
8631
8623
|
type: Array,
|
|
@@ -8947,12 +8939,12 @@ const tableProps = Object.assign({}, defaultProps, buildProps({
|
|
|
8947
8939
|
default: true
|
|
8948
8940
|
}
|
|
8949
8941
|
}));
|
|
8950
|
-
const _hoisted_1$
|
|
8942
|
+
const _hoisted_1$1l = {
|
|
8951
8943
|
key: 0,
|
|
8952
8944
|
class: "select_container"
|
|
8953
8945
|
};
|
|
8954
|
-
const _hoisted_2$
|
|
8955
|
-
const _hoisted_3$
|
|
8946
|
+
const _hoisted_2$16 = { key: 0 };
|
|
8947
|
+
const _hoisted_3$N = {
|
|
8956
8948
|
key: 1,
|
|
8957
8949
|
class: "drag-oper"
|
|
8958
8950
|
};
|
|
@@ -8965,7 +8957,7 @@ const _hoisted_5$p = {
|
|
|
8965
8957
|
class: "pagination-container",
|
|
8966
8958
|
style: { "margin-top": "10px" }
|
|
8967
8959
|
};
|
|
8968
|
-
const _sfc_main$
|
|
8960
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
8969
8961
|
...{ name: "ElsTable", inheritAttrs: false },
|
|
8970
8962
|
__name: "table",
|
|
8971
8963
|
props: tableProps,
|
|
@@ -9904,6 +9896,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
9904
9896
|
if (props.url) {
|
|
9905
9897
|
return readData();
|
|
9906
9898
|
}
|
|
9899
|
+
return Promise.resolve(true);
|
|
9907
9900
|
}
|
|
9908
9901
|
function handleChangePage(val) {
|
|
9909
9902
|
currPageIndex.value = val;
|
|
@@ -10144,7 +10137,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10144
10137
|
const _component_els_menu_context = resolveComponent("els-menu-context");
|
|
10145
10138
|
const _directive_loading = resolveDirective("loading");
|
|
10146
10139
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10147
|
-
_ctx.showCheckField ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10140
|
+
_ctx.showCheckField ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
|
|
10148
10141
|
createVNode(unref(draggable), {
|
|
10149
10142
|
list: unref(tableCheckData).checkRows,
|
|
10150
10143
|
"item-key": dataKey.value.toString(),
|
|
@@ -10158,7 +10151,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10158
10151
|
}, {
|
|
10159
10152
|
default: withCtx(() => [
|
|
10160
10153
|
renderSlot(_ctx.$slots, "checklabel", { checkItem: element }, () => [
|
|
10161
|
-
_ctx.showCheckField ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
10154
|
+
_ctx.showCheckField ? (openBlock(), createElementBlock("span", _hoisted_2$16, toDisplayString(element[_ctx.showCheckField]), 1)) : createCommentVNode("", true)
|
|
10162
10155
|
], true)
|
|
10163
10156
|
]),
|
|
10164
10157
|
_: 2
|
|
@@ -10231,7 +10224,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10231
10224
|
_: 2
|
|
10232
10225
|
}, 1032, ["onClick", "type"])
|
|
10233
10226
|
], 64)) : createCommentVNode("", true),
|
|
10234
|
-
_ctx.dragRow ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
10227
|
+
_ctx.dragRow ? (openBlock(), createElementBlock("div", _hoisted_3$N, [
|
|
10235
10228
|
createVNode(_component_el_icon, { class: "leo-table-drag" }, {
|
|
10236
10229
|
default: withCtx(() => [
|
|
10237
10230
|
createVNode(_component_Rank)
|
|
@@ -10342,7 +10335,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10342
10335
|
};
|
|
10343
10336
|
}
|
|
10344
10337
|
});
|
|
10345
|
-
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10338
|
+
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["__scopeId", "data-v-c269459b"]]);
|
|
10346
10339
|
const ElsTable = withInstall(Table$1);
|
|
10347
10340
|
const treeProps = buildProps({
|
|
10348
10341
|
...formItemProps$1,
|
|
@@ -10515,11 +10508,11 @@ const treeProps = buildProps({
|
|
|
10515
10508
|
*/
|
|
10516
10509
|
load: Function
|
|
10517
10510
|
});
|
|
10518
|
-
const _hoisted_1$
|
|
10519
|
-
const _hoisted_2$
|
|
10520
|
-
const _hoisted_3$
|
|
10511
|
+
const _hoisted_1$1k = { class: "els-node" };
|
|
10512
|
+
const _hoisted_2$15 = { class: "els-tree" };
|
|
10513
|
+
const _hoisted_3$M = ["onDblclick"];
|
|
10521
10514
|
const _hoisted_4$C = ["onDblclick"];
|
|
10522
|
-
const _sfc_main$
|
|
10515
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
10523
10516
|
...{ name: "ElsTree", inheritAttrs: false },
|
|
10524
10517
|
__name: "tree",
|
|
10525
10518
|
props: treeProps,
|
|
@@ -11082,8 +11075,8 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
11082
11075
|
const _component_el_tree_v2 = resolveComponent("el-tree-v2");
|
|
11083
11076
|
const _component_ElsFormNode = resolveComponent("ElsFormNode");
|
|
11084
11077
|
const _directive_loading = resolveDirective("loading");
|
|
11085
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11086
|
-
createElementVNode("div", _hoisted_2$
|
|
11078
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
11079
|
+
createElementVNode("div", _hoisted_2$15, [
|
|
11087
11080
|
createVNode(_component_ElsFormNode, normalizeProps(guardReactiveProps(unref(formNodeProps))), {
|
|
11088
11081
|
default: withCtx(() => [
|
|
11089
11082
|
_ctx.filterable ? (openBlock(), createBlock(_component_el_input, {
|
|
@@ -11136,7 +11129,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
11136
11129
|
}, () => [
|
|
11137
11130
|
createTextVNode(toDisplayString(node.label), 1)
|
|
11138
11131
|
], true)
|
|
11139
|
-
], 42, _hoisted_3$
|
|
11132
|
+
], 42, _hoisted_3$M)) : (openBlock(), createElementBlock("div", {
|
|
11140
11133
|
key: 1,
|
|
11141
11134
|
class: normalizeClass({ "els-tree-selected ": viewData.value && viewData.value[_ctx.valueField] == data.sourceData[_ctx.valueField] })
|
|
11142
11135
|
}, [
|
|
@@ -11212,11 +11205,11 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
11212
11205
|
};
|
|
11213
11206
|
}
|
|
11214
11207
|
});
|
|
11215
|
-
const Tree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11208
|
+
const Tree = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["__scopeId", "data-v-6478f4df"]]);
|
|
11216
11209
|
const ElsTree = withInstall(Tree);
|
|
11217
|
-
const _hoisted_1$
|
|
11218
|
-
const _hoisted_2$
|
|
11219
|
-
const _sfc_main$
|
|
11210
|
+
const _hoisted_1$1j = { class: "els-node" };
|
|
11211
|
+
const _hoisted_2$14 = ["onDblclick"];
|
|
11212
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
11220
11213
|
...{ name: "ElsTreeSelect", inheritAttrs: false },
|
|
11221
11214
|
__name: "treeSelect",
|
|
11222
11215
|
props: treeProps,
|
|
@@ -11707,7 +11700,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11707
11700
|
const _component_el_tree_select = resolveComponent("el-tree-select");
|
|
11708
11701
|
const _component_ElsFormNode = resolveComponent("ElsFormNode");
|
|
11709
11702
|
const _directive_loading = resolveDirective("loading");
|
|
11710
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11703
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1j, [
|
|
11711
11704
|
createVNode(_component_ElsFormNode, normalizeProps(guardReactiveProps(unref(formNodeProps))), {
|
|
11712
11705
|
default: withCtx(() => [
|
|
11713
11706
|
withDirectives((openBlock(), createBlock(_component_el_tree_select, mergeProps({
|
|
@@ -11739,7 +11732,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11739
11732
|
unref(currMultiple) ? (openBlock(), createElementBlock("span", {
|
|
11740
11733
|
key: 0,
|
|
11741
11734
|
onDblclick: ($event) => handleAllSelect(node)
|
|
11742
|
-
}, toDisplayString(node.label), 41, _hoisted_2$
|
|
11735
|
+
}, toDisplayString(node.label), 41, _hoisted_2$14)) : (openBlock(), createElementBlock("span", {
|
|
11743
11736
|
key: 1,
|
|
11744
11737
|
class: normalizeClass({ "els-tree-selected": viewData.value && viewData.value[_ctx.valueField] == data.sourceData[_ctx.valueField] })
|
|
11745
11738
|
}, [
|
|
@@ -11764,7 +11757,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11764
11757
|
};
|
|
11765
11758
|
}
|
|
11766
11759
|
});
|
|
11767
|
-
const TreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11760
|
+
const TreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["__scopeId", "data-v-b31deac0"]]);
|
|
11768
11761
|
const ElsTreeSelect = withInstall(TreeSelect);
|
|
11769
11762
|
const menuProps = buildProps({
|
|
11770
11763
|
...menuProps$1,
|
|
@@ -11833,11 +11826,11 @@ const menuEmits = {
|
|
|
11833
11826
|
click: (item) => {
|
|
11834
11827
|
}
|
|
11835
11828
|
};
|
|
11836
|
-
const _hoisted_1$
|
|
11829
|
+
const _hoisted_1$1i = {
|
|
11837
11830
|
key: 0,
|
|
11838
11831
|
class: "menu-filterable"
|
|
11839
11832
|
};
|
|
11840
|
-
const _sfc_main$
|
|
11833
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
11841
11834
|
...{ name: "ElsMenu", inheritAttrs: false },
|
|
11842
11835
|
__name: "menu",
|
|
11843
11836
|
props: menuProps,
|
|
@@ -12070,7 +12063,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
12070
12063
|
default: withCtx(() => [
|
|
12071
12064
|
createVNode(_component_el_collapse_transition, null, {
|
|
12072
12065
|
default: withCtx(() => [
|
|
12073
|
-
_ctx.filterable && (_ctx.url || _ctx.data) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12066
|
+
_ctx.filterable && (_ctx.url || _ctx.data) ? (openBlock(), createElementBlock("span", _hoisted_1$1i, [
|
|
12074
12067
|
createVNode(_component_el_input, {
|
|
12075
12068
|
modelValue: searchKey.value,
|
|
12076
12069
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
|
|
@@ -12097,7 +12090,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
12097
12090
|
};
|
|
12098
12091
|
}
|
|
12099
12092
|
});
|
|
12100
|
-
const ElsMenu = withInstall(_sfc_main$
|
|
12093
|
+
const ElsMenu = withInstall(_sfc_main$1G);
|
|
12101
12094
|
const menuItemProps = buildProps({
|
|
12102
12095
|
...menuItemProps$1,
|
|
12103
12096
|
/**
|
|
@@ -12113,10 +12106,10 @@ const menuItemProps = buildProps({
|
|
|
12113
12106
|
type: Object
|
|
12114
12107
|
}
|
|
12115
12108
|
});
|
|
12116
|
-
const _hoisted_1$
|
|
12117
|
-
const _hoisted_2$
|
|
12118
|
-
const _hoisted_3$
|
|
12119
|
-
const _sfc_main$
|
|
12109
|
+
const _hoisted_1$1h = ["title"];
|
|
12110
|
+
const _hoisted_2$13 = ["title"];
|
|
12111
|
+
const _hoisted_3$L = ["title"];
|
|
12112
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
12120
12113
|
...{ name: "ElsMenuItem", inheritAttrs: false },
|
|
12121
12114
|
__name: "menuItem",
|
|
12122
12115
|
props: menuItemProps,
|
|
@@ -12151,7 +12144,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
12151
12144
|
_ctx.item.label ? (openBlock(), createElementBlock("span", {
|
|
12152
12145
|
key: 0,
|
|
12153
12146
|
title: _ctx.item.label
|
|
12154
|
-
}, toDisplayString(_ctx.item.label), 9, _hoisted_1$
|
|
12147
|
+
}, toDisplayString(_ctx.item.label), 9, _hoisted_1$1h)) : createCommentVNode("", true)
|
|
12155
12148
|
]),
|
|
12156
12149
|
default: withCtx(() => [
|
|
12157
12150
|
_ctx.item.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
@@ -12180,7 +12173,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
12180
12173
|
_ctx.item.label ? (openBlock(), createElementBlock("span", {
|
|
12181
12174
|
key: 0,
|
|
12182
12175
|
title: _ctx.item.label
|
|
12183
|
-
}, toDisplayString(_ctx.item.label), 9, _hoisted_2$
|
|
12176
|
+
}, toDisplayString(_ctx.item.label), 9, _hoisted_2$13)) : createCommentVNode("", true)
|
|
12184
12177
|
], 2)
|
|
12185
12178
|
]),
|
|
12186
12179
|
default: withCtx(() => [
|
|
@@ -12200,7 +12193,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
12200
12193
|
citem.label ? (openBlock(), createElementBlock("span", {
|
|
12201
12194
|
key: 0,
|
|
12202
12195
|
title: citem.label
|
|
12203
|
-
}, toDisplayString(citem.label), 9, _hoisted_3$
|
|
12196
|
+
}, toDisplayString(citem.label), 9, _hoisted_3$L)) : createCommentVNode("", true)
|
|
12204
12197
|
]),
|
|
12205
12198
|
default: withCtx(() => [
|
|
12206
12199
|
citem.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
@@ -12221,7 +12214,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
12221
12214
|
};
|
|
12222
12215
|
}
|
|
12223
12216
|
});
|
|
12224
|
-
const ElsMenuItem = withInstall(_sfc_main$
|
|
12217
|
+
const ElsMenuItem = withInstall(_sfc_main$1F);
|
|
12225
12218
|
const subMenuProps = buildProps({
|
|
12226
12219
|
...subMenuProps$1,
|
|
12227
12220
|
/**
|
|
@@ -12229,7 +12222,7 @@ const subMenuProps = buildProps({
|
|
|
12229
12222
|
*/
|
|
12230
12223
|
title: String
|
|
12231
12224
|
});
|
|
12232
|
-
const _sfc_main$
|
|
12225
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
12233
12226
|
...{ name: "ElsSubMenu", inheritAttrs: false },
|
|
12234
12227
|
__name: "subMenu",
|
|
12235
12228
|
props: subMenuProps,
|
|
@@ -12251,7 +12244,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
12251
12244
|
};
|
|
12252
12245
|
}
|
|
12253
12246
|
});
|
|
12254
|
-
const ElsMenuSub = withInstall(_sfc_main$
|
|
12247
|
+
const ElsMenuSub = withInstall(_sfc_main$1E);
|
|
12255
12248
|
const switchProps = buildProps({
|
|
12256
12249
|
...formItemProps$1,
|
|
12257
12250
|
...switchProps$1,
|
|
@@ -12274,7 +12267,7 @@ const switchProps = buildProps({
|
|
|
12274
12267
|
default: 0
|
|
12275
12268
|
}
|
|
12276
12269
|
});
|
|
12277
|
-
const _sfc_main$
|
|
12270
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
12278
12271
|
...{
|
|
12279
12272
|
name: "ElsSwitch",
|
|
12280
12273
|
inheritAttrs: false
|
|
@@ -12326,7 +12319,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
12326
12319
|
};
|
|
12327
12320
|
}
|
|
12328
12321
|
});
|
|
12329
|
-
const ElsSwitch = withInstall(_sfc_main$
|
|
12322
|
+
const ElsSwitch = withInstall(_sfc_main$1D);
|
|
12330
12323
|
const imageProps = buildProps({
|
|
12331
12324
|
...imageProps$1,
|
|
12332
12325
|
/**
|
|
@@ -12384,12 +12377,12 @@ const imageProps = buildProps({
|
|
|
12384
12377
|
*/
|
|
12385
12378
|
onSwitch: Function
|
|
12386
12379
|
});
|
|
12387
|
-
const _hoisted_1$
|
|
12380
|
+
const _hoisted_1$1g = {
|
|
12388
12381
|
key: 0,
|
|
12389
12382
|
class: "leo_image_empty"
|
|
12390
12383
|
};
|
|
12391
|
-
const _hoisted_2$
|
|
12392
|
-
const _hoisted_3$
|
|
12384
|
+
const _hoisted_2$12 = ["width"];
|
|
12385
|
+
const _hoisted_3$K = /* @__PURE__ */ createElementVNode("path", {
|
|
12393
12386
|
d: "M345.15968 357.80096a48.54784 48.54784 0 1 0 48.52736 48.54784 48.58368 48.58368 0 0 0-48.52736-48.54784zM844.68736 174.08H184.43264A102.656 102.656 0 0 0 81.92 276.64896v470.70208A102.656 102.656 0 0 0 184.43264 849.92h660.25472A102.65088 102.65088 0 0 0 947.2 747.35104V276.64896A102.65088 102.65088 0 0 0 844.68736 174.08zM345.15968 295.02976a111.32416 111.32416 0 1 1-111.2576 111.31904 111.42144 111.42144 0 0 1 111.2576-111.31904z m-72.45312 444.544l-42.496-46.17728 174.71488-161.0496L483.88096 611.328l-44.35968 44.39552-36.38272-36.4032z m517.6064-25.12896l-134.55872-151.552-171.12064 183.42912L438.784 703.488l218.112-233.82016 180.3264 203.10016z",
|
|
12394
12387
|
fill: "#7da3cc",
|
|
12395
12388
|
"p-id": "4593",
|
|
@@ -12397,10 +12390,10 @@ const _hoisted_3$L = /* @__PURE__ */ createElementVNode("path", {
|
|
|
12397
12390
|
class: "selected"
|
|
12398
12391
|
}, null, -1);
|
|
12399
12392
|
const _hoisted_4$B = [
|
|
12400
|
-
_hoisted_3$
|
|
12393
|
+
_hoisted_3$K
|
|
12401
12394
|
];
|
|
12402
12395
|
const _hoisted_5$o = ["innerHTML"];
|
|
12403
|
-
const _sfc_main$
|
|
12396
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
12404
12397
|
...{ name: "ElsImage", inheritAttrs: false },
|
|
12405
12398
|
__name: "image",
|
|
12406
12399
|
props: imageProps,
|
|
@@ -12449,7 +12442,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
12449
12442
|
const _component_el_image = resolveComponent("el-image");
|
|
12450
12443
|
const _component_els_image_viewer = resolveComponent("els-image-viewer");
|
|
12451
12444
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
12452
|
-
!_ctx.url ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12445
|
+
!_ctx.url ? (openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
12453
12446
|
(openBlock(), createElementBlock("svg", {
|
|
12454
12447
|
t: "1626166549727",
|
|
12455
12448
|
class: "icon",
|
|
@@ -12458,7 +12451,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
12458
12451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12459
12452
|
"p-id": "4592",
|
|
12460
12453
|
width: _ctx.width
|
|
12461
|
-
}, _hoisted_4$B, 8, _hoisted_2$
|
|
12454
|
+
}, _hoisted_4$B, 8, _hoisted_2$12)),
|
|
12462
12455
|
_ctx.emptyDesc ? (openBlock(), createElementBlock("div", {
|
|
12463
12456
|
key: 0,
|
|
12464
12457
|
innerHTML: _ctx.emptyDesc,
|
|
@@ -12508,7 +12501,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
12508
12501
|
};
|
|
12509
12502
|
}
|
|
12510
12503
|
});
|
|
12511
|
-
const ElsImage = withInstall(_sfc_main$
|
|
12504
|
+
const ElsImage = withInstall(_sfc_main$1C);
|
|
12512
12505
|
const imageViewerProps = buildProps({
|
|
12513
12506
|
...imageViewerProps$1,
|
|
12514
12507
|
/**
|
|
@@ -12529,7 +12522,7 @@ const imageViewerProps = buildProps({
|
|
|
12529
12522
|
default: "$"
|
|
12530
12523
|
}
|
|
12531
12524
|
});
|
|
12532
|
-
const _sfc_main$
|
|
12525
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
12533
12526
|
...{ name: "ElsImageViewer", inheritAttrs: false },
|
|
12534
12527
|
__name: "imageViewer",
|
|
12535
12528
|
props: imageViewerProps,
|
|
@@ -12619,7 +12612,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
12619
12612
|
};
|
|
12620
12613
|
}
|
|
12621
12614
|
});
|
|
12622
|
-
const ElsImageViewer = withInstall(_sfc_main$
|
|
12615
|
+
const ElsImageViewer = withInstall(_sfc_main$1B);
|
|
12623
12616
|
const autocompleteProps = buildProps({
|
|
12624
12617
|
...formItemProps$1,
|
|
12625
12618
|
...autocompleteProps$1,
|
|
@@ -12654,7 +12647,7 @@ const autocompleteProps = buildProps({
|
|
|
12654
12647
|
remote: Boolean,
|
|
12655
12648
|
fetchSuggestions: Function
|
|
12656
12649
|
});
|
|
12657
|
-
const _sfc_main$
|
|
12650
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
12658
12651
|
...{ name: "ElsAutocomplete", inheritAttrs: false },
|
|
12659
12652
|
__name: "autocomplete",
|
|
12660
12653
|
props: autocompleteProps,
|
|
@@ -12769,7 +12762,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
12769
12762
|
};
|
|
12770
12763
|
}
|
|
12771
12764
|
});
|
|
12772
|
-
const ElsAutocomplete = withInstall(_sfc_main$
|
|
12765
|
+
const ElsAutocomplete = withInstall(_sfc_main$1A);
|
|
12773
12766
|
const cascaderProps = buildProps({
|
|
12774
12767
|
...formItemProps$1,
|
|
12775
12768
|
...cascaderProps$1,
|
|
@@ -12919,7 +12912,7 @@ const cascaderProps = buildProps({
|
|
|
12919
12912
|
*/
|
|
12920
12913
|
onChange: Function
|
|
12921
12914
|
});
|
|
12922
|
-
const _sfc_main$
|
|
12915
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
12923
12916
|
...{ name: "ElsCascader", inheritAttrs: false },
|
|
12924
12917
|
__name: "cascader",
|
|
12925
12918
|
props: cascaderProps,
|
|
@@ -13167,8 +13160,8 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
13167
13160
|
};
|
|
13168
13161
|
}
|
|
13169
13162
|
});
|
|
13170
|
-
const ElsCascader = withInstall(_sfc_main$
|
|
13171
|
-
const _sfc_main$
|
|
13163
|
+
const ElsCascader = withInstall(_sfc_main$1z);
|
|
13164
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
13172
13165
|
...{ name: "ElsCascaderPanel" },
|
|
13173
13166
|
__name: "cascaderPannel",
|
|
13174
13167
|
props: cascaderProps,
|
|
@@ -13187,7 +13180,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
13187
13180
|
selectValue.value = val;
|
|
13188
13181
|
}, { immediate: true });
|
|
13189
13182
|
return (_ctx, _cache) => {
|
|
13190
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13183
|
+
return openBlock(), createBlock(_sfc_main$1z, mergeProps({
|
|
13191
13184
|
modelValue: selectValue.value,
|
|
13192
13185
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectValue.value = $event)
|
|
13193
13186
|
}, props, { isPanel: true }), {
|
|
@@ -13207,7 +13200,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
13207
13200
|
};
|
|
13208
13201
|
}
|
|
13209
13202
|
});
|
|
13210
|
-
const ElsCascaderPanel = withInstall(_sfc_main$
|
|
13203
|
+
const ElsCascaderPanel = withInstall(_sfc_main$1y);
|
|
13211
13204
|
const dialogProps = buildProps({
|
|
13212
13205
|
...dialogProps$1,
|
|
13213
13206
|
/**
|
|
@@ -13257,9 +13250,9 @@ const dialogProps = buildProps({
|
|
|
13257
13250
|
*/
|
|
13258
13251
|
cancel: Function
|
|
13259
13252
|
});
|
|
13260
|
-
const _hoisted_1$
|
|
13261
|
-
const _hoisted_2$
|
|
13262
|
-
const _sfc_main$
|
|
13253
|
+
const _hoisted_1$1f = ["src"];
|
|
13254
|
+
const _hoisted_2$11 = ["src"];
|
|
13255
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
13263
13256
|
...{
|
|
13264
13257
|
name: "ElsDialog"
|
|
13265
13258
|
},
|
|
@@ -13403,7 +13396,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
13403
13396
|
src: dialogUrl.value,
|
|
13404
13397
|
frameborder: "0",
|
|
13405
13398
|
style: normalizeStyle(contentStyle.value)
|
|
13406
|
-
}, null, 12, _hoisted_1$
|
|
13399
|
+
}, null, 12, _hoisted_1$1f)) : createCommentVNode("", true)
|
|
13407
13400
|
])
|
|
13408
13401
|
], 4)), [
|
|
13409
13402
|
[_directive_loading, pageLoading.value]
|
|
@@ -13437,7 +13430,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
13437
13430
|
src: dialogUrl.value,
|
|
13438
13431
|
frameborder: "0",
|
|
13439
13432
|
style: normalizeStyle(contentStyle.value)
|
|
13440
|
-
}, null, 12, _hoisted_2$
|
|
13433
|
+
}, null, 12, _hoisted_2$11)) : createCommentVNode("", true)
|
|
13441
13434
|
])
|
|
13442
13435
|
], 4)), [
|
|
13443
13436
|
[_directive_loading, pageLoading.value]
|
|
@@ -13489,9 +13482,9 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
13489
13482
|
};
|
|
13490
13483
|
}
|
|
13491
13484
|
});
|
|
13492
|
-
const ElsDialog = withInstall(_sfc_main$
|
|
13493
|
-
const _hoisted_1$
|
|
13494
|
-
const _sfc_main$
|
|
13485
|
+
const ElsDialog = withInstall(_sfc_main$1x);
|
|
13486
|
+
const _hoisted_1$1e = ["src"];
|
|
13487
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
13495
13488
|
...{
|
|
13496
13489
|
name: "ElsDrawer"
|
|
13497
13490
|
},
|
|
@@ -13556,7 +13549,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
13556
13549
|
src: _ctx.url,
|
|
13557
13550
|
frameborder: "0",
|
|
13558
13551
|
style: { "height": "calc(100vh - 48px)", "width": "100%" }
|
|
13559
|
-
}, null, 8, _hoisted_1$
|
|
13552
|
+
}, null, 8, _hoisted_1$1e)) : createCommentVNode("", true)
|
|
13560
13553
|
])
|
|
13561
13554
|
]),
|
|
13562
13555
|
_: 2
|
|
@@ -13594,7 +13587,7 @@ const drawerProps = buildProps({
|
|
|
13594
13587
|
*/
|
|
13595
13588
|
initBody: Boolean
|
|
13596
13589
|
});
|
|
13597
|
-
const ElsDrawer = withInstall(_sfc_main$
|
|
13590
|
+
const ElsDrawer = withInstall(_sfc_main$1w);
|
|
13598
13591
|
const dropdownProps = buildProps({
|
|
13599
13592
|
...dropdownProps$1,
|
|
13600
13593
|
/**
|
|
@@ -13652,10 +13645,10 @@ const dropdownProps = buildProps({
|
|
|
13652
13645
|
*/
|
|
13653
13646
|
placeholder: String
|
|
13654
13647
|
});
|
|
13655
|
-
const _hoisted_1$
|
|
13656
|
-
const _hoisted_2$
|
|
13657
|
-
const _hoisted_3$
|
|
13658
|
-
const _sfc_main$
|
|
13648
|
+
const _hoisted_1$1d = { class: "el-dropdown-link" };
|
|
13649
|
+
const _hoisted_2$10 = ["innerHTML"];
|
|
13650
|
+
const _hoisted_3$J = ["innerHTML"];
|
|
13651
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
13659
13652
|
...{
|
|
13660
13653
|
name: "ElsDropdown"
|
|
13661
13654
|
},
|
|
@@ -13819,8 +13812,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
13819
13812
|
]),
|
|
13820
13813
|
default: withCtx(() => [
|
|
13821
13814
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
13822
|
-
createElementVNode("span", _hoisted_1$
|
|
13823
|
-
createElementVNode("span", { innerHTML: showTitle.value }, null, 8, _hoisted_2$
|
|
13815
|
+
createElementVNode("span", _hoisted_1$1d, [
|
|
13816
|
+
createElementVNode("span", { innerHTML: showTitle.value }, null, 8, _hoisted_2$10),
|
|
13824
13817
|
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
13825
13818
|
default: withCtx(() => [
|
|
13826
13819
|
createVNode(_component_arrow_down)
|
|
@@ -13848,7 +13841,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
13848
13841
|
name: "title",
|
|
13849
13842
|
fn: withCtx(() => [
|
|
13850
13843
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
13851
|
-
createElementVNode("span", { innerHTML: _ctx.title }, null, 8, _hoisted_3$
|
|
13844
|
+
createElementVNode("span", { innerHTML: _ctx.title }, null, 8, _hoisted_3$J)
|
|
13852
13845
|
])
|
|
13853
13846
|
]),
|
|
13854
13847
|
key: "0"
|
|
@@ -13857,11 +13850,11 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
13857
13850
|
};
|
|
13858
13851
|
}
|
|
13859
13852
|
});
|
|
13860
|
-
const _hoisted_1$
|
|
13853
|
+
const _hoisted_1$1c = {
|
|
13861
13854
|
key: 0,
|
|
13862
13855
|
class: "els-dropdown-group"
|
|
13863
13856
|
};
|
|
13864
|
-
const _sfc_main$
|
|
13857
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
13865
13858
|
...{
|
|
13866
13859
|
name: "ElsDropdownGroup",
|
|
13867
13860
|
inheritAttrs: false
|
|
@@ -13877,7 +13870,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
13877
13870
|
});
|
|
13878
13871
|
return (_ctx, _cache) => {
|
|
13879
13872
|
const _component_van_dropdown_menu = resolveComponent("van-dropdown-menu");
|
|
13880
|
-
return !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13873
|
+
return !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
13881
13874
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13882
13875
|
])) : (openBlock(), createBlock(_component_van_dropdown_menu, normalizeProps(mergeProps({ key: 1 }, unref(attrs))), {
|
|
13883
13876
|
default: withCtx(() => [
|
|
@@ -13888,8 +13881,8 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
13888
13881
|
};
|
|
13889
13882
|
}
|
|
13890
13883
|
});
|
|
13891
|
-
const DropdownGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13892
|
-
const ElsDropdown = withInstall(_sfc_main$
|
|
13884
|
+
const DropdownGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-427e7d46"]]);
|
|
13885
|
+
const ElsDropdown = withInstall(_sfc_main$1v);
|
|
13893
13886
|
const ElsDropdownGroup = withInstall(DropdownGroup);
|
|
13894
13887
|
const sliderProps = buildProps({
|
|
13895
13888
|
...formItemProps$1,
|
|
@@ -13902,7 +13895,7 @@ const sliderProps = buildProps({
|
|
|
13902
13895
|
default: ","
|
|
13903
13896
|
}
|
|
13904
13897
|
});
|
|
13905
|
-
const _sfc_main$
|
|
13898
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
13906
13899
|
...{ name: "ElsSlider", inheritAttrs: false },
|
|
13907
13900
|
__name: "slider",
|
|
13908
13901
|
props: sliderProps,
|
|
@@ -13948,14 +13941,14 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
13948
13941
|
};
|
|
13949
13942
|
}
|
|
13950
13943
|
});
|
|
13951
|
-
const ElsSlider = withInstall(_sfc_main$
|
|
13944
|
+
const ElsSlider = withInstall(_sfc_main$1t);
|
|
13952
13945
|
const inputNumberProps = buildProps({
|
|
13953
13946
|
...formItemProps$1,
|
|
13954
13947
|
...inputNumberProps$1,
|
|
13955
13948
|
modelValue: Number,
|
|
13956
13949
|
width: String
|
|
13957
13950
|
});
|
|
13958
|
-
const _sfc_main$
|
|
13951
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
13959
13952
|
...{
|
|
13960
13953
|
name: "ElsInputNumber",
|
|
13961
13954
|
inheritAttrs: false
|
|
@@ -14013,7 +14006,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
14013
14006
|
};
|
|
14014
14007
|
}
|
|
14015
14008
|
});
|
|
14016
|
-
const ElsInputNumber = withInstall(_sfc_main$
|
|
14009
|
+
const ElsInputNumber = withInstall(_sfc_main$1s);
|
|
14017
14010
|
const uploadProps = buildProps({
|
|
14018
14011
|
...formItemProps$1,
|
|
14019
14012
|
...uploadProps$1,
|
|
@@ -14134,16 +14127,16 @@ const uploadProps = buildProps({
|
|
|
14134
14127
|
default: void 0
|
|
14135
14128
|
}
|
|
14136
14129
|
});
|
|
14137
|
-
const _hoisted_1$
|
|
14130
|
+
const _hoisted_1$1b = {
|
|
14138
14131
|
key: 0,
|
|
14139
14132
|
class: "els_upload_container"
|
|
14140
14133
|
};
|
|
14141
|
-
const _hoisted_2
|
|
14142
|
-
const _hoisted_3$
|
|
14134
|
+
const _hoisted_2$$ = { class: "elsupload-img" };
|
|
14135
|
+
const _hoisted_3$I = ["src"];
|
|
14143
14136
|
const _hoisted_4$A = { class: "els_upload-menus" };
|
|
14144
14137
|
const _hoisted_5$n = ["width", "height", "src"];
|
|
14145
14138
|
const _hoisted_6$h = { class: "els_upload-menus" };
|
|
14146
|
-
const _sfc_main$
|
|
14139
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
14147
14140
|
...{
|
|
14148
14141
|
name: "ElsUpload",
|
|
14149
14142
|
inheritAttrs: false
|
|
@@ -14452,7 +14445,7 @@ ${res[apiConfig.$messageField]}` });
|
|
|
14452
14445
|
childType: "Upload"
|
|
14453
14446
|
}), {
|
|
14454
14447
|
default: withCtx(() => [
|
|
14455
|
-
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14448
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
14456
14449
|
createVNode(_component_el_upload, mergeProps({
|
|
14457
14450
|
ref_key: "fileUpload",
|
|
14458
14451
|
ref: fileUpload
|
|
@@ -14504,11 +14497,11 @@ ${res[apiConfig.$messageField]}` });
|
|
|
14504
14497
|
style: normalizeStyle([{ width: _ctx.width.appendPx() }, { height: _ctx.height.appendPx() }])
|
|
14505
14498
|
}, null, 8, ["percentage", "style"])) : createCommentVNode("", true)
|
|
14506
14499
|
], 64)) : fileUrl.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
14507
|
-
createElementVNode("span", _hoisted_2
|
|
14500
|
+
createElementVNode("span", _hoisted_2$$, [
|
|
14508
14501
|
createElementVNode("img", {
|
|
14509
14502
|
src: fileUrl.value,
|
|
14510
14503
|
class: "avatar"
|
|
14511
|
-
}, null, 8, _hoisted_3$
|
|
14504
|
+
}, null, 8, _hoisted_3$I)
|
|
14512
14505
|
]),
|
|
14513
14506
|
createElementVNode("div", _hoisted_4$A, [
|
|
14514
14507
|
createVNode(_component_el_icon, {
|
|
@@ -14685,7 +14678,7 @@ ${res[apiConfig.$messageField]}` });
|
|
|
14685
14678
|
};
|
|
14686
14679
|
}
|
|
14687
14680
|
});
|
|
14688
|
-
const Upload$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14681
|
+
const Upload$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-901f97aa"]]);
|
|
14689
14682
|
const ElsUpload = withInstall(Upload$1);
|
|
14690
14683
|
const timePickerProps = buildProps({
|
|
14691
14684
|
...formItemProps$1,
|
|
@@ -14762,7 +14755,7 @@ const timePickerProps = buildProps({
|
|
|
14762
14755
|
default: "Date"
|
|
14763
14756
|
}
|
|
14764
14757
|
});
|
|
14765
|
-
const _sfc_main$
|
|
14758
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
14766
14759
|
...{
|
|
14767
14760
|
name: "ElsTimePicker",
|
|
14768
14761
|
inheritAttrs: false
|
|
@@ -14997,7 +14990,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
14997
14990
|
};
|
|
14998
14991
|
}
|
|
14999
14992
|
});
|
|
15000
|
-
const ElsTimePicker = withInstall(_sfc_main$
|
|
14993
|
+
const ElsTimePicker = withInstall(_sfc_main$1q);
|
|
15001
14994
|
const timePickerRangeProps = buildProps({
|
|
15002
14995
|
...timePickerProps,
|
|
15003
14996
|
/**
|
|
@@ -15023,7 +15016,7 @@ const timePickerRangeProps = buildProps({
|
|
|
15023
15016
|
default: true
|
|
15024
15017
|
}
|
|
15025
15018
|
});
|
|
15026
|
-
const _sfc_main$
|
|
15019
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
15027
15020
|
...{ name: "ElsTimePickerRange", inheritAttrs: false },
|
|
15028
15021
|
__name: "timePickerRange",
|
|
15029
15022
|
props: timePickerRangeProps,
|
|
@@ -15107,7 +15100,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
15107
15100
|
};
|
|
15108
15101
|
}
|
|
15109
15102
|
});
|
|
15110
|
-
const ElsTimePickerRange = withInstall(_sfc_main$
|
|
15103
|
+
const ElsTimePickerRange = withInstall(_sfc_main$1p);
|
|
15111
15104
|
const datePickerProps = buildProps({
|
|
15112
15105
|
...formItemProps$1,
|
|
15113
15106
|
...datePickerProps$1,
|
|
@@ -15170,7 +15163,7 @@ const datePickerProps = buildProps({
|
|
|
15170
15163
|
type: [String, Array]
|
|
15171
15164
|
}
|
|
15172
15165
|
});
|
|
15173
|
-
const _sfc_main$
|
|
15166
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
15174
15167
|
...{ name: "ElsDatePicker", inheritAttrs: false },
|
|
15175
15168
|
__name: "datePicker",
|
|
15176
15169
|
props: datePickerProps,
|
|
@@ -15637,7 +15630,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
15637
15630
|
};
|
|
15638
15631
|
}
|
|
15639
15632
|
});
|
|
15640
|
-
const ElsDatePicker = withInstall(_sfc_main$
|
|
15633
|
+
const ElsDatePicker = withInstall(_sfc_main$1o);
|
|
15641
15634
|
const datePickerRangeProps = buildProps({
|
|
15642
15635
|
...datePickerProps,
|
|
15643
15636
|
type: { type: String, default: "date" },
|
|
@@ -15677,7 +15670,7 @@ const datePickerRangeProps = buildProps({
|
|
|
15677
15670
|
type: Array
|
|
15678
15671
|
}
|
|
15679
15672
|
});
|
|
15680
|
-
const _sfc_main$
|
|
15673
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
15681
15674
|
...{ name: "ElsDatePickerRange", inheritAttrs: false },
|
|
15682
15675
|
__name: "datePickerRange",
|
|
15683
15676
|
props: datePickerRangeProps,
|
|
@@ -15745,12 +15738,12 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
15745
15738
|
};
|
|
15746
15739
|
}
|
|
15747
15740
|
});
|
|
15748
|
-
const ElsDatePickerRange = withInstall(_sfc_main$
|
|
15741
|
+
const ElsDatePickerRange = withInstall(_sfc_main$1n);
|
|
15749
15742
|
const collapseTransitionProps = buildProps({
|
|
15750
15743
|
visible: Boolean
|
|
15751
15744
|
});
|
|
15752
|
-
const _hoisted_1$
|
|
15753
|
-
const _sfc_main$
|
|
15745
|
+
const _hoisted_1$1a = { key: 0 };
|
|
15746
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
15754
15747
|
...{ name: "ElsCollapseTransition" },
|
|
15755
15748
|
__name: "collapseTransition",
|
|
15756
15749
|
props: collapseTransitionProps,
|
|
@@ -15759,7 +15752,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
15759
15752
|
const _component_el_collapse_transition = resolveComponent("el-collapse-transition");
|
|
15760
15753
|
return openBlock(), createBlock(_component_el_collapse_transition, null, {
|
|
15761
15754
|
default: withCtx(() => [
|
|
15762
|
-
_ctx.visible ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15755
|
+
_ctx.visible ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
15763
15756
|
renderSlot(_ctx.$slots, "default")
|
|
15764
15757
|
])) : createCommentVNode("", true)
|
|
15765
15758
|
]),
|
|
@@ -15768,7 +15761,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
15768
15761
|
};
|
|
15769
15762
|
}
|
|
15770
15763
|
});
|
|
15771
|
-
const ElsCollapseTransition = withInstall(_sfc_main$
|
|
15764
|
+
const ElsCollapseTransition = withInstall(_sfc_main$1m);
|
|
15772
15765
|
const tabsProps = buildProps({
|
|
15773
15766
|
...tabsProps$1,
|
|
15774
15767
|
/**
|
|
@@ -15849,11 +15842,11 @@ const tabsProps = buildProps({
|
|
|
15849
15842
|
default: "未知选项"
|
|
15850
15843
|
}
|
|
15851
15844
|
});
|
|
15852
|
-
const _hoisted_1$
|
|
15845
|
+
const _hoisted_1$19 = {
|
|
15853
15846
|
class: "els-node",
|
|
15854
15847
|
style: { "--margin-bottom": "0px" }
|
|
15855
15848
|
};
|
|
15856
|
-
const _sfc_main$
|
|
15849
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
15857
15850
|
...{
|
|
15858
15851
|
name: "ElsTabs",
|
|
15859
15852
|
inheritAttrs: false
|
|
@@ -16078,7 +16071,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
16078
16071
|
return (_ctx, _cache) => {
|
|
16079
16072
|
const _component_els_option = resolveComponent("els-option");
|
|
16080
16073
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
16081
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16074
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
16082
16075
|
createVNode(_component_el_tabs, mergeProps({
|
|
16083
16076
|
modelValue: selectValue.value,
|
|
16084
16077
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
@@ -16139,7 +16132,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
16139
16132
|
};
|
|
16140
16133
|
}
|
|
16141
16134
|
});
|
|
16142
|
-
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16135
|
+
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-4df87fae"]]);
|
|
16143
16136
|
const ElsTabs = withInstall(Tabs);
|
|
16144
16137
|
const colorPickerProps = buildProps({
|
|
16145
16138
|
...formItemProps$1,
|
|
@@ -16156,9 +16149,9 @@ const colorPickerProps = buildProps({
|
|
|
16156
16149
|
default: "150px"
|
|
16157
16150
|
}
|
|
16158
16151
|
});
|
|
16159
|
-
const _hoisted_1$
|
|
16160
|
-
const _hoisted_2
|
|
16161
|
-
const _sfc_main$
|
|
16152
|
+
const _hoisted_1$18 = { class: "els-node" };
|
|
16153
|
+
const _hoisted_2$_ = { class: "els-color-picker" };
|
|
16154
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
16162
16155
|
...{
|
|
16163
16156
|
name: "ElsColorPicker",
|
|
16164
16157
|
inheritAttrs: false
|
|
@@ -16185,13 +16178,13 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
16185
16178
|
const _component_el_input = resolveComponent("el-input");
|
|
16186
16179
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
16187
16180
|
const _component_ElsFormNode = resolveComponent("ElsFormNode");
|
|
16188
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16181
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
16189
16182
|
createVNode(_component_ElsFormNode, mergeProps(unref(formNodeProps), {
|
|
16190
16183
|
ref_key: "formNode",
|
|
16191
16184
|
ref: formNode
|
|
16192
16185
|
}), {
|
|
16193
16186
|
default: withCtx(() => [
|
|
16194
|
-
createElementVNode("div", _hoisted_2
|
|
16187
|
+
createElementVNode("div", _hoisted_2$_, [
|
|
16195
16188
|
createVNode(_component_el_input, {
|
|
16196
16189
|
modelValue: currValue.value,
|
|
16197
16190
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currValue.value = $event),
|
|
@@ -16209,7 +16202,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
16209
16202
|
};
|
|
16210
16203
|
}
|
|
16211
16204
|
});
|
|
16212
|
-
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16205
|
+
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-f6b8402e"]]);
|
|
16213
16206
|
const ElsColorPicker = withInstall(ColorPicker);
|
|
16214
16207
|
const menuContextProps = buildProps({
|
|
16215
16208
|
/**
|
|
@@ -16238,9 +16231,9 @@ const menuContextProps = buildProps({
|
|
|
16238
16231
|
*/
|
|
16239
16232
|
onClick: Function
|
|
16240
16233
|
});
|
|
16241
|
-
const _hoisted_1$
|
|
16242
|
-
const _hoisted_2$
|
|
16243
|
-
const _sfc_main$
|
|
16234
|
+
const _hoisted_1$17 = ["onClick"];
|
|
16235
|
+
const _hoisted_2$Z = { class: "els-context-info" };
|
|
16236
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
16244
16237
|
...{ name: "ElsMenuContext", inheritAttrs: false },
|
|
16245
16238
|
__name: "menuContext",
|
|
16246
16239
|
props: /* @__PURE__ */ mergeModels(menuContextProps, {
|
|
@@ -16307,8 +16300,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16307
16300
|
createElementVNode("i", {
|
|
16308
16301
|
class: normalizeClass(item[unref(iconFieldname)])
|
|
16309
16302
|
}, null, 2),
|
|
16310
|
-
createElementVNode("span", _hoisted_2$
|
|
16311
|
-
], 8, _hoisted_1$
|
|
16303
|
+
createElementVNode("span", _hoisted_2$Z, toDisplayString(item[unref(nameFieldname)]), 1)
|
|
16304
|
+
], 8, _hoisted_1$17);
|
|
16312
16305
|
}), 128))
|
|
16313
16306
|
], 6)), [
|
|
16314
16307
|
[vShow, modelValue.value]
|
|
@@ -16316,7 +16309,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16316
16309
|
};
|
|
16317
16310
|
}
|
|
16318
16311
|
});
|
|
16319
|
-
const MenuContext = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16312
|
+
const MenuContext = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-e0c03318"]]);
|
|
16320
16313
|
const ElsMenuContext = withInstall(MenuContext);
|
|
16321
16314
|
const menuDropdownProps = buildProps({
|
|
16322
16315
|
/**
|
|
@@ -16346,13 +16339,13 @@ const menuDropdownProps = buildProps({
|
|
|
16346
16339
|
*/
|
|
16347
16340
|
onClick: Function
|
|
16348
16341
|
});
|
|
16349
|
-
const _hoisted_1$
|
|
16342
|
+
const _hoisted_1$16 = {
|
|
16350
16343
|
key: 0,
|
|
16351
16344
|
class: "els-table-operate"
|
|
16352
16345
|
};
|
|
16353
|
-
const _hoisted_2$
|
|
16354
|
-
const _hoisted_3$
|
|
16355
|
-
const _sfc_main$
|
|
16346
|
+
const _hoisted_2$Y = { class: "els-table-operate-link" };
|
|
16347
|
+
const _hoisted_3$H = ["onClick"];
|
|
16348
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
16356
16349
|
...{ name: "ElsMenuDropdown" },
|
|
16357
16350
|
__name: "menuDropdown",
|
|
16358
16351
|
props: menuDropdownProps,
|
|
@@ -16403,7 +16396,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
16403
16396
|
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
16404
16397
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
16405
16398
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
16406
|
-
return unref(nameFieldname) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
16399
|
+
return unref(nameFieldname) ? (openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
16407
16400
|
unref(isMobile) ? (openBlock(), createBlock(_component_el_link, {
|
|
16408
16401
|
key: 0,
|
|
16409
16402
|
type: "primary",
|
|
@@ -16453,7 +16446,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
16453
16446
|
})
|
|
16454
16447
|
]),
|
|
16455
16448
|
default: withCtx(() => [
|
|
16456
|
-
createElementVNode("span", _hoisted_2$
|
|
16449
|
+
createElementVNode("span", _hoisted_2$Y, [
|
|
16457
16450
|
createTextVNode(toDisplayString(_ctx.unFoldCount > 0 ? "更多操作" : "操作") + " ", 1),
|
|
16458
16451
|
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
16459
16452
|
default: withCtx(() => [
|
|
@@ -16493,7 +16486,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
16493
16486
|
class: "center",
|
|
16494
16487
|
onClick: ($event) => menuCommand(item),
|
|
16495
16488
|
style: { "line-height": "50px", "border-bottom": "1px solid #dcdcdc" }
|
|
16496
|
-
}, toDisplayString(item.MenuName), 9, _hoisted_3$
|
|
16489
|
+
}, toDisplayString(item.MenuName), 9, _hoisted_3$H);
|
|
16497
16490
|
}), 256))
|
|
16498
16491
|
]),
|
|
16499
16492
|
_: 1
|
|
@@ -16502,7 +16495,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
16502
16495
|
};
|
|
16503
16496
|
}
|
|
16504
16497
|
});
|
|
16505
|
-
const MenuDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16498
|
+
const MenuDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-cb4561d3"]]);
|
|
16506
16499
|
const ElsMenuDropdown = withInstall(MenuDropdown);
|
|
16507
16500
|
const menuToolProps = buildProps({
|
|
16508
16501
|
/**
|
|
@@ -16553,9 +16546,9 @@ const menuToolProps = buildProps({
|
|
|
16553
16546
|
*/
|
|
16554
16547
|
onUploaded: Function
|
|
16555
16548
|
});
|
|
16556
|
-
const _hoisted_1$
|
|
16557
|
-
const _hoisted_2$
|
|
16558
|
-
const _hoisted_3$
|
|
16549
|
+
const _hoisted_1$15 = { class: "els-tool-menu" };
|
|
16550
|
+
const _hoisted_2$X = { class: "els-tool-menu-button" };
|
|
16551
|
+
const _hoisted_3$G = {
|
|
16559
16552
|
key: 0,
|
|
16560
16553
|
class: "operationlog"
|
|
16561
16554
|
};
|
|
@@ -16568,7 +16561,7 @@ const _hoisted_9$b = /* @__PURE__ */ createElementVNode("div", { class: "el-uplo
|
|
|
16568
16561
|
/* @__PURE__ */ createTextVNode("将文件拖到此处,或"),
|
|
16569
16562
|
/* @__PURE__ */ createElementVNode("em", null, "点击上传")
|
|
16570
16563
|
], -1);
|
|
16571
|
-
const _sfc_main$
|
|
16564
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
16572
16565
|
...{ name: "ElsMenuTool" },
|
|
16573
16566
|
__name: "menuTool",
|
|
16574
16567
|
props: menuToolProps,
|
|
@@ -16726,8 +16719,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
16726
16719
|
const _component_el_upload = resolveComponent("el-upload");
|
|
16727
16720
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
16728
16721
|
const _component_els_dialog = resolveComponent("els-dialog");
|
|
16729
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16730
|
-
createElementVNode("div", _hoisted_2$
|
|
16722
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
16723
|
+
createElementVNode("div", _hoisted_2$X, [
|
|
16731
16724
|
(openBlock(true), createElementBlock(Fragment, null, renderList(menuData, (menu) => {
|
|
16732
16725
|
return openBlock(), createBlock(_component_el_button, {
|
|
16733
16726
|
type: menu[unref(buttonColorFieldname)],
|
|
@@ -16834,7 +16827,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
16834
16827
|
]), 1032, ["type", "icon", "native-type", "plain", "round", "circle", "loading", "onClick"]);
|
|
16835
16828
|
}), 128))
|
|
16836
16829
|
]),
|
|
16837
|
-
_ctx.mutiSaveUrl || _ctx.logUrl || _ctx.docUrl || _ctx.noteUrl ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
16830
|
+
_ctx.mutiSaveUrl || _ctx.logUrl || _ctx.docUrl || _ctx.noteUrl ? (openBlock(), createElementBlock("div", _hoisted_3$G, [
|
|
16838
16831
|
_ctx.mutiSaveUrl && !isTableEdit.value ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
16839
16832
|
key: 0,
|
|
16840
16833
|
placement: "bottom-end",
|
|
@@ -17003,8 +16996,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
17003
16996
|
};
|
|
17004
16997
|
}
|
|
17005
16998
|
});
|
|
17006
|
-
const ElsMenuTool = withInstall(_sfc_main$
|
|
17007
|
-
const _sfc_main$
|
|
16999
|
+
const ElsMenuTool = withInstall(_sfc_main$1h);
|
|
17000
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
17008
17001
|
...{ name: "ElsMdPreview" },
|
|
17009
17002
|
__name: "mdPreview",
|
|
17010
17003
|
props: {
|
|
@@ -17026,7 +17019,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
17026
17019
|
};
|
|
17027
17020
|
}
|
|
17028
17021
|
});
|
|
17029
|
-
const ElsMdPreview = withInstall(_sfc_main$
|
|
17022
|
+
const ElsMdPreview = withInstall(_sfc_main$1g);
|
|
17030
17023
|
const captionProps = buildProps({
|
|
17031
17024
|
/**
|
|
17032
17025
|
* @description 绑定值
|
|
@@ -17062,16 +17055,16 @@ const captionProps = buildProps({
|
|
|
17062
17055
|
}
|
|
17063
17056
|
});
|
|
17064
17057
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-1952f6f8"), n = n(), popScopeId(), n);
|
|
17065
|
-
const _hoisted_1$
|
|
17058
|
+
const _hoisted_1$14 = {
|
|
17066
17059
|
key: 0,
|
|
17067
17060
|
class: "els-caption-sub-header"
|
|
17068
17061
|
};
|
|
17069
|
-
const _hoisted_2$
|
|
17070
|
-
const _hoisted_3$
|
|
17071
|
-
_hoisted_2$
|
|
17062
|
+
const _hoisted_2$W = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "dec" }, null, -1));
|
|
17063
|
+
const _hoisted_3$F = [
|
|
17064
|
+
_hoisted_2$W
|
|
17072
17065
|
];
|
|
17073
17066
|
const _hoisted_4$y = { class: "els-caption-title" };
|
|
17074
|
-
const _sfc_main$
|
|
17067
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
17075
17068
|
...{ name: "ElsCaption" },
|
|
17076
17069
|
__name: "caption",
|
|
17077
17070
|
props: /* @__PURE__ */ mergeModels(captionProps, {
|
|
@@ -17119,7 +17112,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
17119
17112
|
key: 0,
|
|
17120
17113
|
class: normalizeClass(["els-caption", { "els-left-caption": _ctx.type == "left" }])
|
|
17121
17114
|
}, [
|
|
17122
|
-
_ctx.type == "left" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
17115
|
+
_ctx.type == "left" ? (openBlock(), createElementBlock("span", _hoisted_1$14, _hoisted_3$F)) : createCommentVNode("", true),
|
|
17123
17116
|
createElementVNode("span", _hoisted_4$y, [
|
|
17124
17117
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
17125
17118
|
createTextVNode(toDisplayString(modelValue.value || _ctx.title), 1)
|
|
@@ -17163,7 +17156,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
17163
17156
|
};
|
|
17164
17157
|
}
|
|
17165
17158
|
});
|
|
17166
|
-
const Caption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17159
|
+
const Caption = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-1952f6f8"]]);
|
|
17167
17160
|
const ElsCaption = withInstall(Caption);
|
|
17168
17161
|
const dataModalProps = buildProps({
|
|
17169
17162
|
...formItemProps$1,
|
|
@@ -17288,10 +17281,10 @@ const dataModalProps = buildProps({
|
|
|
17288
17281
|
default: "change"
|
|
17289
17282
|
}
|
|
17290
17283
|
});
|
|
17291
|
-
const _hoisted_1$
|
|
17292
|
-
const _hoisted_2$
|
|
17293
|
-
const _hoisted_3$
|
|
17294
|
-
const _sfc_main$
|
|
17284
|
+
const _hoisted_1$13 = { class: "els-datamodal-custom-inner" };
|
|
17285
|
+
const _hoisted_2$V = ["innerHTML"];
|
|
17286
|
+
const _hoisted_3$E = ["innerHTML"];
|
|
17287
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
17295
17288
|
...{ name: "ElsDataModal", inheritAttrs: false },
|
|
17296
17289
|
__name: "dataModal",
|
|
17297
17290
|
props: dataModalProps,
|
|
@@ -17306,7 +17299,6 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
17306
17299
|
const currSelectData = ref();
|
|
17307
17300
|
const formNode = ref();
|
|
17308
17301
|
const dialogVisible = ref(false);
|
|
17309
|
-
useAttrs();
|
|
17310
17302
|
const slots = useSlots();
|
|
17311
17303
|
const {
|
|
17312
17304
|
currModelValue,
|
|
@@ -17418,9 +17410,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
17418
17410
|
}
|
|
17419
17411
|
return false;
|
|
17420
17412
|
});
|
|
17421
|
-
|
|
17422
|
-
setSelectValue: handleSelect
|
|
17423
|
-
});
|
|
17413
|
+
provide("setSelectValue", handleSelect);
|
|
17424
17414
|
return (_ctx, _cache) => {
|
|
17425
17415
|
const _component_el_input = resolveComponent("el-input");
|
|
17426
17416
|
const _component_el_badge = resolveComponent("el-badge");
|
|
@@ -17437,15 +17427,15 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
17437
17427
|
key: 0,
|
|
17438
17428
|
class: "els-datamodal-custom"
|
|
17439
17429
|
}, _ctx.$attrs), [
|
|
17440
|
-
createElementVNode("div", _hoisted_1$
|
|
17430
|
+
createElementVNode("div", _hoisted_1$13, [
|
|
17441
17431
|
renderSlot(_ctx.$slots, "custom", {}, () => [
|
|
17442
17432
|
typeof _ctx.custom === "function" ? (openBlock(), createElementBlock("div", {
|
|
17443
17433
|
key: 0,
|
|
17444
17434
|
innerHTML: _ctx.custom()
|
|
17445
|
-
}, null, 8, _hoisted_2$
|
|
17435
|
+
}, null, 8, _hoisted_2$V)) : _ctx.custom ? (openBlock(), createElementBlock("div", {
|
|
17446
17436
|
key: 1,
|
|
17447
17437
|
innerHTML: _ctx.custom
|
|
17448
|
-
}, null, 8, _hoisted_3$
|
|
17438
|
+
}, null, 8, _hoisted_3$E)) : createCommentVNode("", true)
|
|
17449
17439
|
], true)
|
|
17450
17440
|
]),
|
|
17451
17441
|
_ctx.hasButton ? (openBlock(), createBlock(resolveDynamicComponent(selectButton.value), { key: 0 })) : createCommentVNode("", true)
|
|
@@ -17502,9 +17492,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
17502
17492
|
};
|
|
17503
17493
|
}
|
|
17504
17494
|
});
|
|
17505
|
-
const DataModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17495
|
+
const DataModal = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-3a2e6de8"]]);
|
|
17506
17496
|
const ElsDataModal = withInstall(DataModal);
|
|
17507
|
-
const _sfc_main$
|
|
17497
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
17508
17498
|
...{ name: "ElsButtonSelect" },
|
|
17509
17499
|
__name: "buttonSelect",
|
|
17510
17500
|
props: {
|
|
@@ -17546,8 +17536,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
17546
17536
|
};
|
|
17547
17537
|
}
|
|
17548
17538
|
});
|
|
17549
|
-
const ElsButtonSelect = withInstall(_sfc_main$
|
|
17550
|
-
const _sfc_main$
|
|
17539
|
+
const ElsButtonSelect = withInstall(_sfc_main$1d);
|
|
17540
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
17551
17541
|
...{ name: "ElsButtonSearch" },
|
|
17552
17542
|
__name: "buttonSearch",
|
|
17553
17543
|
emits: ["click"],
|
|
@@ -17593,8 +17583,8 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
17593
17583
|
};
|
|
17594
17584
|
}
|
|
17595
17585
|
});
|
|
17596
|
-
const ElsButtonSearch = withInstall(_sfc_main$
|
|
17597
|
-
const _sfc_main$
|
|
17586
|
+
const ElsButtonSearch = withInstall(_sfc_main$1c);
|
|
17587
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
17598
17588
|
...{ name: "ElsButtonExport" },
|
|
17599
17589
|
__name: "buttonExport",
|
|
17600
17590
|
props: {
|
|
@@ -17635,7 +17625,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
17635
17625
|
};
|
|
17636
17626
|
}
|
|
17637
17627
|
});
|
|
17638
|
-
const ElsButtonExport = withInstall(_sfc_main$
|
|
17628
|
+
const ElsButtonExport = withInstall(_sfc_main$1b);
|
|
17639
17629
|
const listProps = buildProps({
|
|
17640
17630
|
/**
|
|
17641
17631
|
* @description 绑定的列表数据
|
|
@@ -17739,9 +17729,9 @@ const listProps = buildProps({
|
|
|
17739
17729
|
},
|
|
17740
17730
|
addButtonText: String
|
|
17741
17731
|
});
|
|
17742
|
-
const _hoisted_1$
|
|
17743
|
-
const _hoisted_2$
|
|
17744
|
-
const _hoisted_3$
|
|
17732
|
+
const _hoisted_1$12 = { class: "els-list-title" };
|
|
17733
|
+
const _hoisted_2$U = ["innerHTML"];
|
|
17734
|
+
const _hoisted_3$D = { key: 1 };
|
|
17745
17735
|
const _hoisted_4$x = ["innerHTML"];
|
|
17746
17736
|
const _hoisted_5$l = { key: 1 };
|
|
17747
17737
|
const _hoisted_6$f = { class: "els-list-operate" };
|
|
@@ -17752,7 +17742,7 @@ const _hoisted_7$c = {
|
|
|
17752
17742
|
};
|
|
17753
17743
|
const _hoisted_8$b = { class: "els-list-index" };
|
|
17754
17744
|
const _hoisted_9$a = { class: "els-list-handle" };
|
|
17755
|
-
const _sfc_main$
|
|
17745
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
17756
17746
|
...{ name: "ElsList", inheritAttrs: false },
|
|
17757
17747
|
__name: "list",
|
|
17758
17748
|
props: /* @__PURE__ */ mergeModels(listProps, {
|
|
@@ -17860,7 +17850,6 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17860
17850
|
if (!currItemClassName.value || currItemClassName.value.indexOf("listitem") === -1) {
|
|
17861
17851
|
currItemClassName.value = props.itemClassName ?? [];
|
|
17862
17852
|
if (props.itemComponent === "div") {
|
|
17863
|
-
console.log("333");
|
|
17864
17853
|
if (typeof currItemClassName.value === "string") {
|
|
17865
17854
|
currItemClassName.value += " listitem flex";
|
|
17866
17855
|
} else {
|
|
@@ -17994,13 +17983,13 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17994
17983
|
_ctx.itemComponent ? {
|
|
17995
17984
|
name: "title",
|
|
17996
17985
|
fn: withCtx(() => [
|
|
17997
|
-
createElementVNode("div", _hoisted_1$
|
|
17986
|
+
createElementVNode("div", _hoisted_1$12, [
|
|
17998
17987
|
_ctx.itemKey ? renderSlot(_ctx.$slots, "itemTitle", normalizeProps(mergeProps({ key: 0 }, { item: element, index, $item: element, $index: index, element })), () => [
|
|
17999
17988
|
createElementVNode("div", null, [
|
|
18000
17989
|
_ctx.itemComponentTitle ? (openBlock(), createElementBlock("div", {
|
|
18001
17990
|
key: 0,
|
|
18002
17991
|
innerHTML: _ctx.itemComponentTitle
|
|
18003
|
-
}, null, 8, _hoisted_2$
|
|
17992
|
+
}, null, 8, _hoisted_2$U)) : (openBlock(), createElementBlock("div", _hoisted_3$D, "还未设置标题"))
|
|
18004
17993
|
])
|
|
18005
17994
|
], true) : renderSlot(_ctx.$slots, "itemTitle", normalizeProps(mergeProps({ key: 1 }, { item: element, index, $item: element.value, $index: index, element })), () => [
|
|
18006
17995
|
createElementVNode("div", null, [
|
|
@@ -18085,10 +18074,10 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
18085
18074
|
};
|
|
18086
18075
|
}
|
|
18087
18076
|
});
|
|
18088
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18077
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-38ac115f"]]);
|
|
18089
18078
|
const ElsList = withInstall(List);
|
|
18090
|
-
const _hoisted_1$
|
|
18091
|
-
const _sfc_main$
|
|
18079
|
+
const _hoisted_1$11 = { class: "custom-block-title" };
|
|
18080
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18092
18081
|
...{ name: "ElsTip" },
|
|
18093
18082
|
__name: "tip",
|
|
18094
18083
|
props: {
|
|
@@ -18101,7 +18090,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18101
18090
|
return openBlock(), createElementBlock("div", {
|
|
18102
18091
|
class: normalizeClass(["custom-block", _ctx.type == "warning" ? "warning" : "tip"])
|
|
18103
18092
|
}, [
|
|
18104
|
-
createElementVNode("p", _hoisted_1$
|
|
18093
|
+
createElementVNode("p", _hoisted_1$11, [
|
|
18105
18094
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
18106
18095
|
createTextVNode(toDisplayString(_ctx.title ?? (_ctx.type == "warning" ? "WARNING" : "TIP")), 1)
|
|
18107
18096
|
], true)
|
|
@@ -18113,7 +18102,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18113
18102
|
};
|
|
18114
18103
|
}
|
|
18115
18104
|
});
|
|
18116
|
-
const Tip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18105
|
+
const Tip = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-25c72208"]]);
|
|
18117
18106
|
const tipProps = buildProps({
|
|
18118
18107
|
/**
|
|
18119
18108
|
* @description 标题
|
|
@@ -38682,8 +38671,8 @@ const containerProps = buildProps({
|
|
|
38682
38671
|
*/
|
|
38683
38672
|
selectMenuPostQuery: Boolean
|
|
38684
38673
|
});
|
|
38685
|
-
const _hoisted_1$
|
|
38686
|
-
const _sfc_main$
|
|
38674
|
+
const _hoisted_1$10 = { class: "els-page-container" };
|
|
38675
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
38687
38676
|
...{
|
|
38688
38677
|
name: "ElsContainer"
|
|
38689
38678
|
},
|
|
@@ -39146,7 +39135,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
39146
39135
|
return (_ctx, _cache) => {
|
|
39147
39136
|
const _component_els_dialog = resolveComponent("els-dialog");
|
|
39148
39137
|
const _component_els_drawer = resolveComponent("els-drawer");
|
|
39149
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
39138
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
39150
39139
|
(openBlock(), createBlock(resolveDynamicComponent(unref(componentName)), {
|
|
39151
39140
|
class: normalizeClass({ "is-vertical": isVertical.value })
|
|
39152
39141
|
}, {
|
|
@@ -39171,7 +39160,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
39171
39160
|
};
|
|
39172
39161
|
}
|
|
39173
39162
|
});
|
|
39174
|
-
const ElsContainer = withInstall(_sfc_main$
|
|
39163
|
+
const ElsContainer = withInstall(_sfc_main$18);
|
|
39175
39164
|
const createProps = buildProps({
|
|
39176
39165
|
/**
|
|
39177
39166
|
* @description 是否显示
|
|
@@ -39204,10 +39193,10 @@ const createProps = buildProps({
|
|
|
39204
39193
|
*/
|
|
39205
39194
|
save: Function
|
|
39206
39195
|
});
|
|
39207
|
-
const _hoisted_1
|
|
39208
|
-
const _hoisted_2$
|
|
39209
|
-
const _hoisted_3$
|
|
39210
|
-
const _sfc_main$
|
|
39196
|
+
const _hoisted_1$$ = { class: "els-dynamic-create" };
|
|
39197
|
+
const _hoisted_2$T = { style: { "margin-bottom": "10px" } };
|
|
39198
|
+
const _hoisted_3$C = { class: "dialog-footer" };
|
|
39199
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
39211
39200
|
...{
|
|
39212
39201
|
name: "ElsDynamicCreate"
|
|
39213
39202
|
},
|
|
@@ -39367,7 +39356,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
39367
39356
|
"close-on-click-modal": false
|
|
39368
39357
|
}, {
|
|
39369
39358
|
footer: withCtx(() => [
|
|
39370
|
-
createElementVNode("span", _hoisted_3$
|
|
39359
|
+
createElementVNode("span", _hoisted_3$C, [
|
|
39371
39360
|
createVNode(_component_el_button, {
|
|
39372
39361
|
onClick: _cache[7] || (_cache[7] = ($event) => createVisible.value = false)
|
|
39373
39362
|
}, {
|
|
@@ -39389,7 +39378,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
39389
39378
|
])
|
|
39390
39379
|
]),
|
|
39391
39380
|
default: withCtx(() => [
|
|
39392
|
-
createElementVNode("div", _hoisted_1
|
|
39381
|
+
createElementVNode("div", _hoisted_1$$, [
|
|
39393
39382
|
!createResultVisible.value ? (openBlock(), createBlock(_component_els_form, {
|
|
39394
39383
|
key: 0,
|
|
39395
39384
|
modelValue: currData.value,
|
|
@@ -39477,7 +39466,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
39477
39466
|
]),
|
|
39478
39467
|
_: 1
|
|
39479
39468
|
}, 8, ["modelValue"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
39480
|
-
createElementVNode("div", _hoisted_2$
|
|
39469
|
+
createElementVNode("div", _hoisted_2$T, [
|
|
39481
39470
|
createVNode(_component_el_link, {
|
|
39482
39471
|
type: "primary",
|
|
39483
39472
|
onClick: _cache[5] || (_cache[5] = ($event) => createResultVisible.value = !createResultVisible.value)
|
|
@@ -39505,16 +39494,16 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
39505
39494
|
};
|
|
39506
39495
|
}
|
|
39507
39496
|
});
|
|
39508
|
-
const ElsDynamicCreate = withInstall(_sfc_main$
|
|
39509
|
-
const _hoisted_1$
|
|
39497
|
+
const ElsDynamicCreate = withInstall(_sfc_main$17);
|
|
39498
|
+
const _hoisted_1$_ = {
|
|
39510
39499
|
key: 0,
|
|
39511
39500
|
class: "tag-name"
|
|
39512
39501
|
};
|
|
39513
|
-
const _hoisted_2$
|
|
39502
|
+
const _hoisted_2$S = {
|
|
39514
39503
|
key: 1,
|
|
39515
39504
|
class: "els-dynamic-d-head"
|
|
39516
39505
|
};
|
|
39517
|
-
const _hoisted_3$
|
|
39506
|
+
const _hoisted_3$B = {
|
|
39518
39507
|
key: 0,
|
|
39519
39508
|
class: "keyName"
|
|
39520
39509
|
};
|
|
@@ -39610,7 +39599,7 @@ const _hoisted_36 = {
|
|
|
39610
39599
|
};
|
|
39611
39600
|
const _hoisted_37 = { class: "els-dynamic-d-oper" };
|
|
39612
39601
|
const _hoisted_38 = { class: "dialog-footer" };
|
|
39613
|
-
const _sfc_main$
|
|
39602
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
39614
39603
|
...{
|
|
39615
39604
|
name: "ElsDynamicDesigner"
|
|
39616
39605
|
},
|
|
@@ -39628,7 +39617,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
39628
39617
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
39629
39618
|
setup(__props, { emit: __emit }) {
|
|
39630
39619
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
39631
|
-
return import("./innerItem-
|
|
39620
|
+
return import("./innerItem-BcHNw8pL.js");
|
|
39632
39621
|
});
|
|
39633
39622
|
const { getValue: getValue2 } = useProps();
|
|
39634
39623
|
const tagID = getValue2("tagID");
|
|
@@ -39709,7 +39698,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
39709
39698
|
createElementVNode("div", {
|
|
39710
39699
|
class: normalizeClass([{ "els-dynamic-config-root": _ctx.depath == 0 }, { "els-dynamic-d-flat-item-child": _ctx.depath && _ctx.depath > 0 }, { "els-dynamic-d-flat-item-container": _ctx.isContainer && _ctx.depath - 1 == 0 }])
|
|
39711
39700
|
}, [
|
|
39712
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
39701
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("span", _hoisted_1$_, [
|
|
39713
39702
|
createVNode(_component_el_popover, {
|
|
39714
39703
|
placement: "top-start",
|
|
39715
39704
|
width: "500",
|
|
@@ -39767,8 +39756,8 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
39767
39756
|
_: 1
|
|
39768
39757
|
})
|
|
39769
39758
|
])) : createCommentVNode("", true),
|
|
39770
|
-
_ctx.isContainer !== true ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
39771
|
-
unref(columnVisible)("keyName") ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
39759
|
+
_ctx.isContainer !== true ? (openBlock(), createElementBlock("div", _hoisted_2$S, [
|
|
39760
|
+
unref(columnVisible)("keyName") ? (openBlock(), createElementBlock("span", _hoisted_3$B, "名称")) : createCommentVNode("", true),
|
|
39772
39761
|
unref(columnVisible)("keyCode") ? (openBlock(), createElementBlock("span", _hoisted_4$w, "编码")) : createCommentVNode("", true),
|
|
39773
39762
|
unref(columnVisible)("dataType") ? (openBlock(), createElementBlock("span", _hoisted_5$k, "类型")) : createCommentVNode("", true),
|
|
39774
39763
|
unref(componentSettingVisible) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
@@ -39958,7 +39947,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
39958
39947
|
};
|
|
39959
39948
|
}
|
|
39960
39949
|
});
|
|
39961
|
-
const DynamicDesignerInner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39950
|
+
const DynamicDesignerInner = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-7b68a6e5"]]);
|
|
39962
39951
|
const designerProps = buildProps({
|
|
39963
39952
|
...formItemProps$1,
|
|
39964
39953
|
/**
|
|
@@ -40070,8 +40059,8 @@ const designerProps = buildProps({
|
|
|
40070
40059
|
type: Object
|
|
40071
40060
|
}
|
|
40072
40061
|
});
|
|
40073
|
-
const _hoisted_1
|
|
40074
|
-
const _sfc_main$
|
|
40062
|
+
const _hoisted_1$Z = { class: "els-dynamic-config-tool" };
|
|
40063
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
40075
40064
|
...{
|
|
40076
40065
|
name: "ElsDynamicDesigner"
|
|
40077
40066
|
},
|
|
@@ -40339,7 +40328,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
40339
40328
|
ref_key: "designerContainer",
|
|
40340
40329
|
ref: designerContainer
|
|
40341
40330
|
}, [
|
|
40342
|
-
createElementVNode("div", _hoisted_1
|
|
40331
|
+
createElementVNode("div", _hoisted_1$Z, [
|
|
40343
40332
|
createVNode(_component_els_data_modal, {
|
|
40344
40333
|
style: { "margin-left": "5px", "margin-bottom": "5px" },
|
|
40345
40334
|
title: "导入配置",
|
|
@@ -40378,7 +40367,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
40378
40367
|
};
|
|
40379
40368
|
}
|
|
40380
40369
|
});
|
|
40381
|
-
const Designer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
40370
|
+
const Designer = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-3365fc76"]]);
|
|
40382
40371
|
const ElsDynamicDesigner = withInstall(Designer);
|
|
40383
40372
|
const renderProps = buildProps({
|
|
40384
40373
|
...formItemProps$1,
|
|
@@ -40460,438 +40449,35 @@ const renderProps = buildProps({
|
|
|
40460
40449
|
default: {}
|
|
40461
40450
|
}
|
|
40462
40451
|
});
|
|
40463
|
-
|
|
40464
|
-
return useRender(props, nodeItem, void 0, void 0, true);
|
|
40465
|
-
}
|
|
40466
|
-
function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0, isDesigner = false) {
|
|
40467
|
-
const { getValue: getValue2 } = useProps();
|
|
40468
|
-
const componentData = getValue2("componentData", []);
|
|
40469
|
-
const isMobile = getValue2("isMobile", false);
|
|
40470
|
-
const getRootNode = getValue2("getRootNode", () => {
|
|
40471
|
-
return {};
|
|
40472
|
-
});
|
|
40473
|
-
const getCurrNode = getValue2("getCurrNode", () => {
|
|
40474
|
-
return {};
|
|
40475
|
-
});
|
|
40476
|
-
const getParentNode = getValue2("getParentNode", () => {
|
|
40477
|
-
return {};
|
|
40478
|
-
});
|
|
40479
|
-
const getNodeValue = getValue2("getNodeValue", () => {
|
|
40480
|
-
return {};
|
|
40481
|
-
});
|
|
40482
|
-
const getArrayNodeValue = getValue2("getArrayNodeValue", () => {
|
|
40483
|
-
return [];
|
|
40484
|
-
});
|
|
40485
|
-
const getGlobalData = getValue2("getGlobalData", () => {
|
|
40486
|
-
return {};
|
|
40487
|
-
});
|
|
40488
|
-
const refsData = getValue2("refsData", {});
|
|
40489
|
-
const getFormPropIndex = getValue2("getFormPropIndex", () => {
|
|
40490
|
-
return "";
|
|
40491
|
-
});
|
|
40492
|
-
let slotRootHasDefault = false;
|
|
40493
|
-
const defaultSlot = nodeItem.slots ? nodeItem.slots.find((ele) => ele.name === "default") : void 0;
|
|
40494
|
-
if (defaultSlot) {
|
|
40495
|
-
if (defaultSlot.children.length > 0 && defaultSlot.children.some((ele) => ele.keyCode === "default")) {
|
|
40496
|
-
slotRootHasDefault = true;
|
|
40497
|
-
}
|
|
40498
|
-
}
|
|
40499
|
-
const componentProps = computed(() => {
|
|
40500
|
-
if (!nodeItem || !nodeItem.config) {
|
|
40501
|
-
return {};
|
|
40502
|
-
}
|
|
40503
|
-
const itemConfig = nodeItem.config;
|
|
40504
|
-
let baseProps = { "style": itemConfig.advancedConfig.style ?? "" };
|
|
40505
|
-
if (nodeItem.componentName === "div") {
|
|
40506
|
-
Object.keys(itemConfig.baseConfig).forEach((key) => {
|
|
40507
|
-
if (itemConfig.baseConfig[key] !== "") {
|
|
40508
|
-
baseProps.style += `;${key}:${itemConfig.baseConfig[key]}`;
|
|
40509
|
-
}
|
|
40510
|
-
});
|
|
40511
|
-
return baseProps;
|
|
40512
|
-
}
|
|
40513
|
-
if (itemConfig.advancedConfig.disabled) {
|
|
40514
|
-
baseProps["disabled"] = renderDisabled();
|
|
40515
|
-
}
|
|
40516
|
-
const currControl = componentData.find((ele) => ele.value == nodeItem.componentType);
|
|
40517
|
-
if (currControl == null ? void 0 : currControl.defaultPropertys) {
|
|
40518
|
-
Object.assign(baseProps, currControl.defaultPropertys, itemConfig.baseConfig);
|
|
40519
|
-
utils.removeEmptyProp(baseProps);
|
|
40520
|
-
utils.setDefaultPropertys(baseProps, currControl.defaultPropertys);
|
|
40521
|
-
} else {
|
|
40522
|
-
Object.assign(baseProps, itemConfig.baseConfig);
|
|
40523
|
-
utils.removeEmptyProp(baseProps);
|
|
40524
|
-
}
|
|
40525
|
-
if (["ElsSelect", "ElsRadio", "ElsCheckBox", "ElsCascader"].includes(nodeItem.componentName)) {
|
|
40526
|
-
if (!baseProps.valueType) {
|
|
40527
|
-
if (nodeItem.dataTypeName == "Number" || nodeItem.arrayDataTypeName == "Number") {
|
|
40528
|
-
baseProps.valueType = "Number";
|
|
40529
|
-
} else if (nodeItem.dataTypeName == "Bool" || nodeItem.arrayDataTypeName == "Bool") {
|
|
40530
|
-
baseProps.valueType = "Bool";
|
|
40531
|
-
}
|
|
40532
|
-
}
|
|
40533
|
-
}
|
|
40534
|
-
if (nodeItem.componentTypeName == "Option") {
|
|
40535
|
-
baseProps["label"] = nodeItem.config.baseConfig.label || nodeItem.keyName;
|
|
40536
|
-
baseProps["value"] = nodeItem.config.baseConfig.value || nodeItem.keyID;
|
|
40537
|
-
} else if (nodeItem.componentTypeName === "CollapseItem") {
|
|
40538
|
-
baseProps["title"] = nodeItem.config.baseConfig.title || "请设置标题";
|
|
40539
|
-
baseProps["name"] = nodeItem.config.baseConfig.name || nodeItem.keyID;
|
|
40540
|
-
} else if (nodeItem.componentTypeName == "Table") {
|
|
40541
|
-
baseProps["tagId"] = nodeItem.keyID;
|
|
40542
|
-
} else if (nodeItem.componentTypeName == "Caption") {
|
|
40543
|
-
baseProps["title"] = nodeItem.config.baseConfig.title || nodeItem.keyName;
|
|
40544
|
-
}
|
|
40545
|
-
renderProps2(baseProps);
|
|
40546
|
-
delete baseProps.innerContent;
|
|
40547
|
-
return baseProps;
|
|
40548
|
-
});
|
|
40549
|
-
const formProps2 = computed(() => {
|
|
40550
|
-
var _a;
|
|
40551
|
-
if (!nodeItem || !nodeItem.config) {
|
|
40552
|
-
return {};
|
|
40553
|
-
}
|
|
40554
|
-
const itemConfig = nodeItem.config;
|
|
40555
|
-
let baseProps = {};
|
|
40556
|
-
const currControl = componentData.find((ele) => ele.value == nodeItem.componentType);
|
|
40557
|
-
if (currControl == null ? void 0 : currControl.defaultPropertys) {
|
|
40558
|
-
baseProps = { ...itemConfig.formConfig };
|
|
40559
|
-
utils.removeEmptyProp(baseProps);
|
|
40560
|
-
}
|
|
40561
|
-
if (nodeItem.dataTypeName == "None" || ((_a = nodeItem.config.baseConfig) == null ? void 0 : _a.componentName) == "ElsCaption" || nodeItem.componentTypeName === "Row") {
|
|
40562
|
-
baseProps.labelWidth = "0px";
|
|
40563
|
-
} else if (nodeItem.dataTypeName == "Array" && nodeItem.arrayDataTypeName == "Object") {
|
|
40564
|
-
delete baseProps.labelWidth;
|
|
40565
|
-
}
|
|
40566
|
-
if (nodeItem.required) {
|
|
40567
|
-
baseProps["required"] = true;
|
|
40568
|
-
}
|
|
40569
|
-
if (nodeItem.keyCode) {
|
|
40570
|
-
baseProps["prop"] = nodeItem.keyCode;
|
|
40571
|
-
}
|
|
40572
|
-
if (nodeItem.description) {
|
|
40573
|
-
baseProps["tip"] = nodeItem.description;
|
|
40574
|
-
}
|
|
40575
|
-
if (props.index !== void 0 && props.index > -1) {
|
|
40576
|
-
const currPropsIndex = getFormPropIndex();
|
|
40577
|
-
baseProps["prop"] = currPropsIndex + `[${props.index}].value`;
|
|
40578
|
-
} else {
|
|
40579
|
-
baseProps["prop"] = nodeItem.keyCode;
|
|
40580
|
-
}
|
|
40581
|
-
baseProps["label"] = nodeItem.keyName;
|
|
40582
|
-
renderProps2(baseProps);
|
|
40583
|
-
return baseProps;
|
|
40584
|
-
});
|
|
40585
|
-
function handleGetCurrNode() {
|
|
40586
|
-
if (props.arrayIndex > -1) {
|
|
40587
|
-
return getCurrNode()[props.arrayIndex];
|
|
40588
|
-
}
|
|
40589
|
-
return getCurrNode();
|
|
40590
|
-
}
|
|
40591
|
-
function renderContent(content) {
|
|
40592
|
-
try {
|
|
40593
|
-
let currContent = content;
|
|
40594
|
-
if (!currContent.startsWith(":")) {
|
|
40595
|
-
return currContent;
|
|
40596
|
-
}
|
|
40597
|
-
currContent = currContent.substring(1);
|
|
40598
|
-
if (!currContent) {
|
|
40599
|
-
return "";
|
|
40600
|
-
}
|
|
40601
|
-
if (isDesigner) {
|
|
40602
|
-
return "属性计算";
|
|
40603
|
-
}
|
|
40604
|
-
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
40605
|
-
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
40606
|
-
} catch (err) {
|
|
40607
|
-
console.error(err);
|
|
40608
|
-
console.log("RenderContent异常");
|
|
40609
|
-
console.log(content);
|
|
40610
|
-
return "加载异常";
|
|
40611
|
-
}
|
|
40612
|
-
}
|
|
40613
|
-
function renderEvent(eventExpress) {
|
|
40614
|
-
if (isDesigner) {
|
|
40615
|
-
return "事件计算";
|
|
40616
|
-
}
|
|
40617
|
-
try {
|
|
40618
|
-
let currEvent = new Function("refs,globalData,rootNode,parentNode,currNode,currValue,dataType,slotRootHasDefault,slotValue,utils", eventExpress);
|
|
40619
|
-
return currEvent(refsData.value, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), modelValue, nodeItem == null ? void 0 : nodeItem.dataType, slotRootHasDefault, slotValue.value, utils);
|
|
40620
|
-
} catch (err) {
|
|
40621
|
-
console.log("RenderEvent异常");
|
|
40622
|
-
console.log(eventExpress);
|
|
40623
|
-
return "加载异常";
|
|
40624
|
-
}
|
|
40625
|
-
}
|
|
40626
|
-
function renderProps2(baseProps) {
|
|
40627
|
-
Object.keys(baseProps).forEach((key) => {
|
|
40628
|
-
if (key.startsWith("event")) {
|
|
40629
|
-
const eventExpress = baseProps[key];
|
|
40630
|
-
baseProps[key.replace("event", "on")] = () => {
|
|
40631
|
-
try {
|
|
40632
|
-
return renderEvent(eventExpress);
|
|
40633
|
-
} catch (err) {
|
|
40634
|
-
console.error(err);
|
|
40635
|
-
}
|
|
40636
|
-
};
|
|
40637
|
-
delete baseProps[key];
|
|
40638
|
-
} else if (key.startsWith("function")) {
|
|
40639
|
-
const eventExpress = baseProps[key];
|
|
40640
|
-
baseProps[key.replace("function", "")] = () => {
|
|
40641
|
-
try {
|
|
40642
|
-
return renderEvent(eventExpress);
|
|
40643
|
-
} catch (err) {
|
|
40644
|
-
console.error(err);
|
|
40645
|
-
}
|
|
40646
|
-
};
|
|
40647
|
-
delete baseProps[key];
|
|
40648
|
-
} else {
|
|
40649
|
-
if (typeof baseProps[key] === "string" && baseProps[key].startsWith(":")) {
|
|
40650
|
-
baseProps[key] = renderContent(baseProps[key]);
|
|
40651
|
-
}
|
|
40652
|
-
}
|
|
40653
|
-
});
|
|
40654
|
-
return baseProps;
|
|
40655
|
-
}
|
|
40656
|
-
function renderIf() {
|
|
40657
|
-
try {
|
|
40658
|
-
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.vif) {
|
|
40659
|
-
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.vif);
|
|
40660
|
-
const isShow = currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
40661
|
-
nodeItem.isShow = isShow;
|
|
40662
|
-
return isShow;
|
|
40663
|
-
}
|
|
40664
|
-
} catch (err) {
|
|
40665
|
-
console.error(err);
|
|
40666
|
-
}
|
|
40667
|
-
return true;
|
|
40668
|
-
}
|
|
40669
|
-
function renderDisabled() {
|
|
40670
|
-
try {
|
|
40671
|
-
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.disabled) {
|
|
40672
|
-
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.disabled);
|
|
40673
|
-
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
40674
|
-
}
|
|
40675
|
-
} catch (err) {
|
|
40676
|
-
console.error(err);
|
|
40677
|
-
debugger;
|
|
40678
|
-
}
|
|
40679
|
-
return false;
|
|
40680
|
-
}
|
|
40681
|
-
function renderValueChange(val) {
|
|
40682
|
-
try {
|
|
40683
|
-
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.eventChange) {
|
|
40684
|
-
let currEvent = new Function("val,globalData,rootNode,parentNode,currNode,utils", nodeItem.config.advancedConfig.eventChange);
|
|
40685
|
-
return currEvent(val, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
40686
|
-
}
|
|
40687
|
-
} catch (err) {
|
|
40688
|
-
console.log("ValueCahnge异常");
|
|
40689
|
-
console.log(nodeItem.config.advancedConfig.eventChange);
|
|
40690
|
-
}
|
|
40691
|
-
}
|
|
40692
|
-
return {
|
|
40693
|
-
isMobile,
|
|
40694
|
-
componentProps,
|
|
40695
|
-
formProps: formProps2,
|
|
40696
|
-
getRootNode,
|
|
40697
|
-
getParentNode,
|
|
40698
|
-
getNodeValue,
|
|
40699
|
-
getArrayNodeValue,
|
|
40700
|
-
getGlobalData,
|
|
40701
|
-
getCurrNode: handleGetCurrNode,
|
|
40702
|
-
renderProps: renderProps2,
|
|
40703
|
-
renderContent,
|
|
40704
|
-
renderEvent,
|
|
40705
|
-
renderIf,
|
|
40706
|
-
renderValueChange,
|
|
40707
|
-
renderDisabled
|
|
40708
|
-
};
|
|
40709
|
-
}
|
|
40710
|
-
function useComponentRef(nodeItem, dyComponent) {
|
|
40711
|
-
const { getValue: getValue2 } = useProps();
|
|
40712
|
-
const setComponentRef = getValue2("setComponentRef", () => {
|
|
40713
|
-
return {};
|
|
40714
|
-
});
|
|
40715
|
-
const removeComponentRef = getValue2("removeComponentRef", () => {
|
|
40716
|
-
return {};
|
|
40717
|
-
});
|
|
40718
|
-
onMounted(() => {
|
|
40719
|
-
if (nodeItem.keyID && dyComponent) {
|
|
40720
|
-
setComponentRef(nodeItem.keyID, dyComponent.value);
|
|
40721
|
-
}
|
|
40722
|
-
});
|
|
40723
|
-
onUnmounted(() => {
|
|
40724
|
-
if (nodeItem.keyID) {
|
|
40725
|
-
removeComponentRef(nodeItem.keyID);
|
|
40726
|
-
}
|
|
40727
|
-
});
|
|
40728
|
-
}
|
|
40729
|
-
const _hoisted_1$_ = ["innerHTML"];
|
|
40730
|
-
const _hoisted_2$S = { class: "els-dynamic-r-mobile-title" };
|
|
40731
|
-
const _hoisted_3$B = ["onClick"];
|
|
40732
|
-
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
40733
|
-
__name: "innerObjectArray",
|
|
40734
|
-
props: {
|
|
40735
|
-
"nodeItem": { default: () => {
|
|
40736
|
-
return reactive([]);
|
|
40737
|
-
} },
|
|
40738
|
-
"nodeItemModifiers": {}
|
|
40739
|
-
},
|
|
40740
|
-
emits: ["update:nodeItem"],
|
|
40741
|
-
setup(__props) {
|
|
40742
|
-
const props = __props;
|
|
40743
|
-
const { setValue } = useProps();
|
|
40744
|
-
const nodeItem = useModel$1(__props, "nodeItem");
|
|
40745
|
-
const { isMobile, componentProps, getArrayNodeValue, renderProps: renderProps2, getGlobalData, getRootNode, getParentNode, getCurrNode, getNodeValue } = useRender(props, nodeItem.value);
|
|
40746
|
-
const list = ref();
|
|
40747
|
-
const listProps2 = computed(() => {
|
|
40748
|
-
const currProps = { ...nodeItem.value.config.arrayConfig };
|
|
40749
|
-
return renderProps2(currProps);
|
|
40750
|
-
});
|
|
40751
|
-
function handleAddItem() {
|
|
40752
|
-
return utils.cloneObj(nodeItem.value.arrayObjData);
|
|
40753
|
-
}
|
|
40754
|
-
function handleRemove(index) {
|
|
40755
|
-
list.value.remove(index);
|
|
40756
|
-
}
|
|
40757
|
-
const arrayConfig = computed(() => {
|
|
40758
|
-
return nodeItem.value.config.arrayConfig;
|
|
40759
|
-
});
|
|
40760
|
-
function getItemTitle(arrayChildren) {
|
|
40761
|
-
let currContent = nodeItem.value.config.arrayConfig.itemComponentTitle;
|
|
40762
|
-
if (!currContent.startsWith(":")) {
|
|
40763
|
-
return currContent;
|
|
40764
|
-
}
|
|
40765
|
-
currContent = currContent.substring(1);
|
|
40766
|
-
if (!currContent) {
|
|
40767
|
-
return "";
|
|
40768
|
-
}
|
|
40769
|
-
const item = getNodeValue(arrayChildren);
|
|
40770
|
-
let currEvent = new Function("globalData,rootNode,parentNode,currNode,item,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
40771
|
-
return currEvent(getGlobalData(), getRootNode(), getParentNode(), getCurrNode(), item, utils);
|
|
40772
|
-
}
|
|
40773
|
-
setValue({
|
|
40774
|
-
getCurrNode: () => {
|
|
40775
|
-
return getArrayNodeValue(nodeItem.value.children);
|
|
40776
|
-
},
|
|
40777
|
-
getParentNode: () => {
|
|
40778
|
-
return getArrayNodeValue(nodeItem.value.children);
|
|
40779
|
-
}
|
|
40780
|
-
});
|
|
40781
|
-
return (_ctx, _cache) => {
|
|
40782
|
-
var _a;
|
|
40783
|
-
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
40784
|
-
const _component_els_form = resolveComponent("els-form");
|
|
40785
|
-
const _component_els_list = resolveComponent("els-list");
|
|
40786
|
-
return openBlock(), createElementBlock("div", {
|
|
40787
|
-
class: "els-dynamic-array",
|
|
40788
|
-
style: normalizeStyle((_a = nodeItem.value.config.advancedConfig) == null ? void 0 : _a.style)
|
|
40789
|
-
}, [
|
|
40790
|
-
createVNode(_component_els_list, mergeProps({
|
|
40791
|
-
modelValue: nodeItem.value.children,
|
|
40792
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nodeItem.value.children = $event),
|
|
40793
|
-
ref_key: "list",
|
|
40794
|
-
ref: list,
|
|
40795
|
-
onAdd: handleAddItem,
|
|
40796
|
-
sortable: !unref(isMobile),
|
|
40797
|
-
isRemove: !unref(isMobile),
|
|
40798
|
-
hasForm: false,
|
|
40799
|
-
"item-class-name": [
|
|
40800
|
-
{ "els-dynamic-r-array": nodeItem.value.arrayDataTypeName === "Object" || nodeItem.value.componentTypeName === "DynamicRender" },
|
|
40801
|
-
{ "els-dynamic-r-array-mobile": unref(isMobile) }
|
|
40802
|
-
],
|
|
40803
|
-
borderType: arrayConfig.value.borderType,
|
|
40804
|
-
style: [
|
|
40805
|
-
{ "max-width": arrayConfig.value.maxWidth ? arrayConfig.value.maxWidth + "px" : "" },
|
|
40806
|
-
{ "max-height": arrayConfig.value.maxHeight ? arrayConfig.value.maxHeight + "px" : "" },
|
|
40807
|
-
{ "display": arrayConfig.value.arrangementType === "Horizontal" ? "flex" : "" }
|
|
40808
|
-
],
|
|
40809
|
-
class: ["els-dynamic-array-render", { "horizontal": arrayConfig.value.arrangementType === "Horizontal" }]
|
|
40810
|
-
}, listProps2.value), {
|
|
40811
|
-
itemTitle: withCtx(({ $item }) => [
|
|
40812
|
-
createElementVNode("div", {
|
|
40813
|
-
innerHTML: getItemTitle($item)
|
|
40814
|
-
}, null, 8, _hoisted_1$_)
|
|
40815
|
-
]),
|
|
40816
|
-
default: withCtx(({ element, $item, $index }) => [
|
|
40817
|
-
(openBlock(), createElementBlock("div", {
|
|
40818
|
-
key: element.keyID,
|
|
40819
|
-
class: "els-dynamic-array-inner"
|
|
40820
|
-
}, [
|
|
40821
|
-
createVNode(_component_els_form, mergeProps({
|
|
40822
|
-
modelValue: nodeItem.value.children[$index],
|
|
40823
|
-
"onUpdate:modelValue": ($event) => nodeItem.value.children[$index] = $event
|
|
40824
|
-
}, unref(componentProps)), {
|
|
40825
|
-
default: withCtx(() => [
|
|
40826
|
-
unref(isMobile) ? (openBlock(), createBlock(_component_van_cell_group, {
|
|
40827
|
-
title: nodeItem.value.keyName,
|
|
40828
|
-
key: element.itemKey
|
|
40829
|
-
}, {
|
|
40830
|
-
title: withCtx(() => [
|
|
40831
|
-
createElementVNode("div", _hoisted_2$S, [
|
|
40832
|
-
createElementVNode("span", null, toDisplayString(nodeItem.value.keyName + " " + ($index + 1)), 1),
|
|
40833
|
-
createElementVNode("span", {
|
|
40834
|
-
class: "els-dynamic-remove",
|
|
40835
|
-
onClick: ($event) => handleRemove($index)
|
|
40836
|
-
}, "删除", 8, _hoisted_3$B)
|
|
40837
|
-
])
|
|
40838
|
-
]),
|
|
40839
|
-
default: withCtx(() => [
|
|
40840
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($item, (item, index) => {
|
|
40841
|
-
return openBlock(), createBlock(DynamicRenderInner, {
|
|
40842
|
-
nodeItem: item,
|
|
40843
|
-
key: item.keyID,
|
|
40844
|
-
arrayIndex: $index,
|
|
40845
|
-
index
|
|
40846
|
-
}, null, 8, ["nodeItem", "arrayIndex", "index"]);
|
|
40847
|
-
}), 128))
|
|
40848
|
-
]),
|
|
40849
|
-
_: 2
|
|
40850
|
-
}, 1032, ["title"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($item, (item, index) => {
|
|
40851
|
-
return openBlock(), createBlock(DynamicRenderInner, {
|
|
40852
|
-
nodeItem: item,
|
|
40853
|
-
key: item.keyID,
|
|
40854
|
-
arrayIndex: $index,
|
|
40855
|
-
index
|
|
40856
|
-
}, null, 8, ["nodeItem", "arrayIndex", "index"]);
|
|
40857
|
-
}), 128))
|
|
40858
|
-
]),
|
|
40859
|
-
_: 2
|
|
40860
|
-
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
40861
|
-
]))
|
|
40862
|
-
]),
|
|
40863
|
-
_: 1
|
|
40864
|
-
}, 16, ["modelValue", "sortable", "isRemove", "item-class-name", "borderType", "style", "class"])
|
|
40865
|
-
], 4);
|
|
40866
|
-
};
|
|
40867
|
-
}
|
|
40868
|
-
});
|
|
40869
|
-
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-ef473194"]]);
|
|
40870
|
-
const _hoisted_1$Z = { class: "els-node els-dynamic-render" };
|
|
40452
|
+
const _hoisted_1$Y = { class: "els-node els-dynamic-render" };
|
|
40871
40453
|
const _hoisted_2$R = { class: "els-dynamic-render-inner" };
|
|
40872
|
-
const _sfc_main$
|
|
40454
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
40873
40455
|
...{
|
|
40874
|
-
name: "
|
|
40456
|
+
name: "ElsDynamicRender"
|
|
40875
40457
|
},
|
|
40876
|
-
__name: "
|
|
40458
|
+
__name: "render",
|
|
40877
40459
|
props: renderProps,
|
|
40878
40460
|
emits: ["update:modelValue"],
|
|
40879
40461
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40880
|
-
const
|
|
40881
|
-
return
|
|
40462
|
+
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
40463
|
+
return import("./inner-DAknse9T.js").then((n) => n.i);
|
|
40882
40464
|
});
|
|
40883
|
-
const
|
|
40884
|
-
return
|
|
40465
|
+
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
40466
|
+
return import("./inner-DAknse9T.js").then((n) => n.f);
|
|
40885
40467
|
});
|
|
40886
40468
|
const props = __props;
|
|
40887
40469
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
|
|
40888
|
-
const emits = __emit;
|
|
40889
40470
|
const idataTypes = getValue2("dataTypeData", null);
|
|
40471
|
+
const attrs = useAttrs();
|
|
40890
40472
|
const icomponentTypes = getValue2("componentData", null);
|
|
40891
40473
|
const renderData = ref([]);
|
|
40892
40474
|
const valueData = ref({});
|
|
40893
40475
|
const refsData = ref({});
|
|
40894
40476
|
const currDynamicDataType = ref([]);
|
|
40477
|
+
const {
|
|
40478
|
+
currModelValue,
|
|
40479
|
+
returnModelValue
|
|
40480
|
+
} = useModel(props);
|
|
40895
40481
|
if (idataTypes) {
|
|
40896
40482
|
currDynamicDataType.value.push(...idataTypes);
|
|
40897
40483
|
} else {
|
|
@@ -40927,11 +40513,11 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
40927
40513
|
}
|
|
40928
40514
|
}, { deep: true, immediate: true });
|
|
40929
40515
|
function initData() {
|
|
40930
|
-
if (
|
|
40931
|
-
if (typeof
|
|
40932
|
-
valueData.value = JSON.parse(
|
|
40516
|
+
if (currModelValue.value) {
|
|
40517
|
+
if (typeof currModelValue.value == "string") {
|
|
40518
|
+
valueData.value = JSON.parse(currModelValue.value);
|
|
40933
40519
|
} else {
|
|
40934
|
-
valueData.value =
|
|
40520
|
+
valueData.value = currModelValue.value;
|
|
40935
40521
|
}
|
|
40936
40522
|
}
|
|
40937
40523
|
let currData = {};
|
|
@@ -40944,7 +40530,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
40944
40530
|
initShowConfig(currData, props.showConfig);
|
|
40945
40531
|
dynamicHandler.recoverData(currData, valueData.value);
|
|
40946
40532
|
renderData.value.length = 0;
|
|
40947
|
-
renderData.value.push(...currData.filter((ele) => ele.isShow
|
|
40533
|
+
renderData.value.push(...currData.filter((ele) => ele.isShow));
|
|
40948
40534
|
}
|
|
40949
40535
|
function initShowConfig(data, showConfigData) {
|
|
40950
40536
|
if (showConfigData) {
|
|
@@ -40972,11 +40558,11 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
40972
40558
|
function handleReturnResult() {
|
|
40973
40559
|
if (props.config) {
|
|
40974
40560
|
const currData = dynamicHandler.result(renderData.value);
|
|
40975
|
-
if (typeof
|
|
40976
|
-
|
|
40561
|
+
if (typeof currModelValue.value == "object") {
|
|
40562
|
+
returnModelValue(currData);
|
|
40977
40563
|
return;
|
|
40978
40564
|
}
|
|
40979
|
-
|
|
40565
|
+
returnModelValue(JSON.stringify(currData));
|
|
40980
40566
|
}
|
|
40981
40567
|
}
|
|
40982
40568
|
function getCurrNodeValueData() {
|
|
@@ -40995,7 +40581,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
40995
40581
|
function getContainerValue(item) {
|
|
40996
40582
|
const currData = {};
|
|
40997
40583
|
item.children.forEach((cele) => {
|
|
40998
|
-
if (cele.componentGroup === "Container") {
|
|
40584
|
+
if (cele.componentGroup === "Container" && cele.dataType === "Object" && cele.keyCode) {
|
|
40585
|
+
currData[cele.keyCode] = getContainerValue(cele);
|
|
40586
|
+
} else if (cele.componentGroup === "Container") {
|
|
40999
40587
|
Object.assign(currData, getContainerValue(cele));
|
|
41000
40588
|
} else if (cele.keyCode) {
|
|
41001
40589
|
currData[cele.keyCode] = cele;
|
|
@@ -41003,19 +40591,29 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
41003
40591
|
});
|
|
41004
40592
|
return currData;
|
|
41005
40593
|
}
|
|
40594
|
+
const getArrayNodeValue = function(data) {
|
|
40595
|
+
const currData = [];
|
|
40596
|
+
data.forEach((ele) => {
|
|
40597
|
+
currData.push(getNodeValue(ele));
|
|
40598
|
+
});
|
|
40599
|
+
return currData;
|
|
40600
|
+
};
|
|
41006
40601
|
const getNodeValue = function(data) {
|
|
41007
40602
|
let currData = {};
|
|
41008
40603
|
data.forEach((ele) => {
|
|
41009
|
-
if (ele.componentGroup === "Container") {
|
|
40604
|
+
if (ele.componentGroup === "Container" && ele.dataType === "Object" && ele.keyCode) {
|
|
40605
|
+
currData[ele.keyCode] = getContainerValue(ele);
|
|
40606
|
+
} else if (ele.componentGroup === "Container") {
|
|
41010
40607
|
Object.assign(currData, getContainerValue(ele));
|
|
41011
|
-
} else {
|
|
40608
|
+
} else if (ele.keyCode) {
|
|
41012
40609
|
currData[ele.keyCode] = ele;
|
|
41013
40610
|
}
|
|
41014
40611
|
});
|
|
41015
40612
|
return currData;
|
|
41016
40613
|
};
|
|
41017
40614
|
const getCurrNode = function() {
|
|
41018
|
-
|
|
40615
|
+
const result = getNodeValue(renderData.value);
|
|
40616
|
+
return result;
|
|
41019
40617
|
};
|
|
41020
40618
|
function setComponentRef(id, childRef) {
|
|
41021
40619
|
refsData.value[id] = childRef;
|
|
@@ -41036,7 +40634,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
41036
40634
|
removeComponentRef,
|
|
41037
40635
|
getCurrNodeValueData,
|
|
41038
40636
|
getCurrNode,
|
|
40637
|
+
getRootNode: getCurrNode,
|
|
41039
40638
|
getNodeValue,
|
|
40639
|
+
getArrayNodeValue,
|
|
41040
40640
|
getResult: (data) => {
|
|
41041
40641
|
return dynamicHandler.result(data);
|
|
41042
40642
|
}
|
|
@@ -41046,657 +40646,67 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
41046
40646
|
});
|
|
41047
40647
|
return (_ctx, _cache) => {
|
|
41048
40648
|
const _component_els_form = resolveComponent("els-form");
|
|
41049
|
-
const _component_el_skeleton = resolveComponent("el-skeleton");
|
|
41050
40649
|
const _component_ElsFormNode = resolveComponent("ElsFormNode");
|
|
41051
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
41052
|
-
createVNode(_component_ElsFormNode, mergeProps(unref(
|
|
41053
|
-
|
|
41054
|
-
createElementVNode("div", _hoisted_2$R, [
|
|
41055
|
-
(openBlock(), createBlock(Suspense, null, {
|
|
41056
|
-
default: withCtx(() => [
|
|
41057
|
-
createElementVNode("div", null, [
|
|
41058
|
-
renderData.value && renderData.value.length && renderData.value[0].componentTypeName === "Form" ? (openBlock(), createBlock(unref(DynamicRenderFormAsync), {
|
|
41059
|
-
key: 0,
|
|
41060
|
-
isRoot: true,
|
|
41061
|
-
nodeItem: renderData.value[0]
|
|
41062
|
-
}, null, 8, ["nodeItem"])) : (openBlock(), createBlock(_component_els_form, {
|
|
41063
|
-
key: 1,
|
|
41064
|
-
modelValue: renderData.value,
|
|
41065
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => renderData.value = $event)
|
|
41066
|
-
}, {
|
|
41067
|
-
default: withCtx(() => [
|
|
41068
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(renderData.value, (item, index) => {
|
|
41069
|
-
return openBlock(), createBlock(unref(DynamicRenderInnerAsync), {
|
|
41070
|
-
index,
|
|
41071
|
-
nodeItem: item
|
|
41072
|
-
}, null, 8, ["index", "nodeItem"]);
|
|
41073
|
-
}), 256))
|
|
41074
|
-
]),
|
|
41075
|
-
_: 1
|
|
41076
|
-
}, 8, ["modelValue"]))
|
|
41077
|
-
])
|
|
41078
|
-
]),
|
|
41079
|
-
fallback: withCtx(() => [
|
|
41080
|
-
createVNode(_component_el_skeleton, { animated: "" })
|
|
41081
|
-
]),
|
|
41082
|
-
_: 1
|
|
41083
|
-
}))
|
|
41084
|
-
])
|
|
41085
|
-
]),
|
|
41086
|
-
_: 1
|
|
41087
|
-
}, 16)
|
|
41088
|
-
]);
|
|
41089
|
-
};
|
|
41090
|
-
}
|
|
41091
|
-
});
|
|
41092
|
-
const ElsDynamicRenderAsync = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-957795fa"]]);
|
|
41093
|
-
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
41094
|
-
...{
|
|
41095
|
-
inheritAttrs: false
|
|
41096
|
-
},
|
|
41097
|
-
__name: "innerItem",
|
|
41098
|
-
props: /* @__PURE__ */ mergeModels({
|
|
41099
|
-
nodeItem: {},
|
|
41100
|
-
currDepath: {},
|
|
41101
|
-
parentNode: {},
|
|
41102
|
-
currNode: {},
|
|
41103
|
-
nodeType: {}
|
|
41104
|
-
}, {
|
|
41105
|
-
"modelValue": {},
|
|
41106
|
-
"modelModifiers": {}
|
|
41107
|
-
}),
|
|
41108
|
-
emits: /* @__PURE__ */ mergeModels(["update:modelValue", "valueChange"], ["update:modelValue"]),
|
|
41109
|
-
setup(__props, { emit: __emit }) {
|
|
41110
|
-
const emits = __emit;
|
|
41111
|
-
const dyComponent = ref();
|
|
41112
|
-
const modelValue = useModel$1(__props, "modelValue");
|
|
41113
|
-
const props = __props;
|
|
41114
|
-
const attrs = useAttrs();
|
|
41115
|
-
const currValue = ref();
|
|
41116
|
-
const slotValue = ref({});
|
|
41117
|
-
const { isMobile, componentProps } = useRender(props, props.nodeItem, modelValue, slotValue);
|
|
41118
|
-
if (props.nodeItem.slots && props.nodeItem.slots.length) {
|
|
41119
|
-
props.nodeItem.slots.forEach((slot) => {
|
|
41120
|
-
if (props.nodeItem.dataTypeName === "String") {
|
|
41121
|
-
slotValue.value[slot.name] = "";
|
|
41122
|
-
} else {
|
|
41123
|
-
slotValue.value[slot.name] = {};
|
|
41124
|
-
}
|
|
41125
|
-
});
|
|
41126
|
-
}
|
|
41127
|
-
watchEffect(() => {
|
|
41128
|
-
currValue.value = modelValue.value;
|
|
41129
|
-
});
|
|
41130
|
-
watch(currValue, (val) => {
|
|
41131
|
-
emits("update:modelValue", val);
|
|
41132
|
-
emits("valueChange", val);
|
|
41133
|
-
}, { deep: true, immediate: true });
|
|
41134
|
-
const componentName = ref("");
|
|
41135
|
-
watchEffect(() => {
|
|
41136
|
-
componentName.value = props.nodeItem.componentName;
|
|
41137
|
-
});
|
|
41138
|
-
useComponentRef(props.nodeItem, dyComponent);
|
|
41139
|
-
return (_ctx, _cache) => {
|
|
41140
|
-
var _a;
|
|
41141
|
-
return componentName.value ? (openBlock(), createBlock(resolveDynamicComponent(componentName.value), mergeProps({ key: 0 }, Object.assign({}, unref(componentProps), unref(attrs)), {
|
|
41142
|
-
modelValue: currValue.value,
|
|
41143
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currValue.value = $event),
|
|
41144
|
-
ref_key: "dyComponent",
|
|
41145
|
-
ref: dyComponent
|
|
41146
|
-
}), createSlots({ _: 2 }, [
|
|
41147
|
-
renderList((_a = _ctx.nodeItem.slots) == null ? void 0 : _a.filter((ele) => ele.children.length), (slot) => {
|
|
41148
|
-
return {
|
|
41149
|
-
name: slot.name,
|
|
41150
|
-
fn: withCtx((slotProps) => [
|
|
41151
|
-
createVNode(ElsDynamicRenderAsync, {
|
|
41152
|
-
config: slot.children,
|
|
41153
|
-
modelValue: slotValue.value[slot.name],
|
|
41154
|
-
"onUpdate:modelValue": ($event) => slotValue.value[slot.name] = $event,
|
|
41155
|
-
globalData: Object.assign({}, slotProps, { componentValue: currValue.value }),
|
|
41156
|
-
isMobile: unref(isMobile)
|
|
41157
|
-
}, null, 8, ["config", "modelValue", "onUpdate:modelValue", "globalData", "isMobile"])
|
|
41158
|
-
])
|
|
41159
|
-
};
|
|
41160
|
-
})
|
|
41161
|
-
]), 1040, ["modelValue"])) : createCommentVNode("", true);
|
|
41162
|
-
};
|
|
41163
|
-
}
|
|
41164
|
-
});
|
|
41165
|
-
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
41166
|
-
__name: "innerArray",
|
|
41167
|
-
props: /* @__PURE__ */ mergeModels({
|
|
41168
|
-
parentNode: {}
|
|
41169
|
-
}, {
|
|
41170
|
-
"nodeItem": { default: () => {
|
|
41171
|
-
return reactive([]);
|
|
41172
|
-
} },
|
|
41173
|
-
"nodeItemModifiers": {}
|
|
41174
|
-
}),
|
|
41175
|
-
emits: ["update:nodeItem"],
|
|
41176
|
-
setup(__props) {
|
|
41177
|
-
const props = __props;
|
|
41178
|
-
const { getValue: getValue2 } = useProps();
|
|
41179
|
-
const dataTypes = getValue2("dataTypeData", []);
|
|
41180
|
-
const nodeItem = useModel$1(__props, "nodeItem");
|
|
41181
|
-
const { isMobile, formProps: formProps2, componentProps, renderDisabled } = useRender(props, nodeItem.value);
|
|
41182
|
-
function handleValueChange(val) {
|
|
41183
|
-
if (nodeItem.value.config.advancedConfig && nodeItem.value.config.advancedConfig.eventChange) {
|
|
41184
|
-
let currEvent = new Function("val,parentNode,currNode", nodeItem.value.config.advancedConfig.eventChange);
|
|
41185
|
-
currEvent(val, props.parentNode, nodeItem.value);
|
|
41186
|
-
}
|
|
41187
|
-
}
|
|
41188
|
-
function getItemDefaultValue() {
|
|
41189
|
-
const currDataType = dataTypes.find((ele) => ele.value === nodeItem.value.arrayDataType);
|
|
41190
|
-
if (currDataType && currDataType.defaultValue) {
|
|
41191
|
-
return currDataType.defaultValue;
|
|
41192
|
-
}
|
|
41193
|
-
if (nodeItem.value.arrayDataTypeName == "String") {
|
|
41194
|
-
if (nodeItem.value.defaultValue) {
|
|
41195
|
-
return nodeItem.value.defaultValue;
|
|
41196
|
-
}
|
|
41197
|
-
return "";
|
|
41198
|
-
} else if (nodeItem.value.arrayDataTypeName == "Bool") {
|
|
41199
|
-
if (nodeItem.value.defaultValue === "true") {
|
|
41200
|
-
return true;
|
|
41201
|
-
} else {
|
|
41202
|
-
return false;
|
|
41203
|
-
}
|
|
41204
|
-
} else if (nodeItem.value.arrayDataTypeName === "Number") {
|
|
41205
|
-
if (nodeItem.value.defaultValue != void 0 && nodeItem.value.defaultValue !== "") {
|
|
41206
|
-
return parseFloat(nodeItem.value.defaultValue);
|
|
41207
|
-
} else {
|
|
41208
|
-
return 0;
|
|
41209
|
-
}
|
|
41210
|
-
} else if (nodeItem.value.arrayDataTypeName === "Object") {
|
|
41211
|
-
return {};
|
|
41212
|
-
} else if (nodeItem.value.arrayDataTypeName === "Array") {
|
|
41213
|
-
return [];
|
|
41214
|
-
}
|
|
41215
|
-
return {};
|
|
41216
|
-
}
|
|
41217
|
-
function handleAddItem() {
|
|
41218
|
-
return getItemDefaultValue();
|
|
41219
|
-
}
|
|
41220
|
-
function initDefault(val) {
|
|
41221
|
-
let defaultArrayData = [];
|
|
41222
|
-
let defaultValue = getItemDefaultValue();
|
|
41223
|
-
if (val === void 0 || val === "") {
|
|
41224
|
-
defaultArrayData.push(defaultValue);
|
|
41225
|
-
} else {
|
|
41226
|
-
for (let i = 0; i < val; i++) {
|
|
41227
|
-
defaultArrayData.push(defaultValue);
|
|
41228
|
-
}
|
|
41229
|
-
}
|
|
41230
|
-
nodeItem.value.value = defaultArrayData;
|
|
41231
|
-
}
|
|
41232
|
-
watch(() => nodeItem.value.value, (val) => {
|
|
41233
|
-
if (!val || !Array.isArray(val)) {
|
|
41234
|
-
initDefault(nodeItem.value.config.arrayConfig.arrayDefaultLength);
|
|
41235
|
-
}
|
|
41236
|
-
}, { immediate: true });
|
|
41237
|
-
watch(() => nodeItem.value.config.arrayConfig.arrayDefaultLength, (val) => {
|
|
41238
|
-
initDefault(val);
|
|
41239
|
-
});
|
|
41240
|
-
const baseProps = computed(() => {
|
|
41241
|
-
const currProps = Object.assign({}, componentProps.value, formProps2.value);
|
|
41242
|
-
delete currProps.label;
|
|
41243
|
-
return currProps;
|
|
41244
|
-
});
|
|
41245
|
-
const isObject2 = computed(() => {
|
|
41246
|
-
return nodeItem.value.arrayDataTypeName === "Object";
|
|
41247
|
-
});
|
|
41248
|
-
return (_ctx, _cache) => {
|
|
41249
|
-
const _component_els_list = resolveComponent("els-list");
|
|
41250
|
-
return openBlock(), createElementBlock("div", {
|
|
41251
|
-
class: normalizeClass(["els-dynamic-array-render", { "horizontal": nodeItem.value.config.arrayConfig.arrangementType === "Horizontal" }]),
|
|
41252
|
-
style: { "flex-grow": "1" }
|
|
41253
|
-
}, [
|
|
41254
|
-
createVNode(_component_els_list, {
|
|
41255
|
-
modelValue: nodeItem.value.value,
|
|
41256
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nodeItem.value.value = $event),
|
|
41257
|
-
onAdd: handleAddItem,
|
|
41258
|
-
"item-class-name": nodeItem.value.arrayDataTypeName === "Object" || nodeItem.value.componentTypeName === "DynamicRender" ? "els-dynamic-r-array" : "",
|
|
41259
|
-
borderType: nodeItem.value.config.arrayConfig.borderType,
|
|
41260
|
-
style: normalizeStyle([
|
|
41261
|
-
{ "max-width": nodeItem.value.config.arrayConfig.maxWidth ? nodeItem.value.config.arrayConfig.maxWidth + "px" : "" },
|
|
41262
|
-
{ "max-height": nodeItem.value.config.arrayConfig.maxHeight ? nodeItem.value.config.arrayConfig.maxHeight + "px" : "" },
|
|
41263
|
-
{ "display": nodeItem.value.config.arrayConfig.arrangementType === "Horizontal" ? "flex" : "" },
|
|
41264
|
-
{ "flex-wrap": "wrap" },
|
|
41265
|
-
{ "gap": "5px" },
|
|
41266
|
-
{ "overflow": "scroll" },
|
|
41267
|
-
{ "padding-right": unref(isMobile) || isObject2.value ? "0px" : "20px" }
|
|
41268
|
-
])
|
|
41269
|
-
}, {
|
|
41270
|
-
default: withCtx(({ element, index }) => [
|
|
41271
|
-
(openBlock(), createBlock(_sfc_main$19, mergeProps({
|
|
41272
|
-
class: { "els-dynamic-r-array-item": nodeItem.value.componentName === "ElsDynamicRender" }
|
|
41273
|
-
}, baseProps.value, {
|
|
41274
|
-
key: index,
|
|
41275
|
-
"parent-node": _ctx.parentNode,
|
|
41276
|
-
"curr-node": nodeItem.value,
|
|
41277
|
-
disabled: unref(renderDisabled)(),
|
|
41278
|
-
modelValue: element.value,
|
|
41279
|
-
"onUpdate:modelValue": ($event) => element.value = $event,
|
|
41280
|
-
prop: `[${index}]`,
|
|
41281
|
-
requiredMessage: "不能为空",
|
|
41282
|
-
nodeItem: nodeItem.value,
|
|
41283
|
-
style: nodeItem.value.config.advancedConfig.style,
|
|
41284
|
-
onValueChange: handleValueChange
|
|
41285
|
-
}), null, 16, ["class", "parent-node", "curr-node", "disabled", "modelValue", "onUpdate:modelValue", "prop", "nodeItem", "style"]))
|
|
41286
|
-
]),
|
|
41287
|
-
_: 1
|
|
41288
|
-
}, 8, ["modelValue", "item-class-name", "borderType", "style"])
|
|
41289
|
-
], 2);
|
|
41290
|
-
};
|
|
41291
|
-
}
|
|
41292
|
-
});
|
|
41293
|
-
const DynamicRenderInnerArray = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-fc00363b"]]);
|
|
41294
|
-
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
41295
|
-
...{
|
|
41296
|
-
inheritAttrs: false
|
|
41297
|
-
},
|
|
41298
|
-
__name: "innerWrap",
|
|
41299
|
-
props: {
|
|
41300
|
-
index: {},
|
|
41301
|
-
nodeItem: {},
|
|
41302
|
-
parentNode: {}
|
|
41303
|
-
},
|
|
41304
|
-
setup(__props) {
|
|
41305
|
-
const props = __props;
|
|
41306
|
-
const { getValue: getValue2, setValue } = useProps();
|
|
41307
|
-
const dyComponent = ref();
|
|
41308
|
-
const { renderIf, componentProps, getNodeValue, getCurrNode } = useRender(props, props.nodeItem);
|
|
41309
|
-
const getResult = getValue2("getResult", () => {
|
|
41310
|
-
return {};
|
|
41311
|
-
});
|
|
41312
|
-
const modelValue = computed(() => {
|
|
41313
|
-
return getResult(props.nodeItem.children);
|
|
41314
|
-
});
|
|
41315
|
-
const getFormPropIndex = getValue2("getFormPropIndex", () => {
|
|
41316
|
-
return "";
|
|
41317
|
-
});
|
|
41318
|
-
useComponentRef(props.nodeItem, dyComponent);
|
|
41319
|
-
if (props.nodeItem.keyCode && props.nodeItem.dataType === "Object") {
|
|
41320
|
-
setValue({
|
|
41321
|
-
getCurrNode: () => {
|
|
41322
|
-
return getNodeValue(props.nodeItem.children);
|
|
41323
|
-
},
|
|
41324
|
-
getParentNode: () => {
|
|
41325
|
-
return getCurrNode();
|
|
41326
|
-
},
|
|
41327
|
-
getFormPropIndex: () => {
|
|
41328
|
-
let currPropIndex = getFormPropIndex();
|
|
41329
|
-
currPropIndex += `[${props.index}].children`;
|
|
41330
|
-
return currPropIndex;
|
|
41331
|
-
}
|
|
41332
|
-
});
|
|
41333
|
-
} else {
|
|
41334
|
-
setValue({
|
|
41335
|
-
getFormPropIndex: () => {
|
|
41336
|
-
let currPropIndex = getFormPropIndex();
|
|
41337
|
-
currPropIndex += `[${props.index}].children`;
|
|
41338
|
-
return currPropIndex;
|
|
41339
|
-
}
|
|
41340
|
-
});
|
|
41341
|
-
}
|
|
41342
|
-
return (_ctx, _cache) => {
|
|
41343
|
-
var _a, _b, _c, _d, _e;
|
|
41344
|
-
return ((_a = _ctx.nodeItem) == null ? void 0 : _a.componentName) === "ElsFormQuery" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
41345
|
-
unref(renderIf)() ? (openBlock(), createBlock(resolveDynamicComponent((_b = _ctx.nodeItem) == null ? void 0 : _b.componentName), mergeProps({
|
|
41346
|
-
key: 0,
|
|
41347
|
-
style: (_c = _ctx.nodeItem.config.advancedConfig) == null ? void 0 : _c.style
|
|
41348
|
-
}, unref(componentProps), {
|
|
41349
|
-
ref_key: "dyComponent",
|
|
41350
|
-
ref: dyComponent,
|
|
41351
|
-
modelValue: modelValue.value,
|
|
41352
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
41353
|
-
}), {
|
|
41354
|
-
default: withCtx(() => [
|
|
41355
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.nodeItem.children, (item, index) => {
|
|
41356
|
-
return openBlock(), createBlock(DynamicRenderInner, {
|
|
41357
|
-
nodeItem: item,
|
|
41358
|
-
index: -1,
|
|
41359
|
-
key: item.keyID
|
|
41360
|
-
}, null, 8, ["nodeItem"]);
|
|
41361
|
-
}), 128))
|
|
41362
|
-
]),
|
|
41363
|
-
_: 1
|
|
41364
|
-
}, 16, ["style", "modelValue"])) : createCommentVNode("", true)
|
|
41365
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
41366
|
-
unref(renderIf)() ? (openBlock(), createBlock(resolveDynamicComponent((_d = _ctx.nodeItem) == null ? void 0 : _d.componentName), mergeProps({
|
|
41367
|
-
key: 0,
|
|
41368
|
-
style: (_e = _ctx.nodeItem.config.advancedConfig) == null ? void 0 : _e.style
|
|
41369
|
-
}, unref(componentProps), {
|
|
41370
|
-
ref_key: "dyComponent",
|
|
41371
|
-
ref: dyComponent
|
|
41372
|
-
}), {
|
|
41373
|
-
default: withCtx(() => [
|
|
41374
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.nodeItem.children, (item, index) => {
|
|
41375
|
-
return openBlock(), createBlock(DynamicRenderInner, {
|
|
41376
|
-
nodeItem: item,
|
|
41377
|
-
index,
|
|
41378
|
-
key: item.keyID
|
|
41379
|
-
}, null, 8, ["nodeItem", "index"]);
|
|
41380
|
-
}), 128))
|
|
41381
|
-
]),
|
|
41382
|
-
_: 1
|
|
41383
|
-
}, 16, ["style"])) : createCommentVNode("", true)
|
|
41384
|
-
], 64));
|
|
41385
|
-
};
|
|
41386
|
-
}
|
|
41387
|
-
});
|
|
41388
|
-
const _hoisted_1$Y = ["innerHTML"];
|
|
41389
|
-
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
41390
|
-
...{
|
|
41391
|
-
inheritAttrs: false
|
|
41392
|
-
},
|
|
41393
|
-
__name: "show",
|
|
41394
|
-
props: /* @__PURE__ */ mergeModels({
|
|
41395
|
-
nodeItem: {}
|
|
41396
|
-
}, {
|
|
41397
|
-
"modelValue": {},
|
|
41398
|
-
"modelModifiers": {}
|
|
41399
|
-
}),
|
|
41400
|
-
emits: ["update:modelValue"],
|
|
41401
|
-
setup(__props) {
|
|
41402
|
-
const dyComponent = ref();
|
|
41403
|
-
const modelValue = useModel$1(__props, "modelValue");
|
|
41404
|
-
const slotValue = ref({});
|
|
41405
|
-
const props = __props;
|
|
41406
|
-
const { isMobile, componentProps, renderContent } = useRender(props, props.nodeItem, modelValue, slotValue);
|
|
41407
|
-
useComponentRef(props.nodeItem, dyComponent);
|
|
41408
|
-
const componentName = ref("");
|
|
41409
|
-
const innerContent = ref(props.nodeItem.config.baseConfig.innerContent);
|
|
41410
|
-
watchEffect(() => {
|
|
41411
|
-
componentName.value = props.nodeItem.componentName;
|
|
41412
|
-
});
|
|
41413
|
-
return (_ctx, _cache) => {
|
|
41414
|
-
const _component_els_tip = resolveComponent("els-tip");
|
|
41415
|
-
return componentName.value ? (openBlock(), createBlock(resolveDynamicComponent(componentName.value), mergeProps({
|
|
41416
|
-
key: 0,
|
|
41417
|
-
modelValue: modelValue.value,
|
|
41418
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
41419
|
-
}, unref(componentProps), {
|
|
41420
|
-
ref_key: "dyComponent",
|
|
41421
|
-
ref: dyComponent
|
|
41422
|
-
}), {
|
|
41423
|
-
default: withCtx(() => [
|
|
41424
|
-
innerContent.value ? (openBlock(), createElementBlock("span", {
|
|
41425
|
-
key: 0,
|
|
41426
|
-
innerHTML: unref(renderContent)(innerContent.value)
|
|
41427
|
-
}, null, 8, _hoisted_1$Y)) : createCommentVNode("", true),
|
|
41428
|
-
_ctx.nodeItem.slots && _ctx.nodeItem.slots.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.nodeItem.slots, (slot) => {
|
|
41429
|
-
return renderSlot(_ctx.$slots, slot.name, {}, () => [
|
|
41430
|
-
createVNode(ElsDynamicRenderAsync, {
|
|
41431
|
-
config: slot.children,
|
|
41432
|
-
modelValue: slotValue.value[slot.name],
|
|
41433
|
-
"onUpdate:modelValue": ($event) => slotValue.value[slot.name] = $event,
|
|
41434
|
-
isMobile: unref(isMobile)
|
|
41435
|
-
}, null, 8, ["config", "modelValue", "onUpdate:modelValue", "isMobile"])
|
|
41436
|
-
]);
|
|
41437
|
-
}), 256)) : createCommentVNode("", true)
|
|
41438
|
-
]),
|
|
41439
|
-
_: 3
|
|
41440
|
-
}, 16, ["modelValue"])) : (openBlock(), createBlock(_component_els_tip, {
|
|
41441
|
-
key: 1,
|
|
41442
|
-
type: "danger"
|
|
41443
|
-
}, {
|
|
41444
|
-
default: withCtx(() => [
|
|
41445
|
-
createTextVNode("未设置组件名")
|
|
41446
|
-
]),
|
|
41447
|
-
_: 1
|
|
41448
|
-
}));
|
|
41449
|
-
};
|
|
41450
|
-
}
|
|
41451
|
-
});
|
|
41452
|
-
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
41453
|
-
...{
|
|
41454
|
-
inheritAttrs: false
|
|
41455
|
-
},
|
|
41456
|
-
__name: "inner",
|
|
41457
|
-
props: /* @__PURE__ */ mergeModels({
|
|
41458
|
-
index: {},
|
|
41459
|
-
arrayIndex: { default: -1 }
|
|
41460
|
-
}, {
|
|
41461
|
-
"nodeItem": { default: () => {
|
|
41462
|
-
return reactive([]);
|
|
41463
|
-
} },
|
|
41464
|
-
"nodeItemModifiers": {}
|
|
41465
|
-
}),
|
|
41466
|
-
emits: ["update:nodeItem"],
|
|
41467
|
-
setup(__props) {
|
|
41468
|
-
const props = __props;
|
|
41469
|
-
const { getValue: getValue2, setValue } = useProps();
|
|
41470
|
-
const nodeItem = useModel$1(__props, "nodeItem");
|
|
41471
|
-
const { isMobile, formProps: formProps2, getCurrNode, renderIf, renderValueChange } = useRender(props, nodeItem.value);
|
|
41472
|
-
const hasForm = computed(() => {
|
|
41473
|
-
var _a;
|
|
41474
|
-
if ((nodeItem.value.dataTypeName === "Object" || nodeItem.value.arrayDataTypeName == "Object") && ((_a = nodeItem.value.config.baseConfig) == null ? void 0 : _a.componentName) == "ElsCaption") {
|
|
41475
|
-
return false;
|
|
41476
|
-
}
|
|
41477
|
-
return true;
|
|
41478
|
-
});
|
|
41479
|
-
if (props.arrayIndex > -1) {
|
|
41480
|
-
setValue({
|
|
41481
|
-
getCurrNode: () => {
|
|
41482
|
-
return getCurrNode();
|
|
41483
|
-
}
|
|
41484
|
-
});
|
|
41485
|
-
}
|
|
41486
|
-
return (_ctx, _cache) => {
|
|
41487
|
-
var _a;
|
|
41488
|
-
const _component_els_caption = resolveComponent("els-caption");
|
|
41489
|
-
const _component_els_form_node = resolveComponent("els-form-node");
|
|
41490
|
-
return unref(renderIf)() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
41491
|
-
(nodeItem.value.dataTypeName === "Object" || nodeItem.value.arrayDataTypeName == "Object") && ((_a = nodeItem.value.config.baseConfig) == null ? void 0 : _a.componentName) == "ElsCaption" ? (openBlock(), createBlock(_component_els_caption, mergeProps({ key: 0 }, nodeItem.value.config.baseConfig, {
|
|
41492
|
-
title: nodeItem.value.config.baseConfig.title || nodeItem.value.keyName
|
|
41493
|
-
}), null, 16, ["title"])) : createCommentVNode("", true),
|
|
41494
|
-
nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Show" && nodeItem.value.keyCode ? (openBlock(), createBlock(_sfc_main$16, {
|
|
41495
|
-
key: 1,
|
|
41496
|
-
nodeItem: nodeItem.value,
|
|
41497
|
-
style: normalizeStyle(nodeItem.value.config.advancedConfig.style),
|
|
41498
|
-
modelValue: nodeItem.value.value,
|
|
41499
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nodeItem.value.value = $event),
|
|
41500
|
-
title: nodeItem.value.keyName
|
|
41501
|
-
}, null, 8, ["nodeItem", "style", "modelValue", "title"])) : nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Show" ? (openBlock(), createBlock(_sfc_main$16, {
|
|
41502
|
-
key: 2,
|
|
41503
|
-
nodeItem: nodeItem.value,
|
|
41504
|
-
style: normalizeStyle(nodeItem.value.config.advancedConfig.style),
|
|
41505
|
-
title: nodeItem.value.keyName
|
|
41506
|
-
}, null, 8, ["nodeItem", "style", "title"])) : nodeItem.value.componentGroup == "Container" ? (openBlock(), createBlock(_sfc_main$17, {
|
|
41507
|
-
key: 3,
|
|
41508
|
-
parentNode: nodeItem.value,
|
|
41509
|
-
nodeItem: nodeItem.value,
|
|
41510
|
-
index: _ctx.index
|
|
41511
|
-
}, null, 8, ["parentNode", "nodeItem", "index"])) : nodeItem.value.dataTypeName === "Array" && nodeItem.value.arrayDataType !== "Object" || nodeItem.value.dataTypeName === "Array" && nodeItem.value.componentTypeName ? (openBlock(), createBlock(_component_els_form_node, mergeProps({
|
|
41512
|
-
key: 4,
|
|
41513
|
-
childCreateFormItem: false,
|
|
41514
|
-
createFormItem: hasForm.value
|
|
41515
|
-
}, unref(formProps2), {
|
|
41516
|
-
prop: void 0,
|
|
41517
|
-
childType: nodeItem.value.dataTypeName === "Array" ? "" : nodeItem.value.componentTypeName
|
|
41518
|
-
}), {
|
|
41519
|
-
default: withCtx(() => [
|
|
41520
|
-
createVNode(DynamicRenderInnerArray, { nodeItem: nodeItem.value }, null, 8, ["nodeItem"])
|
|
41521
|
-
]),
|
|
41522
|
-
_: 1
|
|
41523
|
-
}, 16, ["createFormItem", "childType"])) : nodeItem.value.dataTypeName == "Object" || nodeItem.value.dataTypeName === "Array" && nodeItem.value.arrayDataType === "Object" ? (openBlock(), createBlock(_component_els_form_node, mergeProps({
|
|
41524
|
-
key: 5,
|
|
41525
|
-
childCreateFormItem: false,
|
|
41526
|
-
createFormItem: !unref(isMobile) && hasForm.value
|
|
41527
|
-
}, unref(formProps2), {
|
|
41528
|
-
childType: nodeItem.value.dataTypeName === "Array" ? "" : nodeItem.value.componentTypeName
|
|
40650
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
40651
|
+
createVNode(_component_ElsFormNode, mergeProps(Object.assign({}, unref(attrs), unref(formNodeProps)), {
|
|
40652
|
+
labelWidth: _ctx.label === "" || _ctx.label === void 0 ? "0" : void 0
|
|
41529
40653
|
}), {
|
|
41530
40654
|
default: withCtx(() => [
|
|
41531
|
-
|
|
41532
|
-
|
|
40655
|
+
createElementVNode("div", _hoisted_2$R, [
|
|
40656
|
+
renderData.value && renderData.value.length && renderData.value[0].componentTypeName === "Form" ? (openBlock(), createBlock(unref(DynamicRenderForm), {
|
|
41533
40657
|
key: 0,
|
|
41534
|
-
|
|
40658
|
+
nodeItem: renderData.value[0],
|
|
40659
|
+
isRoot: true
|
|
40660
|
+
}, null, 8, ["nodeItem"])) : (openBlock(), createBlock(_component_els_form, {
|
|
40661
|
+
key: 1,
|
|
40662
|
+
modelValue: renderData.value,
|
|
40663
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => renderData.value = $event)
|
|
41535
40664
|
}, {
|
|
41536
40665
|
default: withCtx(() => [
|
|
41537
|
-
|
|
41538
|
-
|
|
41539
|
-
|
|
41540
|
-
|
|
41541
|
-
|
|
41542
|
-
|
|
41543
|
-
},
|
|
40666
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(renderData.value, (item, index) => {
|
|
40667
|
+
return openBlock(), createBlock(unref(DynamicRenderInner), {
|
|
40668
|
+
index,
|
|
40669
|
+
nodeItem: item,
|
|
40670
|
+
key: item.keyID
|
|
40671
|
+
}, null, 8, ["index", "nodeItem"]);
|
|
40672
|
+
}), 128))
|
|
41544
40673
|
]),
|
|
41545
40674
|
_: 1
|
|
41546
|
-
}, 8, ["
|
|
41547
|
-
|
|
41548
|
-
nodeItem: nodeItem.value,
|
|
41549
|
-
modelValue: nodeItem.value.value,
|
|
41550
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => nodeItem.value.value = $event),
|
|
41551
|
-
onValueChange: _cache[4] || (_cache[4] = ($event) => unref(renderValueChange)($event))
|
|
41552
|
-
}, null, 8, ["nodeItem", "modelValue"]))
|
|
41553
|
-
], 64)) : nodeItem.value.dataTypeName == "Object" ? (openBlock(), createBlock(DynamicRenderForm, {
|
|
41554
|
-
key: 1,
|
|
41555
|
-
nodeItem: nodeItem.value
|
|
41556
|
-
}, null, 8, ["nodeItem"])) : (openBlock(), createBlock(DynamicRenderInnerObjectArray, {
|
|
41557
|
-
key: 2,
|
|
41558
|
-
nodeItem: nodeItem.value
|
|
41559
|
-
}, null, 8, ["nodeItem"]))
|
|
41560
|
-
]),
|
|
41561
|
-
_: 1
|
|
41562
|
-
}, 16, ["createFormItem", "childType"])) : unref(isMobile) && nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Form" ? (openBlock(), createBlock(_sfc_main$19, mergeProps({
|
|
41563
|
-
key: 6,
|
|
41564
|
-
nodeItem: nodeItem.value,
|
|
41565
|
-
modelValue: nodeItem.value.value,
|
|
41566
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => nodeItem.value.value = $event)
|
|
41567
|
-
}, unref(formProps2), {
|
|
41568
|
-
onValueChange: _cache[6] || (_cache[6] = ($event) => unref(renderValueChange)($event))
|
|
41569
|
-
}), null, 16, ["nodeItem", "modelValue"])) : nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Form" ? (openBlock(), createBlock(_component_els_form_node, mergeProps({
|
|
41570
|
-
key: 7,
|
|
41571
|
-
childCreateFormItem: false,
|
|
41572
|
-
createFormItem: hasForm.value
|
|
41573
|
-
}, unref(formProps2), {
|
|
41574
|
-
childType: nodeItem.value.componentTypeName
|
|
41575
|
-
}), {
|
|
41576
|
-
default: withCtx(() => [
|
|
41577
|
-
createVNode(_sfc_main$19, {
|
|
41578
|
-
nodeItem: nodeItem.value,
|
|
41579
|
-
modelValue: nodeItem.value.value,
|
|
41580
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => nodeItem.value.value = $event),
|
|
41581
|
-
onValueChange: _cache[8] || (_cache[8] = ($event) => unref(renderValueChange)($event))
|
|
41582
|
-
}, null, 8, ["nodeItem", "modelValue"])
|
|
40675
|
+
}, 8, ["modelValue"]))
|
|
40676
|
+
])
|
|
41583
40677
|
]),
|
|
41584
40678
|
_: 1
|
|
41585
|
-
}, 16, ["
|
|
41586
|
-
]
|
|
41587
|
-
};
|
|
41588
|
-
}
|
|
41589
|
-
});
|
|
41590
|
-
const DynamicRenderInner = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-77f43620"]]);
|
|
41591
|
-
const inner = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41592
|
-
__proto__: null,
|
|
41593
|
-
default: DynamicRenderInner
|
|
41594
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
41595
|
-
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
41596
|
-
__name: "form",
|
|
41597
|
-
props: /* @__PURE__ */ mergeModels({
|
|
41598
|
-
isRoot: { type: Boolean }
|
|
41599
|
-
}, {
|
|
41600
|
-
"nodeItem": { default: () => {
|
|
41601
|
-
return reactive([]);
|
|
41602
|
-
} },
|
|
41603
|
-
"nodeItemModifiers": {}
|
|
41604
|
-
}),
|
|
41605
|
-
emits: ["update:nodeItem"],
|
|
41606
|
-
setup(__props) {
|
|
41607
|
-
const dyComponent = ref();
|
|
41608
|
-
const props = __props;
|
|
41609
|
-
const nodeItem = useModel$1(__props, "nodeItem");
|
|
41610
|
-
const { setValue } = useProps();
|
|
41611
|
-
const { isMobile, getNodeValue, getCurrNode, componentProps } = useRender(props, nodeItem.value);
|
|
41612
|
-
useComponentRef(nodeItem.value, dyComponent);
|
|
41613
|
-
setValue({
|
|
41614
|
-
getCurrNode: () => {
|
|
41615
|
-
return getNodeValue(nodeItem.value.children);
|
|
41616
|
-
},
|
|
41617
|
-
getParentNode: () => {
|
|
41618
|
-
return getCurrNode();
|
|
41619
|
-
}
|
|
41620
|
-
});
|
|
41621
|
-
return (_ctx, _cache) => {
|
|
41622
|
-
const _component_els_form = resolveComponent("els-form");
|
|
41623
|
-
return unref(isMobile) && !_ctx.isRoot ? (openBlock(), createBlock(_component_els_form, mergeProps({
|
|
41624
|
-
key: 0,
|
|
41625
|
-
modelValue: nodeItem.value.children,
|
|
41626
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nodeItem.value.children = $event)
|
|
41627
|
-
}, unref(componentProps), {
|
|
41628
|
-
ref_key: "dyComponent",
|
|
41629
|
-
ref: dyComponent,
|
|
41630
|
-
key: nodeItem.value.keyID
|
|
41631
|
-
}), {
|
|
41632
|
-
default: withCtx(() => [
|
|
41633
|
-
(openBlock(), createBlock(resolveDynamicComponent("van-cell-group"), {
|
|
41634
|
-
title: nodeItem.value.keyName
|
|
41635
|
-
}, {
|
|
41636
|
-
default: withCtx(() => [
|
|
41637
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(nodeItem.value.children, (item, index) => {
|
|
41638
|
-
return openBlock(), createBlock(DynamicRenderInner, {
|
|
41639
|
-
index,
|
|
41640
|
-
nodeItem: item,
|
|
41641
|
-
key: item.keyID
|
|
41642
|
-
}, null, 8, ["index", "nodeItem"]);
|
|
41643
|
-
}), 128))
|
|
41644
|
-
]),
|
|
41645
|
-
_: 1
|
|
41646
|
-
}, 8, ["title"]))
|
|
41647
|
-
]),
|
|
41648
|
-
_: 1
|
|
41649
|
-
}, 16, ["modelValue"])) : (openBlock(), createBlock(_component_els_form, mergeProps({
|
|
41650
|
-
key: 1,
|
|
41651
|
-
modelValue: nodeItem.value.children,
|
|
41652
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => nodeItem.value.children = $event)
|
|
41653
|
-
}, unref(componentProps), {
|
|
41654
|
-
ref_key: "dyComponent",
|
|
41655
|
-
ref: dyComponent,
|
|
41656
|
-
key: nodeItem.value.keyID
|
|
41657
|
-
}), {
|
|
41658
|
-
default: withCtx(() => [
|
|
41659
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(nodeItem.value.children, (item, index) => {
|
|
41660
|
-
return openBlock(), createBlock(DynamicRenderInner, {
|
|
41661
|
-
index,
|
|
41662
|
-
nodeItem: item,
|
|
41663
|
-
key: item.keyID
|
|
41664
|
-
}, null, 8, ["index", "nodeItem"]);
|
|
41665
|
-
}), 128))
|
|
41666
|
-
]),
|
|
41667
|
-
_: 1
|
|
41668
|
-
}, 16, ["modelValue"]));
|
|
40679
|
+
}, 16, ["labelWidth"])
|
|
40680
|
+
]);
|
|
41669
40681
|
};
|
|
41670
40682
|
}
|
|
41671
40683
|
});
|
|
41672
|
-
const
|
|
41673
|
-
const form = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41674
|
-
__proto__: null,
|
|
41675
|
-
default: DynamicRenderForm
|
|
41676
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
40684
|
+
const DynamicRender = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-fd3b4cba"]]);
|
|
41677
40685
|
const _hoisted_1$X = { class: "els-node els-dynamic-render" };
|
|
41678
40686
|
const _hoisted_2$Q = { class: "els-dynamic-render-inner" };
|
|
41679
40687
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
41680
40688
|
...{
|
|
41681
|
-
name: "
|
|
40689
|
+
name: "ElsDynamicRenderAsync"
|
|
41682
40690
|
},
|
|
41683
|
-
__name: "
|
|
40691
|
+
__name: "renderAsync",
|
|
41684
40692
|
props: renderProps,
|
|
41685
40693
|
emits: ["update:modelValue"],
|
|
41686
40694
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40695
|
+
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
40696
|
+
return import("./inner-DAknse9T.js").then((n) => n.i);
|
|
40697
|
+
});
|
|
40698
|
+
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
40699
|
+
return import("./inner-DAknse9T.js").then((n) => n.f);
|
|
40700
|
+
});
|
|
41687
40701
|
const props = __props;
|
|
41688
40702
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
|
|
40703
|
+
const emits = __emit;
|
|
41689
40704
|
const idataTypes = getValue2("dataTypeData", null);
|
|
41690
|
-
const attrs = useAttrs();
|
|
41691
40705
|
const icomponentTypes = getValue2("componentData", null);
|
|
41692
40706
|
const renderData = ref([]);
|
|
41693
40707
|
const valueData = ref({});
|
|
41694
40708
|
const refsData = ref({});
|
|
41695
40709
|
const currDynamicDataType = ref([]);
|
|
41696
|
-
const {
|
|
41697
|
-
currModelValue,
|
|
41698
|
-
returnModelValue
|
|
41699
|
-
} = useModel(props);
|
|
41700
40710
|
if (idataTypes) {
|
|
41701
40711
|
currDynamicDataType.value.push(...idataTypes);
|
|
41702
40712
|
} else {
|
|
@@ -41732,11 +40742,11 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41732
40742
|
}
|
|
41733
40743
|
}, { deep: true, immediate: true });
|
|
41734
40744
|
function initData() {
|
|
41735
|
-
if (
|
|
41736
|
-
if (typeof
|
|
41737
|
-
valueData.value = JSON.parse(
|
|
40745
|
+
if (props.modelValue) {
|
|
40746
|
+
if (typeof props.modelValue == "string") {
|
|
40747
|
+
valueData.value = JSON.parse(props.modelValue);
|
|
41738
40748
|
} else {
|
|
41739
|
-
valueData.value =
|
|
40749
|
+
valueData.value = props.modelValue;
|
|
41740
40750
|
}
|
|
41741
40751
|
}
|
|
41742
40752
|
let currData = {};
|
|
@@ -41749,7 +40759,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41749
40759
|
initShowConfig(currData, props.showConfig);
|
|
41750
40760
|
dynamicHandler.recoverData(currData, valueData.value);
|
|
41751
40761
|
renderData.value.length = 0;
|
|
41752
|
-
renderData.value.push(...currData.filter((ele) => ele.isShow));
|
|
40762
|
+
renderData.value.push(...currData.filter((ele) => ele.isShow == 1));
|
|
41753
40763
|
}
|
|
41754
40764
|
function initShowConfig(data, showConfigData) {
|
|
41755
40765
|
if (showConfigData) {
|
|
@@ -41777,11 +40787,11 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41777
40787
|
function handleReturnResult() {
|
|
41778
40788
|
if (props.config) {
|
|
41779
40789
|
const currData = dynamicHandler.result(renderData.value);
|
|
41780
|
-
if (typeof
|
|
41781
|
-
|
|
40790
|
+
if (typeof props.modelValue == "object") {
|
|
40791
|
+
emits("update:modelValue", currData);
|
|
41782
40792
|
return;
|
|
41783
40793
|
}
|
|
41784
|
-
|
|
40794
|
+
emits("update:modelValue", JSON.stringify(currData));
|
|
41785
40795
|
}
|
|
41786
40796
|
}
|
|
41787
40797
|
function getCurrNodeValueData() {
|
|
@@ -41800,9 +40810,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41800
40810
|
function getContainerValue(item) {
|
|
41801
40811
|
const currData = {};
|
|
41802
40812
|
item.children.forEach((cele) => {
|
|
41803
|
-
if (cele.componentGroup === "Container"
|
|
41804
|
-
currData[cele.keyCode] = getContainerValue(cele);
|
|
41805
|
-
} else if (cele.componentGroup === "Container") {
|
|
40813
|
+
if (cele.componentGroup === "Container") {
|
|
41806
40814
|
Object.assign(currData, getContainerValue(cele));
|
|
41807
40815
|
} else if (cele.keyCode) {
|
|
41808
40816
|
currData[cele.keyCode] = cele;
|
|
@@ -41810,29 +40818,19 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41810
40818
|
});
|
|
41811
40819
|
return currData;
|
|
41812
40820
|
}
|
|
41813
|
-
const getArrayNodeValue = function(data) {
|
|
41814
|
-
const currData = [];
|
|
41815
|
-
data.forEach((ele) => {
|
|
41816
|
-
currData.push(getNodeValue(ele));
|
|
41817
|
-
});
|
|
41818
|
-
return currData;
|
|
41819
|
-
};
|
|
41820
40821
|
const getNodeValue = function(data) {
|
|
41821
40822
|
let currData = {};
|
|
41822
40823
|
data.forEach((ele) => {
|
|
41823
|
-
if (ele.componentGroup === "Container"
|
|
41824
|
-
currData[ele.keyCode] = getContainerValue(ele);
|
|
41825
|
-
} else if (ele.componentGroup === "Container") {
|
|
40824
|
+
if (ele.componentGroup === "Container") {
|
|
41826
40825
|
Object.assign(currData, getContainerValue(ele));
|
|
41827
|
-
} else
|
|
40826
|
+
} else {
|
|
41828
40827
|
currData[ele.keyCode] = ele;
|
|
41829
40828
|
}
|
|
41830
40829
|
});
|
|
41831
40830
|
return currData;
|
|
41832
40831
|
};
|
|
41833
40832
|
const getCurrNode = function() {
|
|
41834
|
-
|
|
41835
|
-
return result;
|
|
40833
|
+
return getNodeValue(renderData.value);
|
|
41836
40834
|
};
|
|
41837
40835
|
function setComponentRef(id, childRef) {
|
|
41838
40836
|
refsData.value[id] = childRef;
|
|
@@ -41853,9 +40851,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41853
40851
|
removeComponentRef,
|
|
41854
40852
|
getCurrNodeValueData,
|
|
41855
40853
|
getCurrNode,
|
|
41856
|
-
getRootNode: getCurrNode,
|
|
41857
40854
|
getNodeValue,
|
|
41858
|
-
getArrayNodeValue,
|
|
41859
40855
|
getResult: (data) => {
|
|
41860
40856
|
return dynamicHandler.result(data);
|
|
41861
40857
|
}
|
|
@@ -41865,44 +40861,52 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
41865
40861
|
});
|
|
41866
40862
|
return (_ctx, _cache) => {
|
|
41867
40863
|
const _component_els_form = resolveComponent("els-form");
|
|
40864
|
+
const _component_el_skeleton = resolveComponent("el-skeleton");
|
|
41868
40865
|
const _component_ElsFormNode = resolveComponent("ElsFormNode");
|
|
41869
40866
|
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
41870
|
-
createVNode(_component_ElsFormNode, mergeProps(
|
|
41871
|
-
labelWidth: _ctx.label === "" || _ctx.label === void 0 ? "0" : void 0
|
|
41872
|
-
}), {
|
|
40867
|
+
createVNode(_component_ElsFormNode, mergeProps(unref(formNodeProps), { labelWidth: "0px" }), {
|
|
41873
40868
|
default: withCtx(() => [
|
|
41874
40869
|
createElementVNode("div", _hoisted_2$Q, [
|
|
41875
|
-
|
|
41876
|
-
key: 0,
|
|
41877
|
-
nodeItem: renderData.value[0],
|
|
41878
|
-
isRoot: true
|
|
41879
|
-
}, null, 8, ["nodeItem"])) : (openBlock(), createBlock(_component_els_form, {
|
|
41880
|
-
key: 1,
|
|
41881
|
-
modelValue: renderData.value,
|
|
41882
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => renderData.value = $event)
|
|
41883
|
-
}, {
|
|
40870
|
+
(openBlock(), createBlock(Suspense, null, {
|
|
41884
40871
|
default: withCtx(() => [
|
|
41885
|
-
(
|
|
41886
|
-
|
|
41887
|
-
|
|
41888
|
-
|
|
41889
|
-
|
|
41890
|
-
}, null, 8, ["
|
|
41891
|
-
|
|
40872
|
+
createElementVNode("div", null, [
|
|
40873
|
+
renderData.value && renderData.value.length && renderData.value[0].componentTypeName === "Form" ? (openBlock(), createBlock(unref(DynamicRenderFormAsync), {
|
|
40874
|
+
key: 0,
|
|
40875
|
+
isRoot: true,
|
|
40876
|
+
nodeItem: renderData.value[0]
|
|
40877
|
+
}, null, 8, ["nodeItem"])) : (openBlock(), createBlock(_component_els_form, {
|
|
40878
|
+
key: 1,
|
|
40879
|
+
modelValue: renderData.value,
|
|
40880
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => renderData.value = $event)
|
|
40881
|
+
}, {
|
|
40882
|
+
default: withCtx(() => [
|
|
40883
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(renderData.value, (item, index) => {
|
|
40884
|
+
return openBlock(), createBlock(unref(DynamicRenderInnerAsync), {
|
|
40885
|
+
index,
|
|
40886
|
+
nodeItem: item
|
|
40887
|
+
}, null, 8, ["index", "nodeItem"]);
|
|
40888
|
+
}), 256))
|
|
40889
|
+
]),
|
|
40890
|
+
_: 1
|
|
40891
|
+
}, 8, ["modelValue"]))
|
|
40892
|
+
])
|
|
40893
|
+
]),
|
|
40894
|
+
fallback: withCtx(() => [
|
|
40895
|
+
createVNode(_component_el_skeleton, { animated: "" })
|
|
41892
40896
|
]),
|
|
41893
40897
|
_: 1
|
|
41894
|
-
}
|
|
40898
|
+
}))
|
|
41895
40899
|
])
|
|
41896
40900
|
]),
|
|
41897
40901
|
_: 1
|
|
41898
|
-
}, 16
|
|
40902
|
+
}, 16)
|
|
41899
40903
|
]);
|
|
41900
40904
|
};
|
|
41901
40905
|
}
|
|
41902
40906
|
});
|
|
41903
|
-
const
|
|
40907
|
+
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-957795fa"]]);
|
|
41904
40908
|
const ElsRender = withInstall(DynamicRender);
|
|
41905
|
-
const ElsRenderAsync = withInstall(
|
|
40909
|
+
const ElsRenderAsync = withInstall(DynamicRenderAsync);
|
|
41906
40910
|
const _sfc_main$12 = {};
|
|
41907
40911
|
const _hoisted_1$W = {
|
|
41908
40912
|
width: "24",
|
|
@@ -43353,7 +42357,273 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43353
42357
|
};
|
|
43354
42358
|
}
|
|
43355
42359
|
});
|
|
43356
|
-
const DynamicDesignerViewBaseSetting = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
42360
|
+
const DynamicDesignerViewBaseSetting = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ef71bfd4"]]);
|
|
42361
|
+
function useDesigner(props, nodeItem) {
|
|
42362
|
+
return useRender(props, nodeItem, void 0, void 0, true);
|
|
42363
|
+
}
|
|
42364
|
+
function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0, isDesigner = false) {
|
|
42365
|
+
const { getValue: getValue2 } = useProps();
|
|
42366
|
+
const componentData = getValue2("componentData", []);
|
|
42367
|
+
const isMobile = getValue2("isMobile", false);
|
|
42368
|
+
const getRootNode = getValue2("getRootNode", () => {
|
|
42369
|
+
return {};
|
|
42370
|
+
});
|
|
42371
|
+
const getCurrNode = getValue2("getCurrNode", () => {
|
|
42372
|
+
return {};
|
|
42373
|
+
});
|
|
42374
|
+
const getParentNode = getValue2("getParentNode", () => {
|
|
42375
|
+
return {};
|
|
42376
|
+
});
|
|
42377
|
+
const getNodeValue = getValue2("getNodeValue", () => {
|
|
42378
|
+
return {};
|
|
42379
|
+
});
|
|
42380
|
+
const getArrayNodeValue = getValue2("getArrayNodeValue", () => {
|
|
42381
|
+
return [];
|
|
42382
|
+
});
|
|
42383
|
+
const getGlobalData = getValue2("getGlobalData", () => {
|
|
42384
|
+
return {};
|
|
42385
|
+
});
|
|
42386
|
+
const refsData = getValue2("refsData", {});
|
|
42387
|
+
const getFormPropIndex = getValue2("getFormPropIndex", () => {
|
|
42388
|
+
return "";
|
|
42389
|
+
});
|
|
42390
|
+
let slotRootHasDefault = false;
|
|
42391
|
+
const defaultSlot = nodeItem.slots ? nodeItem.slots.find((ele) => ele.name === "default") : void 0;
|
|
42392
|
+
if (defaultSlot) {
|
|
42393
|
+
if (defaultSlot.children.length > 0 && defaultSlot.children.some((ele) => ele.keyCode === "default")) {
|
|
42394
|
+
slotRootHasDefault = true;
|
|
42395
|
+
}
|
|
42396
|
+
}
|
|
42397
|
+
const componentProps = computed(() => {
|
|
42398
|
+
if (!nodeItem || !nodeItem.config) {
|
|
42399
|
+
return {};
|
|
42400
|
+
}
|
|
42401
|
+
const itemConfig = nodeItem.config;
|
|
42402
|
+
let baseProps = { "style": itemConfig.advancedConfig.style ?? "" };
|
|
42403
|
+
if (nodeItem.componentName === "div") {
|
|
42404
|
+
Object.keys(itemConfig.baseConfig).forEach((key) => {
|
|
42405
|
+
if (itemConfig.baseConfig[key] !== "") {
|
|
42406
|
+
baseProps.style += `;${key}:${itemConfig.baseConfig[key]}`;
|
|
42407
|
+
}
|
|
42408
|
+
});
|
|
42409
|
+
return baseProps;
|
|
42410
|
+
}
|
|
42411
|
+
if (itemConfig.advancedConfig.disabled) {
|
|
42412
|
+
baseProps["disabled"] = renderDisabled();
|
|
42413
|
+
}
|
|
42414
|
+
const currControl = componentData.find((ele) => ele.value == nodeItem.componentType);
|
|
42415
|
+
if (currControl == null ? void 0 : currControl.defaultPropertys) {
|
|
42416
|
+
Object.assign(baseProps, currControl.defaultPropertys, itemConfig.baseConfig);
|
|
42417
|
+
utils.removeEmptyProp(baseProps);
|
|
42418
|
+
utils.setDefaultPropertys(baseProps, currControl.defaultPropertys);
|
|
42419
|
+
} else {
|
|
42420
|
+
Object.assign(baseProps, itemConfig.baseConfig);
|
|
42421
|
+
utils.removeEmptyProp(baseProps);
|
|
42422
|
+
}
|
|
42423
|
+
if (["ElsSelect", "ElsRadio", "ElsCheckBox", "ElsCascader"].includes(nodeItem.componentName)) {
|
|
42424
|
+
if (!baseProps.valueType) {
|
|
42425
|
+
if (nodeItem.dataTypeName == "Number" || nodeItem.arrayDataTypeName == "Number") {
|
|
42426
|
+
baseProps.valueType = "Number";
|
|
42427
|
+
} else if (nodeItem.dataTypeName == "Bool" || nodeItem.arrayDataTypeName == "Bool") {
|
|
42428
|
+
baseProps.valueType = "Bool";
|
|
42429
|
+
}
|
|
42430
|
+
}
|
|
42431
|
+
}
|
|
42432
|
+
if (nodeItem.componentTypeName == "Option") {
|
|
42433
|
+
baseProps["label"] = nodeItem.config.baseConfig.label || nodeItem.keyName;
|
|
42434
|
+
baseProps["value"] = nodeItem.config.baseConfig.value || nodeItem.keyID;
|
|
42435
|
+
} else if (nodeItem.componentTypeName === "CollapseItem") {
|
|
42436
|
+
baseProps["title"] = nodeItem.config.baseConfig.title || "请设置标题";
|
|
42437
|
+
baseProps["name"] = nodeItem.config.baseConfig.name || nodeItem.keyID;
|
|
42438
|
+
} else if (nodeItem.componentTypeName == "Table") {
|
|
42439
|
+
baseProps["tagId"] = nodeItem.keyID;
|
|
42440
|
+
} else if (nodeItem.componentTypeName == "Caption") {
|
|
42441
|
+
baseProps["title"] = nodeItem.config.baseConfig.title || nodeItem.keyName;
|
|
42442
|
+
}
|
|
42443
|
+
renderProps2(baseProps);
|
|
42444
|
+
delete baseProps.innerContent;
|
|
42445
|
+
return baseProps;
|
|
42446
|
+
});
|
|
42447
|
+
const formProps2 = computed(() => {
|
|
42448
|
+
var _a;
|
|
42449
|
+
if (!nodeItem || !nodeItem.config) {
|
|
42450
|
+
return {};
|
|
42451
|
+
}
|
|
42452
|
+
const itemConfig = nodeItem.config;
|
|
42453
|
+
let baseProps = {};
|
|
42454
|
+
const currControl = componentData.find((ele) => ele.value == nodeItem.componentType);
|
|
42455
|
+
if (currControl == null ? void 0 : currControl.defaultPropertys) {
|
|
42456
|
+
baseProps = { ...itemConfig.formConfig };
|
|
42457
|
+
utils.removeEmptyProp(baseProps);
|
|
42458
|
+
}
|
|
42459
|
+
if (nodeItem.dataTypeName == "None" || ((_a = nodeItem.config.baseConfig) == null ? void 0 : _a.componentName) == "ElsCaption" || nodeItem.componentTypeName === "Row") {
|
|
42460
|
+
baseProps.labelWidth = "0px";
|
|
42461
|
+
} else if (nodeItem.dataTypeName == "Array" && nodeItem.arrayDataTypeName == "Object") {
|
|
42462
|
+
delete baseProps.labelWidth;
|
|
42463
|
+
}
|
|
42464
|
+
if (nodeItem.required) {
|
|
42465
|
+
baseProps["required"] = true;
|
|
42466
|
+
}
|
|
42467
|
+
if (nodeItem.keyCode) {
|
|
42468
|
+
baseProps["prop"] = nodeItem.keyCode;
|
|
42469
|
+
}
|
|
42470
|
+
if (nodeItem.description) {
|
|
42471
|
+
baseProps["tip"] = nodeItem.description;
|
|
42472
|
+
}
|
|
42473
|
+
if (props.index !== void 0 && props.index > -1) {
|
|
42474
|
+
const currPropsIndex = getFormPropIndex();
|
|
42475
|
+
baseProps["prop"] = currPropsIndex + `[${props.index}].value`;
|
|
42476
|
+
} else {
|
|
42477
|
+
baseProps["prop"] = nodeItem.keyCode;
|
|
42478
|
+
}
|
|
42479
|
+
baseProps["label"] = nodeItem.keyName;
|
|
42480
|
+
renderProps2(baseProps);
|
|
42481
|
+
return baseProps;
|
|
42482
|
+
});
|
|
42483
|
+
function handleGetCurrNode() {
|
|
42484
|
+
if (props.arrayIndex > -1) {
|
|
42485
|
+
return getCurrNode()[props.arrayIndex];
|
|
42486
|
+
}
|
|
42487
|
+
return getCurrNode();
|
|
42488
|
+
}
|
|
42489
|
+
function renderContent(content) {
|
|
42490
|
+
try {
|
|
42491
|
+
let currContent = content;
|
|
42492
|
+
if (!currContent.startsWith(":")) {
|
|
42493
|
+
return currContent;
|
|
42494
|
+
}
|
|
42495
|
+
currContent = currContent.substring(1);
|
|
42496
|
+
if (!currContent) {
|
|
42497
|
+
return "";
|
|
42498
|
+
}
|
|
42499
|
+
if (isDesigner) {
|
|
42500
|
+
return "属性计算";
|
|
42501
|
+
}
|
|
42502
|
+
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
42503
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
42504
|
+
} catch (err) {
|
|
42505
|
+
console.error(err);
|
|
42506
|
+
console.log("RenderContent异常");
|
|
42507
|
+
console.log(content);
|
|
42508
|
+
return "加载异常";
|
|
42509
|
+
}
|
|
42510
|
+
}
|
|
42511
|
+
function renderEvent(eventExpress) {
|
|
42512
|
+
if (isDesigner) {
|
|
42513
|
+
return "事件计算";
|
|
42514
|
+
}
|
|
42515
|
+
try {
|
|
42516
|
+
let currEvent = new Function("refs,globalData,rootNode,parentNode,currNode,currValue,dataType,slotRootHasDefault,slotValue,utils", eventExpress);
|
|
42517
|
+
return currEvent(refsData.value, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), modelValue, nodeItem == null ? void 0 : nodeItem.dataType, slotRootHasDefault, slotValue.value, utils);
|
|
42518
|
+
} catch (err) {
|
|
42519
|
+
console.log("RenderEvent异常");
|
|
42520
|
+
console.log(eventExpress);
|
|
42521
|
+
return "加载异常";
|
|
42522
|
+
}
|
|
42523
|
+
}
|
|
42524
|
+
function renderProps2(baseProps) {
|
|
42525
|
+
Object.keys(baseProps).forEach((key) => {
|
|
42526
|
+
if (key.startsWith("event")) {
|
|
42527
|
+
const eventExpress = baseProps[key];
|
|
42528
|
+
baseProps[key.replace("event", "on")] = () => {
|
|
42529
|
+
try {
|
|
42530
|
+
return renderEvent(eventExpress);
|
|
42531
|
+
} catch (err) {
|
|
42532
|
+
console.error(err);
|
|
42533
|
+
}
|
|
42534
|
+
};
|
|
42535
|
+
delete baseProps[key];
|
|
42536
|
+
} else if (key.startsWith("function")) {
|
|
42537
|
+
const eventExpress = baseProps[key];
|
|
42538
|
+
baseProps[key.replace("function", "")] = () => {
|
|
42539
|
+
try {
|
|
42540
|
+
return renderEvent(eventExpress);
|
|
42541
|
+
} catch (err) {
|
|
42542
|
+
console.error(err);
|
|
42543
|
+
}
|
|
42544
|
+
};
|
|
42545
|
+
delete baseProps[key];
|
|
42546
|
+
} else {
|
|
42547
|
+
if (typeof baseProps[key] === "string" && baseProps[key].startsWith(":")) {
|
|
42548
|
+
baseProps[key] = renderContent(baseProps[key]);
|
|
42549
|
+
}
|
|
42550
|
+
}
|
|
42551
|
+
});
|
|
42552
|
+
return baseProps;
|
|
42553
|
+
}
|
|
42554
|
+
function renderIf() {
|
|
42555
|
+
try {
|
|
42556
|
+
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.vif) {
|
|
42557
|
+
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.vif);
|
|
42558
|
+
const isShow = currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
42559
|
+
nodeItem.isShow = isShow;
|
|
42560
|
+
return isShow;
|
|
42561
|
+
}
|
|
42562
|
+
} catch (err) {
|
|
42563
|
+
console.error(err);
|
|
42564
|
+
}
|
|
42565
|
+
return true;
|
|
42566
|
+
}
|
|
42567
|
+
function renderDisabled() {
|
|
42568
|
+
try {
|
|
42569
|
+
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.disabled) {
|
|
42570
|
+
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.disabled);
|
|
42571
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
42572
|
+
}
|
|
42573
|
+
} catch (err) {
|
|
42574
|
+
console.error(err);
|
|
42575
|
+
debugger;
|
|
42576
|
+
}
|
|
42577
|
+
return false;
|
|
42578
|
+
}
|
|
42579
|
+
function renderValueChange(val) {
|
|
42580
|
+
try {
|
|
42581
|
+
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.eventChange) {
|
|
42582
|
+
let currEvent = new Function("val,globalData,rootNode,parentNode,currNode,utils", nodeItem.config.advancedConfig.eventChange);
|
|
42583
|
+
return currEvent(val, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
42584
|
+
}
|
|
42585
|
+
} catch (err) {
|
|
42586
|
+
console.log("ValueCahnge异常");
|
|
42587
|
+
console.log(nodeItem.config.advancedConfig.eventChange);
|
|
42588
|
+
}
|
|
42589
|
+
}
|
|
42590
|
+
return {
|
|
42591
|
+
isMobile,
|
|
42592
|
+
componentProps,
|
|
42593
|
+
formProps: formProps2,
|
|
42594
|
+
getRootNode,
|
|
42595
|
+
getParentNode,
|
|
42596
|
+
getNodeValue,
|
|
42597
|
+
getArrayNodeValue,
|
|
42598
|
+
getGlobalData,
|
|
42599
|
+
getCurrNode: handleGetCurrNode,
|
|
42600
|
+
renderProps: renderProps2,
|
|
42601
|
+
renderContent,
|
|
42602
|
+
renderEvent,
|
|
42603
|
+
renderIf,
|
|
42604
|
+
renderValueChange,
|
|
42605
|
+
renderDisabled
|
|
42606
|
+
};
|
|
42607
|
+
}
|
|
42608
|
+
function useComponentRef(nodeItem, dyComponent) {
|
|
42609
|
+
const { getValue: getValue2 } = useProps();
|
|
42610
|
+
const setComponentRef = getValue2("setComponentRef", () => {
|
|
42611
|
+
return {};
|
|
42612
|
+
});
|
|
42613
|
+
const removeComponentRef = getValue2("removeComponentRef", () => {
|
|
42614
|
+
return {};
|
|
42615
|
+
});
|
|
42616
|
+
onMounted(() => {
|
|
42617
|
+
if (nodeItem.keyID && dyComponent) {
|
|
42618
|
+
setComponentRef(nodeItem.keyID, dyComponent.value);
|
|
42619
|
+
}
|
|
42620
|
+
});
|
|
42621
|
+
onUnmounted(() => {
|
|
42622
|
+
if (nodeItem.keyID) {
|
|
42623
|
+
removeComponentRef(nodeItem.keyID);
|
|
42624
|
+
}
|
|
42625
|
+
});
|
|
42626
|
+
}
|
|
43357
42627
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
43358
42628
|
...{
|
|
43359
42629
|
inheritAttrs: false
|
|
@@ -43655,7 +42925,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
43655
42925
|
};
|
|
43656
42926
|
}
|
|
43657
42927
|
});
|
|
43658
|
-
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
42928
|
+
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-2524d5fb"]]);
|
|
43659
42929
|
const _hoisted_1$e = ["innerHTML"];
|
|
43660
42930
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
43661
42931
|
...{
|
|
@@ -43840,7 +43110,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
43840
43110
|
};
|
|
43841
43111
|
}
|
|
43842
43112
|
});
|
|
43843
|
-
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
43113
|
+
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ed80d52a"]]);
|
|
43844
43114
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
43845
43115
|
__name: "form",
|
|
43846
43116
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -44202,7 +43472,7 @@ const useDesign = defineStore("dynamic-design", () => {
|
|
|
44202
43472
|
clear
|
|
44203
43473
|
};
|
|
44204
43474
|
});
|
|
44205
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
43475
|
+
const _withScopeId = (n) => (pushScopeId("data-v-89c3fdd7"), n = n(), popScopeId(), n);
|
|
44206
43476
|
const _hoisted_1$c = {
|
|
44207
43477
|
style: { "display": "flex", "background": "#f8f8f8" },
|
|
44208
43478
|
class: "els-dynamic-d-view"
|
|
@@ -45232,7 +44502,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45232
44502
|
ref: "scroll"
|
|
45233
44503
|
}, {
|
|
45234
44504
|
default: withCtx(() => [
|
|
45235
|
-
createVNode(
|
|
44505
|
+
createVNode(DynamicRenderAsync, {
|
|
45236
44506
|
modelValue: currSelectItem.value.config.baseConfig,
|
|
45237
44507
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => currSelectItem.value.config.baseConfig = $event),
|
|
45238
44508
|
globalData: currSelectItem.value,
|
|
@@ -45259,7 +44529,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45259
44529
|
ref: "scroll"
|
|
45260
44530
|
}, {
|
|
45261
44531
|
default: withCtx(() => [
|
|
45262
|
-
createVNode(
|
|
44532
|
+
createVNode(DynamicRenderAsync, {
|
|
45263
44533
|
modelValue: currSelectItem.value.config.arrayConfig,
|
|
45264
44534
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => currSelectItem.value.config.arrayConfig = $event),
|
|
45265
44535
|
defaultValueConfig: { "Number": void 0, "Bool": void 0 },
|
|
@@ -45285,7 +44555,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45285
44555
|
ref: "scroll"
|
|
45286
44556
|
}, {
|
|
45287
44557
|
default: withCtx(() => [
|
|
45288
|
-
createVNode(
|
|
44558
|
+
createVNode(DynamicRenderAsync, {
|
|
45289
44559
|
modelValue: currSelectItem.value.config.formConfig,
|
|
45290
44560
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => currSelectItem.value.config.formConfig = $event),
|
|
45291
44561
|
defaultValueConfig: { "Number": void 0, "Bool": void 0 },
|
|
@@ -45310,7 +44580,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45310
44580
|
ref: "scroll"
|
|
45311
44581
|
}, {
|
|
45312
44582
|
default: withCtx(() => [
|
|
45313
|
-
createVNode(
|
|
44583
|
+
createVNode(DynamicRenderAsync, {
|
|
45314
44584
|
modelValue: currSelectItem.value.config.advancedConfig,
|
|
45315
44585
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => currSelectItem.value.config.advancedConfig = $event),
|
|
45316
44586
|
isMobile: false,
|
|
@@ -45394,7 +44664,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45394
44664
|
};
|
|
45395
44665
|
}
|
|
45396
44666
|
});
|
|
45397
|
-
const DesignerView = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
44667
|
+
const DesignerView = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-89c3fdd7"]]);
|
|
45398
44668
|
const ElsDesignerView = withInstall(DesignerView);
|
|
45399
44669
|
(function(Prism2) {
|
|
45400
44670
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -46201,31 +45471,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46201
45471
|
}
|
|
46202
45472
|
onMounted(() => {
|
|
46203
45473
|
if (props.language === "json") {
|
|
46204
|
-
const currModule = import("./mode-json-
|
|
45474
|
+
const currModule = import("./mode-json-97FfpFO7.js").then((n) => n.m);
|
|
46205
45475
|
currModule.then((res) => {
|
|
46206
45476
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
46207
45477
|
init();
|
|
46208
45478
|
});
|
|
46209
45479
|
} else if (props.language === "javascript") {
|
|
46210
|
-
const currModule = import("./mode-javascript-
|
|
45480
|
+
const currModule = import("./mode-javascript-DofEY5ld.js").then((n) => n.m);
|
|
46211
45481
|
currModule.then((res) => {
|
|
46212
45482
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
46213
45483
|
init();
|
|
46214
45484
|
});
|
|
46215
45485
|
} else if (props.language === "csharp") {
|
|
46216
|
-
const currModule = import("./mode-csharp-
|
|
45486
|
+
const currModule = import("./mode-csharp-CfZix4xS.js").then((n) => n.m);
|
|
46217
45487
|
currModule.then((res) => {
|
|
46218
45488
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
46219
45489
|
init();
|
|
46220
45490
|
});
|
|
46221
45491
|
} else if (props.language === "mysql") {
|
|
46222
|
-
const currModule = import("./mode-mysql-
|
|
45492
|
+
const currModule = import("./mode-mysql-DNH3mgOK.js").then((n) => n.m);
|
|
46223
45493
|
currModule.then((res) => {
|
|
46224
45494
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
46225
45495
|
init();
|
|
46226
45496
|
});
|
|
46227
45497
|
} else if (props.language === "css") {
|
|
46228
|
-
const currModule = import("./mode-css-
|
|
45498
|
+
const currModule = import("./mode-css-dGoCtWNX.js").then((n) => n.m);
|
|
46229
45499
|
currModule.then((res) => {
|
|
46230
45500
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
46231
45501
|
init();
|
|
@@ -46640,7 +45910,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
46640
45910
|
};
|
|
46641
45911
|
}
|
|
46642
45912
|
});
|
|
46643
|
-
const JsonEditor = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
45913
|
+
const JsonEditor = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-713d8976"]]);
|
|
46644
45914
|
const ElsJsonEditor = withInstall(JsonEditor);
|
|
46645
45915
|
const _hoisted_1$7 = { class: "els-workpain" };
|
|
46646
45916
|
const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("span", { class: "el-form-suffix-content" }, "天", -1);
|
|
@@ -49553,6 +48823,14 @@ const stampBadgeProps = buildProps({
|
|
|
49553
48823
|
}
|
|
49554
48824
|
});
|
|
49555
48825
|
const ElsStampBadge = withInstall(StampBadge);
|
|
48826
|
+
const loadAsyncComponent = (loader) => defineAsyncComponent({
|
|
48827
|
+
loader,
|
|
48828
|
+
delay: 1e3
|
|
48829
|
+
});
|
|
48830
|
+
const loadSkeletonAsyncComponent = (loader) => defineAsyncComponent({
|
|
48831
|
+
loader,
|
|
48832
|
+
delay: 1e3
|
|
48833
|
+
});
|
|
49556
48834
|
const components = [
|
|
49557
48835
|
ElsInput,
|
|
49558
48836
|
ElsSelect,
|
|
@@ -49619,7 +48897,6 @@ const components = [
|
|
|
49619
48897
|
ElsMdPreview,
|
|
49620
48898
|
ElsUEditor,
|
|
49621
48899
|
ElsRender,
|
|
49622
|
-
ElsRenderAsync,
|
|
49623
48900
|
ElsInputNumber,
|
|
49624
48901
|
ElsJsonViewer,
|
|
49625
48902
|
ElsMdEditor,
|
|
@@ -49646,152 +48923,154 @@ const ElementLess = {
|
|
|
49646
48923
|
}
|
|
49647
48924
|
};
|
|
49648
48925
|
export {
|
|
49649
|
-
|
|
49650
|
-
|
|
49651
|
-
|
|
49652
|
-
|
|
49653
|
-
|
|
49654
|
-
|
|
49655
|
-
|
|
49656
|
-
|
|
49657
|
-
|
|
49658
|
-
|
|
49659
|
-
|
|
49660
|
-
|
|
49661
|
-
|
|
49662
|
-
|
|
49663
|
-
|
|
49664
|
-
|
|
48926
|
+
treeProps as $,
|
|
48927
|
+
optionGroupProps as A,
|
|
48928
|
+
ElsRow as B,
|
|
48929
|
+
ElsCol as C,
|
|
48930
|
+
DynamicRenderAsync as D,
|
|
48931
|
+
ElementLess as E,
|
|
48932
|
+
ElsForm as F,
|
|
48933
|
+
formProps as G,
|
|
48934
|
+
ElsFormQuery as H,
|
|
48935
|
+
formQueryProps as I,
|
|
48936
|
+
ElsFormItem as J,
|
|
48937
|
+
formItemProps as K,
|
|
48938
|
+
ElsTable as L,
|
|
48939
|
+
tableProps as M,
|
|
48940
|
+
ElsColumn as N,
|
|
48941
|
+
ElsColumnBool as O,
|
|
49665
48942
|
ProxyElsMessage as P,
|
|
49666
|
-
|
|
49667
|
-
|
|
49668
|
-
|
|
49669
|
-
|
|
49670
|
-
|
|
49671
|
-
|
|
49672
|
-
|
|
49673
|
-
|
|
49674
|
-
|
|
49675
|
-
|
|
48943
|
+
ElsColumnCheckbox as Q,
|
|
48944
|
+
ElsColumnEnum as R,
|
|
48945
|
+
ElsColumnExpand as S,
|
|
48946
|
+
ElsColumnHeader as T,
|
|
48947
|
+
ElsColumnImage as U,
|
|
48948
|
+
ElsColumnOperate as V,
|
|
48949
|
+
ElsColumnSelect as W,
|
|
48950
|
+
tableColumnProps as X,
|
|
48951
|
+
ElsTreeSelect as Y,
|
|
48952
|
+
ElsTree as Z,
|
|
49676
48953
|
_export_sfc as _,
|
|
49677
|
-
|
|
49678
|
-
|
|
49679
|
-
|
|
49680
|
-
|
|
49681
|
-
|
|
49682
|
-
|
|
49683
|
-
|
|
49684
|
-
|
|
49685
|
-
|
|
49686
|
-
|
|
49687
|
-
|
|
49688
|
-
|
|
49689
|
-
|
|
49690
|
-
|
|
49691
|
-
|
|
49692
|
-
|
|
49693
|
-
|
|
49694
|
-
|
|
49695
|
-
|
|
49696
|
-
|
|
49697
|
-
|
|
49698
|
-
|
|
49699
|
-
|
|
49700
|
-
|
|
49701
|
-
|
|
49702
|
-
|
|
49703
|
-
|
|
49704
|
-
|
|
49705
|
-
|
|
49706
|
-
|
|
49707
|
-
|
|
49708
|
-
|
|
49709
|
-
|
|
49710
|
-
|
|
49711
|
-
|
|
49712
|
-
|
|
49713
|
-
|
|
49714
|
-
|
|
49715
|
-
|
|
49716
|
-
|
|
49717
|
-
|
|
49718
|
-
|
|
49719
|
-
|
|
49720
|
-
|
|
49721
|
-
|
|
49722
|
-
|
|
49723
|
-
|
|
49724
|
-
|
|
49725
|
-
|
|
49726
|
-
|
|
49727
|
-
|
|
49728
|
-
|
|
49729
|
-
|
|
49730
|
-
|
|
49731
|
-
|
|
49732
|
-
|
|
49733
|
-
|
|
49734
|
-
|
|
49735
|
-
|
|
49736
|
-
|
|
49737
|
-
|
|
49738
|
-
|
|
49739
|
-
|
|
49740
|
-
|
|
49741
|
-
|
|
49742
|
-
|
|
49743
|
-
|
|
49744
|
-
|
|
49745
|
-
|
|
49746
|
-
|
|
49747
|
-
|
|
49748
|
-
|
|
49749
|
-
|
|
49750
|
-
|
|
49751
|
-
|
|
49752
|
-
|
|
49753
|
-
|
|
49754
|
-
|
|
49755
|
-
|
|
49756
|
-
|
|
49757
|
-
|
|
49758
|
-
|
|
49759
|
-
|
|
49760
|
-
|
|
49761
|
-
|
|
49762
|
-
|
|
49763
|
-
|
|
49764
|
-
|
|
49765
|
-
|
|
49766
|
-
|
|
49767
|
-
|
|
49768
|
-
|
|
49769
|
-
|
|
49770
|
-
|
|
49771
|
-
|
|
49772
|
-
|
|
49773
|
-
|
|
49774
|
-
|
|
49775
|
-
|
|
49776
|
-
|
|
48954
|
+
useRender as a,
|
|
48955
|
+
ElsDynamicDesigner as a$,
|
|
48956
|
+
ElsMenu as a0,
|
|
48957
|
+
menuProps as a1,
|
|
48958
|
+
menuEmits as a2,
|
|
48959
|
+
ElsMenuItem as a3,
|
|
48960
|
+
menuItemProps as a4,
|
|
48961
|
+
ElsMenuSub as a5,
|
|
48962
|
+
ElsSwitch as a6,
|
|
48963
|
+
switchProps as a7,
|
|
48964
|
+
ElsImage as a8,
|
|
48965
|
+
imageProps as a9,
|
|
48966
|
+
ElsDatePickerRange as aA,
|
|
48967
|
+
datePickerRangeProps as aB,
|
|
48968
|
+
ElsCollapseTransition as aC,
|
|
48969
|
+
collapseTransitionProps as aD,
|
|
48970
|
+
ElsTabs as aE,
|
|
48971
|
+
tabsProps as aF,
|
|
48972
|
+
ElsColorPicker as aG,
|
|
48973
|
+
colorPickerProps as aH,
|
|
48974
|
+
ElsMenuContext as aI,
|
|
48975
|
+
menuContextProps as aJ,
|
|
48976
|
+
ElsMenuDropdown as aK,
|
|
48977
|
+
menuDropdownProps as aL,
|
|
48978
|
+
ElsMenuTool as aM,
|
|
48979
|
+
menuToolProps as aN,
|
|
48980
|
+
ElsMdPreview as aO,
|
|
48981
|
+
ElsCaption as aP,
|
|
48982
|
+
captionProps as aQ,
|
|
48983
|
+
ElsDataModal as aR,
|
|
48984
|
+
dataModalProps as aS,
|
|
48985
|
+
ElsButtonSelect as aT,
|
|
48986
|
+
ElsButtonSearch as aU,
|
|
48987
|
+
ElsButtonExport as aV,
|
|
48988
|
+
ElsList as aW,
|
|
48989
|
+
listProps as aX,
|
|
48990
|
+
ElsTip as aY,
|
|
48991
|
+
tipProps as aZ,
|
|
48992
|
+
ElsFormNode as a_,
|
|
48993
|
+
ElsImageViewer as aa,
|
|
48994
|
+
imageViewerProps as ab,
|
|
48995
|
+
ElsAutocomplete as ac,
|
|
48996
|
+
autocompleteProps as ad,
|
|
48997
|
+
ElsCascader as ae,
|
|
48998
|
+
cascaderProps as af,
|
|
48999
|
+
ElsCascaderPanel as ag,
|
|
49000
|
+
ElsDialog as ah,
|
|
49001
|
+
dialogProps as ai,
|
|
49002
|
+
ElsDrawer as aj,
|
|
49003
|
+
drawerProps as ak,
|
|
49004
|
+
ElsDropdown as al,
|
|
49005
|
+
ElsDropdownGroup as am,
|
|
49006
|
+
dropdownProps as an,
|
|
49007
|
+
ElsSlider as ao,
|
|
49008
|
+
sliderProps as ap,
|
|
49009
|
+
ElsInputNumber as aq,
|
|
49010
|
+
inputNumberProps as ar,
|
|
49011
|
+
ElsUpload as as,
|
|
49012
|
+
uploadProps as at,
|
|
49013
|
+
ElsTimePicker as au,
|
|
49014
|
+
timePickerProps as av,
|
|
49015
|
+
ElsTimePickerRange as aw,
|
|
49016
|
+
timePickerRangeProps as ax,
|
|
49017
|
+
ElsDatePicker as ay,
|
|
49018
|
+
datePickerProps as az,
|
|
49019
|
+
utils as b,
|
|
49020
|
+
designerProps as b0,
|
|
49021
|
+
ElsRender as b1,
|
|
49022
|
+
ElsRenderAsync as b2,
|
|
49023
|
+
renderProps as b3,
|
|
49024
|
+
ElsContainer as b4,
|
|
49025
|
+
containerProps as b5,
|
|
49026
|
+
ElsDesignerView as b6,
|
|
49027
|
+
designerViewProps as b7,
|
|
49028
|
+
ElsHighlight as b8,
|
|
49029
|
+
ElsUEditor as b9,
|
|
49030
|
+
uEditorProps as ba,
|
|
49031
|
+
ElsAceEditor as bb,
|
|
49032
|
+
aceEditorProps as bc,
|
|
49033
|
+
ElsMdEditor as bd,
|
|
49034
|
+
mdEditorProps as be,
|
|
49035
|
+
ElsWangEditor as bf,
|
|
49036
|
+
wangEditorProps as bg,
|
|
49037
|
+
ElsJsonViewer as bh,
|
|
49038
|
+
jsonViewerProps as bi,
|
|
49039
|
+
ElsJsonEditor as bj,
|
|
49040
|
+
jsonEditorProps as bk,
|
|
49041
|
+
ElsWorkPlan as bl,
|
|
49042
|
+
ElsCron as bm,
|
|
49043
|
+
ElsWorkFlow as bn,
|
|
49044
|
+
workFlowProps as bo,
|
|
49045
|
+
ElsStampBadge as bp,
|
|
49046
|
+
stampBadgeProps as bq,
|
|
49047
|
+
createAxiosInstance as br,
|
|
49048
|
+
getAxiosInstance as bs,
|
|
49049
|
+
setJwtToken as bt,
|
|
49050
|
+
loadAsyncComponent as bu,
|
|
49051
|
+
loadSkeletonAsyncComponent as bv,
|
|
49052
|
+
useComponentRef as c,
|
|
49053
|
+
DynamicDesignerInner as d,
|
|
49054
|
+
property_array as e,
|
|
49055
|
+
property_formItem as f,
|
|
49777
49056
|
getDefaultExportFromCjs as g,
|
|
49778
|
-
|
|
49779
|
-
|
|
49780
|
-
|
|
49781
|
-
|
|
49782
|
-
|
|
49783
|
-
|
|
49784
|
-
|
|
49785
|
-
|
|
49057
|
+
property_advanced as h,
|
|
49058
|
+
ElsInput as i,
|
|
49059
|
+
inputProps as j,
|
|
49060
|
+
ElsTextarea as k,
|
|
49061
|
+
ElsInputRange as l,
|
|
49062
|
+
inputRangeProps as m,
|
|
49063
|
+
ElsSelect as n,
|
|
49064
|
+
ElsRadio as o,
|
|
49786
49065
|
property_arrayAndObject as p,
|
|
49787
|
-
|
|
49066
|
+
ElsCheckbox as q,
|
|
49788
49067
|
radioProps as r,
|
|
49789
49068
|
selectProps as s,
|
|
49790
|
-
|
|
49069
|
+
checkboxProps as t,
|
|
49791
49070
|
useProps as u,
|
|
49792
|
-
|
|
49793
|
-
|
|
49794
|
-
|
|
49795
|
-
|
|
49796
|
-
|
|
49071
|
+
ElsCheckboxButton as v,
|
|
49072
|
+
ElsRadioButton as w,
|
|
49073
|
+
ElsOption as x,
|
|
49074
|
+
optionProps as y,
|
|
49075
|
+
ElsOptionGroup as z
|
|
49797
49076
|
};
|