element-less 0.0.8 → 0.0.10

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