element-less 0.0.40 → 0.0.42

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 (31) hide show
  1. package/custom/container/index.d.ts +20 -0
  2. package/custom/container/src/container.vue.d.ts +12 -0
  3. package/custom/dynamic/common/propertys/pic.d.ts +178 -7
  4. package/element-less.cjs +1 -1
  5. package/element-less.iife.js +1 -1
  6. package/element-less.js +1 -1
  7. package/element-less.umd.cjs +1 -1
  8. package/elementui/dialog/index.d.ts +3 -14
  9. package/elementui/dialog/src/dialog.d.ts +0 -2
  10. package/elementui/dialog/src/dialog.vue.d.ts +2 -6
  11. package/elementui/form/index.d.ts +3 -0
  12. package/elementui/form/src/form.vue.d.ts +2 -0
  13. package/{index-PIGhfQ30.js → index-BqEISu3M.js} +253 -115
  14. package/index-DtJpTuu3.cjs +1 -0
  15. package/{inner-DFtar3t3.js → inner-DyK5h15a.js} +1 -1
  16. package/{inner-JAUxe4Pr.cjs → inner-ls9wGnL9.cjs} +1 -1
  17. package/{innerItem-ukkdJVM5.js → innerItem-Bvj4GHa3.js} +1 -1
  18. package/{innerItem-Chstai0H.cjs → innerItem-C9zzpO9k.cjs} +1 -1
  19. package/{mode-csharp-C5B3_rx9.cjs → mode-csharp-Bs4QQG_r.cjs} +1 -1
  20. package/{mode-csharp-Bgi1sikO.js → mode-csharp-Dgq2kShz.js} +1 -1
  21. package/{mode-css-CHU-gYSW.cjs → mode-css-B5RYoKMd.cjs} +1 -1
  22. package/{mode-css-DalADu6X.js → mode-css-CScIFYQf.js} +1 -1
  23. package/{mode-javascript--WzqSEmL.cjs → mode-javascript-BJzNrPT1.cjs} +1 -1
  24. package/{mode-javascript-D_IpfLZz.js → mode-javascript-C9rw2J37.js} +1 -1
  25. package/{mode-json-BUTeg41L.js → mode-json-C0xziyfR.js} +1 -1
  26. package/{mode-json-mt4aU-tp.cjs → mode-json-hMarzVpt.cjs} +1 -1
  27. package/{mode-mysql-D4sY35XG.cjs → mode-mysql-B0yi8VgG.cjs} +1 -1
  28. package/{mode-mysql-KHtrOxiJ.js → mode-mysql-TmVyatzM.js} +1 -1
  29. package/package.json +65 -65
  30. package/style.css +1 -1
  31. package/index-Dm_VQ9hp.cjs +0 -1
@@ -4940,7 +4940,7 @@ class TBaseCom {
4940
4940
  }
4941
4941
  const formItemProps = formItemProps$1;
4942
4942
  const _hoisted_1$1h = ["innerHTML"];
4943
- const _hoisted_2$14 = { class: "els-form-item-append" };
4943
+ const _hoisted_2$15 = { class: "els-form-item-append" };
4944
4944
  const _hoisted_3$M = ["innerHTML"];
4945
4945
  const _sfc_main$28 = /* @__PURE__ */ defineComponent({
4946
4946
  ...{ name: "ElsFormItem" },
@@ -5128,7 +5128,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
5128
5128
  createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$1h)
5129
5129
  ]),
5130
5130
  default: withCtx(() => [
5131
- createElementVNode("span", _hoisted_2$14, [
5131
+ createElementVNode("span", _hoisted_2$15, [
5132
5132
  createVNode(_component_el_icon, { style: { "margin-left": "5px", "cursor": "pointer" } }, {
5133
5133
  default: withCtx(() => [
5134
5134
  createVNode(_component_Question_Filled)
@@ -7380,7 +7380,7 @@ const _hoisted_1$1g = {
7380
7380
  key: 1,
7381
7381
  style: { "width": "100%" }
7382
7382
  };
7383
- const _hoisted_2$13 = { class: "els-radio-group-item" };
7383
+ const _hoisted_2$14 = { class: "els-radio-group-item" };
7384
7384
  const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
7385
7385
  ...{ name: "ElsOptionGroup" },
7386
7386
  __name: "optionGroup",
@@ -7405,7 +7405,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
7405
7405
  ]),
7406
7406
  _: 3
7407
7407
  }, 16, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_1$1g, [
7408
- createElementVNode("div", _hoisted_2$13, toDisplayString(_ctx.label), 1),
7408
+ createElementVNode("div", _hoisted_2$14, toDisplayString(_ctx.label), 1),
7409
7409
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(attrs))), void 0, true)
7410
7410
  ]));
7411
7411
  };
@@ -7688,6 +7688,9 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
7688
7688
  function validateField(fields) {
7689
7689
  return dataForm.value.validateField(fields);
7690
7690
  }
7691
+ function resetFields() {
7692
+ return dataForm.value.resetFields();
7693
+ }
7691
7694
  function handleSubmitButton() {
7692
7695
  submitButton.value.$el.trigger("click");
7693
7696
  }
@@ -7743,6 +7746,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
7743
7746
  save: saveData,
7744
7747
  clearValidate,
7745
7748
  validateField,
7749
+ resetFields,
7746
7750
  validate,
7747
7751
  handleSubmitButton
7748
7752
  });
