element-less 0.0.7 → 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 -0
- package/element-less.iife.js +1 -1
- package/element-less.js +136 -0
- package/element-less.umd.cjs +1 -0
- 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-CDGY8ILg.js → index-CLrh82uM.js} +1208 -217
- package/index-CfHEZDgc.cjs +1 -0
- package/{innerItem-BVWTDqnD.cjs → innerItem-BU5rzWOS.cjs} +1 -1
- package/{innerItem-Cpx4nkTI.js → innerItem-Ecpkpr_1.js} +1 -1
- package/{mode-csharp-BJ4X1pJt.js → mode-csharp-8Qr7KA7-.js} +1 -1
- package/{mode-csharp-BNc3VLot.cjs → mode-csharp-BHvsSZJJ.cjs} +1 -1
- package/{mode-css-BLUueeBd.js → mode-css-7HePkEyP.js} +1 -1
- package/{mode-css-HYq2PUC6.cjs → mode-css-BYCUXfz9.cjs} +1 -1
- package/{mode-javascript-C8LDLGan.js → mode-javascript-BsWAOCK9.js} +1 -1
- package/{mode-javascript-IBkBxOaF.cjs → mode-javascript-DEtLS6uH.cjs} +1 -1
- package/{mode-json-CsIiWn4L.js → mode-json-CNw4Ad6L.js} +1 -1
- package/{mode-json-NP0AlCc3.cjs → mode-json-ClFqizaF.cjs} +1 -1
- package/{mode-mysql-DeOFwO4p.js → mode-mysql-Brju4QkM.js} +1 -1
- package/{mode-mysql-D-cd9iEc.cjs → mode-mysql-yfRDxj8Z.cjs} +1 -1
- package/package.json +4 -22
- package/style.css +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/loadComponent.d.ts +8 -0
- package/index-BA-DnTlN.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,
|
|
@@ -11079,7 +11149,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11079
11149
|
emits: ["update:modelValue", "update:select", "update:select-label", "select"],
|
|
11080
11150
|
setup(__props, { emit: __emit }) {
|
|
11081
11151
|
const props = __props;
|
|
11082
|
-
const { formNodeProps } = useProps(props);
|
|
11152
|
+
const { formNodeProps, componentProps } = useProps(props);
|
|
11083
11153
|
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
11084
11154
|
const attrs = useAttrs();
|
|
11085
11155
|
const currProps = ref({
|
|
@@ -11568,7 +11638,8 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11568
11638
|
default: withCtx(() => [
|
|
11569
11639
|
withDirectives((openBlock(), createBlock(_component_el_tree_select, mergeProps({
|
|
11570
11640
|
ref_key: "dataTree",
|
|
11571
|
-
ref: dataTree
|
|
11641
|
+
ref: dataTree
|
|
11642
|
+
}, unref(componentProps), {
|
|
11572
11643
|
load: handleLoadNode,
|
|
11573
11644
|
modelValue: defaultSelectValue.value,
|
|
11574
11645
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => defaultSelectValue.value = $event),
|
|
@@ -11585,7 +11656,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11585
11656
|
"expand-on-click-node": !unref(currMultiple) ? true : _ctx.expandOnClickNode,
|
|
11586
11657
|
"filter-node-method": filterNode,
|
|
11587
11658
|
"show-checkbox": unref(currShowCheckbox)
|
|
11588
|
-
}
|
|
11659
|
+
}), {
|
|
11589
11660
|
default: withCtx(({ node, data }) => [
|
|
11590
11661
|
renderSlot(_ctx.$slots, "default", {
|
|
11591
11662
|
node,
|
|
@@ -11619,7 +11690,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
11619
11690
|
};
|
|
11620
11691
|
}
|
|
11621
11692
|
});
|
|
11622
|
-
const TreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-
|
|
11693
|
+
const TreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-b31deac0"]]);
|
|
11623
11694
|
const ElsTreeSelect = withInstall(TreeSelect);
|
|
11624
11695
|
const menuProps = buildProps({
|
|
11625
11696
|
...menuProps$1,
|
|
@@ -12322,7 +12393,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
12322
12393
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(thumbnailPicUrls.value, (item, index) => {
|
|
12323
12394
|
return openBlock(), createBlock(_component_el_image, mergeProps({ ref_for: true }, props, {
|
|
12324
12395
|
src: item,
|
|
12325
|
-
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" }],
|
|
12326
12397
|
onClick: ($event) => preview(item, index)
|
|
12327
12398
|
}), {
|
|
12328
12399
|
placeholder: withCtx(() => [
|
|
@@ -13646,10 +13717,10 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
13646
13717
|
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
13647
13718
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
13648
13719
|
const _component_van_dropdown_item = resolveComponent("van-dropdown-item");
|
|
13649
|
-
return !unref(isMobile) ? (openBlock(), createBlock(_component_el_dropdown, {
|
|
13720
|
+
return !unref(isMobile) ? (openBlock(), createBlock(_component_el_dropdown, mergeProps({
|
|
13650
13721
|
key: 0,
|
|
13651
13722
|
onCommand: handleCommand
|
|
13652
|
-
}, {
|
|
13723
|
+
}, props), {
|
|
13653
13724
|
dropdown: withCtx(() => [
|
|
13654
13725
|
createVNode(_component_el_dropdown_menu, null, {
|
|
13655
13726
|
default: withCtx(() => [
|
|
@@ -13686,7 +13757,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
13686
13757
|
])
|
|
13687
13758
|
]),
|
|
13688
13759
|
_: 3
|
|
13689
|
-
})) : (openBlock(), createBlock(_component_van_dropdown_item, {
|
|
13760
|
+
}, 16)) : (openBlock(), createBlock(_component_van_dropdown_item, {
|
|
13690
13761
|
key: 1,
|
|
13691
13762
|
lazyRender: _ctx.lazyRender,
|
|
13692
13763
|
modelValue: modelValue.value,
|
|
@@ -16088,28 +16159,27 @@ const menuContextProps = buildProps({
|
|
|
16088
16159
|
type: Number,
|
|
16089
16160
|
default: 0
|
|
16090
16161
|
},
|
|
16091
|
-
/**
|
|
16092
|
-
* @description 是否显示
|
|
16093
|
-
*/
|
|
16094
|
-
visible: {
|
|
16095
|
-
type: Boolean,
|
|
16096
|
-
default: false
|
|
16097
|
-
},
|
|
16098
16162
|
/**
|
|
16099
16163
|
* @description 点击事件
|
|
16100
16164
|
*/
|
|
16101
16165
|
onClick: Function
|
|
16102
16166
|
});
|
|
16103
16167
|
const _hoisted_1$19 = ["onClick"];
|
|
16104
|
-
const _hoisted_2$_ = { class: "
|
|
16168
|
+
const _hoisted_2$_ = { class: "els-context-info" };
|
|
16105
16169
|
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
16106
|
-
...{ name: "ElsMenuContext" },
|
|
16170
|
+
...{ name: "ElsMenuContext", inheritAttrs: false },
|
|
16107
16171
|
__name: "menuContext",
|
|
16108
|
-
props: menuContextProps,
|
|
16172
|
+
props: /* @__PURE__ */ mergeModels(menuContextProps, {
|
|
16173
|
+
"modelValue": { type: Boolean },
|
|
16174
|
+
"modelModifiers": {}
|
|
16175
|
+
}),
|
|
16176
|
+
emits: ["update:modelValue"],
|
|
16109
16177
|
setup(__props) {
|
|
16110
16178
|
var _a;
|
|
16111
16179
|
const container = useContainer();
|
|
16112
16180
|
const { proxy } = getCurrentInstance();
|
|
16181
|
+
const modelValue = useModel$1(__props, "modelValue");
|
|
16182
|
+
const contextMenu = ref();
|
|
16113
16183
|
const props = __props;
|
|
16114
16184
|
const menuData = reactive([]);
|
|
16115
16185
|
let idFieldname = "";
|
|
@@ -16135,12 +16205,6 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16135
16205
|
menuData.push(...val);
|
|
16136
16206
|
}
|
|
16137
16207
|
}, { immediate: true, deep: true });
|
|
16138
|
-
const triggerHideFn = clickDocumentHandler.bind(this);
|
|
16139
|
-
function clickDocumentHandler(e) {
|
|
16140
|
-
if (e.srcElement.className.indexOf && e.srcElement.className.indexOf("air-table__context") === -1 && e.srcElement.tagName !== "I") {
|
|
16141
|
-
proxy.$parent.contextMenuVisible = false;
|
|
16142
|
-
}
|
|
16143
|
-
}
|
|
16144
16208
|
function menuCommand(menu) {
|
|
16145
16209
|
if (container) {
|
|
16146
16210
|
container.$menuCommand(menu);
|
|
@@ -16148,21 +16212,21 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16148
16212
|
if (props.onClick) {
|
|
16149
16213
|
props.onClick(menu);
|
|
16150
16214
|
}
|
|
16215
|
+
modelValue.value = false;
|
|
16151
16216
|
}
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
});
|
|
16155
|
-
onUnmounted(() => {
|
|
16156
|
-
document.removeEventListener("mousedown", triggerHideFn);
|
|
16217
|
+
onClickOutside(contextMenu, (event) => {
|
|
16218
|
+
modelValue.value = false;
|
|
16157
16219
|
});
|
|
16158
16220
|
return (_ctx, _cache) => {
|
|
16159
16221
|
return withDirectives((openBlock(), createElementBlock("ul", {
|
|
16160
|
-
|
|
16222
|
+
ref_key: "contextMenu",
|
|
16223
|
+
ref: contextMenu,
|
|
16224
|
+
class: normalizeClass(["els-context-menu", { "outscreen-menu": isOutScreen.value }]),
|
|
16161
16225
|
style: normalizeStyle([{ left: _ctx.positionLeft + "px" }, { top: isOutBottom.value ? "auto" : _ctx.positionTop + "px" }, { bottom: !isOutBottom.value ? "auto" : positionBottom.value + "px" }])
|
|
16162
16226
|
}, [
|
|
16163
16227
|
(openBlock(true), createElementBlock(Fragment, null, renderList(menuData, (item) => {
|
|
16164
16228
|
return openBlock(), createElementBlock("li", {
|
|
16165
|
-
class: "
|
|
16229
|
+
class: "els-context-list",
|
|
16166
16230
|
key: item[unref(idFieldname)],
|
|
16167
16231
|
onClick: ($event) => menuCommand(item)
|
|
16168
16232
|
}, [
|
|
@@ -16173,12 +16237,12 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
16173
16237
|
], 8, _hoisted_1$19);
|
|
16174
16238
|
}), 128))
|
|
16175
16239
|
], 6)), [
|
|
16176
|
-
[vShow,
|
|
16240
|
+
[vShow, modelValue.value]
|
|
16177
16241
|
]);
|
|
16178
16242
|
};
|
|
16179
16243
|
}
|
|
16180
16244
|
});
|
|
16181
|
-
const MenuContext = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-
|
|
16245
|
+
const MenuContext = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-e0c03318"]]);
|
|
16182
16246
|
const ElsMenuContext = withInstall(MenuContext);
|
|
16183
16247
|
const menuDropdownProps = buildProps({
|
|
16184
16248
|
/**
|
|
@@ -17732,12 +17796,15 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17732
17796
|
}
|
|
17733
17797
|
}
|
|
17734
17798
|
}
|
|
17735
|
-
currItemClassName.value
|
|
17736
|
-
|
|
17737
|
-
if (
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
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
|
+
}
|
|
17741
17808
|
}
|
|
17742
17809
|
}
|
|
17743
17810
|
});
|
|
@@ -17957,7 +18024,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17957
18024
|
};
|
|
17958
18025
|
}
|
|
17959
18026
|
});
|
|
17960
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
18027
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-6d40759c"]]);
|
|
17961
18028
|
const ElsList = withInstall(List);
|
|
17962
18029
|
const _hoisted_1$13 = { class: "custom-block-title" };
|
|
17963
18030
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
@@ -20972,54 +21039,111 @@ const property_select = [
|
|
|
20972
21039
|
"keyCode": "g2IUO-5Ioa",
|
|
20973
21040
|
"children": [
|
|
20974
21041
|
{
|
|
20975
|
-
"keyID": "
|
|
20976
|
-
"keyName": "
|
|
20977
|
-
"keyCode": "
|
|
20978
|
-
"children": [
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
"
|
|
20982
|
-
"
|
|
20983
|
-
"
|
|
20984
|
-
"
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
"validType": "",
|
|
20993
|
-
"validExpression": "",
|
|
20994
|
-
"validMessage": "",
|
|
20995
|
-
"validMethod": ""
|
|
20996
|
-
},
|
|
20997
|
-
"baseConfig": {
|
|
20998
|
-
"type": "button",
|
|
20999
|
-
"dataType": "String",
|
|
21000
|
-
"data": [
|
|
21001
|
-
{
|
|
21002
|
-
"label": "数据列表",
|
|
21003
|
-
"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": ""
|
|
21004
21059
|
},
|
|
21005
|
-
{
|
|
21006
|
-
"
|
|
21007
|
-
"
|
|
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": ""
|
|
21008
21090
|
}
|
|
21009
|
-
|
|
21010
|
-
"
|
|
21011
|
-
"
|
|
21091
|
+
},
|
|
21092
|
+
"componentType": "Radio",
|
|
21093
|
+
"dataType": "Number",
|
|
21094
|
+
"defaultValue": 1
|
|
21012
21095
|
},
|
|
21013
|
-
|
|
21014
|
-
"
|
|
21015
|
-
"
|
|
21016
|
-
"
|
|
21017
|
-
"
|
|
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"
|
|
21018
21128
|
}
|
|
21019
|
-
|
|
21020
|
-
"
|
|
21021
|
-
"
|
|
21022
|
-
"
|
|
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
|
+
}
|
|
21023
21147
|
},
|
|
21024
21148
|
{
|
|
21025
21149
|
"keyID": "67cecb440365abb61e4aace2d5686cb9",
|
|
@@ -21689,37 +21813,32 @@ const property_select = [
|
|
|
21689
21813
|
"dataType": "String"
|
|
21690
21814
|
},
|
|
21691
21815
|
{
|
|
21692
|
-
"keyID": "
|
|
21693
|
-
"keyName": "
|
|
21694
|
-
"keyCode": "
|
|
21816
|
+
"keyID": "id_624",
|
|
21817
|
+
"keyName": "高度",
|
|
21818
|
+
"keyCode": "height",
|
|
21695
21819
|
"children": [],
|
|
21820
|
+
"dataType": "String",
|
|
21821
|
+
"arrayDataType": "",
|
|
21822
|
+
"componentTypeLabel": "输入框",
|
|
21823
|
+
"componentType": "Input",
|
|
21824
|
+
"icon": "text",
|
|
21825
|
+
"operateType": "input",
|
|
21826
|
+
"slots": [],
|
|
21696
21827
|
"config": {
|
|
21697
|
-
"formConfig": {
|
|
21698
|
-
"labelWidth": "",
|
|
21699
|
-
"required": false,
|
|
21700
|
-
"requiredMessage": "",
|
|
21701
|
-
"validType": "",
|
|
21702
|
-
"validExpression": "",
|
|
21703
|
-
"validMessage": "",
|
|
21704
|
-
"validMethod": ""
|
|
21705
|
-
},
|
|
21828
|
+
"formConfig": {},
|
|
21706
21829
|
"baseConfig": {
|
|
21707
|
-
"
|
|
21708
|
-
"
|
|
21709
|
-
"
|
|
21710
|
-
"
|
|
21711
|
-
"
|
|
21712
|
-
|
|
21713
|
-
|
|
21714
|
-
"
|
|
21715
|
-
"vif": "",
|
|
21716
|
-
"disabled": "",
|
|
21717
|
-
"eventChange": ""
|
|
21830
|
+
"width": "",
|
|
21831
|
+
"placeholder": "",
|
|
21832
|
+
"prefixIcon": "",
|
|
21833
|
+
"suffixIcon": "",
|
|
21834
|
+
"prefixTag": "",
|
|
21835
|
+
"suffixTag": "",
|
|
21836
|
+
"maxlength": "",
|
|
21837
|
+
"clearable": true
|
|
21718
21838
|
},
|
|
21839
|
+
"advancedConfig": {},
|
|
21719
21840
|
"arrayConfig": {}
|
|
21720
|
-
}
|
|
21721
|
-
"componentType": "Input",
|
|
21722
|
-
"dataType": "String"
|
|
21841
|
+
}
|
|
21723
21842
|
}
|
|
21724
21843
|
],
|
|
21725
21844
|
"config": {
|
|
@@ -21835,37 +21954,148 @@ const property_select = [
|
|
|
21835
21954
|
"dataType": "None"
|
|
21836
21955
|
},
|
|
21837
21956
|
{
|
|
21838
|
-
"keyID": "
|
|
21839
|
-
"keyName": "
|
|
21840
|
-
"keyCode": "
|
|
21841
|
-
"children": [
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
"
|
|
21845
|
-
"
|
|
21846
|
-
"
|
|
21847
|
-
"
|
|
21848
|
-
"
|
|
21849
|
-
"
|
|
21850
|
-
"
|
|
21851
|
-
"
|
|
21852
|
-
"
|
|
21853
|
-
"
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
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
|
+
}
|
|
21858
21991
|
},
|
|
21859
|
-
|
|
21860
|
-
"
|
|
21861
|
-
"
|
|
21862
|
-
"
|
|
21863
|
-
"
|
|
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
|
+
}
|
|
21864
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": {},
|
|
21865
22097
|
"arrayConfig": {}
|
|
21866
|
-
}
|
|
21867
|
-
"componentType": "Switch",
|
|
21868
|
-
"dataType": "Bool"
|
|
22098
|
+
}
|
|
21869
22099
|
}
|
|
21870
22100
|
],
|
|
21871
22101
|
"dataType": "None",
|
|
@@ -35646,14 +35876,14 @@ const property_tag = [
|
|
|
35646
35876
|
}
|
|
35647
35877
|
},
|
|
35648
35878
|
{
|
|
35649
|
-
"keyID": "
|
|
35879
|
+
"keyID": "id_194",
|
|
35650
35880
|
"keyName": "栅格行",
|
|
35651
35881
|
"keyCode": "",
|
|
35652
35882
|
"children": [
|
|
35653
35883
|
{
|
|
35654
|
-
"keyID": "
|
|
35655
|
-
"keyName": "
|
|
35656
|
-
"keyCode": "
|
|
35884
|
+
"keyID": "id_2766",
|
|
35885
|
+
"keyName": "颜色",
|
|
35886
|
+
"keyCode": "color",
|
|
35657
35887
|
"children": [],
|
|
35658
35888
|
"dataType": "String",
|
|
35659
35889
|
"arrayDataType": "",
|
|
@@ -35669,6 +35899,108 @@ const property_tag = [
|
|
|
35669
35899
|
"arrayConfig": {}
|
|
35670
35900
|
}
|
|
35671
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
|
+
},
|
|
35672
36004
|
{
|
|
35673
36005
|
"keyID": "id_Y86Ihl_4O",
|
|
35674
36006
|
"keyName": "是否可关闭",
|
|
@@ -36499,6 +36831,614 @@ const property_formQuery = [
|
|
|
36499
36831
|
}
|
|
36500
36832
|
}
|
|
36501
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
|
+
];
|
|
36502
37442
|
const dynamicComponentTypes = [
|
|
36503
37443
|
{
|
|
36504
37444
|
componentName: "ElsInput",
|
|
@@ -36590,6 +37530,7 @@ const dynamicComponentTypes = [
|
|
|
36590
37530
|
operateType: "picker",
|
|
36591
37531
|
dataTypes: ["String", "Number", "Bool"],
|
|
36592
37532
|
defaultPropertys: {},
|
|
37533
|
+
slots: ["header", "default", "label"],
|
|
36593
37534
|
propertys: property_select,
|
|
36594
37535
|
group: "Form",
|
|
36595
37536
|
formItem: true,
|
|
@@ -36611,7 +37552,7 @@ const dynamicComponentTypes = [
|
|
|
36611
37552
|
{
|
|
36612
37553
|
componentName: "ElsUpload",
|
|
36613
37554
|
icon: "add-picture",
|
|
36614
|
-
label: "
|
|
37555
|
+
label: "上传图片",
|
|
36615
37556
|
value: "UploadPic",
|
|
36616
37557
|
type: "UploadPic",
|
|
36617
37558
|
dataTypes: ["String"],
|
|
@@ -36624,7 +37565,7 @@ const dynamicComponentTypes = [
|
|
|
36624
37565
|
{
|
|
36625
37566
|
componentName: "ElsUpload",
|
|
36626
37567
|
icon: "picture-album",
|
|
36627
|
-
label: "
|
|
37568
|
+
label: "上传图集",
|
|
36628
37569
|
value: "UploadMutiPic",
|
|
36629
37570
|
type: "UploadMutiPic",
|
|
36630
37571
|
dataTypes: ["String"],
|
|
@@ -36637,7 +37578,7 @@ const dynamicComponentTypes = [
|
|
|
36637
37578
|
{
|
|
36638
37579
|
componentName: "ElsUpload",
|
|
36639
37580
|
icon: "upload",
|
|
36640
|
-
label: "
|
|
37581
|
+
label: "上传文件",
|
|
36641
37582
|
value: "UploadFile",
|
|
36642
37583
|
type: "UploadFile",
|
|
36643
37584
|
dataTypes: ["String"],
|
|
@@ -36961,7 +37902,7 @@ const dynamicComponentTypes = [
|
|
|
36961
37902
|
type: "Html",
|
|
36962
37903
|
dataTypes: ["None"],
|
|
36963
37904
|
defaultPropertys: {},
|
|
36964
|
-
propertys:
|
|
37905
|
+
propertys: property_div,
|
|
36965
37906
|
group: "Container",
|
|
36966
37907
|
formItem: false,
|
|
36967
37908
|
isShow: true
|
|
@@ -37057,6 +37998,32 @@ const dynamicComponentTypes = [
|
|
|
37057
37998
|
formItem: false,
|
|
37058
37999
|
isShow: true
|
|
37059
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
|
+
},
|
|
37060
38027
|
{
|
|
37061
38028
|
componentName: "ElsTable",
|
|
37062
38029
|
icon: "table",
|
|
@@ -37654,7 +38621,7 @@ const containerProps = buildProps({
|
|
|
37654
38621
|
*/
|
|
37655
38622
|
selectMenuPostQuery: Boolean
|
|
37656
38623
|
});
|
|
37657
|
-
const _hoisted_1$12 = { class: "
|
|
38624
|
+
const _hoisted_1$12 = { class: "els-page-container" };
|
|
37658
38625
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
37659
38626
|
...{
|
|
37660
38627
|
name: "ElsContainer"
|
|
@@ -38600,7 +39567,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
38600
39567
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
38601
39568
|
setup(__props, { emit: __emit }) {
|
|
38602
39569
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
38603
|
-
return import("./innerItem-
|
|
39570
|
+
return import("./innerItem-Ecpkpr_1.js");
|
|
38604
39571
|
});
|
|
38605
39572
|
const { getValue: getValue2 } = useProps();
|
|
38606
39573
|
const tagID = getValue2("tagID");
|
|
@@ -39432,7 +40399,10 @@ const renderProps = buildProps({
|
|
|
39432
40399
|
default: {}
|
|
39433
40400
|
}
|
|
39434
40401
|
});
|
|
39435
|
-
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) {
|
|
39436
40406
|
const { getValue: getValue2 } = useProps();
|
|
39437
40407
|
const componentData = getValue2("componentData", []);
|
|
39438
40408
|
const isMobile = getValue2("isMobile", false);
|
|
@@ -39451,7 +40421,9 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39451
40421
|
const getArrayNodeValue = getValue2("getArrayNodeValue", () => {
|
|
39452
40422
|
return [];
|
|
39453
40423
|
});
|
|
39454
|
-
const
|
|
40424
|
+
const getGlobalData = getValue2("getGlobalData", () => {
|
|
40425
|
+
return {};
|
|
40426
|
+
});
|
|
39455
40427
|
const refsData = getValue2("refsData", {});
|
|
39456
40428
|
const getFormPropIndex = getValue2("getFormPropIndex", () => {
|
|
39457
40429
|
return "";
|
|
@@ -39468,7 +40440,15 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39468
40440
|
return {};
|
|
39469
40441
|
}
|
|
39470
40442
|
const itemConfig = nodeItem.config;
|
|
39471
|
-
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
|
+
}
|
|
39472
40452
|
if (itemConfig.advancedConfig.disabled) {
|
|
39473
40453
|
baseProps["disabled"] = renderDisabled();
|
|
39474
40454
|
}
|
|
@@ -39557,8 +40537,11 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39557
40537
|
if (!currContent) {
|
|
39558
40538
|
return "";
|
|
39559
40539
|
}
|
|
40540
|
+
if (isDesigner) {
|
|
40541
|
+
return "属性计算";
|
|
40542
|
+
}
|
|
39560
40543
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
39561
|
-
return currEvent(
|
|
40544
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39562
40545
|
} catch (err) {
|
|
39563
40546
|
console.error(err);
|
|
39564
40547
|
console.log("RenderContent异常");
|
|
@@ -39567,9 +40550,12 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39567
40550
|
}
|
|
39568
40551
|
}
|
|
39569
40552
|
function renderEvent(eventExpress) {
|
|
40553
|
+
if (isDesigner) {
|
|
40554
|
+
return "事件计算";
|
|
40555
|
+
}
|
|
39570
40556
|
try {
|
|
39571
40557
|
let currEvent = new Function("refs,globalData,rootNode,parentNode,currNode,currValue,dataType,slotRootHasDefault,slotValue,utils", eventExpress);
|
|
39572
|
-
return currEvent(refsData.value,
|
|
40558
|
+
return currEvent(refsData.value, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), modelValue, nodeItem == null ? void 0 : nodeItem.dataType, slotRootHasDefault, slotValue.value, utils);
|
|
39573
40559
|
} catch (err) {
|
|
39574
40560
|
console.log("RenderEvent异常");
|
|
39575
40561
|
console.log(eventExpress);
|
|
@@ -39610,7 +40596,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39610
40596
|
try {
|
|
39611
40597
|
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.vif) {
|
|
39612
40598
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.vif);
|
|
39613
|
-
const isShow = currEvent(
|
|
40599
|
+
const isShow = currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39614
40600
|
nodeItem.isShow = isShow;
|
|
39615
40601
|
return isShow;
|
|
39616
40602
|
}
|
|
@@ -39623,7 +40609,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39623
40609
|
try {
|
|
39624
40610
|
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.disabled) {
|
|
39625
40611
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,utils", "return " + nodeItem.config.advancedConfig.disabled);
|
|
39626
|
-
return currEvent(
|
|
40612
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39627
40613
|
}
|
|
39628
40614
|
} catch (err) {
|
|
39629
40615
|
console.error(err);
|
|
@@ -39635,7 +40621,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39635
40621
|
try {
|
|
39636
40622
|
if (nodeItem.config.advancedConfig && nodeItem.config.advancedConfig.eventChange) {
|
|
39637
40623
|
let currEvent = new Function("val,globalData,rootNode,parentNode,currNode,utils", nodeItem.config.advancedConfig.eventChange);
|
|
39638
|
-
return currEvent(val,
|
|
40624
|
+
return currEvent(val, getGlobalData(), getRootNode(), getParentNode(), handleGetCurrNode(), utils);
|
|
39639
40625
|
}
|
|
39640
40626
|
} catch (err) {
|
|
39641
40627
|
console.log("ValueCahnge异常");
|
|
@@ -39650,7 +40636,7 @@ function useRender(props, nodeItem, modelValue = void 0, slotValue = void 0) {
|
|
|
39650
40636
|
getParentNode,
|
|
39651
40637
|
getNodeValue,
|
|
39652
40638
|
getArrayNodeValue,
|
|
39653
|
-
|
|
40639
|
+
getGlobalData,
|
|
39654
40640
|
getCurrNode: handleGetCurrNode,
|
|
39655
40641
|
renderProps: renderProps2,
|
|
39656
40642
|
renderContent,
|
|
@@ -39695,7 +40681,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39695
40681
|
const props = __props;
|
|
39696
40682
|
const { setValue } = useProps();
|
|
39697
40683
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
39698
|
-
const { isMobile, componentProps, getArrayNodeValue, renderProps: renderProps2,
|
|
40684
|
+
const { isMobile, componentProps, getArrayNodeValue, renderProps: renderProps2, getGlobalData, getRootNode, getParentNode, getCurrNode, getNodeValue } = useRender(props, nodeItem.value);
|
|
39699
40685
|
const list = ref();
|
|
39700
40686
|
const listProps2 = computed(() => {
|
|
39701
40687
|
const currProps = { ...nodeItem.value.config.arrayConfig };
|
|
@@ -39721,7 +40707,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39721
40707
|
}
|
|
39722
40708
|
const item = getNodeValue(arrayChildren);
|
|
39723
40709
|
let currEvent = new Function("globalData,rootNode,parentNode,currNode,item,utils", currContent.indexOf("return") > -1 ? currContent : `return ${currContent}`);
|
|
39724
|
-
return currEvent(
|
|
40710
|
+
return currEvent(getGlobalData(), getRootNode(), getParentNode(), getCurrNode(), item, utils);
|
|
39725
40711
|
}
|
|
39726
40712
|
setValue({
|
|
39727
40713
|
getCurrNode: () => {
|
|
@@ -39819,7 +40805,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39819
40805
|
};
|
|
39820
40806
|
}
|
|
39821
40807
|
});
|
|
39822
|
-
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-
|
|
40808
|
+
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-86e33260"]]);
|
|
39823
40809
|
const _hoisted_1$Z = { class: "els-node els-dynamic-render" };
|
|
39824
40810
|
const _hoisted_2$R = { class: "els-dynamic-render-inner" };
|
|
39825
40811
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
@@ -39976,11 +40962,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
39976
40962
|
function removeComponentRef(id) {
|
|
39977
40963
|
delete refsData.value[id];
|
|
39978
40964
|
}
|
|
40965
|
+
function getGlobalData() {
|
|
40966
|
+
return props.globalData;
|
|
40967
|
+
}
|
|
39979
40968
|
setValue({
|
|
39980
40969
|
"tagID": "els-dynamic-render-" + utils.randomNumber(),
|
|
39981
40970
|
"componentData": currComponentTypes.value,
|
|
39982
40971
|
"dataTypeData": currDynamicDataType.value,
|
|
39983
|
-
|
|
40972
|
+
getGlobalData,
|
|
39984
40973
|
refsData,
|
|
39985
40974
|
setComponentRef,
|
|
39986
40975
|
removeComponentRef,
|
|
@@ -40039,7 +41028,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
40039
41028
|
};
|
|
40040
41029
|
}
|
|
40041
41030
|
});
|
|
40042
|
-
const ElsDynamicRenderAsync = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-
|
|
41031
|
+
const ElsDynamicRenderAsync = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-957795fa"]]);
|
|
40043
41032
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
40044
41033
|
...{
|
|
40045
41034
|
inheritAttrs: false
|
|
@@ -40087,26 +41076,28 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
40087
41076
|
});
|
|
40088
41077
|
useComponentRef(props.nodeItem, dyComponent);
|
|
40089
41078
|
return (_ctx, _cache) => {
|
|
41079
|
+
var _a;
|
|
40090
41080
|
return componentName.value ? (openBlock(), createBlock(resolveDynamicComponent(componentName.value), mergeProps({ key: 0 }, Object.assign({}, unref(componentProps), unref(attrs)), {
|
|
40091
41081
|
modelValue: currValue.value,
|
|
40092
41082
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currValue.value = $event),
|
|
40093
41083
|
ref_key: "dyComponent",
|
|
40094
41084
|
ref: dyComponent
|
|
40095
|
-
}), {
|
|
40096
|
-
|
|
40097
|
-
|
|
40098
|
-
|
|
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) => [
|
|
40099
41090
|
createVNode(ElsDynamicRenderAsync, {
|
|
40100
41091
|
config: slot.children,
|
|
40101
41092
|
modelValue: slotValue.value[slot.name],
|
|
40102
41093
|
"onUpdate:modelValue": ($event) => slotValue.value[slot.name] = $event,
|
|
41094
|
+
globalData: Object.assign({}, slotProps, { componentValue: currValue.value }),
|
|
40103
41095
|
isMobile: unref(isMobile)
|
|
40104
|
-
}, null, 8, ["config", "modelValue", "onUpdate:modelValue", "isMobile"])
|
|
40105
|
-
])
|
|
40106
|
-
}
|
|
40107
|
-
|
|
40108
|
-
|
|
40109
|
-
}, 16, ["modelValue"])) : createCommentVNode("", true);
|
|
41096
|
+
}, null, 8, ["config", "modelValue", "onUpdate:modelValue", "globalData", "isMobile"])
|
|
41097
|
+
])
|
|
41098
|
+
};
|
|
41099
|
+
})
|
|
41100
|
+
]), 1040, ["modelValue"])) : createCommentVNode("", true);
|
|
40110
41101
|
};
|
|
40111
41102
|
}
|
|
40112
41103
|
});
|
|
@@ -40125,9 +41116,6 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
40125
41116
|
const props = __props;
|
|
40126
41117
|
const { getValue: getValue2 } = useProps();
|
|
40127
41118
|
const dataTypes = getValue2("dataTypeData", []);
|
|
40128
|
-
getValue2("getCurrNode", () => {
|
|
40129
|
-
return {};
|
|
40130
|
-
});
|
|
40131
41119
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
40132
41120
|
const { isMobile, formProps: formProps2, componentProps, renderDisabled } = useRender(props, nodeItem.value);
|
|
40133
41121
|
function handleValueChange(val) {
|
|
@@ -40241,7 +41229,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
40241
41229
|
};
|
|
40242
41230
|
}
|
|
40243
41231
|
});
|
|
40244
|
-
const DynamicRenderInnerArray = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
41232
|
+
const DynamicRenderInnerArray = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-fc00363b"]]);
|
|
40245
41233
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
40246
41234
|
...{
|
|
40247
41235
|
inheritAttrs: false
|
|
@@ -40791,11 +41779,14 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
40791
41779
|
function removeComponentRef(id) {
|
|
40792
41780
|
delete refsData.value[id];
|
|
40793
41781
|
}
|
|
41782
|
+
function getGlobalData() {
|
|
41783
|
+
return props.globalData;
|
|
41784
|
+
}
|
|
40794
41785
|
setValue({
|
|
40795
41786
|
"tagID": "els-dynamic-render-" + utils.randomNumber(),
|
|
40796
41787
|
"componentData": currComponentTypes.value,
|
|
40797
41788
|
"dataTypeData": currDynamicDataType.value,
|
|
40798
|
-
|
|
41789
|
+
getGlobalData,
|
|
40799
41790
|
refsData,
|
|
40800
41791
|
setComponentRef,
|
|
40801
41792
|
removeComponentRef,
|
|
@@ -40848,7 +41839,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
40848
41839
|
};
|
|
40849
41840
|
}
|
|
40850
41841
|
});
|
|
40851
|
-
const DynamicRender = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-
|
|
41842
|
+
const DynamicRender = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-2944b7e0"]]);
|
|
40852
41843
|
const ElsRender = withInstall(DynamicRender);
|
|
40853
41844
|
const ElsRenderAsync = withInstall(ElsDynamicRenderAsync);
|
|
40854
41845
|
const _sfc_main$12 = {};
|
|
@@ -42317,7 +43308,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
42317
43308
|
const currValue = ref();
|
|
42318
43309
|
const setSelectItem = getValue2("setSelectItem", () => {
|
|
42319
43310
|
});
|
|
42320
|
-
const { componentProps } =
|
|
43311
|
+
const { componentProps } = useDesigner(props, props.nodeItem);
|
|
42321
43312
|
function handleSelectItem() {
|
|
42322
43313
|
setSelectItem(props.nodeItem);
|
|
42323
43314
|
}
|
|
@@ -42458,7 +43449,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
42458
43449
|
setup(__props) {
|
|
42459
43450
|
const props = __props;
|
|
42460
43451
|
const { getValue: getValue2, setValue } = useProps(props);
|
|
42461
|
-
const { componentProps, getNodeValue, getCurrNode } =
|
|
43452
|
+
const { componentProps, getNodeValue, getCurrNode } = useDesigner(props, props.nodeItem);
|
|
42462
43453
|
const recordComponent = getValue2("recordComponent", () => {
|
|
42463
43454
|
});
|
|
42464
43455
|
const getSelectItem = getValue2("getSelectItem", () => {
|
|
@@ -42471,7 +43462,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
42471
43462
|
});
|
|
42472
43463
|
const wrapStyle = computed(() => {
|
|
42473
43464
|
var _a;
|
|
42474
|
-
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);
|
|
42475
43466
|
});
|
|
42476
43467
|
function handleAddComponent(e) {
|
|
42477
43468
|
recordComponent();
|
|
@@ -42603,7 +43594,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
42603
43594
|
};
|
|
42604
43595
|
}
|
|
42605
43596
|
});
|
|
42606
|
-
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
43597
|
+
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-c71304d5"]]);
|
|
42607
43598
|
const _hoisted_1$e = ["innerHTML"];
|
|
42608
43599
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
42609
43600
|
...{
|
|
@@ -42615,7 +43606,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
42615
43606
|
},
|
|
42616
43607
|
setup(__props) {
|
|
42617
43608
|
const props = __props;
|
|
42618
|
-
const { componentProps, renderContent } =
|
|
43609
|
+
const { componentProps, renderContent } = useDesigner(props, props.nodeItem);
|
|
42619
43610
|
const componentName = ref("");
|
|
42620
43611
|
const innerContent = computed(() => {
|
|
42621
43612
|
return props.nodeItem.config.baseConfig.innerContent;
|
|
@@ -42668,7 +43659,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
42668
43659
|
});
|
|
42669
43660
|
const getSelectItem = getValue2("getSelectItem", () => {
|
|
42670
43661
|
});
|
|
42671
|
-
const { isMobile, formProps: formProps2, renderDisabled } =
|
|
43662
|
+
const { isMobile, formProps: formProps2, renderDisabled } = useDesigner(props, props.nodeItem);
|
|
42672
43663
|
const slotVisible = ref();
|
|
42673
43664
|
function handleSelectItem() {
|
|
42674
43665
|
setSelectItem(props.nodeItem);
|
|
@@ -42788,7 +43779,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
42788
43779
|
};
|
|
42789
43780
|
}
|
|
42790
43781
|
});
|
|
42791
|
-
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
43782
|
+
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-3eb98d32"]]);
|
|
42792
43783
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
42793
43784
|
__name: "form",
|
|
42794
43785
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -42806,7 +43797,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
42806
43797
|
const recordComponent = getValue2("recordComponent", () => {
|
|
42807
43798
|
});
|
|
42808
43799
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
42809
|
-
const { isMobile, componentProps, getCurrNode, getNodeValue } =
|
|
43800
|
+
const { isMobile, componentProps, getCurrNode, getNodeValue } = useDesigner(props, nodeItem.value);
|
|
42810
43801
|
const setSelectItem = getValue2("setSelectItem", () => {
|
|
42811
43802
|
});
|
|
42812
43803
|
const getSelectItem = getValue2("getSelectItem", () => {
|
|
@@ -42928,7 +43919,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
42928
43919
|
};
|
|
42929
43920
|
}
|
|
42930
43921
|
});
|
|
42931
|
-
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
43922
|
+
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-02e5e3d1"]]);
|
|
42932
43923
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
42933
43924
|
__name: "body",
|
|
42934
43925
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -43150,7 +44141,7 @@ const useDesign = defineStore("dynamic-design", () => {
|
|
|
43150
44141
|
clear
|
|
43151
44142
|
};
|
|
43152
44143
|
});
|
|
43153
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
44144
|
+
const _withScopeId = (n) => (pushScopeId("data-v-3fff1023"), n = n(), popScopeId(), n);
|
|
43154
44145
|
const _hoisted_1$c = {
|
|
43155
44146
|
style: { "display": "flex", "background": "#f8f8f8" },
|
|
43156
44147
|
class: "els-dynamic-d-view"
|
|
@@ -44342,7 +45333,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
44342
45333
|
};
|
|
44343
45334
|
}
|
|
44344
45335
|
});
|
|
44345
|
-
const DesignerView = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
45336
|
+
const DesignerView = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-3fff1023"]]);
|
|
44346
45337
|
const ElsDesignerView = withInstall(DesignerView);
|
|
44347
45338
|
(function(Prism2) {
|
|
44348
45339
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -45149,31 +46140,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45149
46140
|
}
|
|
45150
46141
|
onMounted(() => {
|
|
45151
46142
|
if (props.language === "json") {
|
|
45152
|
-
const currModule = import("./mode-json-
|
|
46143
|
+
const currModule = import("./mode-json-CNw4Ad6L.js").then((n) => n.m);
|
|
45153
46144
|
currModule.then((res) => {
|
|
45154
46145
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
45155
46146
|
init();
|
|
45156
46147
|
});
|
|
45157
46148
|
} else if (props.language === "javascript") {
|
|
45158
|
-
const currModule = import("./mode-javascript-
|
|
46149
|
+
const currModule = import("./mode-javascript-BsWAOCK9.js").then((n) => n.m);
|
|
45159
46150
|
currModule.then((res) => {
|
|
45160
46151
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
45161
46152
|
init();
|
|
45162
46153
|
});
|
|
45163
46154
|
} else if (props.language === "csharp") {
|
|
45164
|
-
const currModule = import("./mode-csharp-
|
|
46155
|
+
const currModule = import("./mode-csharp-8Qr7KA7-.js").then((n) => n.m);
|
|
45165
46156
|
currModule.then((res) => {
|
|
45166
46157
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
45167
46158
|
init();
|
|
45168
46159
|
});
|
|
45169
46160
|
} else if (props.language === "mysql") {
|
|
45170
|
-
const currModule = import("./mode-mysql-
|
|
46161
|
+
const currModule = import("./mode-mysql-Brju4QkM.js").then((n) => n.m);
|
|
45171
46162
|
currModule.then((res) => {
|
|
45172
46163
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
45173
46164
|
init();
|
|
45174
46165
|
});
|
|
45175
46166
|
} else if (props.language === "css") {
|
|
45176
|
-
const currModule = import("./mode-css-
|
|
46167
|
+
const currModule = import("./mode-css-7HePkEyP.js").then((n) => n.m);
|
|
45177
46168
|
currModule.then((res) => {
|
|
45178
46169
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
45179
46170
|
init();
|