element-less 0.0.8 → 0.0.9
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/custom/data-modal/index.d.ts +1 -1
- package/custom/data-modal/src/dataModal.vue.d.ts +1 -1
- package/custom/dynamic/common/hooks/index.d.ts +19 -2
- package/custom/dynamic/common/propertys/div.d.ts +100 -0
- package/custom/dynamic/common/propertys/image.d.ts +209 -0
- package/custom/dynamic/common/propertys/index.d.ts +3 -0
- package/custom/dynamic/common/propertys/select.d.ts +443 -180
- package/custom/dynamic/common/propertys/tag.d.ts +120 -3
- package/custom/dynamic/common/propertys/text.d.ts +186 -0
- package/custom/dynamic/render/src/innerItem.vue.d.ts +1 -8
- package/custom/menu-context/index.d.ts +4 -22
- package/custom/menu-context/src/menuContext.d.ts +0 -1
- package/custom/menu-context/src/menuContext.vue.d.ts +4 -22
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/elementui/select/index.d.ts +5 -0
- package/elementui/select/src/select.d.ts +7 -0
- package/elementui/select/src/select.vue.d.ts +12 -0
- package/elementui/table/index.d.ts +1 -1
- package/elementui/table/src/table.d.ts +2 -0
- package/elementui/table/src/table.vue.d.ts +3 -1
- package/elementui/upload/index.d.ts +1 -1
- package/elementui/upload/src/upload.vue.d.ts +1 -1
- package/{index-B27t8vvK.js → index-CLrh82uM.js} +1200 -210
- package/index-CfHEZDgc.cjs +1 -0
- package/{innerItem-BsOfvFCR.cjs → innerItem-BU5rzWOS.cjs} +1 -1
- package/{innerItem-DAz6yQRH.js → innerItem-Ecpkpr_1.js} +1 -1
- package/{mode-csharp-BH3u3Lz_.js → mode-csharp-8Qr7KA7-.js} +1 -1
- package/{mode-csharp-9AYRI2vd.cjs → mode-csharp-BHvsSZJJ.cjs} +1 -1
- package/{mode-css-CHfB4rk0.js → mode-css-7HePkEyP.js} +1 -1
- package/{mode-css-ByDEfSiE.cjs → mode-css-BYCUXfz9.cjs} +1 -1
- package/{mode-javascript-BUpWtpG0.js → mode-javascript-BsWAOCK9.js} +1 -1
- package/{mode-javascript-DPO3g1nW.cjs → mode-javascript-DEtLS6uH.cjs} +1 -1
- package/{mode-json-BwaIV5ov.js → mode-json-CNw4Ad6L.js} +1 -1
- package/{mode-json-DqanYWit.cjs → mode-json-ClFqizaF.cjs} +1 -1
- package/{mode-mysql-DzS4SCkv.js → mode-mysql-Brju4QkM.js} +1 -1
- package/{mode-mysql-BPs90ZRf.cjs → mode-mysql-yfRDxj8Z.cjs} +1 -1
- package/package.json +4 -12
- package/style.css +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/loadComponent.d.ts +8 -0
- package/README.md +0 -22
- package/index-Cz4dUhf5.cjs +0 -1
|
@@ -6,9 +6,10 @@ import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActiva
|
|
|
6
6
|
import pkg from "file-saver";
|
|
7
7
|
import * as XLSX from "xlsx";
|
|
8
8
|
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";
|
|
9
|
-
import lodash from "lodash";
|
|
9
|
+
import lodash, { cloneDeep } from "lodash";
|
|
10
10
|
import draggable from "vuedraggable";
|
|
11
11
|
import Sortable from "sortablejs";
|
|
12
|
+
import { onClickOutside } from "@vueuse/core";
|
|
12
13
|
import { MdPreview, MdEditor } from "md-editor-v3";
|
|
13
14
|
import { defineStore } from "pinia";
|
|
14
15
|
import prism from "prismjs";
|
|
@@ -2214,7 +2215,7 @@ const utils = {
|
|
|
2214
2215
|
if (!obj) {
|
|
2215
2216
|
return {};
|
|
2216
2217
|
}
|
|
2217
|
-
return
|
|
2218
|
+
return cloneDeep(obj);
|
|
2218
2219
|
},
|
|
2219
2220
|
isObject: (obj) => {
|
|
2220
2221
|
return Object.prototype.toString.call(obj).indexOf("Object") > -1 || Object.prototype.toString.call(obj).indexOf("Array") > -1;
|
|
@@ -5148,7 +5149,21 @@ const selectProps = buildProps({
|
|
|
5148
5149
|
/**
|
|
5149
5150
|
* @description 是否显示全选
|
|
5150
5151
|
*/
|
|
5151
|
-
showCheckAll: Boolean
|
|
5152
|
+
showCheckAll: Boolean,
|
|
5153
|
+
/**
|
|
5154
|
+
* @description 选项排列方向
|
|
5155
|
+
*/
|
|
5156
|
+
optionDirection: {
|
|
5157
|
+
type: String,
|
|
5158
|
+
values: ["horizontal", "vertical"],
|
|
5159
|
+
default: "vertical"
|
|
5160
|
+
},
|
|
5161
|
+
/**
|
|
5162
|
+
* @description 输入框高度
|
|
5163
|
+
*/
|
|
5164
|
+
height: {
|
|
5165
|
+
type: String
|
|
5166
|
+
}
|
|
5152
5167
|
});
|
|
5153
5168
|
const _hoisted_1$1t = {
|
|
5154
5169
|
key: 0,
|
|
@@ -5521,6 +5536,29 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5521
5536
|
selectValue.value = [];
|
|
5522
5537
|
}
|
|
5523
5538
|
};
|
|
5539
|
+
const currStyle = computed(() => {
|
|
5540
|
+
let st2 = [{ width: currWidth.value.appendPx() }];
|
|
5541
|
+
if (props.height) {
|
|
5542
|
+
st2.push({ "--wrapperHeight": props.height.appendPx() });
|
|
5543
|
+
st2.push({ "--wrapperSelectionHeight": "calc(var(--wrapperHeight) - 10px)" });
|
|
5544
|
+
} else {
|
|
5545
|
+
st2.push({ "--wrapperHeight": "32px" });
|
|
5546
|
+
st2.push({ "--wrapperSelectionHeight": "auto" });
|
|
5547
|
+
}
|
|
5548
|
+
if (props.width && props.optionDirection === "horizontal") {
|
|
5549
|
+
st2.push({ "--wrapperWidth": currWidth.value.appendPx() });
|
|
5550
|
+
} else {
|
|
5551
|
+
st2.push({ "--wrapperWidth": "auto" });
|
|
5552
|
+
}
|
|
5553
|
+
return st2;
|
|
5554
|
+
});
|
|
5555
|
+
const currPoperClass = computed(() => {
|
|
5556
|
+
let currClass = props.popperClass;
|
|
5557
|
+
if (props.optionDirection === "horizontal") {
|
|
5558
|
+
currClass += " horizontal";
|
|
5559
|
+
}
|
|
5560
|
+
return currClass;
|
|
5561
|
+
});
|
|
5524
5562
|
const currPlaceholder = ref();
|
|
5525
5563
|
watchEffect(() => {
|
|
5526
5564
|
if (isMobile) {
|
|
@@ -5547,16 +5585,17 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5547
5585
|
!unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5548
5586
|
!_ctx.isVirtual ? (openBlock(), createBlock(_component_el_select, mergeProps({
|
|
5549
5587
|
key: 0,
|
|
5550
|
-
style:
|
|
5588
|
+
style: currStyle.value
|
|
5551
5589
|
}, unref(componentProps), {
|
|
5552
|
-
|
|
5553
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectValue.value = $event),
|
|
5590
|
+
popperClass: currPoperClass.value,
|
|
5554
5591
|
placeholder: currPlaceholder.value,
|
|
5555
5592
|
"remote-method": handleSearch,
|
|
5556
5593
|
loading: currLoading.value,
|
|
5557
|
-
"remote-show-suffix": "",
|
|
5558
5594
|
onVisibleChange: handleVisibleChange,
|
|
5559
|
-
onClear: handleClear
|
|
5595
|
+
onClear: handleClear,
|
|
5596
|
+
"remote-show-suffix": "",
|
|
5597
|
+
modelValue: selectValue.value,
|
|
5598
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectValue.value = $event)
|
|
5560
5599
|
}), createSlots({
|
|
5561
5600
|
default: withCtx(() => [
|
|
5562
5601
|
renderSlot(_ctx.$slots, "extra"),
|
|
@@ -5652,8 +5691,18 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5652
5691
|
renderSlot(_ctx.$slots, "prefix")
|
|
5653
5692
|
]),
|
|
5654
5693
|
key: "2"
|
|
5694
|
+
} : void 0,
|
|
5695
|
+
unref(slots)["label"] ? {
|
|
5696
|
+
name: "label",
|
|
5697
|
+
fn: withCtx(({ label, value }) => [
|
|
5698
|
+
renderSlot(_ctx.$slots, "label", {
|
|
5699
|
+
label,
|
|
5700
|
+
value
|
|
5701
|
+
})
|
|
5702
|
+
]),
|
|
5703
|
+
key: "3"
|
|
5655
5704
|
} : void 0
|
|
5656
|
-
]), 1040, ["style", "
|
|
5705
|
+
]), 1040, ["style", "popperClass", "placeholder", "loading", "modelValue"])) : (openBlock(), createBlock(_component_el_select_v2, mergeProps({ key: 1 }, unref(componentProps), {
|
|
5657
5706
|
modelValue: selectValue.value,
|
|
5658
5707
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectValue.value = $event),
|
|
5659
5708
|
options,
|
|
@@ -8776,26 +8825,52 @@ const tableProps = Object.assign({}, defaultProps, buildProps({
|
|
|
8776
8825
|
type: String,
|
|
8777
8826
|
values: ["left", "center", "right"]
|
|
8778
8827
|
},
|
|
8779
|
-
/** 是否显示分页 */
|
|
8828
|
+
/** @description 是否显示分页 */
|
|
8780
8829
|
hasPage: {
|
|
8781
8830
|
type: Boolean,
|
|
8782
8831
|
default: true
|
|
8783
8832
|
},
|
|
8833
|
+
/**
|
|
8834
|
+
* @description 分页页大小
|
|
8835
|
+
*/
|
|
8784
8836
|
pageSize: {
|
|
8785
8837
|
type: Number,
|
|
8786
8838
|
default: 20
|
|
8787
8839
|
},
|
|
8840
|
+
/**
|
|
8841
|
+
* @description 分页页设置
|
|
8842
|
+
*/
|
|
8788
8843
|
pageSizes: {
|
|
8789
8844
|
type: Array,
|
|
8790
8845
|
default: [10, 20, 30, 40, 50, 100]
|
|
8791
8846
|
},
|
|
8847
|
+
/**
|
|
8848
|
+
* @description 当前页
|
|
8849
|
+
*/
|
|
8792
8850
|
currentPage: {
|
|
8793
8851
|
type: Number,
|
|
8794
8852
|
default: 1
|
|
8795
8853
|
},
|
|
8854
|
+
/**
|
|
8855
|
+
* @description 分页
|
|
8856
|
+
*/
|
|
8796
8857
|
layout: {
|
|
8797
8858
|
type: String,
|
|
8798
8859
|
default: "total,slot, sizes, prev, pager, next, jumper"
|
|
8860
|
+
},
|
|
8861
|
+
/**
|
|
8862
|
+
* @description 是否要高亮当前行
|
|
8863
|
+
*/
|
|
8864
|
+
highlightCurrentRow: {
|
|
8865
|
+
type: Boolean,
|
|
8866
|
+
default: true
|
|
8867
|
+
},
|
|
8868
|
+
/**
|
|
8869
|
+
* @description 是否带有纵向边框
|
|
8870
|
+
*/
|
|
8871
|
+
border: {
|
|
8872
|
+
type: Boolean,
|
|
8873
|
+
default: true
|
|
8799
8874
|
}
|
|
8800
8875
|
}));
|
|
8801
8876
|
const _hoisted_1$1n = {
|
|
@@ -8831,7 +8906,6 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
8831
8906
|
const { $pageDataField, $menuField, $pageSizeField, $currentPageField, $totalField, $pageCountField, $avgDayField } = utils.getTableConfig();
|
|
8832
8907
|
const { getValue: getValue2, setValue, attrProps } = useProps(props);
|
|
8833
8908
|
const tagID = props.tagId ?? "els_table_" + utils.shortid();
|
|
8834
|
-
const wrapTagID = "els-wrap-" + tagID;
|
|
8835
8909
|
const queryFormData = ref({});
|
|
8836
8910
|
const elsPageStore = container == null ? void 0 : container.$pageStore;
|
|
8837
8911
|
const elsApiResult = container == null ? void 0 : container.$apiResult;
|
|
@@ -10026,16 +10100,11 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10026
10100
|
default: withCtx(() => [
|
|
10027
10101
|
withDirectives((openBlock(), createBlock(_component_el_table, mergeProps(unref(attrProps), {
|
|
10028
10102
|
data: tableData,
|
|
10029
|
-
"inner-wrapper-class": wrapTagID,
|
|
10030
|
-
border: true,
|
|
10031
|
-
fit: "",
|
|
10032
|
-
"highlight-current-row": "",
|
|
10033
10103
|
class: !unref(isMobile) && _ctx.hasBottomFixdScroll ? unref(tagID) + " els-table-noScroll" : unref(tagID),
|
|
10034
|
-
|
|
10104
|
+
rowKey: _ctx.rowKey,
|
|
10035
10105
|
ref_key: "dataTable",
|
|
10036
10106
|
ref: dataTable,
|
|
10037
|
-
|
|
10038
|
-
"row-class-name": currRowClassName.value,
|
|
10107
|
+
rowClassName: currRowClassName.value,
|
|
10039
10108
|
"show-summary": unref(currShowSummary),
|
|
10040
10109
|
onSortChange: unref(currSortChange),
|
|
10041
10110
|
onRowContextmenu: handleRowContextMenu,
|
|
@@ -10115,7 +10184,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10115
10184
|
renderSlot(_ctx.$slots, "empty", {}, void 0, true)
|
|
10116
10185
|
]),
|
|
10117
10186
|
_: 3
|
|
10118
|
-
}, 16, ["data", "class", "
|
|
10187
|
+
}, 16, ["data", "class", "rowKey", "rowClassName", "show-summary", "onSortChange", "span-method", "summary-method"])), [
|
|
10119
10188
|
[_directive_loading, unref(dataLoading)]
|
|
10120
10189
|
]),
|
|
10121
10190
|
!unref(isMobile) && _ctx.hasBottomFixdScroll && unref(tableBodyWidth) ? (openBlock(), createBlock(_component_el_affix, {
|
|
@@ -10188,17 +10257,18 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10188
10257
|
key: 2,
|
|
10189
10258
|
ref_key: "contentMenu",
|
|
10190
10259
|
ref: contentMenu,
|
|
10191
|
-
|
|
10192
|
-
|
|
10260
|
+
data: unref(currContextMenus),
|
|
10261
|
+
modelValue: unref(contextMenuVisible),
|
|
10262
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(contextMenuVisible) ? contextMenuVisible.value = $event : contextMenuVisible = $event),
|
|
10193
10263
|
positionLeft: unref(contextMenuPositionLeft),
|
|
10194
10264
|
positionTop: unref(contextMenuPositionTop),
|
|
10195
10265
|
onClick: handleMenuCommand
|
|
10196
|
-
}, null, 8, ["
|
|
10266
|
+
}, null, 8, ["data", "modelValue", "positionLeft", "positionTop"])) : createCommentVNode("", true)
|
|
10197
10267
|
], 64);
|
|
10198
10268
|
};
|
|
10199
10269
|
}
|
|
10200
10270
|
});
|
|
10201
|
-
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__scopeId", "data-v-
|
|
10271
|
+
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__scopeId", "data-v-abcfc49e"]]);
|
|
10202
10272
|
const ElsTable = withInstall(Table$1);
|
|
10203
10273
|
const treeProps = buildProps({
|
|
10204
10274
|
...formItemProps$1,
|
|
@@ -12323,7 +12393,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
12323
12393
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(thumbnailPicUrls.value, (item, index) => {
|
|
12324
12394
|
return openBlock(), createBlock(_component_el_image, mergeProps({ ref_for: true }, props, {
|
|
12325
12395
|
src: item,
|
|
12326
|
-
style: [{ width: _ctx.width }, { height: _ctx.height }, { cursor: _ctx.isPreview ? "zoom-in" : "default" }],
|
|
12396
|
+
style: [{ width: _ctx.width.appendPx() }, { height: _ctx.height.appendPx() }, { cursor: _ctx.isPreview ? "zoom-in" : "default" }],
|
|
12327
12397
|
onClick: ($event) => preview(item, index)
|
|
12328
12398
|
}), {
|
|
12329
12399
|
placeholder: withCtx(() => [
|
|
@@ -16089,28 +16159,27 @@ const menuContextProps = buildProps({
|
|
|
16089
16159
|
type: Number,
|
|
16090
16160
|
default: 0
|
|
16091
16161
|
},
|
|
16092
|
-
/**
|
|
16093
|
-
* @description 是否显示
|
|
16094
|
-
*/
|
|
16095
|
-
visible: {
|
|
16096
|
-
type: Boolean,
|
|
16097
|
-
default: false
|
|
16098
|
-
},
|
|
16099
16162
|
/**
|
|
16100
16163
|
* @description 点击事件
|
|
16101
16164
|
*/
|
|
16102
16165
|
onClick: Function
|
|
16103
16166
|
});
|
|
16104
16167
|
const _hoisted_1$19 = ["onClick"];
|
|
16105
|
-
const _hoisted_2$_ = { class: "
|
|
16168
|
+
const _hoisted_2$_ = { class: "els-context-info" };
|
|
16106
16169
|
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
16107
|
-
...{ name: "ElsMenuContext" },
|
|
16170
|
+
...{ name: "ElsMenuContext", inheritAttrs: false },
|
|
16108
16171
|
__name: "menuContext",
|
|
16109
|
-
props: menuContextProps,
|
|
16172
|
+
props: /* @__PURE__ */ mergeModels(menuContextProps, {
|
|
16173
|
+
"modelValue": { type: Boolean },
|
|
16174
|
+
"modelModifiers": {}
|
|
16175
|
+
}),
|
|
16176
|
+
emits: ["update:modelValue"],
|
|
16110
16177
|
setup(__props) {
|
|
16111
16178
|
var _a;
|
|
16112
16179
|
const container = useContainer();
|
|
16113
16180
|
const { proxy } = getCurrentInstance();
|
|
16181
|
+
const modelValue = useModel$1(__props, "modelValue");
|
|
16182
|
+
const contextMenu = ref();
|
|
16114
16183
|
const props = __props;
|
|
16115
16184
|
const menuData = reactive([]);
|
|
16116
16185
|
let idFieldname = "";
|
|
@@ -16136,12 +16205,6 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16136
16205
|
menuData.push(...val);
|
|
16137
16206
|
}
|
|
16138
16207
|
}, { immediate: true, deep: true });
|
|
16139
|
-
const triggerHideFn = clickDocumentHandler.bind(this);
|
|
16140
|
-
function clickDocumentHandler(e) {
|
|
16141
|
-
if (e.srcElement.className.indexOf && e.srcElement.className.indexOf("air-table__context") === -1 && e.srcElement.tagName !== "I") {
|
|
16142
|
-
proxy.$parent.contextMenuVisible = false;
|
|
16143
|
-
}
|
|
16144
|
-
}
|
|
16145
16208
|
function menuCommand(menu) {
|
|
16146
16209
|
if (container) {
|
|
16147
16210
|
container.$menuCommand(menu);
|
|
@@ -16149,21 +16212,21 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16149
16212
|
if (props.onClick) {
|
|
16150
16213
|
props.onClick(menu);
|
|
16151
16214
|
}
|
|
16215
|
+
modelValue.value = false;
|
|
16152
16216
|
}
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
});
|
|
16156
|
-
onUnmounted(() => {
|
|
16157
|
-
document.removeEventListener("mousedown", triggerHideFn);
|
|
16217
|
+
onClickOutside(contextMenu, (event) => {
|
|
16218
|
+
modelValue.value = false;
|
|
16158
16219
|
});
|
|
16159
16220
|
return (_ctx, _cache) => {
|
|
16160
16221
|
return withDirectives((openBlock(), createElementBlock("ul", {
|
|
16161
|
-
|
|
16222
|
+
ref_key: "contextMenu",
|
|
16223
|
+
ref: contextMenu,
|
|
16224
|
+
class: normalizeClass(["els-context-menu", { "outscreen-menu": isOutScreen.value }]),
|
|
16162
16225
|
style: normalizeStyle([{ left: _ctx.positionLeft + "px" }, { top: isOutBottom.value ? "auto" : _ctx.positionTop + "px" }, { bottom: !isOutBottom.value ? "auto" : positionBottom.value + "px" }])
|
|
16163
16226
|
}, [
|
|
16164
16227
|
(openBlock(true), createElementBlock(Fragment, null, renderList(menuData, (item) => {
|
|
16165
16228
|
return openBlock(), createElementBlock("li", {
|
|
16166
|
-
class: "
|
|
16229
|
+
class: "els-context-list",
|
|
16167
16230
|
key: item[unref(idFieldname)],
|
|
16168
16231
|
onClick: ($event) => menuCommand(item)
|
|
16169
16232
|
}, [
|
|
@@ -16174,12 +16237,12 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16174
16237
|
], 8, _hoisted_1$19);
|
|
16175
16238
|
}), 128))
|
|
16176
16239
|
], 6)), [
|
|
16177
|
-
[vShow,
|
|
16240
|
+
[vShow, modelValue.value]
|
|
16178
16241
|
]);
|
|
16179
16242
|
};
|
|
16180
16243
|
}
|
|
16181
16244
|
});
|
|
16182
|
-
const MenuContext = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-
|
|
16245
|
+
const MenuContext = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-e0c03318"]]);
|
|
16183
16246
|
const ElsMenuContext = withInstall(MenuContext);
|
|
16184
16247
|
const menuDropdownProps = buildProps({
|
|
16185
16248
|
/**
|
|
@@ -17733,12 +17796,15 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17733
17796
|
}
|
|
17734
17797
|
}
|
|
17735
17798
|
}
|
|
17736
|
-
currItemClassName.value
|
|
17737
|
-
|
|
17738
|
-
if (
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17799
|
+
if (!currItemClassName.value || currItemClassName.value.indexOf("listitem") === -1) {
|
|
17800
|
+
currItemClassName.value = props.itemClassName ?? [];
|
|
17801
|
+
if (props.itemComponent === "div") {
|
|
17802
|
+
console.log("333");
|
|
17803
|
+
if (typeof currItemClassName.value === "string") {
|
|
17804
|
+
currItemClassName.value += " listitem flex";
|
|
17805
|
+
} else {
|
|
17806
|
+
currItemClassName.value.push(...["listitem", "flex"]);
|
|
17807
|
+
}
|
|
17742
17808
|
}
|
|
17743
17809
|
}
|
|
17744
17810
|
});
|
|
@@ -17958,7 +18024,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17958
18024
|
};
|
|
17959
18025
|
}
|
|
17960
18026
|
});
|
|
17961
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
18027
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-6d40759c"]]);
|
|
17962
18028
|
const ElsList = withInstall(List);
|
|
17963
18029
|
const _hoisted_1$13 = { class: "custom-block-title" };
|
|
17964
18030
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
@@ -20973,54 +21039,111 @@ const property_select = [
|
|
|
20973
21039
|
"keyCode": "g2IUO-5Ioa",
|
|
20974
21040
|
"children": [
|
|
20975
21041
|
{
|
|
20976
|
-
"keyID": "
|
|
20977
|
-
"keyName": "
|
|
20978
|
-
"keyCode": "
|
|
20979
|
-
"children": [
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
"
|
|
20983
|
-
"
|
|
20984
|
-
"
|
|
20985
|
-
"
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
|
|
20993
|
-
"validType": "",
|
|
20994
|
-
"validExpression": "",
|
|
20995
|
-
"validMessage": "",
|
|
20996
|
-
"validMethod": ""
|
|
20997
|
-
},
|
|
20998
|
-
"baseConfig": {
|
|
20999
|
-
"type": "button",
|
|
21000
|
-
"dataType": "String",
|
|
21001
|
-
"data": [
|
|
21002
|
-
{
|
|
21003
|
-
"label": "数据列表",
|
|
21004
|
-
"value": 1
|
|
21042
|
+
"keyID": "id_6196",
|
|
21043
|
+
"keyName": "栅格行",
|
|
21044
|
+
"keyCode": "",
|
|
21045
|
+
"children": [
|
|
21046
|
+
{
|
|
21047
|
+
"keyID": "c22a17d687c1569a7fe2e7979b12e9a0",
|
|
21048
|
+
"keyName": "数据源",
|
|
21049
|
+
"keyCode": "dataType",
|
|
21050
|
+
"children": [],
|
|
21051
|
+
"config": {
|
|
21052
|
+
"arrayConfig": {
|
|
21053
|
+
"componentName": "ElsFormItem",
|
|
21054
|
+
"type": "bottom",
|
|
21055
|
+
"arrayDefaultLength": 0,
|
|
21056
|
+
"arrangementType": "Vertical",
|
|
21057
|
+
"maxHeight": "",
|
|
21058
|
+
"maxWidth": ""
|
|
21005
21059
|
},
|
|
21006
|
-
{
|
|
21007
|
-
"
|
|
21008
|
-
"
|
|
21060
|
+
"formConfig": {
|
|
21061
|
+
"labelWidth": "",
|
|
21062
|
+
"required": false,
|
|
21063
|
+
"requiredMessage": "",
|
|
21064
|
+
"validType": "",
|
|
21065
|
+
"validExpression": "",
|
|
21066
|
+
"validMessage": "",
|
|
21067
|
+
"validMethod": ""
|
|
21068
|
+
},
|
|
21069
|
+
"baseConfig": {
|
|
21070
|
+
"type": "button",
|
|
21071
|
+
"dataType": "String",
|
|
21072
|
+
"data": [
|
|
21073
|
+
{
|
|
21074
|
+
"label": "数据",
|
|
21075
|
+
"value": 1
|
|
21076
|
+
},
|
|
21077
|
+
{
|
|
21078
|
+
"label": "接口",
|
|
21079
|
+
"value": 2
|
|
21080
|
+
}
|
|
21081
|
+
],
|
|
21082
|
+
"labelField": "label",
|
|
21083
|
+
"valueField": "value"
|
|
21084
|
+
},
|
|
21085
|
+
"advancedConfig": {
|
|
21086
|
+
"style": "",
|
|
21087
|
+
"vif": "",
|
|
21088
|
+
"disabled": "",
|
|
21089
|
+
"eventChange": ""
|
|
21009
21090
|
}
|
|
21010
|
-
|
|
21011
|
-
"
|
|
21012
|
-
"
|
|
21091
|
+
},
|
|
21092
|
+
"componentType": "Radio",
|
|
21093
|
+
"dataType": "Number",
|
|
21094
|
+
"defaultValue": 1
|
|
21013
21095
|
},
|
|
21014
|
-
|
|
21015
|
-
"
|
|
21016
|
-
"
|
|
21017
|
-
"
|
|
21018
|
-
"
|
|
21096
|
+
{
|
|
21097
|
+
"keyID": "0f273ad1e2f7cfde654ba61f8b7c7696",
|
|
21098
|
+
"keyName": "占位文本",
|
|
21099
|
+
"keyCode": "placeholder",
|
|
21100
|
+
"children": [],
|
|
21101
|
+
"config": {
|
|
21102
|
+
"formConfig": {
|
|
21103
|
+
"labelWidth": "",
|
|
21104
|
+
"required": false,
|
|
21105
|
+
"requiredMessage": "",
|
|
21106
|
+
"validType": "",
|
|
21107
|
+
"validExpression": "",
|
|
21108
|
+
"validMessage": "",
|
|
21109
|
+
"validMethod": ""
|
|
21110
|
+
},
|
|
21111
|
+
"baseConfig": {
|
|
21112
|
+
"showWordLimit": false,
|
|
21113
|
+
"clearable": false,
|
|
21114
|
+
"isPassword": false,
|
|
21115
|
+
"isTrim": false,
|
|
21116
|
+
"encode": false
|
|
21117
|
+
},
|
|
21118
|
+
"advancedConfig": {
|
|
21119
|
+
"style": "",
|
|
21120
|
+
"vif": "",
|
|
21121
|
+
"disabled": "",
|
|
21122
|
+
"eventChange": ""
|
|
21123
|
+
},
|
|
21124
|
+
"arrayConfig": {}
|
|
21125
|
+
},
|
|
21126
|
+
"componentType": "Input",
|
|
21127
|
+
"dataType": "String"
|
|
21019
21128
|
}
|
|
21020
|
-
|
|
21021
|
-
"
|
|
21022
|
-
"
|
|
21023
|
-
"
|
|
21129
|
+
],
|
|
21130
|
+
"dataType": "None",
|
|
21131
|
+
"arrayDataType": "",
|
|
21132
|
+
"componentTypeLabel": "栅格行",
|
|
21133
|
+
"componentType": "Row",
|
|
21134
|
+
"icon": "layout-two",
|
|
21135
|
+
"slots": [],
|
|
21136
|
+
"config": {
|
|
21137
|
+
"formConfig": {},
|
|
21138
|
+
"baseConfig": {
|
|
21139
|
+
"gutter": 10,
|
|
21140
|
+
"justify": "start",
|
|
21141
|
+
"align": "",
|
|
21142
|
+
"tag": "div"
|
|
21143
|
+
},
|
|
21144
|
+
"advancedConfig": {},
|
|
21145
|
+
"arrayConfig": {}
|
|
21146
|
+
}
|
|
21024
21147
|
},
|
|
21025
21148
|
{
|
|
21026
21149
|
"keyID": "67cecb440365abb61e4aace2d5686cb9",
|
|
@@ -21690,37 +21813,32 @@ const property_select = [
|
|
|
21690
21813
|
"dataType": "String"
|
|
21691
21814
|
},
|
|
21692
21815
|
{
|
|
21693
|
-
"keyID": "
|
|
21694
|
-
"keyName": "
|
|
21695
|
-
"keyCode": "
|
|
21816
|
+
"keyID": "id_624",
|
|
21817
|
+
"keyName": "高度",
|
|
21818
|
+
"keyCode": "height",
|
|
21696
21819
|
"children": [],
|
|
21820
|
+
"dataType": "String",
|
|
21821
|
+
"arrayDataType": "",
|
|
21822
|
+
"componentTypeLabel": "输入框",
|
|
21823
|
+
"componentType": "Input",
|
|
21824
|
+
"icon": "text",
|
|
21825
|
+
"operateType": "input",
|
|
21826
|
+
"slots": [],
|
|
21697
21827
|
"config": {
|
|
21698
|
-
"formConfig": {
|
|
21699
|
-
"labelWidth": "",
|
|
21700
|
-
"required": false,
|
|
21701
|
-
"requiredMessage": "",
|
|
21702
|
-
"validType": "",
|
|
21703
|
-
"validExpression": "",
|
|
21704
|
-
"validMessage": "",
|
|
21705
|
-
"validMethod": ""
|
|
21706
|
-
},
|
|
21828
|
+
"formConfig": {},
|
|
21707
21829
|
"baseConfig": {
|
|
21708
|
-
"
|
|
21709
|
-
"
|
|
21710
|
-
"
|
|
21711
|
-
"
|
|
21712
|
-
"
|
|
21713
|
-
|
|
21714
|
-
|
|
21715
|
-
"
|
|
21716
|
-
"vif": "",
|
|
21717
|
-
"disabled": "",
|
|
21718
|
-
"eventChange": ""
|
|
21830
|
+
"width": "",
|
|
21831
|
+
"placeholder": "",
|
|
21832
|
+
"prefixIcon": "",
|
|
21833
|
+
"suffixIcon": "",
|
|
21834
|
+
"prefixTag": "",
|
|
21835
|
+
"suffixTag": "",
|
|
21836
|
+
"maxlength": "",
|
|
21837
|
+
"clearable": true
|
|
21719
21838
|
},
|
|
21839
|
+
"advancedConfig": {},
|
|
21720
21840
|
"arrayConfig": {}
|
|
21721
|
-
}
|
|
21722
|
-
"componentType": "Input",
|
|
21723
|
-
"dataType": "String"
|
|
21841
|
+
}
|
|
21724
21842
|
}
|
|
21725
21843
|
],
|
|
21726
21844
|
"config": {
|
|
@@ -21836,37 +21954,148 @@ const property_select = [
|
|
|
21836
21954
|
"dataType": "None"
|
|
21837
21955
|
},
|
|
21838
21956
|
{
|
|
21839
|
-
"keyID": "
|
|
21840
|
-
"keyName": "
|
|
21841
|
-
"keyCode": "
|
|
21842
|
-
"children": [
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
"
|
|
21846
|
-
"
|
|
21847
|
-
"
|
|
21848
|
-
"
|
|
21849
|
-
"
|
|
21850
|
-
"
|
|
21851
|
-
"
|
|
21852
|
-
"
|
|
21853
|
-
"
|
|
21854
|
-
"
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21957
|
+
"keyID": "id_2975",
|
|
21958
|
+
"keyName": "栅格行",
|
|
21959
|
+
"keyCode": "",
|
|
21960
|
+
"children": [
|
|
21961
|
+
{
|
|
21962
|
+
"keyID": "id_1851",
|
|
21963
|
+
"keyName": "排列方式",
|
|
21964
|
+
"keyCode": "optionDirection",
|
|
21965
|
+
"children": [],
|
|
21966
|
+
"dataType": "String",
|
|
21967
|
+
"arrayDataType": "",
|
|
21968
|
+
"componentTypeLabel": "单选列表",
|
|
21969
|
+
"componentType": "Radio",
|
|
21970
|
+
"icon": "radio-two",
|
|
21971
|
+
"slots": [],
|
|
21972
|
+
"config": {
|
|
21973
|
+
"formConfig": {},
|
|
21974
|
+
"baseConfig": {
|
|
21975
|
+
"type": "button",
|
|
21976
|
+
"dataType": 1,
|
|
21977
|
+
"data": [
|
|
21978
|
+
{
|
|
21979
|
+
"label": "纵向",
|
|
21980
|
+
"value": "vertical"
|
|
21981
|
+
},
|
|
21982
|
+
{
|
|
21983
|
+
"label": "横向",
|
|
21984
|
+
"value": "horizontal"
|
|
21985
|
+
}
|
|
21986
|
+
]
|
|
21987
|
+
},
|
|
21988
|
+
"advancedConfig": {},
|
|
21989
|
+
"arrayConfig": {}
|
|
21990
|
+
}
|
|
21859
21991
|
},
|
|
21860
|
-
|
|
21861
|
-
"
|
|
21862
|
-
"
|
|
21863
|
-
"
|
|
21864
|
-
"
|
|
21992
|
+
{
|
|
21993
|
+
"keyID": "645dfc27b5e7fc8d70eed47c2bc868c4",
|
|
21994
|
+
"keyName": "允许创建",
|
|
21995
|
+
"keyCode": "allow-create",
|
|
21996
|
+
"children": [],
|
|
21997
|
+
"config": {
|
|
21998
|
+
"formConfig": {
|
|
21999
|
+
"labelWidth": "",
|
|
22000
|
+
"tip": "",
|
|
22001
|
+
"tipPosition": "left",
|
|
22002
|
+
"suffixContent": "",
|
|
22003
|
+
"required": false,
|
|
22004
|
+
"requiredMessage": "",
|
|
22005
|
+
"validType": "",
|
|
22006
|
+
"validExpression": "",
|
|
22007
|
+
"validMessage": "",
|
|
22008
|
+
"validMethod": ""
|
|
22009
|
+
},
|
|
22010
|
+
"baseConfig": {
|
|
22011
|
+
"active-value": true,
|
|
22012
|
+
"inactive-value": false
|
|
22013
|
+
},
|
|
22014
|
+
"advancedConfig": {
|
|
22015
|
+
"style": "",
|
|
22016
|
+
"vif": "currNode['filterable'].value==true",
|
|
22017
|
+
"disabled": "",
|
|
22018
|
+
"eventChange": ""
|
|
22019
|
+
},
|
|
22020
|
+
"arrayConfig": {}
|
|
22021
|
+
},
|
|
22022
|
+
"componentType": "Switch",
|
|
22023
|
+
"dataType": "Bool"
|
|
22024
|
+
}
|
|
22025
|
+
],
|
|
22026
|
+
"dataType": "None",
|
|
22027
|
+
"arrayDataType": "",
|
|
22028
|
+
"componentTypeLabel": "栅格行",
|
|
22029
|
+
"componentType": "Row",
|
|
22030
|
+
"icon": "layout-two",
|
|
22031
|
+
"slots": [],
|
|
22032
|
+
"config": {
|
|
22033
|
+
"formConfig": {},
|
|
22034
|
+
"baseConfig": {},
|
|
22035
|
+
"advancedConfig": {},
|
|
22036
|
+
"arrayConfig": {}
|
|
22037
|
+
}
|
|
22038
|
+
},
|
|
22039
|
+
{
|
|
22040
|
+
"keyID": "id_5872",
|
|
22041
|
+
"keyName": "栅格行",
|
|
22042
|
+
"keyCode": "",
|
|
22043
|
+
"children": [
|
|
22044
|
+
{
|
|
22045
|
+
"keyID": "id_4052",
|
|
22046
|
+
"keyName": "下拉框与输入框宽度相同",
|
|
22047
|
+
"keyCode": "fit-input-width",
|
|
22048
|
+
"children": [],
|
|
22049
|
+
"dataType": "Bool",
|
|
22050
|
+
"arrayDataType": "",
|
|
22051
|
+
"componentTypeLabel": "开关",
|
|
22052
|
+
"componentType": "Switch",
|
|
22053
|
+
"icon": "switch-one",
|
|
22054
|
+
"slots": [],
|
|
22055
|
+
"config": {
|
|
22056
|
+
"formConfig": {},
|
|
22057
|
+
"baseConfig": {
|
|
22058
|
+
"active-text": "",
|
|
22059
|
+
"inactive-text": "",
|
|
22060
|
+
"active-value": true,
|
|
22061
|
+
"inactive-value": false
|
|
22062
|
+
},
|
|
22063
|
+
"advancedConfig": {},
|
|
22064
|
+
"arrayConfig": {}
|
|
22065
|
+
}
|
|
21865
22066
|
},
|
|
22067
|
+
{
|
|
22068
|
+
"keyID": "id_503",
|
|
22069
|
+
"keyName": "无匹配时显示的文字",
|
|
22070
|
+
"keyCode": "no-match-text",
|
|
22071
|
+
"children": [],
|
|
22072
|
+
"dataType": "String",
|
|
22073
|
+
"arrayDataType": "",
|
|
22074
|
+
"componentTypeLabel": "输入框",
|
|
22075
|
+
"componentType": "Input",
|
|
22076
|
+
"icon": "text",
|
|
22077
|
+
"operateType": "input",
|
|
22078
|
+
"slots": [],
|
|
22079
|
+
"config": {
|
|
22080
|
+
"formConfig": {},
|
|
22081
|
+
"baseConfig": {},
|
|
22082
|
+
"advancedConfig": {},
|
|
22083
|
+
"arrayConfig": {}
|
|
22084
|
+
}
|
|
22085
|
+
}
|
|
22086
|
+
],
|
|
22087
|
+
"dataType": "None",
|
|
22088
|
+
"arrayDataType": "",
|
|
22089
|
+
"componentTypeLabel": "栅格行",
|
|
22090
|
+
"componentType": "Row",
|
|
22091
|
+
"icon": "layout-two",
|
|
22092
|
+
"slots": [],
|
|
22093
|
+
"config": {
|
|
22094
|
+
"formConfig": {},
|
|
22095
|
+
"baseConfig": {},
|
|
22096
|
+
"advancedConfig": {},
|
|
21866
22097
|
"arrayConfig": {}
|
|
21867
|
-
}
|
|
21868
|
-
"componentType": "Switch",
|
|
21869
|
-
"dataType": "Bool"
|
|
22098
|
+
}
|
|
21870
22099
|
}
|
|
21871
22100
|
],
|
|
21872
22101
|
"dataType": "None",
|
|
@@ -35647,14 +35876,14 @@ const property_tag = [
|
|
|
35647
35876
|
}
|
|
35648
35877
|
},
|
|
35649
35878
|
{
|
|
35650
|
-
"keyID": "
|
|
35879
|
+
"keyID": "id_194",
|
|
35651
35880
|
"keyName": "栅格行",
|
|
35652
35881
|
"keyCode": "",
|
|
35653
35882
|
"children": [
|
|
35654
35883
|
{
|
|
35655
|
-
"keyID": "
|
|
35656
|
-
"keyName": "
|
|
35657
|
-
"keyCode": "
|
|
35884
|
+
"keyID": "id_2766",
|
|
35885
|
+
"keyName": "颜色",
|
|
35886
|
+
"keyCode": "color",
|
|
35658
35887
|
"children": [],
|
|
35659
35888
|
"dataType": "String",
|
|
35660
35889
|
"arrayDataType": "",
|
|
@@ -35670,6 +35899,108 @@ const property_tag = [
|
|
|
35670
35899
|
"arrayConfig": {}
|
|
35671
35900
|
}
|
|
35672
35901
|
},
|
|
35902
|
+
{
|
|
35903
|
+
"keyID": "id_588",
|
|
35904
|
+
"keyName": "类型",
|
|
35905
|
+
"keyCode": "type",
|
|
35906
|
+
"children": [],
|
|
35907
|
+
"dataType": "String",
|
|
35908
|
+
"arrayDataType": "",
|
|
35909
|
+
"componentTypeLabel": "下拉列表",
|
|
35910
|
+
"componentType": "Select",
|
|
35911
|
+
"icon": "select",
|
|
35912
|
+
"operateType": "picker",
|
|
35913
|
+
"slots": [
|
|
35914
|
+
{
|
|
35915
|
+
"name": "header",
|
|
35916
|
+
"children": []
|
|
35917
|
+
},
|
|
35918
|
+
{
|
|
35919
|
+
"name": "default",
|
|
35920
|
+
"children": []
|
|
35921
|
+
}
|
|
35922
|
+
],
|
|
35923
|
+
"config": {
|
|
35924
|
+
"formConfig": {},
|
|
35925
|
+
"baseConfig": {
|
|
35926
|
+
"dataType": 1,
|
|
35927
|
+
"data": [
|
|
35928
|
+
{
|
|
35929
|
+
"label": "primary",
|
|
35930
|
+
"value": "primary"
|
|
35931
|
+
},
|
|
35932
|
+
{
|
|
35933
|
+
"label": "success",
|
|
35934
|
+
"value": "success"
|
|
35935
|
+
},
|
|
35936
|
+
{
|
|
35937
|
+
"label": "info",
|
|
35938
|
+
"value": "info"
|
|
35939
|
+
},
|
|
35940
|
+
{
|
|
35941
|
+
"label": "warning",
|
|
35942
|
+
"value": "warning"
|
|
35943
|
+
},
|
|
35944
|
+
{
|
|
35945
|
+
"label": "danger",
|
|
35946
|
+
"value": "danger"
|
|
35947
|
+
}
|
|
35948
|
+
],
|
|
35949
|
+
"filterable": true,
|
|
35950
|
+
"width": "",
|
|
35951
|
+
"placeholder": "",
|
|
35952
|
+
"clearable": true,
|
|
35953
|
+
"teleported": true
|
|
35954
|
+
},
|
|
35955
|
+
"advancedConfig": {},
|
|
35956
|
+
"arrayConfig": {}
|
|
35957
|
+
}
|
|
35958
|
+
}
|
|
35959
|
+
],
|
|
35960
|
+
"dataType": "None",
|
|
35961
|
+
"arrayDataType": "",
|
|
35962
|
+
"componentTypeLabel": "栅格行",
|
|
35963
|
+
"componentType": "Row",
|
|
35964
|
+
"icon": "layout-two",
|
|
35965
|
+
"slots": [],
|
|
35966
|
+
"config": {
|
|
35967
|
+
"formConfig": {},
|
|
35968
|
+
"baseConfig": {
|
|
35969
|
+
"gutter": 10,
|
|
35970
|
+
"justify": "start",
|
|
35971
|
+
"align": "",
|
|
35972
|
+
"tag": "div"
|
|
35973
|
+
},
|
|
35974
|
+
"advancedConfig": {},
|
|
35975
|
+
"arrayConfig": {}
|
|
35976
|
+
}
|
|
35977
|
+
},
|
|
35978
|
+
{
|
|
35979
|
+
"keyID": "id_rz9a_h_ze",
|
|
35980
|
+
"keyName": "栅格行",
|
|
35981
|
+
"keyCode": "",
|
|
35982
|
+
"children": [
|
|
35983
|
+
{
|
|
35984
|
+
"keyID": "id_559",
|
|
35985
|
+
"keyName": "Tag 是否为圆形",
|
|
35986
|
+
"keyCode": "round",
|
|
35987
|
+
"children": [],
|
|
35988
|
+
"dataType": "Bool",
|
|
35989
|
+
"arrayDataType": "",
|
|
35990
|
+
"componentTypeLabel": "开关",
|
|
35991
|
+
"componentType": "Switch",
|
|
35992
|
+
"icon": "switch-one",
|
|
35993
|
+
"slots": [],
|
|
35994
|
+
"config": {
|
|
35995
|
+
"formConfig": {},
|
|
35996
|
+
"baseConfig": {
|
|
35997
|
+
"active-value": true,
|
|
35998
|
+
"inactive-value": false
|
|
35999
|
+
},
|
|
36000
|
+
"advancedConfig": {},
|
|
36001
|
+
"arrayConfig": {}
|
|
36002
|
+
}
|
|
36003
|
+
},
|
|
35673
36004
|
{
|
|
35674
36005
|
"keyID": "id_Y86Ihl_4O",
|
|
35675
36006
|
"keyName": "是否可关闭",
|
|
@@ -36500,6 +36831,614 @@ const property_formQuery = [
|
|
|
36500
36831
|
}
|
|
36501
36832
|
}
|
|
36502
36833
|
];
|
|
36834
|
+
const property_text = [
|
|
36835
|
+
{
|
|
36836
|
+
"keyID": "id_6529",
|
|
36837
|
+
"keyName": "Form",
|
|
36838
|
+
"keyCode": "key_7389",
|
|
36839
|
+
"children": [
|
|
36840
|
+
{
|
|
36841
|
+
"keyID": "id_4230",
|
|
36842
|
+
"keyName": "默认内容",
|
|
36843
|
+
"keyCode": "innerContent",
|
|
36844
|
+
"children": [],
|
|
36845
|
+
"dataType": "String",
|
|
36846
|
+
"arrayDataType": "",
|
|
36847
|
+
"componentTypeLabel": "文本域",
|
|
36848
|
+
"componentType": "Textarea",
|
|
36849
|
+
"icon": "expand-text-input",
|
|
36850
|
+
"operateType": "input",
|
|
36851
|
+
"slots": [],
|
|
36852
|
+
"config": {
|
|
36853
|
+
"formConfig": {},
|
|
36854
|
+
"baseConfig": {
|
|
36855
|
+
"width": "",
|
|
36856
|
+
"placeholder": "",
|
|
36857
|
+
"rows": "3",
|
|
36858
|
+
"maxlength": ""
|
|
36859
|
+
},
|
|
36860
|
+
"advancedConfig": {},
|
|
36861
|
+
"arrayConfig": {}
|
|
36862
|
+
}
|
|
36863
|
+
},
|
|
36864
|
+
{
|
|
36865
|
+
"keyID": "id_357",
|
|
36866
|
+
"keyName": "栅格行",
|
|
36867
|
+
"keyCode": "",
|
|
36868
|
+
"children": [
|
|
36869
|
+
{
|
|
36870
|
+
"keyID": "id_1702",
|
|
36871
|
+
"keyName": "下拉列表",
|
|
36872
|
+
"keyCode": "type",
|
|
36873
|
+
"children": [],
|
|
36874
|
+
"dataType": "String",
|
|
36875
|
+
"arrayDataType": "",
|
|
36876
|
+
"componentTypeLabel": "下拉列表",
|
|
36877
|
+
"componentType": "Select",
|
|
36878
|
+
"icon": "select",
|
|
36879
|
+
"operateType": "picker",
|
|
36880
|
+
"slots": [
|
|
36881
|
+
{
|
|
36882
|
+
"name": "header",
|
|
36883
|
+
"children": []
|
|
36884
|
+
},
|
|
36885
|
+
{
|
|
36886
|
+
"name": "default",
|
|
36887
|
+
"children": []
|
|
36888
|
+
}
|
|
36889
|
+
],
|
|
36890
|
+
"config": {
|
|
36891
|
+
"formConfig": {},
|
|
36892
|
+
"baseConfig": {
|
|
36893
|
+
"dataType": 1,
|
|
36894
|
+
"data": [
|
|
36895
|
+
{
|
|
36896
|
+
"label": "primary",
|
|
36897
|
+
"value": "primary"
|
|
36898
|
+
},
|
|
36899
|
+
{
|
|
36900
|
+
"label": "success",
|
|
36901
|
+
"value": "success"
|
|
36902
|
+
},
|
|
36903
|
+
{
|
|
36904
|
+
"label": "warning",
|
|
36905
|
+
"value": "warning"
|
|
36906
|
+
},
|
|
36907
|
+
{
|
|
36908
|
+
"label": "danger",
|
|
36909
|
+
"value": "danger"
|
|
36910
|
+
},
|
|
36911
|
+
{
|
|
36912
|
+
"label": "info",
|
|
36913
|
+
"value": "info"
|
|
36914
|
+
}
|
|
36915
|
+
],
|
|
36916
|
+
"filterable": true,
|
|
36917
|
+
"width": "",
|
|
36918
|
+
"placeholder": "",
|
|
36919
|
+
"clearable": true,
|
|
36920
|
+
"teleported": true
|
|
36921
|
+
},
|
|
36922
|
+
"advancedConfig": {},
|
|
36923
|
+
"arrayConfig": {}
|
|
36924
|
+
}
|
|
36925
|
+
},
|
|
36926
|
+
{
|
|
36927
|
+
"keyID": "id_1021",
|
|
36928
|
+
"keyName": "开关",
|
|
36929
|
+
"keyCode": "key_7288",
|
|
36930
|
+
"children": [],
|
|
36931
|
+
"dataType": "Bool",
|
|
36932
|
+
"arrayDataType": "",
|
|
36933
|
+
"componentTypeLabel": "开关",
|
|
36934
|
+
"componentType": "Switch",
|
|
36935
|
+
"icon": "switch-one",
|
|
36936
|
+
"slots": [],
|
|
36937
|
+
"config": {
|
|
36938
|
+
"formConfig": {},
|
|
36939
|
+
"baseConfig": {
|
|
36940
|
+
"active-value": true,
|
|
36941
|
+
"inactive-value": false
|
|
36942
|
+
},
|
|
36943
|
+
"advancedConfig": {},
|
|
36944
|
+
"arrayConfig": {}
|
|
36945
|
+
}
|
|
36946
|
+
}
|
|
36947
|
+
],
|
|
36948
|
+
"dataType": "None",
|
|
36949
|
+
"arrayDataType": "",
|
|
36950
|
+
"componentTypeLabel": "栅格行",
|
|
36951
|
+
"componentType": "Row",
|
|
36952
|
+
"icon": "layout-two",
|
|
36953
|
+
"slots": [],
|
|
36954
|
+
"config": {
|
|
36955
|
+
"formConfig": {},
|
|
36956
|
+
"baseConfig": {
|
|
36957
|
+
"gutter": 10,
|
|
36958
|
+
"justify": "start",
|
|
36959
|
+
"align": "",
|
|
36960
|
+
"tag": "div"
|
|
36961
|
+
},
|
|
36962
|
+
"advancedConfig": {},
|
|
36963
|
+
"arrayConfig": {}
|
|
36964
|
+
}
|
|
36965
|
+
},
|
|
36966
|
+
{
|
|
36967
|
+
"keyID": "id_9382",
|
|
36968
|
+
"keyName": "栅格行",
|
|
36969
|
+
"keyCode": "",
|
|
36970
|
+
"children": [
|
|
36971
|
+
{
|
|
36972
|
+
"keyID": "id_2873",
|
|
36973
|
+
"keyName": "输入框",
|
|
36974
|
+
"keyCode": "key_1610",
|
|
36975
|
+
"children": [],
|
|
36976
|
+
"dataType": "String",
|
|
36977
|
+
"arrayDataType": "",
|
|
36978
|
+
"componentTypeLabel": "输入框",
|
|
36979
|
+
"componentType": "Input",
|
|
36980
|
+
"icon": "text",
|
|
36981
|
+
"operateType": "input",
|
|
36982
|
+
"slots": [],
|
|
36983
|
+
"config": {
|
|
36984
|
+
"formConfig": {},
|
|
36985
|
+
"baseConfig": {},
|
|
36986
|
+
"advancedConfig": {},
|
|
36987
|
+
"arrayConfig": {}
|
|
36988
|
+
}
|
|
36989
|
+
},
|
|
36990
|
+
{
|
|
36991
|
+
"keyID": "id_1573",
|
|
36992
|
+
"keyName": "数字输入框",
|
|
36993
|
+
"keyCode": "key_2127",
|
|
36994
|
+
"children": [],
|
|
36995
|
+
"dataType": "Number",
|
|
36996
|
+
"arrayDataType": "",
|
|
36997
|
+
"componentTypeLabel": "数字输入框",
|
|
36998
|
+
"componentType": "InputNumber",
|
|
36999
|
+
"icon": "list-numbers",
|
|
37000
|
+
"operateType": "input",
|
|
37001
|
+
"slots": [],
|
|
37002
|
+
"config": {
|
|
37003
|
+
"formConfig": {},
|
|
37004
|
+
"baseConfig": {},
|
|
37005
|
+
"advancedConfig": {},
|
|
37006
|
+
"arrayConfig": {}
|
|
37007
|
+
}
|
|
37008
|
+
}
|
|
37009
|
+
],
|
|
37010
|
+
"dataType": "None",
|
|
37011
|
+
"arrayDataType": "",
|
|
37012
|
+
"componentTypeLabel": "栅格行",
|
|
37013
|
+
"componentType": "Row",
|
|
37014
|
+
"icon": "layout-two",
|
|
37015
|
+
"slots": [],
|
|
37016
|
+
"config": {
|
|
37017
|
+
"formConfig": {},
|
|
37018
|
+
"baseConfig": {
|
|
37019
|
+
"gutter": 10,
|
|
37020
|
+
"justify": "start",
|
|
37021
|
+
"align": "",
|
|
37022
|
+
"tag": "div"
|
|
37023
|
+
},
|
|
37024
|
+
"advancedConfig": {},
|
|
37025
|
+
"arrayConfig": {}
|
|
37026
|
+
}
|
|
37027
|
+
}
|
|
37028
|
+
],
|
|
37029
|
+
"dataType": "None",
|
|
37030
|
+
"arrayDataType": "",
|
|
37031
|
+
"componentTypeLabel": "Form表单",
|
|
37032
|
+
"componentType": "Form",
|
|
37033
|
+
"config": {
|
|
37034
|
+
"baseConfig": {
|
|
37035
|
+
"labelPosition": "top",
|
|
37036
|
+
"labelWidth": "",
|
|
37037
|
+
"labelSuffix": "",
|
|
37038
|
+
"requireAsteriskPosition": ""
|
|
37039
|
+
},
|
|
37040
|
+
"advancedConfig": {
|
|
37041
|
+
"style": "",
|
|
37042
|
+
"vif": "",
|
|
37043
|
+
"disabled": "",
|
|
37044
|
+
"eventChange": ""
|
|
37045
|
+
},
|
|
37046
|
+
"arrayConfig": {}
|
|
37047
|
+
}
|
|
37048
|
+
}
|
|
37049
|
+
];
|
|
37050
|
+
const property_div = [
|
|
37051
|
+
{
|
|
37052
|
+
"keyID": "id_6922",
|
|
37053
|
+
"keyName": "Form",
|
|
37054
|
+
"keyCode": "key_5800",
|
|
37055
|
+
"children": [
|
|
37056
|
+
{
|
|
37057
|
+
"keyID": "id_9407",
|
|
37058
|
+
"keyName": "布局方式",
|
|
37059
|
+
"keyCode": "display",
|
|
37060
|
+
"children": [],
|
|
37061
|
+
"dataType": "String",
|
|
37062
|
+
"arrayDataType": "",
|
|
37063
|
+
"componentTypeLabel": "单选列表",
|
|
37064
|
+
"componentType": "Radio",
|
|
37065
|
+
"icon": "radio-two",
|
|
37066
|
+
"slots": [],
|
|
37067
|
+
"config": {
|
|
37068
|
+
"formConfig": {},
|
|
37069
|
+
"baseConfig": {
|
|
37070
|
+
"type": "button",
|
|
37071
|
+
"dataType": 1,
|
|
37072
|
+
"data": [
|
|
37073
|
+
{
|
|
37074
|
+
"label": "inherit",
|
|
37075
|
+
"value": "inherit"
|
|
37076
|
+
},
|
|
37077
|
+
{
|
|
37078
|
+
"label": "flex",
|
|
37079
|
+
"value": "flex"
|
|
37080
|
+
}
|
|
37081
|
+
]
|
|
37082
|
+
},
|
|
37083
|
+
"advancedConfig": {},
|
|
37084
|
+
"arrayConfig": {}
|
|
37085
|
+
},
|
|
37086
|
+
"defaultValue": "inherit"
|
|
37087
|
+
},
|
|
37088
|
+
{
|
|
37089
|
+
"keyID": "id_9624",
|
|
37090
|
+
"keyName": "换行",
|
|
37091
|
+
"keyCode": "flex-wrap",
|
|
37092
|
+
"children": [],
|
|
37093
|
+
"dataType": "String",
|
|
37094
|
+
"arrayDataType": "",
|
|
37095
|
+
"componentTypeLabel": "单选列表",
|
|
37096
|
+
"componentType": "Radio",
|
|
37097
|
+
"icon": "radio-two",
|
|
37098
|
+
"slots": [],
|
|
37099
|
+
"config": {
|
|
37100
|
+
"formConfig": {},
|
|
37101
|
+
"baseConfig": {
|
|
37102
|
+
"type": "button",
|
|
37103
|
+
"dataType": 1,
|
|
37104
|
+
"data": [
|
|
37105
|
+
{
|
|
37106
|
+
"label": "不换行",
|
|
37107
|
+
"value": "nowrap"
|
|
37108
|
+
},
|
|
37109
|
+
{
|
|
37110
|
+
"label": "换行",
|
|
37111
|
+
"value": "wrap"
|
|
37112
|
+
}
|
|
37113
|
+
]
|
|
37114
|
+
},
|
|
37115
|
+
"advancedConfig": {},
|
|
37116
|
+
"arrayConfig": {}
|
|
37117
|
+
}
|
|
37118
|
+
},
|
|
37119
|
+
{
|
|
37120
|
+
"keyID": "id_782",
|
|
37121
|
+
"keyName": "主轴对齐方式",
|
|
37122
|
+
"keyCode": "justify-content",
|
|
37123
|
+
"children": [],
|
|
37124
|
+
"dataType": "String",
|
|
37125
|
+
"arrayDataType": "",
|
|
37126
|
+
"componentTypeLabel": "单选列表",
|
|
37127
|
+
"componentType": "Radio",
|
|
37128
|
+
"icon": "radio-two",
|
|
37129
|
+
"slots": [],
|
|
37130
|
+
"config": {
|
|
37131
|
+
"formConfig": {},
|
|
37132
|
+
"baseConfig": {
|
|
37133
|
+
"type": "button",
|
|
37134
|
+
"dataType": 1,
|
|
37135
|
+
"data": [
|
|
37136
|
+
{
|
|
37137
|
+
"label": "居左",
|
|
37138
|
+
"value": "left"
|
|
37139
|
+
},
|
|
37140
|
+
{
|
|
37141
|
+
"label": "居中",
|
|
37142
|
+
"value": "center"
|
|
37143
|
+
},
|
|
37144
|
+
{
|
|
37145
|
+
"label": "居右",
|
|
37146
|
+
"value": "right"
|
|
37147
|
+
},
|
|
37148
|
+
{
|
|
37149
|
+
"label": "两侧对齐",
|
|
37150
|
+
"value": "space-between"
|
|
37151
|
+
}
|
|
37152
|
+
]
|
|
37153
|
+
},
|
|
37154
|
+
"advancedConfig": {},
|
|
37155
|
+
"arrayConfig": {}
|
|
37156
|
+
}
|
|
37157
|
+
},
|
|
37158
|
+
{
|
|
37159
|
+
"keyID": "id_6025",
|
|
37160
|
+
"keyName": "交叉轴对齐方式",
|
|
37161
|
+
"keyCode": "align-items",
|
|
37162
|
+
"children": [],
|
|
37163
|
+
"dataType": "String",
|
|
37164
|
+
"arrayDataType": "",
|
|
37165
|
+
"componentTypeLabel": "单选列表",
|
|
37166
|
+
"componentType": "Radio",
|
|
37167
|
+
"icon": "radio-two",
|
|
37168
|
+
"slots": [],
|
|
37169
|
+
"config": {
|
|
37170
|
+
"formConfig": {},
|
|
37171
|
+
"baseConfig": {
|
|
37172
|
+
"type": "button",
|
|
37173
|
+
"dataType": 1,
|
|
37174
|
+
"data": [
|
|
37175
|
+
{
|
|
37176
|
+
"label": "起点对齐",
|
|
37177
|
+
"value": "flex-start"
|
|
37178
|
+
},
|
|
37179
|
+
{
|
|
37180
|
+
"label": "终点对齐",
|
|
37181
|
+
"value": "flex-end"
|
|
37182
|
+
},
|
|
37183
|
+
{
|
|
37184
|
+
"label": "居中对齐",
|
|
37185
|
+
"value": "center"
|
|
37186
|
+
},
|
|
37187
|
+
{
|
|
37188
|
+
"label": "两端对齐",
|
|
37189
|
+
"value": "space-between"
|
|
37190
|
+
}
|
|
37191
|
+
]
|
|
37192
|
+
},
|
|
37193
|
+
"advancedConfig": {},
|
|
37194
|
+
"arrayConfig": {}
|
|
37195
|
+
}
|
|
37196
|
+
},
|
|
37197
|
+
{
|
|
37198
|
+
"keyID": "id_3526",
|
|
37199
|
+
"keyName": "间距",
|
|
37200
|
+
"keyCode": "gap",
|
|
37201
|
+
"children": [],
|
|
37202
|
+
"dataType": "String",
|
|
37203
|
+
"arrayDataType": "",
|
|
37204
|
+
"componentTypeLabel": "输入框",
|
|
37205
|
+
"componentType": "Input",
|
|
37206
|
+
"icon": "text",
|
|
37207
|
+
"operateType": "input",
|
|
37208
|
+
"slots": [],
|
|
37209
|
+
"config": {
|
|
37210
|
+
"formConfig": {},
|
|
37211
|
+
"baseConfig": {},
|
|
37212
|
+
"advancedConfig": {},
|
|
37213
|
+
"arrayConfig": {}
|
|
37214
|
+
}
|
|
37215
|
+
}
|
|
37216
|
+
],
|
|
37217
|
+
"dataType": "None",
|
|
37218
|
+
"arrayDataType": "",
|
|
37219
|
+
"componentTypeLabel": "Form表单",
|
|
37220
|
+
"componentType": "Form",
|
|
37221
|
+
"config": {
|
|
37222
|
+
"baseConfig": {
|
|
37223
|
+
"labelPosition": "top",
|
|
37224
|
+
"labelWidth": "",
|
|
37225
|
+
"labelSuffix": "",
|
|
37226
|
+
"requireAsteriskPosition": ""
|
|
37227
|
+
},
|
|
37228
|
+
"advancedConfig": {
|
|
37229
|
+
"style": "",
|
|
37230
|
+
"vif": "",
|
|
37231
|
+
"disabled": "",
|
|
37232
|
+
"eventChange": ""
|
|
37233
|
+
},
|
|
37234
|
+
"arrayConfig": {}
|
|
37235
|
+
}
|
|
37236
|
+
}
|
|
37237
|
+
];
|
|
37238
|
+
const property_image = [
|
|
37239
|
+
{
|
|
37240
|
+
"keyID": "id_3408",
|
|
37241
|
+
"keyName": "Form",
|
|
37242
|
+
"keyCode": "key_9008",
|
|
37243
|
+
"children": [
|
|
37244
|
+
{
|
|
37245
|
+
"keyID": "id_6831",
|
|
37246
|
+
"keyName": "地址",
|
|
37247
|
+
"keyCode": "url",
|
|
37248
|
+
"children": [],
|
|
37249
|
+
"dataType": "String",
|
|
37250
|
+
"arrayDataType": "",
|
|
37251
|
+
"componentTypeLabel": "输入框",
|
|
37252
|
+
"componentType": "Input",
|
|
37253
|
+
"icon": "text",
|
|
37254
|
+
"operateType": "input",
|
|
37255
|
+
"slots": [],
|
|
37256
|
+
"config": {
|
|
37257
|
+
"formConfig": {},
|
|
37258
|
+
"baseConfig": {
|
|
37259
|
+
"width": "",
|
|
37260
|
+
"placeholder": "",
|
|
37261
|
+
"prefixIcon": "",
|
|
37262
|
+
"suffixIcon": "",
|
|
37263
|
+
"prefixTag": "",
|
|
37264
|
+
"suffixTag": "",
|
|
37265
|
+
"maxlength": "",
|
|
37266
|
+
"clearable": true
|
|
37267
|
+
},
|
|
37268
|
+
"advancedConfig": {},
|
|
37269
|
+
"arrayConfig": {}
|
|
37270
|
+
}
|
|
37271
|
+
},
|
|
37272
|
+
{
|
|
37273
|
+
"keyID": "id_4831",
|
|
37274
|
+
"keyName": "缩略图地址",
|
|
37275
|
+
"keyCode": "thumbnailUrl",
|
|
37276
|
+
"children": [],
|
|
37277
|
+
"dataType": "String",
|
|
37278
|
+
"arrayDataType": "",
|
|
37279
|
+
"componentTypeLabel": "输入框",
|
|
37280
|
+
"componentType": "Input",
|
|
37281
|
+
"icon": "text",
|
|
37282
|
+
"operateType": "input",
|
|
37283
|
+
"slots": [],
|
|
37284
|
+
"config": {
|
|
37285
|
+
"formConfig": {},
|
|
37286
|
+
"baseConfig": {},
|
|
37287
|
+
"advancedConfig": {},
|
|
37288
|
+
"arrayConfig": {}
|
|
37289
|
+
}
|
|
37290
|
+
},
|
|
37291
|
+
{
|
|
37292
|
+
"keyID": "id_6839",
|
|
37293
|
+
"keyName": "栅格行",
|
|
37294
|
+
"keyCode": "",
|
|
37295
|
+
"children": [
|
|
37296
|
+
{
|
|
37297
|
+
"keyID": "id_385",
|
|
37298
|
+
"keyName": "图片宽度",
|
|
37299
|
+
"keyCode": "width",
|
|
37300
|
+
"children": [],
|
|
37301
|
+
"dataType": "String",
|
|
37302
|
+
"arrayDataType": "",
|
|
37303
|
+
"componentTypeLabel": "输入框",
|
|
37304
|
+
"componentType": "Input",
|
|
37305
|
+
"icon": "text",
|
|
37306
|
+
"operateType": "input",
|
|
37307
|
+
"slots": [],
|
|
37308
|
+
"config": {
|
|
37309
|
+
"formConfig": {},
|
|
37310
|
+
"baseConfig": {},
|
|
37311
|
+
"advancedConfig": {},
|
|
37312
|
+
"arrayConfig": {}
|
|
37313
|
+
}
|
|
37314
|
+
},
|
|
37315
|
+
{
|
|
37316
|
+
"keyID": "id_3489",
|
|
37317
|
+
"keyName": "图片高度",
|
|
37318
|
+
"keyCode": "height",
|
|
37319
|
+
"children": [],
|
|
37320
|
+
"dataType": "String",
|
|
37321
|
+
"arrayDataType": "",
|
|
37322
|
+
"componentTypeLabel": "输入框",
|
|
37323
|
+
"componentType": "Input",
|
|
37324
|
+
"icon": "text",
|
|
37325
|
+
"operateType": "input",
|
|
37326
|
+
"slots": [],
|
|
37327
|
+
"config": {
|
|
37328
|
+
"formConfig": {},
|
|
37329
|
+
"baseConfig": {},
|
|
37330
|
+
"advancedConfig": {},
|
|
37331
|
+
"arrayConfig": {}
|
|
37332
|
+
}
|
|
37333
|
+
}
|
|
37334
|
+
],
|
|
37335
|
+
"dataType": "None",
|
|
37336
|
+
"arrayDataType": "",
|
|
37337
|
+
"componentTypeLabel": "栅格行",
|
|
37338
|
+
"componentType": "Row",
|
|
37339
|
+
"icon": "layout-two",
|
|
37340
|
+
"slots": [],
|
|
37341
|
+
"config": {
|
|
37342
|
+
"formConfig": {},
|
|
37343
|
+
"baseConfig": {
|
|
37344
|
+
"gutter": 10,
|
|
37345
|
+
"justify": "start",
|
|
37346
|
+
"align": "",
|
|
37347
|
+
"tag": "div"
|
|
37348
|
+
},
|
|
37349
|
+
"advancedConfig": {},
|
|
37350
|
+
"arrayConfig": {}
|
|
37351
|
+
}
|
|
37352
|
+
},
|
|
37353
|
+
{
|
|
37354
|
+
"keyID": "id_7639",
|
|
37355
|
+
"keyName": "栅格行",
|
|
37356
|
+
"keyCode": "",
|
|
37357
|
+
"children": [
|
|
37358
|
+
{
|
|
37359
|
+
"keyID": "id_7977",
|
|
37360
|
+
"keyName": "点击预览",
|
|
37361
|
+
"keyCode": "isPreview",
|
|
37362
|
+
"children": [],
|
|
37363
|
+
"dataType": "Bool",
|
|
37364
|
+
"arrayDataType": "",
|
|
37365
|
+
"componentTypeLabel": "开关",
|
|
37366
|
+
"componentType": "Switch",
|
|
37367
|
+
"icon": "switch-one",
|
|
37368
|
+
"slots": [],
|
|
37369
|
+
"config": {
|
|
37370
|
+
"formConfig": {},
|
|
37371
|
+
"baseConfig": {
|
|
37372
|
+
"active-value": true,
|
|
37373
|
+
"inactive-value": false
|
|
37374
|
+
},
|
|
37375
|
+
"advancedConfig": {},
|
|
37376
|
+
"arrayConfig": {}
|
|
37377
|
+
},
|
|
37378
|
+
"defaultValue": true
|
|
37379
|
+
},
|
|
37380
|
+
{
|
|
37381
|
+
"keyID": "id_8494",
|
|
37382
|
+
"keyName": "插入至 body 元素上",
|
|
37383
|
+
"keyCode": "previewTeleported",
|
|
37384
|
+
"children": [],
|
|
37385
|
+
"dataType": "Bool",
|
|
37386
|
+
"arrayDataType": "",
|
|
37387
|
+
"componentTypeLabel": "开关",
|
|
37388
|
+
"componentType": "Switch",
|
|
37389
|
+
"icon": "switch-one",
|
|
37390
|
+
"slots": [],
|
|
37391
|
+
"config": {
|
|
37392
|
+
"formConfig": {},
|
|
37393
|
+
"baseConfig": {
|
|
37394
|
+
"active-value": true,
|
|
37395
|
+
"inactive-value": false
|
|
37396
|
+
},
|
|
37397
|
+
"advancedConfig": {},
|
|
37398
|
+
"arrayConfig": {}
|
|
37399
|
+
}
|
|
37400
|
+
}
|
|
37401
|
+
],
|
|
37402
|
+
"dataType": "None",
|
|
37403
|
+
"arrayDataType": "",
|
|
37404
|
+
"componentTypeLabel": "栅格行",
|
|
37405
|
+
"componentType": "Row",
|
|
37406
|
+
"icon": "layout-two",
|
|
37407
|
+
"slots": [],
|
|
37408
|
+
"config": {
|
|
37409
|
+
"formConfig": {},
|
|
37410
|
+
"baseConfig": {
|
|
37411
|
+
"gutter": 10,
|
|
37412
|
+
"justify": "start",
|
|
37413
|
+
"align": "",
|
|
37414
|
+
"tag": "div"
|
|
37415
|
+
},
|
|
37416
|
+
"advancedConfig": {},
|
|
37417
|
+
"arrayConfig": {}
|
|
37418
|
+
}
|
|
37419
|
+
}
|
|
37420
|
+
],
|
|
37421
|
+
"dataType": "None",
|
|
37422
|
+
"arrayDataType": "",
|
|
37423
|
+
"componentTypeLabel": "Form表单",
|
|
37424
|
+
"componentType": "Form",
|
|
37425
|
+
"config": {
|
|
37426
|
+
"baseConfig": {
|
|
37427
|
+
"labelPosition": "top",
|
|
37428
|
+
"labelWidth": "",
|
|
37429
|
+
"labelSuffix": "",
|
|
37430
|
+
"requireAsteriskPosition": ""
|
|
37431
|
+
},
|
|
37432
|
+
"advancedConfig": {
|
|
37433
|
+
"style": "",
|
|
37434
|
+
"vif": "",
|
|
37435
|
+
"disabled": "",
|
|
37436
|
+
"eventChange": ""
|
|
37437
|
+
},
|
|
37438
|
+
"arrayConfig": {}
|
|
37439
|
+
}
|
|
37440
|
+
}
|
|
37441
|
+
];
|
|
36503
37442
|
const dynamicComponentTypes = [
|
|
36504
37443
|
{
|
|
36505
37444
|
componentName: "ElsInput",
|
|
@@ -36591,6 +37530,7 @@ const dynamicComponentTypes = [
|
|
|
36591
37530
|
operateType: "picker",
|
|
36592
37531
|
dataTypes: ["String", "Number", "Bool"],
|
|
36593
37532
|
defaultPropertys: {},
|
|
37533
|
+
slots: ["header", "default", "label"],
|
|
36594
37534
|
propertys: property_select,
|
|
36595
37535
|
group: "Form",
|
|
36596
37536
|
formItem: true,
|
|
@@ -36612,7 +37552,7 @@ const dynamicComponentTypes = [
|
|
|
36612
37552
|
{
|
|
36613
37553
|
componentName: "ElsUpload",
|
|
36614
37554
|
icon: "add-picture",
|
|
36615
|
-
label: "
|
|
37555
|
+
label: "上传图片",
|
|
36616
37556
|
value: "UploadPic",
|
|
36617
37557
|
type: "UploadPic",
|
|
36618
37558
|
dataTypes: ["String"],
|
|
@@ -36625,7 +37565,7 @@ const dynamicComponentTypes = [
|
|
|
36625
37565
|
{
|
|
36626
37566
|
componentName: "ElsUpload",
|
|
36627
37567
|
icon: "picture-album",
|
|
36628
|
-
label: "
|
|
37568
|
+
label: "上传图集",
|
|
36629
37569
|
value: "UploadMutiPic",
|
|
36630
37570
|
type: "UploadMutiPic",
|
|
36631
37571
|
dataTypes: ["String"],
|
|
@@ -36638,7 +37578,7 @@ const dynamicComponentTypes = [
|
|
|
36638
37578
|
{
|
|
36639
37579
|
componentName: "ElsUpload",
|
|
36640
37580
|
icon: "upload",
|
|
36641
|
-
label: "
|
|
37581
|
+
label: "上传文件",
|
|
36642
37582
|
value: "UploadFile",
|
|
36643
37583
|
type: "UploadFile",
|
|
36644
37584
|
dataTypes: ["String"],
|
|
@@ -36962,7 +37902,7 @@ const dynamicComponentTypes = [
|
|
|
36962
37902
|
type: "Html",
|
|
36963
37903
|
dataTypes: ["None"],
|
|
36964
37904
|
defaultPropertys: {},
|
|
36965
|
-
propertys:
|
|
37905
|
+
propertys: property_div,
|
|
36966
37906
|
group: "Container",
|
|
36967
37907
|
formItem: false,
|
|
36968
37908
|
isShow: true
|
|
@@ -37058,6 +37998,32 @@ const dynamicComponentTypes = [
|
|
|
37058
37998
|
formItem: false,
|
|
37059
37999
|
isShow: true
|
|
37060
38000
|
},
|
|
38001
|
+
{
|
|
38002
|
+
componentName: "ElText",
|
|
38003
|
+
icon: "text",
|
|
38004
|
+
label: "Text",
|
|
38005
|
+
value: "Text",
|
|
38006
|
+
type: "Text",
|
|
38007
|
+
dataTypes: ["None"],
|
|
38008
|
+
defaultPropertys: {},
|
|
38009
|
+
propertys: property_text,
|
|
38010
|
+
group: "Show",
|
|
38011
|
+
formItem: false,
|
|
38012
|
+
isShow: true
|
|
38013
|
+
},
|
|
38014
|
+
{
|
|
38015
|
+
componentName: "ElsImage",
|
|
38016
|
+
icon: "add-picture",
|
|
38017
|
+
label: "图片",
|
|
38018
|
+
value: "Image",
|
|
38019
|
+
type: "Image",
|
|
38020
|
+
dataTypes: ["None"],
|
|
38021
|
+
defaultPropertys: { width: "100", height: "100" },
|
|
38022
|
+
propertys: property_image,
|
|
38023
|
+
group: "Show",
|
|
38024
|
+
formItem: false,
|
|
38025
|
+
isShow: true
|
|
38026
|
+
},
|
|
37061
38027
|
{
|
|
37062
38028
|
componentName: "ElsTable",
|
|
37063
38029
|
icon: "table",
|
|
@@ -37655,7 +38621,7 @@ const containerProps = buildProps({
|
|
|
37655
38621
|
*/
|
|
37656
38622
|
selectMenuPostQuery: Boolean
|
|
37657
38623
|
});
|
|
37658
|
-
const _hoisted_1$12 = { class: "
|
|
38624
|
+
const _hoisted_1$12 = { class: "els-page-container" };
|
|
37659
38625
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
37660
38626
|
...{
|
|
37661
38627
|
name: "ElsContainer"
|
|
@@ -38601,7 +39567,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
38601
39567
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
38602
39568
|
setup(__props, { emit: __emit }) {
|
|
38603
39569
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
38604
|
-
return import("./innerItem-
|
|
39570
|
+
return import("./innerItem-Ecpkpr_1.js");
|
|
38605
39571
|
});
|
|
38606
39572
|
const { getValue: getValue2 } = useProps();
|
|
38607
39573
|
const tagID = getValue2("tagID");
|
|
@@ -39433,7 +40399,10 @@ const renderProps = buildProps({
|
|
|
39433
40399
|
default: {}
|
|
39434
40400
|
}
|
|
39435
40401
|
});
|
|
39436
|
-
function
|
|
40402
|
+
function useDesigner(props, nodeItem) {
|
|
40403
|
+
return useRender(props, nodeItem, void 0, void 0, true);
|
|
40404
|
+
}
|
|
40405
|
+
function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0, isDesigner = false) {
|
|
39437
40406
|
const { getValue: getValue2 } = useProps();
|
|
39438
40407
|
const componentData = getValue2("componentData", []);
|
|
39439
40408
|
const isMobile = getValue2("isMobile", false);
|
|
@@ -39452,7 +40421,9 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39452
40421
|
const getArrayNodeValue = getValue2("getArrayNodeValue", () => {
|
|
39453
40422
|
return [];
|
|
39454
40423
|
});
|
|
39455
|
-
const
|
|
40424
|
+
const getGlobalData = getValue2("getGlobalData", () => {
|
|
40425
|
+
return {};
|
|
40426
|
+
});
|
|
39456
40427
|
const refsData = getValue2("refsData", {});
|
|
39457
40428
|
const getFormPropIndex = getValue2("getFormPropIndex", () => {
|
|
39458
40429
|
return "";
|
|
@@ -39469,7 +40440,15 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39469
40440
|
return {};
|
|
39470
40441
|
}
|
|
39471
40442
|
const itemConfig = nodeItem.config;
|
|
39472
|
-
let baseProps = { "style": itemConfig.advancedConfig.style };
|
|
40443
|
+
let baseProps = { "style": itemConfig.advancedConfig.style ?? "" };
|
|
40444
|
+
if (nodeItem.componentName === "div") {
|
|
40445
|
+
Object.keys(itemConfig.baseConfig).forEach((key) => {
|
|
40446
|
+
if (itemConfig.baseConfig[key] !== "") {
|
|
40447
|
+
baseProps.style += `;${key}:${itemConfig.baseConfig[key]}`;
|
|
40448
|
+
}
|
|
40449
|
+
});
|
|
40450
|
+
return baseProps;
|
|
40451
|
+
}
|
|
39473
40452
|
if (itemConfig.advancedConfig.disabled) {
|
|
39474
40453
|
baseProps["disabled"] = renderDisabled();
|
|
39475
40454
|
}
|
|
@@ -39558,8 +40537,11 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39558
40537
|
if (!currContent) {
|
|
39559
40538
|
return "";
|
|
39560
40539
|
}
|
|
40540
|
+
if (isDesigner) {
|
|
40541
|
+
return "属性计算";
|
|
40542
|
+
}
|
|
39561
40543
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
39562
|
-
return currEvent(
|
|
40544
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39563
40545
|
} catch (err) {
|
|
39564
40546
|
console.error(err);
|
|
39565
40547
|
console.log("RenderContent异常");
|
|
@@ -39568,9 +40550,12 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39568
40550
|
}
|
|
39569
40551
|
}
|
|
39570
40552
|
function renderEvent(eventExpress) {
|
|
40553
|
+
if (isDesigner) {
|
|
40554
|
+
return "事件计算";
|
|
40555
|
+
}
|
|
39571
40556
|
try {
|
|
39572
40557
|
let currEvent = new Function("refs,globalData,rootNode,parentNode,currNode,currValue,dataType,slotRootHasDefault,slotValue,utils", eventExpress);
|
|
39573
|
-
return currEvent(refsData.value,
|
|
40558
|
+
return currEvent(refsData.value, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), modelValue, nodeItem == null ? void 0 : nodeItem.dataType, slotRootHasDefault, slotValue.value, utils);
|
|
39574
40559
|
} catch (err) {
|
|
39575
40560
|
console.log("RenderEvent异常");
|
|
39576
40561
|
console.log(eventExpress);
|
|
@@ -39611,7 +40596,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39611
40596
|
try {
|
|
39612
40597
|
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.vif) {
|
|
39613
40598
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.vif);
|
|
39614
|
-
const isShow = currEvent(
|
|
40599
|
+
const isShow = currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39615
40600
|
nodeItem.isShow = isShow;
|
|
39616
40601
|
return isShow;
|
|
39617
40602
|
}
|
|
@@ -39624,7 +40609,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39624
40609
|
try {
|
|
39625
40610
|
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.disabled) {
|
|
39626
40611
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.disabled);
|
|
39627
|
-
return currEvent(
|
|
40612
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39628
40613
|
}
|
|
39629
40614
|
} catch (err) {
|
|
39630
40615
|
console.error(err);
|
|
@@ -39636,7 +40621,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39636
40621
|
try {
|
|
39637
40622
|
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.eventChange) {
|
|
39638
40623
|
let currEvent = new Function("val,globalData,rootNode,parentNode,currNode,utils", nodeItem.config.advancedConfig.eventChange);
|
|
39639
|
-
return currEvent(val,
|
|
40624
|
+
return currEvent(val, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39640
40625
|
}
|
|
39641
40626
|
} catch (err) {
|
|
39642
40627
|
console.log("ValueCahnge异常");
|
|
@@ -39651,7 +40636,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39651
40636
|
getParentNode,
|
|
39652
40637
|
getNodeValue,
|
|
39653
40638
|
getArrayNodeValue,
|
|
39654
|
-
|
|
40639
|
+
getGlobalData,
|
|
39655
40640
|
getCurrNode: handleGetCurrNode,
|
|
39656
40641
|
renderProps: renderProps2,
|
|
39657
40642
|
renderContent,
|
|
@@ -39696,7 +40681,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39696
40681
|
const props = __props;
|
|
39697
40682
|
const { setValue } = useProps();
|
|
39698
40683
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
39699
|
-
const { isMobile, componentProps, getArrayNodeValue, renderProps: renderProps2,
|
|
40684
|
+
const { isMobile, componentProps, getArrayNodeValue, renderProps: renderProps2, getGlobalData, getRootNode, getParentNode, getCurrNode, getNodeValue } = useRender(props, nodeItem.value);
|
|
39700
40685
|
const list = ref();
|
|
39701
40686
|
const listProps2 = computed(() => {
|
|
39702
40687
|
const currProps = { ...nodeItem.value.config.arrayConfig };
|
|
@@ -39722,7 +40707,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39722
40707
|
}
|
|
39723
40708
|
const item = getNodeValue(arrayChildren);
|
|
39724
40709
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,item,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
39725
|
-
return currEvent(
|
|
40710
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), getCurrNode(), item, utils);
|
|
39726
40711
|
}
|
|
39727
40712
|
setValue({
|
|
39728
40713
|
getCurrNode: () => {
|
|
@@ -39820,7 +40805,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39820
40805
|
};
|
|
39821
40806
|
}
|
|
39822
40807
|
});
|
|
39823
|
-
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-
|
|
40808
|
+
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-86e33260"]]);
|
|
39824
40809
|
const _hoisted_1$Z = { class: "els-node els-dynamic-render" };
|
|
39825
40810
|
const _hoisted_2$R = { class: "els-dynamic-render-inner" };
|
|
39826
40811
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
@@ -39977,11 +40962,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
39977
40962
|
function removeComponentRef(id) {
|
|
39978
40963
|
delete refsData.value[id];
|
|
39979
40964
|
}
|
|
40965
|
+
function getGlobalData() {
|
|
40966
|
+
return props.globalData;
|
|
40967
|
+
}
|
|
39980
40968
|
setValue({
|
|
39981
40969
|
"tagID": "els-dynamic-render-" + utils.randomNumber(),
|
|
39982
40970
|
"componentData": currComponentTypes.value,
|
|
39983
40971
|
"dataTypeData": currDynamicDataType.value,
|
|
39984
|
-
|
|
40972
|
+
getGlobalData,
|
|
39985
40973
|
refsData,
|
|
39986
40974
|
setComponentRef,
|
|
39987
40975
|
removeComponentRef,
|
|
@@ -40040,7 +41028,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
40040
41028
|
};
|
|
40041
41029
|
}
|
|
40042
41030
|
});
|
|
40043
|
-
const ElsDynamicRenderAsync = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-
|
|
41031
|
+
const ElsDynamicRenderAsync = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-957795fa"]]);
|
|
40044
41032
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
40045
41033
|
...{
|
|
40046
41034
|
inheritAttrs: false
|
|
@@ -40088,26 +41076,28 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
40088
41076
|
});
|
|
40089
41077
|
useComponentRef(props.nodeItem, dyComponent);
|
|
40090
41078
|
return (_ctx, _cache) => {
|
|
41079
|
+
var _a;
|
|
40091
41080
|
return componentName.value ? (openBlock(), createBlock(resolveDynamicComponent(componentName.value), mergeProps({ key: 0 }, Object.assign({}, unref(componentProps), unref(attrs)), {
|
|
40092
41081
|
modelValue: currValue.value,
|
|
40093
41082
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currValue.value = $event),
|
|
40094
41083
|
ref_key: "dyComponent",
|
|
40095
41084
|
ref: dyComponent
|
|
40096
|
-
}), {
|
|
40097
|
-
|
|
40098
|
-
|
|
40099
|
-
|
|
41085
|
+
}), createSlots({ _: 2 }, [
|
|
41086
|
+
renderList((_a = _ctx.nodeItem.slots) == null ? void 0 : _a.filter((ele) => ele.children.length), (slot) => {
|
|
41087
|
+
return {
|
|
41088
|
+
name: slot.name,
|
|
41089
|
+
fn: withCtx((slotProps) => [
|
|
40100
41090
|
createVNode(ElsDynamicRenderAsync, {
|
|
40101
41091
|
config: slot.children,
|
|
40102
41092
|
modelValue: slotValue.value[slot.name],
|
|
40103
41093
|
"onUpdate:modelValue": ($event) => slotValue.value[slot.name] = $event,
|
|
41094
|
+
globalData: Object.assign({}, slotProps, { componentValue: currValue.value }),
|
|
40104
41095
|
isMobile: unref(isMobile)
|
|
40105
|
-
}, null, 8, ["config", "modelValue", "onUpdate:modelValue", "isMobile"])
|
|
40106
|
-
])
|
|
40107
|
-
}
|
|
40108
|
-
|
|
40109
|
-
|
|
40110
|
-
}, 16, ["modelValue"])) : createCommentVNode("", true);
|
|
41096
|
+
}, null, 8, ["config", "modelValue", "onUpdate:modelValue", "globalData", "isMobile"])
|
|
41097
|
+
])
|
|
41098
|
+
};
|
|
41099
|
+
})
|
|
41100
|
+
]), 1040, ["modelValue"])) : createCommentVNode("", true);
|
|
40111
41101
|
};
|
|
40112
41102
|
}
|
|
40113
41103
|
});
|
|
@@ -40126,9 +41116,6 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
40126
41116
|
const props = __props;
|
|
40127
41117
|
const { getValue: getValue2 } = useProps();
|
|
40128
41118
|
const dataTypes = getValue2("dataTypeData", []);
|
|
40129
|
-
getValue2("getCurrNode", () => {
|
|
40130
|
-
return {};
|
|
40131
|
-
});
|
|
40132
41119
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
40133
41120
|
const { isMobile, formProps: formProps2, componentProps, renderDisabled } = useRender(props, nodeItem.value);
|
|
40134
41121
|
function handleValueChange(val) {
|
|
@@ -40242,7 +41229,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
40242
41229
|
};
|
|
40243
41230
|
}
|
|
40244
41231
|
});
|
|
40245
|
-
const DynamicRenderInnerArray = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
41232
|
+
const DynamicRenderInnerArray = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-fc00363b"]]);
|
|
40246
41233
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
40247
41234
|
...{
|
|
40248
41235
|
inheritAttrs: false
|
|
@@ -40792,11 +41779,14 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
40792
41779
|
function removeComponentRef(id) {
|
|
40793
41780
|
delete refsData.value[id];
|
|
40794
41781
|
}
|
|
41782
|
+
function getGlobalData() {
|
|
41783
|
+
return props.globalData;
|
|
41784
|
+
}
|
|
40795
41785
|
setValue({
|
|
40796
41786
|
"tagID": "els-dynamic-render-" + utils.randomNumber(),
|
|
40797
41787
|
"componentData": currComponentTypes.value,
|
|
40798
41788
|
"dataTypeData": currDynamicDataType.value,
|
|
40799
|
-
|
|
41789
|
+
getGlobalData,
|
|
40800
41790
|
refsData,
|
|
40801
41791
|
setComponentRef,
|
|
40802
41792
|
removeComponentRef,
|
|
@@ -40849,7 +41839,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
40849
41839
|
};
|
|
40850
41840
|
}
|
|
40851
41841
|
});
|
|
40852
|
-
const DynamicRender = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-
|
|
41842
|
+
const DynamicRender = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-2944b7e0"]]);
|
|
40853
41843
|
const ElsRender = withInstall(DynamicRender);
|
|
40854
41844
|
const ElsRenderAsync = withInstall(ElsDynamicRenderAsync);
|
|
40855
41845
|
const _sfc_main$12 = {};
|
|
@@ -42318,7 +43308,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
42318
43308
|
const currValue = ref();
|
|
42319
43309
|
const setSelectItem = getValue2("setSelectItem", () => {
|
|
42320
43310
|
});
|
|
42321
|
-
const { componentProps } =
|
|
43311
|
+
const { componentProps } = useDesigner(props, props.nodeItem);
|
|
42322
43312
|
function handleSelectItem() {
|
|
42323
43313
|
setSelectItem(props.nodeItem);
|
|
42324
43314
|
}
|
|
@@ -42459,7 +43449,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
42459
43449
|
setup(__props) {
|
|
42460
43450
|
const props = __props;
|
|
42461
43451
|
const { getValue: getValue2, setValue } = useProps(props);
|
|
42462
|
-
const { componentProps, getNodeValue, getCurrNode } =
|
|
43452
|
+
const { componentProps, getNodeValue, getCurrNode } = useDesigner(props, props.nodeItem);
|
|
42463
43453
|
const recordComponent = getValue2("recordComponent", () => {
|
|
42464
43454
|
});
|
|
42465
43455
|
const getSelectItem = getValue2("getSelectItem", () => {
|
|
@@ -42472,7 +43462,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
42472
43462
|
});
|
|
42473
43463
|
const wrapStyle = computed(() => {
|
|
42474
43464
|
var _a;
|
|
42475
|
-
return "min-height:30px;width:100%;padding:10px 0px;" + ((_a =
|
|
43465
|
+
return "min-height:30px;width:100%;padding:10px 0px;" + ((_a = componentProps.value) == null ? void 0 : _a.style);
|
|
42476
43466
|
});
|
|
42477
43467
|
function handleAddComponent(e) {
|
|
42478
43468
|
recordComponent();
|
|
@@ -42604,7 +43594,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
42604
43594
|
};
|
|
42605
43595
|
}
|
|
42606
43596
|
});
|
|
42607
|
-
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
43597
|
+
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-c71304d5"]]);
|
|
42608
43598
|
const _hoisted_1$e = ["innerHTML"];
|
|
42609
43599
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
42610
43600
|
...{
|
|
@@ -42616,7 +43606,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
42616
43606
|
},
|
|
42617
43607
|
setup(__props) {
|
|
42618
43608
|
const props = __props;
|
|
42619
|
-
const { componentProps, renderContent } =
|
|
43609
|
+
const { componentProps, renderContent } = useDesigner(props, props.nodeItem);
|
|
42620
43610
|
const componentName = ref("");
|
|
42621
43611
|
const innerContent = computed(() => {
|
|
42622
43612
|
return props.nodeItem.config.baseConfig.innerContent;
|
|
@@ -42669,7 +43659,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
42669
43659
|
});
|
|
42670
43660
|
const getSelectItem = getValue2("getSelectItem", () => {
|
|
42671
43661
|
});
|
|
42672
|
-
const { isMobile, formProps: formProps2, renderDisabled } =
|
|
43662
|
+
const { isMobile, formProps: formProps2, renderDisabled } = useDesigner(props, props.nodeItem);
|
|
42673
43663
|
const slotVisible = ref();
|
|
42674
43664
|
function handleSelectItem() {
|
|
42675
43665
|
setSelectItem(props.nodeItem);
|
|
@@ -42789,7 +43779,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
42789
43779
|
};
|
|
42790
43780
|
}
|
|
42791
43781
|
});
|
|
42792
|
-
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
43782
|
+
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-3eb98d32"]]);
|
|
42793
43783
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
42794
43784
|
__name: "form",
|
|
42795
43785
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -42807,7 +43797,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
42807
43797
|
const recordComponent = getValue2("recordComponent", () => {
|
|
42808
43798
|
});
|
|
42809
43799
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
42810
|
-
const { isMobile, componentProps, getCurrNode, getNodeValue } =
|
|
43800
|
+
const { isMobile, componentProps, getCurrNode, getNodeValue } = useDesigner(props, nodeItem.value);
|
|
42811
43801
|
const setSelectItem = getValue2("setSelectItem", () => {
|
|
42812
43802
|
});
|
|
42813
43803
|
const getSelectItem = getValue2("getSelectItem", () => {
|
|
@@ -42929,7 +43919,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
42929
43919
|
};
|
|
42930
43920
|
}
|
|
42931
43921
|
});
|
|
42932
|
-
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
43922
|
+
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-02e5e3d1"]]);
|
|
42933
43923
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
42934
43924
|
__name: "body",
|
|
42935
43925
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -43151,7 +44141,7 @@ const useDesign = defineStore("dynamic-design", () => {
|
|
|
43151
44141
|
clear
|
|
43152
44142
|
};
|
|
43153
44143
|
});
|
|
43154
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
44144
|
+
const _withScopeId = (n) => (pushScopeId("data-v-3fff1023"), n = n(), popScopeId(), n);
|
|
43155
44145
|
const _hoisted_1$c = {
|
|
43156
44146
|
style: { "display": "flex", "background": "#f8f8f8" },
|
|
43157
44147
|
class: "els-dynamic-d-view"
|
|
@@ -44343,7 +45333,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
44343
45333
|
};
|
|
44344
45334
|
}
|
|
44345
45335
|
});
|
|
44346
|
-
const DesignerView = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
45336
|
+
const DesignerView = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-3fff1023"]]);
|
|
44347
45337
|
const ElsDesignerView = withInstall(DesignerView);
|
|
44348
45338
|
(function(Prism2) {
|
|
44349
45339
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -45150,31 +46140,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45150
46140
|
}
|
|
45151
46141
|
onMounted(() => {
|
|
45152
46142
|
if (props.language === "json") {
|
|
45153
|
-
const currModule = import("./mode-json-
|
|
46143
|
+
const currModule = import("./mode-json-CNw4Ad6L.js").then((n) => n.m);
|
|
45154
46144
|
currModule.then((res) => {
|
|
45155
46145
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
45156
46146
|
init();
|
|
45157
46147
|
});
|
|
45158
46148
|
} else if (props.language === "javascript") {
|
|
45159
|
-
const currModule = import("./mode-javascript-
|
|
46149
|
+
const currModule = import("./mode-javascript-BsWAOCK9.js").then((n) => n.m);
|
|
45160
46150
|
currModule.then((res) => {
|
|
45161
46151
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
45162
46152
|
init();
|
|
45163
46153
|
});
|
|
45164
46154
|
} else if (props.language === "csharp") {
|
|
45165
|
-
const currModule = import("./mode-csharp-
|
|
46155
|
+
const currModule = import("./mode-csharp-8Qr7KA7-.js").then((n) => n.m);
|
|
45166
46156
|
currModule.then((res) => {
|
|
45167
46157
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
45168
46158
|
init();
|
|
45169
46159
|
});
|
|
45170
46160
|
} else if (props.language === "mysql") {
|
|
45171
|
-
const currModule = import("./mode-mysql-
|
|
46161
|
+
const currModule = import("./mode-mysql-Brju4QkM.js").then((n) => n.m);
|
|
45172
46162
|
currModule.then((res) => {
|
|
45173
46163
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
45174
46164
|
init();
|
|
45175
46165
|
});
|
|
45176
46166
|
} else if (props.language === "css") {
|
|
45177
|
-
const currModule = import("./mode-css-
|
|
46167
|
+
const currModule = import("./mode-css-7HePkEyP.js").then((n) => n.m);
|
|
45178
46168
|
currModule.then((res) => {
|
|
45179
46169
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
45180
46170
|
init();
|