@@ -7774,7 +7778,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
7774
7778
  };
7775
7779
  }
7776
7780
  });
7777
- const Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$1W, [["__scopeId", "data-v-2b8c469b"]]);
7781
+ const Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$1W, [["__scopeId", "data-v-b32e948d"]]);
7778
7782
  const formProps = formProps$1;
7779
7783
  const ElsForm = withInstall(Form);
7780
7784
  const formQueryProps = buildProps({
@@ -8344,7 +8348,7 @@ const tableColumnProps = Object.assign({}, defaultProps$1, buildProps({
8344
8348
  }
8345
8349
  }));
8346
8350
  const _hoisted_1$1f = { key: 0 };
8347
- const _hoisted_2$12 = /* @__PURE__ */ createElementVNode("i", { class: "el-icon-question" }, null, -1);
8351
+ const _hoisted_2$13 = /* @__PURE__ */ createElementVNode("i", { class: "el-icon-question" }, null, -1);
8348
8352
  const _hoisted_3$L = ["innerHTML"];
8349
8353
  const _hoisted_4$C = ["innerHTML"];
8350
8354
  const _hoisted_5$p = ["innerHTML"];
@@ -8574,7 +8578,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
8574
8578
  placement: "right"
8575
8579
  }, {
8576
8580
  default: withCtx(() => [
8577
- _hoisted_2$12
8581
+ _hoisted_2$13
8578
8582
  ]),
8579
8583
  _: 1
8580
8584
  }, 8, ["content"])
@@ -9272,7 +9276,7 @@ const _hoisted_1$1e = {
9272
9276
  key: 0,
9273
9277
  class: "select_container"
9274
9278
  };
9275
- const _hoisted_2$11 = { key: 0 };
9279
+ const _hoisted_2$12 = { key: 0 };
9276
9280
  const _hoisted_3$K = {
9277
9281
  key: 1,
9278
9282
  class: "drag-oper"
@@ -10480,7 +10484,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
10480
10484
  }, {
10481
10485
  default: withCtx(() => [
10482
10486
  renderSlot(_ctx.$slots, "checklabel", { checkItem: element }, () => [
10483
- _ctx.showCheckField ? (openBlock(), createElementBlock("span", _hoisted_2$11, toDisplayString(element[_ctx.showCheckField]), 1)) : createCommentVNode("", true)
10487
+ _ctx.showCheckField ? (openBlock(), createElementBlock("span", _hoisted_2$12, toDisplayString(element[_ctx.showCheckField]), 1)) : createCommentVNode("", true)
10484
10488
  ], true)
10485
10489
  ]),
10486
10490
  _: 2
@@ -11058,7 +11062,7 @@ const _sfc_main$1J = defineComponent({
11058
11062
  },
11059
11063
  emits: ["update:modelValue", "update:select", "update:select-label", "select"]
11060
11064
  });
11061
- const TreeSelect2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1J, [["__scopeId", "data-v-10e886ac"]]);
11065
+ const TreeSelect2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1J, [["__scopeId", "data-v-6a13443f"]]);
11062
11066
  const ElsTreeSelect = withInstall(TreeSelect2);
11063
11067
  const menuProps = buildProps({
11064
11068
  ...menuProps$1,
@@ -11408,7 +11412,7 @@ const menuItemProps = buildProps({
11408
11412
  }
11409
11413
  });
11410
11414
  const _hoisted_1$1c = ["title"];
11411
- const _hoisted_2$10 = ["title"];
11415
+ const _hoisted_2$11 = ["title"];
11412
11416
  const _hoisted_3$J = ["title"];
11413
11417
  const _sfc_main$1H = /* @__PURE__ */ defineComponent({
11414
11418
  ...{ name: "ElsMenuItem", inheritAttrs: false },
@@ -11474,7 +11478,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
11474
11478
  _ctx.item.label ? (openBlock(), createElementBlock("span", {
11475
11479
  key: 0,
11476
11480
  title: _ctx.item.label
11477
- }, toDisplayString(_ctx.item.label), 9, _hoisted_2$10)) : createCommentVNode("", true)
11481
+ }, toDisplayString(_ctx.item.label), 9, _hoisted_2$11)) : createCommentVNode("", true)
11478
11482
  ], 2)
11479
11483
  ]),
11480
11484
  default: withCtx(() => [
@@ -11659,7 +11663,7 @@ const _hoisted_1$1b = {
11659
11663
  key: 0,
11660
11664
  class: "leo_image_empty"
11661
11665
  };
11662
- const _hoisted_2$$ = ["width"];
11666
+ const _hoisted_2$10 = ["width"];
11663
11667
  const _hoisted_3$I = /* @__PURE__ */ createElementVNode("path", {
11664
11668
  d: "M345.15968 357.80096a48.54784 48.54784 0 1 0 48.52736 48.54784 48.58368 48.58368 0 0 0-48.52736-48.54784zM844.68736 174.08H184.43264A102.656 102.656 0 0 0 81.92 276.64896v470.70208A102.656 102.656 0 0 0 184.43264 849.92h660.25472A102.65088 102.65088 0 0 0 947.2 747.35104V276.64896A102.65088 102.65088 0 0 0 844.68736 174.08zM345.15968 295.02976a111.32416 111.32416 0 1 1-111.2576 111.31904 111.42144 111.42144 0 0 1 111.2576-111.31904z m-72.45312 444.544l-42.496-46.17728 174.71488-161.0496L483.88096 611.328l-44.35968 44.39552-36.38272-36.4032z m517.6064-25.12896l-134.55872-151.552-171.12064 183.42912L438.784 703.488l218.112-233.82016 180.3264 203.10016z",
11665
11669
  fill: "#7da3cc",
@@ -11729,7 +11733,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
11729
11733
  xmlns: "http://www.w3.org/2000/svg",
11730
11734
  "p-id": "4592",
11731
11735
  width: _ctx.width
11732
- }, _hoisted_4$A, 8, _hoisted_2$$)),
11736
+ }, _hoisted_4$A, 8, _hoisted_2$10)),
11733
11737
  _ctx.emptyDesc ? (openBlock(), createElementBlock("div", {
11734
11738
  key: 0,
11735
11739
  innerHTML: _ctx.emptyDesc,
@@ -12267,14 +12271,6 @@ const dialogProps = buildProps({
12267
12271
  * @description 加载中
12268
12272
  */
12269
12273
  loading: Boolean,
12270
- /**
12271
- * @description 是否显示确认按钮
12272
- */
12273
- showConfirmButton: Boolean,
12274
- /**
12275
- * @description 显示取消按钮
12276
- */
12277
- showCancelButton: Boolean,
12278
12274
  /**
12279
12275
  * @description 确认事件
12280
12276
  */
@@ -12285,7 +12281,7 @@ const dialogProps = buildProps({
12285
12281
  cancel: Function
12286
12282
  });
12287
12283
  const _hoisted_1$1a = ["src"];
12288
- const _hoisted_2$_ = ["src"];
12284
+ const _hoisted_2$$ = ["src"];
12289
12285
  const _sfc_main$1A = /* @__PURE__ */ defineComponent({
12290
12286
  ...{
12291
12287
  name: "ElsDialog"
@@ -12389,12 +12385,17 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
12389
12385
  dialogVisible.value = false;
12390
12386
  }
12391
12387
  confirmLoading.value = false;
12388
+ }).catch((err) => {
12389
+ ProxyElsMessage.error("接口请求异常");
12390
+ confirmLoading.value = false;
12391
+ console.error(err);
12392
12392
  });
12393
12393
  } else {
12394
12394
  dialogVisible.value = false;
12395
12395
  }
12396
12396
  }
12397
12397
  __expose({
12398
+ confirm: handleConfirm,
12398
12399
  open: () => {
12399
12400
  dialogVisible.value = true;
12400
12401
  },
@@ -12464,7 +12465,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
12464
12465
  src: dialogUrl.value,
12465
12466
  frameborder: "0",
12466
12467
  style: normalizeStyle(contentStyle.value)
12467
- }, null, 12, _hoisted_2$_)) : createCommentVNode("", true)
12468
+ }, null, 12, _hoisted_2$$)) : createCommentVNode("", true)
12468
12469
  ])
12469
12470
  ], 4)), [
12470
12471
  [_directive_loading, pageLoading.value]
@@ -12680,7 +12681,7 @@ const dropdownProps = buildProps({
12680
12681
  placeholder: String
12681
12682
  });
12682
12683
  const _hoisted_1$18 = { class: "el-dropdown-link" };
12683
- const _hoisted_2$Z = ["innerHTML"];
12684
+ const _hoisted_2$_ = ["innerHTML"];
12684
12685
  const _hoisted_3$H = ["innerHTML"];
12685
12686
  const _sfc_main$1y = /* @__PURE__ */ defineComponent({
12686
12687
  ...{
@@ -12755,7 +12756,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
12755
12756
  default: withCtx(() => [
12756
12757
  renderSlot(_ctx.$slots, "default", {}, () => [
12757
12758
  createElementVNode("span", _hoisted_1$18, [
12758
- createElementVNode("span", { innerHTML: showTitle.value }, null, 8, _hoisted_2$Z),
12759
+ createElementVNode("span", { innerHTML: showTitle.value }, null, 8, _hoisted_2$_),
12759
12760
  createVNode(_component_el_icon, { class: "el-icon--right" }, {
12760
12761
  default: withCtx(() => [
12761
12762
  createVNode(_component_arrow_down)
@@ -13388,6 +13389,8 @@ let Upload$2 = class Upload extends TBaseFormItem {
13388
13389
  }
13389
13390
  return props.drag;
13390
13391
  });
13392
+ const axiosInstance2 = getAxiosInstance();
13393
+ const currHeader = props.headers ? props.headers : axiosInstance2.defaults.headers.common;
13391
13394
  return createVNode(Fragment, null, [createVNode("div", {
13392
13395
  "class": "els_upload_container"
13393
13396
  }, [createVNode(resolveComponent("el-upload"), mergeProps({
@@ -13406,6 +13409,7 @@ let Upload$2 = class Upload extends TBaseFormItem {
13406
13409
  "before-upload": this.handleBeforeUpload,
13407
13410
  "on-preview": this.handlePreview,
13408
13411
  "showFileList": showFileList.value,
13412
+ "headers": currHeader,
13409
13413
  "listType": props.type == "Pic" && props.multiple || props.type == "MutiPic" ? "picture-card" : "text",
13410
13414
  "disabled": this.uploadLoading.value
13411
13415
  }), {
@@ -14960,7 +14964,7 @@ const menuContextProps = buildProps({
14960
14964
  }
14961
14965
  });
14962
14966
  const _hoisted_1$14 = ["onClick"];
14963
- const _hoisted_2$Y = { class: "els-context-info" };
14967
+ const _hoisted_2$Z = { class: "els-context-info" };
14964
14968
  const _sfc_main$1l = /* @__PURE__ */ defineComponent({
14965
14969
  ...{ name: "ElsMenuContext", inheritAttrs: false },
14966
14970
  __name: "menuContext",
@@ -15032,7 +15036,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
15032
15036
  ]),
15033
15037
  _: 2
15034
15038
  }, 1024)) : createCommentVNode("", true),
15035
- createElementVNode("span", _hoisted_2$Y, toDisplayString(item[unref(nameFieldname)]), 1)
15039
+ createElementVNode("span", _hoisted_2$Z, toDisplayString(item[unref(nameFieldname)]), 1)
15036
15040
  ], 8, _hoisted_1$14);
15037
15041
  }), 128))
15038
15042
  ], 6)), [
@@ -15075,7 +15079,7 @@ const _hoisted_1$13 = {
15075
15079
  key: 0,
15076
15080
  class: "els-table-operate"
15077
15081
  };
15078
- const _hoisted_2$X = { class: "els-table-operate-link" };
15082
+ const _hoisted_2$Y = { class: "els-table-operate-link" };
15079
15083
  const _hoisted_3$G = ["onClick"];
15080
15084
  const _sfc_main$1k = /* @__PURE__ */ defineComponent({
15081
15085
  ...{ name: "ElsMenuDropdown" },
@@ -15178,7 +15182,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
15178
15182
  })
15179
15183
  ]),
15180
15184
  default: withCtx(() => [
15181
- createElementVNode("span", _hoisted_2$X, [
15185
+ createElementVNode("span", _hoisted_2$Y, [
15182
15186
  createTextVNode(toDisplayString(_ctx.unFoldCount > 0 ? "更多操作" : "操作") + " ", 1),
15183
15187
  createVNode(_component_el_icon, { class: "el-icon--right" }, {
15184
15188
  default: withCtx(() => [
@@ -15279,7 +15283,7 @@ const menuToolProps = buildProps({
15279
15283
  onUploaded: Function
15280
15284
  });
15281
15285
  const _hoisted_1$12 = { class: "els-tool-menu" };
15282
- const _hoisted_2$W = { class: "els-tool-menu-button" };
15286
+ const _hoisted_2$X = { class: "els-tool-menu-button" };
15283
15287
  const _hoisted_3$F = {
15284
15288
  key: 0,
15285
15289
  class: "operationlog"
@@ -15444,7 +15448,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
15444
15448
  const _component_el_dialog = resolveComponent("el-dialog");
15445
15449
  const _component_els_dialog = resolveComponent("els-dialog");
15446
15450
  return openBlock(), createElementBlock("div", _hoisted_1$12, [
15447
- createElementVNode("div", _hoisted_2$W, [
15451
+ createElementVNode("div", _hoisted_2$X, [
15448
15452
  (openBlock(true), createElementBlock(Fragment, null, renderList(menuData, (menu) => {
15449
15453
  return openBlock(), createBlock(_component_el_button, mergeProps({
15450
15454
  type: unref(colorFieldname) && menu[unref(colorFieldname)],
@@ -15778,9 +15782,9 @@ const _hoisted_1$11 = {
15778
15782
  key: 0,
15779
15783
  class: "els-caption-sub-header"
15780
15784
  };
15781
- const _hoisted_2$V = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", { class: "dec" }, null, -1));
15785
+ const _hoisted_2$W = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", { class: "dec" }, null, -1));
15782
15786
  const _hoisted_3$E = [
15783
- _hoisted_2$V
15787
+ _hoisted_2$W
15784
15788
  ];
15785
15789
  const _hoisted_4$y = { class: "els-caption-title" };
15786
15790
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
@@ -16412,7 +16416,7 @@ const listProps = buildProps({
16412
16416
  });
16413
16417
  const _withScopeId$1 = (n) => (pushScopeId("data-v-ab0c48be"), n = n(), popScopeId(), n);
16414
16418
  const _hoisted_1$10 = { class: "els-list-title" };
16415
- const _hoisted_2$U = ["innerHTML"];
16419
+ const _hoisted_2$V = ["innerHTML"];
16416
16420
  const _hoisted_3$D = { key: 1 };
16417
16421
  const _hoisted_4$x = ["innerHTML"];
16418
16422
  const _hoisted_5$l = { key: 1 };
@@ -16676,7 +16680,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
16676
16680
  _ctx.itemComponentTitle ? (openBlock(), createElementBlock("div", {
16677
16681
  key: 0,
16678
16682
  innerHTML: _ctx.itemComponentTitle
16679
- }, null, 8, _hoisted_2$U)) : (openBlock(), createElementBlock("div", _hoisted_3$D, "还未设置标题"))
16683
+ }, null, 8, _hoisted_2$V)) : (openBlock(), createElementBlock("div", _hoisted_3$D, "还未设置标题"))
16680
16684
  ])
16681
16685
  ], true) : renderSlot(_ctx.$slots, "itemTitle", normalizeProps(mergeProps({ key: 1 }, { item: element, index, $item: element.value, $index: index, element })), () => [
16682
16686
  createElementVNode("div", null, [
@@ -21566,8 +21570,7 @@ const property_pic = [
21566
21570
  "arrayConfig": {}
21567
21571
  },
21568
21572
  "componentType": "Input",
21569
- "dataType": "String",
21570
- "formItem": true
21573
+ "dataType": "String"
21571
21574
  },
21572
21575
  {
21573
21576
  "keyID": "d1dbb0e693a82a2e813338c4b5f7a8fe",
@@ -21607,8 +21610,7 @@ const property_pic = [
21607
21610
  "arrayConfig": {}
21608
21611
  },
21609
21612
  "componentType": "Input",
21610
- "dataType": "String",
21611
- "formItem": true
21613
+ "dataType": "String"
21612
21614
  },
21613
21615
  {
21614
21616
  "keyID": "81704d07c46be9883f52fff36096c470",
@@ -21665,8 +21667,7 @@ const property_pic = [
21665
21667
  "arrayConfig": {}
21666
21668
  },
21667
21669
  "componentType": "Radio",
21668
- "dataType": "String",
21669
- "formItem": true
21670
+ "dataType": "String"
21670
21671
  },
21671
21672
  {
21672
21673
  "keyID": "b0c58a556779de8a47657b5d3edef014",
@@ -21711,8 +21712,7 @@ const property_pic = [
21711
21712
  "arrayConfig": {}
21712
21713
  },
21713
21714
  "componentType": "Input",
21714
- "dataType": "String",
21715
- "formItem": true
21715
+ "dataType": "String"
21716
21716
  },
21717
21717
  {
21718
21718
  "keyID": "1941031bd3d8bdd983a7c61913ac3d5f",
@@ -21752,8 +21752,7 @@ const property_pic = [
21752
21752
  "arrayConfig": {}
21753
21753
  },
21754
21754
  "componentType": "Input",
21755
- "dataType": "String",
21756
- "formItem": true
21755
+ "dataType": "String"
21757
21756
  }
21758
21757
  ],
21759
21758
  "config": {
@@ -21773,8 +21772,7 @@ const property_pic = [
21773
21772
  "arrayConfig": {}
21774
21773
  },
21775
21774
  "componentType": "Row",
21776
- "dataType": "None",
21777
- "formItem": false
21775
+ "dataType": "None"
21778
21776
  },
21779
21777
  {
21780
21778
  "keyID": "6883b83615ea250e48565d57b2d35129",
@@ -21819,8 +21817,7 @@ const property_pic = [
21819
21817
  "arrayConfig": {}
21820
21818
  },
21821
21819
  "componentType": "Input",
21822
- "dataType": "String",
21823
- "formItem": true
21820
+ "dataType": "String"
21824
21821
  },
21825
21822
  {
21826
21823
  "keyID": "61f4392caabdb4e90c59c255cb086457",
@@ -21860,8 +21857,7 @@ const property_pic = [
21860
21857
  "arrayConfig": {}
21861
21858
  },
21862
21859
  "componentType": "Input",
21863
- "dataType": "String",
21864
- "formItem": true
21860
+ "dataType": "String"
21865
21861
  }
21866
21862
  ],
21867
21863
  "config": {
@@ -21881,49 +21877,123 @@ const property_pic = [
21881
21877
  "arrayConfig": {}
21882
21878
  },
21883
21879
  "componentType": "Row",
21884
- "dataType": "None",
21885
- "formItem": false
21880
+ "dataType": "None"
21886
21881
  },
21887
21882
  {
21888
- "keyID": "7a9f6a9ff34b9e589df040d2d2bf2767",
21889
- "keyName": "文件类型",
21890
- "keyCode": "fileTypes",
21891
- "children": [],
21892
- "config": {
21893
- "formConfig": {
21894
- "labelWidth": "",
21895
- "required": false,
21896
- "requiredMessage": "",
21897
- "validType": "",
21898
- "validExpression": "",
21899
- "validMessage": "",
21900
- "validMethod": ""
21883
+ "keyID": "id_3048",
21884
+ "keyName": "栅格行",
21885
+ "keyCode": "",
21886
+ "children": [
21887
+ {
21888
+ "keyID": "7a9f6a9ff34b9e589df040d2d2bf2767",
21889
+ "keyName": "文件类型",
21890
+ "keyCode": "fileTypes",
21891
+ "children": [],
21892
+ "config": {
21893
+ "formConfig": {
21894
+ "labelWidth": "",
21895
+ "required": false,
21896
+ "requiredMessage": "",
21897
+ "validType": "",
21898
+ "validExpression": "",
21899
+ "validMessage": "",
21900
+ "validMethod": ""
21901
+ },
21902
+ "baseConfig": {
21903
+ "width": "",
21904
+ "placeholder": "",
21905
+ "prefixIcon": "",
21906
+ "suffixIcon": "",
21907
+ "prefixTag": "",
21908
+ "suffixTag": "",
21909
+ "maxlength": "",
21910
+ "showWordLimit": false,
21911
+ "clearable": false,
21912
+ "isPassword": false,
21913
+ "isTrim": false,
21914
+ "encode": false
21915
+ },
21916
+ "advancedConfig": {
21917
+ "style": "",
21918
+ "vif": "",
21919
+ "disabled": "",
21920
+ "eventChange": ""
21921
+ },
21922
+ "arrayConfig": {}
21923
+ },
21924
+ "componentType": "Input",
21925
+ "dataType": "String"
21901
21926
  },
21927
+ {
21928
+ "keyID": "id_8846",
21929
+ "keyName": "值类型",
21930
+ "keyCode": "valueType",
21931
+ "children": [],
21932
+ "dataType": "String",
21933
+ "arrayDataType": "",
21934
+ "componentTypeLabel": "下拉列表",
21935
+ "componentType": "Select",
21936
+ "icon": "select",
21937
+ "operateType": "picker",
21938
+ "slots": [
21939
+ {
21940
+ "name": "header",
21941
+ "children": []
21942
+ },
21943
+ {
21944
+ "name": "default",
21945
+ "children": []
21946
+ },
21947
+ {
21948
+ "name": "label",
21949
+ "children": []
21950
+ }
21951
+ ],
21952
+ "config": {
21953
+ "formConfig": {},
21954
+ "baseConfig": {
21955
+ "dataType": 1,
21956
+ "placeholder": "",
21957
+ "data": [
21958
+ {
21959
+ "label": "String",
21960
+ "value": "String"
21961
+ },
21962
+ {
21963
+ "label": "Array",
21964
+ "value": "Array"
21965
+ }
21966
+ ],
21967
+ "filterable": true,
21968
+ "width": "",
21969
+ "height": "",
21970
+ "clearable": true,
21971
+ "teleported": true,
21972
+ "optionDirection": "",
21973
+ "no-match-text": ""
21974
+ },
21975
+ "advancedConfig": {},
21976
+ "arrayConfig": {}
21977
+ }
21978
+ }
21979
+ ],
21980
+ "dataType": "None",
21981
+ "arrayDataType": "",
21982
+ "componentTypeLabel": "栅格行",
21983
+ "componentType": "Row",
21984
+ "icon": "layout-two",
21985
+ "slots": [],
21986
+ "config": {
21987
+ "formConfig": {},
21902
21988
  "baseConfig": {
21903
- "width": "",
21904
- "placeholder": "",
21905
- "prefixIcon": "",
21906
- "suffixIcon": "",
21907
- "prefixTag": "",
21908
- "suffixTag": "",
21909
- "maxlength": "",
21910
- "showWordLimit": false,
21911
- "clearable": false,
21912
- "isPassword": false,
21913
- "isTrim": false,
21914
- "encode": false
21915
- },
21916
- "advancedConfig": {
21917
- "style": "",
21918
- "vif": "",
21919
- "disabled": "",
21920
- "eventChange": ""
21989
+ "gutter": 10,
21990
+ "justify": "start",
21991
+ "align": "",
21992
+ "tag": "div"
21921
21993
  },
21994
+ "advancedConfig": {},
21922
21995
  "arrayConfig": {}
21923
- },
21924
- "componentType": "Input",
21925
- "dataType": "String",
21926
- "formItem": true
21996
+ }
21927
21997
  },
21928
21998
  {
21929
21999
  "keyID": "e5041a10342b4f1a233398c4241c0450",
@@ -21960,8 +22030,7 @@ const property_pic = [
21960
22030
  "arrayConfig": {}
21961
22031
  },
21962
22032
  "componentType": "Switch",
21963
- "dataType": "Bool",
21964
- "formItem": true
22033
+ "dataType": "Bool"
21965
22034
  },
21966
22035
  {
21967
22036
  "keyID": "45821220bef3c5ef1ac3bfa11af3bb38",
@@ -21993,8 +22062,7 @@ const property_pic = [
21993
22062
  "arrayConfig": {}
21994
22063
  },
21995
22064
  "componentType": "Switch",
21996
- "dataType": "Bool",
21997
- "formItem": true
22065
+ "dataType": "Bool"
21998
22066
  }
21999
22067
  ],
22000
22068
  "config": {
@@ -22014,8 +22082,7 @@ const property_pic = [
22014
22082
  "arrayConfig": {}
22015
22083
  },
22016
22084
  "componentType": "Row",
22017
- "dataType": "None",
22018
- "formItem": false
22085
+ "dataType": "None"
22019
22086
  }
22020
22087
  ],
22021
22088
  "dataType": "None",
@@ -22044,8 +22111,7 @@ const property_pic = [
22044
22111
  "eventChange": ""
22045
22112
  },
22046
22113
  "arrayConfig": {}
22047
- },
22048
- "formItem": false
22114
+ }
22049
22115
  }
22050
22116
  ];
22051
22117
  const property_textarea = [
@@ -37462,6 +37528,10 @@ const containerProps = buildProps({
37462
37528
  selectMenuPostQuery: Boolean
37463
37529
  });
37464
37530
  const _hoisted_1$_ = { class: "els-page-container" };
37531
+ const _hoisted_2$U = {
37532
+ key: 0,
37533
+ class: "els-tool"
37534
+ };
37465
37535
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37466
37536
  ...{
37467
37537
  name: "ElsContainer"
@@ -37484,11 +37554,17 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37484
37554
  saveForms: [],
37485
37555
  childContainer: []
37486
37556
  });
37557
+ const editDialogTitle = ref();
37558
+ const editDialogVisible = ref();
37559
+ const dialogTitle = ref();
37487
37560
  const dialogVisible = ref(false);
37488
37561
  const dialogUrl = ref("");
37489
37562
  const drawerVisible = ref(false);
37490
37563
  const drawerUrl = ref("");
37564
+ const drawerTitle = ref();
37491
37565
  const container = useContainer();
37566
+ const editDialogRef = ref();
37567
+ const editDialogProp = ref({});
37492
37568
  const elsPathId = computed(() => {
37493
37569
  const path = location.host + location.pathname;
37494
37570
  if (location.search) {
@@ -37515,7 +37591,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37515
37591
  });
37516
37592
  });
37517
37593
  }
37518
- function save(url) {
37594
+ function save(url = "") {
37519
37595
  return new Promise((resolve2, reject) => {
37520
37596
  if (elsPageStore.value.saveForms.length) {
37521
37597
  validate().then((res) => {
@@ -37912,6 +37988,19 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37912
37988
  });
37913
37989
  }, 300);
37914
37990
  }
37991
+ function saveForm() {
37992
+ return new Promise((resolve2, reject) => {
37993
+ validate().then((valid) => {
37994
+ if (valid) {
37995
+ save().then((res) => {
37996
+ resolve2(res);
37997
+ }).catch((err) => {
37998
+ reject(err);
37999
+ });
38000
+ }
38001
+ });
38002
+ });
38003
+ }
37915
38004
  const slots = useSlots();
37916
38005
  let componentName = h("div");
37917
38006
  const isVertical = ref(false);
@@ -37929,6 +38018,16 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37929
38018
  id: tagID,
37930
38019
  validate
37931
38020
  };
38021
+ function openEdit(title, dialogProp = { width: "", height: "" }) {
38022
+ return new Promise((resolve2, reject) => {
38023
+ editDialogTitle.value = title;
38024
+ editDialogProp.value = dialogProp;
38025
+ editDialogRef.value.open();
38026
+ nextTick(() => {
38027
+ resolve2(true);
38028
+ });
38029
+ });
38030
+ }
37932
38031
  onMounted(() => {
37933
38032
  if (container) {
37934
38033
  container.$pageStore.value.childContainer.push(exposeData);
@@ -37952,9 +38051,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37952
38051
  "$apiResult": elsApiResult
37953
38052
  });
37954
38053
  __expose({
37955
- validate
38054
+ validate,
38055
+ query,
38056
+ openEdit
37956
38057
  });
37957
38058
  return (_ctx, _cache) => {
38059
+ const _component_els_form_query = resolveComponent("els-form-query");
37958
38060
  const _component_els_dialog = resolveComponent("els-dialog");
37959
38061
  const _component_els_drawer = resolveComponent("els-drawer");
37960
38062
  return openBlock(), createElementBlock("div", _hoisted_1$_, [
@@ -37962,27 +38064,63 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
37962
38064
  class: normalizeClass({ "is-vertical": isVertical.value })
37963
38065
  }, {
37964
38066
  default: withCtx(() => [
37965
- renderSlot(_ctx.$slots, "default")
38067
+ _ctx.$slots.tool ? (openBlock(), createElementBlock("div", _hoisted_2$U, [
38068
+ renderSlot(_ctx.$slots, "tool", {}, void 0, true)
38069
+ ])) : createCommentVNode("", true),
38070
+ _ctx.$slots.query ? (openBlock(), createBlock(_component_els_form_query, { key: 1 }, {
38071
+ default: withCtx(() => [
38072
+ renderSlot(_ctx.$slots, "query", {}, void 0, true)
38073
+ ]),
38074
+ _: 3
38075
+ })) : createCommentVNode("", true),
38076
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
37966
38077
  ]),
37967
38078
  _: 3
37968
38079
  }, 8, ["class"])),
38080
+ createVNode(_component_els_dialog, mergeProps({
38081
+ title: editDialogTitle.value,
38082
+ modelValue: editDialogVisible.value,
38083
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => editDialogVisible.value = $event),
38084
+ confirm: saveForm
38085
+ }, editDialogProp.value, {
38086
+ ref_key: "editDialogRef",
38087
+ ref: editDialogRef
38088
+ }), {
38089
+ default: withCtx(() => [
38090
+ renderSlot(_ctx.$slots, "edit", {}, void 0, true)
38091
+ ]),
38092
+ _: 3
38093
+ }, 16, ["title", "modelValue"]),
37969
38094
  createVNode(_component_els_dialog, {
37970
38095
  url: dialogUrl.value,
38096
+ title: dialogTitle.value,
37971
38097
  modelValue: dialogVisible.value,
37972
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
38098
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
37973
38099
  "destroy-on-close": true
37974
- }, null, 8, ["url", "modelValue"]),
38100
+ }, {
38101
+ default: withCtx(() => [
38102
+ renderSlot(_ctx.$slots, "dialog", {}, void 0, true)
38103
+ ]),
38104
+ _: 3
38105
+ }, 8, ["url", "title", "modelValue"]),
37975
38106
  createVNode(_component_els_drawer, {
37976
38107
  url: drawerUrl.value,
38108
+ title: drawerTitle.value,
37977
38109
  modelValue: drawerVisible.value,
37978
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => drawerVisible.value = $event),
38110
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => drawerVisible.value = $event),
37979
38111
  "destroy-on-close": true
37980
- }, null, 8, ["url", "modelValue"])
38112
+ }, {
38113
+ default: withCtx(() => [
38114
+ renderSlot(_ctx.$slots, "draw", {}, void 0, true)
38115
+ ]),
38116
+ _: 3
38117
+ }, 8, ["url", "title", "modelValue"])
37981
38118
  ]);
37982
38119
  };
37983
38120
  }
37984
38121
  });
37985
- const ElsContainer = withInstall(_sfc_main$19);
38122
+ const Container = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["__scopeId", "data-v-27cc8f68"]]);
38123
+ const ElsContainer = withInstall(Container);
37986
38124
  const createProps = buildProps({
37987
38125
  /**
37988
38126
  * @description 是否显示
@@ -38439,7 +38577,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
38439
38577
  emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
38440
38578
  setup(__props, { emit: __emit }) {
38441
38579
  const DynamicDesignerInnerItem = defineAsyncComponent(() => {
38442
- return import("./innerItem-ukkdJVM5.js");
38580
+ return import("./innerItem-Bvj4GHa3.js");
38443
38581
  });
38444
38582
  const { getValue: getValue2 } = useProps();
38445
38583
  const tagID = getValue2("tagID");
@@ -39289,10 +39427,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
39289
39427
  emits: ["update:modelValue"],
39290
39428
  setup(__props, { expose: __expose, emit: __emit }) {
39291
39429
  const DynamicRenderInner = defineAsyncComponent(() => {
39292
- return import("./inner-DFtar3t3.js").then((n) => n.i);
39430
+ return import("./inner-DyK5h15a.js").then((n) => n.i);
39293
39431
  });
39294
39432
  const DynamicRenderForm = defineAsyncComponent(() => {
39295
- return import("./inner-DFtar3t3.js").then((n) => n.f);
39433
+ return import("./inner-DyK5h15a.js").then((n) => n.f);
39296
39434
  });
39297
39435
  const props = __props;
39298
39436
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
@@ -39522,10 +39660,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
39522
39660
  emits: ["update:modelValue"],
39523
39661
  setup(__props, { expose: __expose, emit: __emit }) {
39524
39662
  const DynamicRenderInnerAsync = defineAsyncComponent(() => {
39525
- return import("./inner-DFtar3t3.js").then((n) => n.i);
39663
+ return import("./inner-DyK5h15a.js").then((n) => n.i);
39526
39664
  });
39527
39665
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
39528
- return import("./inner-DFtar3t3.js").then((n) => n.f);
39666
+ return import("./inner-DyK5h15a.js").then((n) => n.f);
39529
39667
  });
39530
39668
  const props = __props;
39531
39669
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
@@ -44334,31 +44472,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
44334
44472
  __publicField(this, "editor", ref());
44335
44473
  onMounted(() => {
44336
44474
  if (props.language === "json") {
44337
- const currModule = import("./mode-json-BUTeg41L.js").then((n) => n.m);
44475
+ const currModule = import("./mode-json-C0xziyfR.js").then((n) => n.m);
44338
44476
  currModule.then((res) => {
44339
44477
  ace.config.setModuleUrl("ace/mode/json", res);
44340
44478
  this.init();
44341
44479
  });
44342
44480
  } else if (props.language === "javascript") {
44343
- const currModule = import("./mode-javascript-D_IpfLZz.js").then((n) => n.m);
44481
+ const currModule = import("./mode-javascript-C9rw2J37.js").then((n) => n.m);
44344
44482
  currModule.then((res) => {
44345
44483
  ace.config.setModuleUrl("ace/mode/javascript", res);
44346
44484
  this.init();
44347
44485
  });
44348
44486
  } else if (props.language === "csharp") {
44349
- const currModule = import("./mode-csharp-Bgi1sikO.js").then((n) => n.m);
44487
+ const currModule = import("./mode-csharp-Dgq2kShz.js").then((n) => n.m);
44350
44488
  currModule.then((res) => {
44351
44489
  ace.config.setModuleUrl("ace/mode/csharp", res);
44352
44490
  this.init();
44353
44491
  });
44354
44492
  } else if (props.language === "mysql") {
44355
- const currModule = import("./mode-mysql-KHtrOxiJ.js").then((n) => n.m);
44493
+ const currModule = import("./mode-mysql-TmVyatzM.js").then((n) => n.m);
44356
44494
  currModule.then((res) => {
44357
44495
  ace.config.setModuleUrl("ace/mode/mysql", res);
44358
44496
  this.init();
44359
44497
  });
44360
44498
  } else if (props.language === "css") {
44361
- const currModule = import("./mode-css-DalADu6X.js").then((n) => n.m);
44499
+ const currModule = import("./mode-css-CScIFYQf.js").then((n) => n.m);
44362
44500
  currModule.then((res) => {
44363
44501
  ace.config.setModuleUrl("ace/mode/css", res);
44364
44502
  this.init();