slw 1.0.0-alpha.4 → 1.0.0-alpha.5

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.
@@ -1,5 +1,5 @@
1
1
  import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as x, d as S, a as L, u as N } from "./index-066ef62f.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-ae82bf80.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
8525
8525
  PictureUpload.install = (Q) => {
8526
8526
  Q.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-52333277"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_33131aad_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-33131aad"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8529
8529
  class: "slw-window-grid-container",
8530
8530
  style: { height: "100%" }
8531
8531
  }, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
@@ -8669,7 +8669,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScop
8669
8669
  }
8670
8670
  let Z = getParentRegion(), ee = null;
8671
8671
  Z != null && Z.params && (ee = Z.params.subtableSearchExParams);
8672
- const te = Object.assign({}, gridData.value.params.queryParams, queryFormData.value, ee);
8672
+ const te = Object.assign({}, queryFormData.value, ee);
8673
8673
  Object.entries(te).forEach(([se, ce]) => {
8674
8674
  var ue;
8675
8675
  if (ce == null && (queryFormData.value[se] = null), te[se] instanceof Array) {
@@ -9174,7 +9174,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScop
9174
9174
  }));
9175
9175
  });
9176
9176
  }
9177
- H && rowClickCommon(H, X);
9177
+ H ? rowClickCommon(H, X) : allCheckboxFunList && allCheckboxFunList.length > 0 && allCheckboxFunList.forEach((K) => {
9178
+ if (K && typeof K == "function")
9179
+ try {
9180
+ K(G);
9181
+ } catch (Z) {
9182
+ console.error(Z);
9183
+ }
9184
+ });
9178
9185
  }, getSelectRecord = () => {
9179
9186
  const Q = getCurRegion();
9180
9187
  return Q ? Q.getCurrentRecord() : null;
@@ -9828,6 +9835,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScop
9828
9835
  G._field_id = H, G._select_id = X;
9829
9836
  let K = await axios.post("/window/selector", $qs.stringify(G));
9830
9837
  return (Z = K == null ? void 0 : K.data) == null ? void 0 : Z.data;
9838
+ }, allCheckboxFunList = [], addAllCheckboxFun = (Q) => {
9839
+ allCheckboxFunList.push(Q);
9831
9840
  };
9832
9841
  return onMounted(async () => {
9833
9842
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9842,7 +9851,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScop
9842
9851
  size: "default",
9843
9852
  type: Q.viewType,
9844
9853
  style: Q.css,
9845
- loading: Q.btnLoad[rowIndex.value],
9854
+ loading: Q.btnLoad[rowIndex],
9846
9855
  plain: Q.plain
9847
9856
  },
9848
9857
  events: { click: toolBarButtonClick }
@@ -9865,6 +9874,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScop
9865
9874
  return te.setHours(23), te.setMinutes(59), te.setSeconds(59), ee.valueOf() > te.valueOf();
9866
9875
  };
9867
9876
  }
9877
+ }), gridData.value.params.queryParams && Object.keys(gridData.value.params.queryParams).forEach((Q) => {
9878
+ const H = Q.toLowerCase();
9879
+ queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[Q]);
9868
9880
  }), gridData.value.params.queryFormData = queryFormData.value, gridData.value.columns.forEach((Q) => {
9869
9881
  Q.hasOwnProperty("field") && !Q.hasOwnProperty("treeNode") && (Q.events.change = onFieldChange, Q.events["on-change"] = onFieldChange, Q.events.keyup = onFieldEnter, Q.editRender.events = Q.events, Q.itemRender.events = Q.events), Q.itemRender && Q.itemRender.props._select_id && (formSelectMap.value[Q.id] = Q);
9870
9882
  }), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
@@ -10141,7 +10153,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_52333277_lang = "", _withScop
10141
10153
  ]);
10142
10154
  };
10143
10155
  }
10144
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-52333277"]]);
10156
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-33131aad"]]);
10145
10157
  WindowGrid.name = "slw-window-grid";
10146
10158
  WindowGrid.install = (Q) => {
10147
10159
  Q.component(WindowGrid.name, WindowGrid);
@@ -42453,7 +42465,7 @@ var js = js$1.exports;
42453
42465
  })(Q);
42454
42466
  })(js$1);
42455
42467
  var jsExports = js$1.exports;
42456
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_3b9acef8_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-3b9acef8"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kX = {
42468
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_dd626eb7_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-dd626eb7"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kX = {
42457
42469
  key: 0,
42458
42470
  class: "form-title"
42459
42471
  }, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$d = {
@@ -42544,7 +42556,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42544
42556
  for (let X = 0; X < H.length; X++) {
42545
42557
  let G = formConfig.value.editRules[H[X]], K = formConfig.value.columns.filter((Z) => Z.field == H[X])[0];
42546
42558
  if (K) {
42547
- (K.dataType == "TABLE" || K.dataType == "LIST") && (G[0].validator = ({ itemValue: ee, rule: te, rules: ne, data: oe, field: re }) => {
42559
+ G[0].required && (K.dataType == "TABLE" || K.dataType == "LIST") && (G[0].validator = ({ itemValue: ee, rule: te, rules: ne, data: oe, field: re }) => {
42548
42560
  if (!oe[re] || oe[re].length == 0)
42549
42561
  return new Error(te.message);
42550
42562
  });
@@ -42607,12 +42619,17 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42607
42619
  }), computeOnlyShowBtn = computed(() => {
42608
42620
  let Q = !1;
42609
42621
  return formConfig.value.columns.filter((X) => X.displayForm).length == 0 && (Q = !0), Q;
42610
- });
42622
+ }), computeTitleWidth = computed(() => formConfig.value.params.formTitleWidth ? formConfig.value.params.formTitleWidth : "115"), computeItemGroup = computed(() => (Q) => formConfig.value.params.setColumnsGroup ? Q.children : formConfig.value.columns);
42611
42623
  onMounted(async () => {
42612
42624
  var H, X, G, K;
42613
42625
  if (formConfig.value.params.linkUrl)
42614
42626
  return;
42615
- formLoading.value = !0, formConfig.value.columns.forEach((Z, ee, te) => {
42627
+ formLoading.value = !0, formConfig.value.params.columnsGroup = [
42628
+ {
42629
+ title: "",
42630
+ children: []
42631
+ }
42632
+ ], formConfig.value.columns.forEach((Z, ee, te) => {
42616
42633
  Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[Z.field] = []);
42617
42634
  }), await evalEvent(formConfig.value.params.formEvents.dataInit);
42618
42635
  let Q = !0;
@@ -42694,7 +42711,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42694
42711
  for (let X in Object.values(H)) {
42695
42712
  const G = Object.values(H)[X];
42696
42713
  setTimeout(() => {
42697
- $message.error(G[0][0].rule.$options.message);
42714
+ $message.error(G[0][0].rule.message);
42698
42715
  }, X * 800);
42699
42716
  }
42700
42717
  emits("saveLoadingChange");
@@ -43052,11 +43069,29 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43052
43069
  X && (X.itemRender.name = H, H == "ElCheckbox" && nextTick(() => {
43053
43070
  formData.value[Q.toUpperCase()] = [];
43054
43071
  }));
43072
+ }, setTitleWidth = (Q) => {
43073
+ formConfig.value.params.formTitleWidth = Q;
43074
+ }, setFormGroup = (Q) => {
43075
+ if (Q instanceof Array && Q.length > 0) {
43076
+ formConfig.value.params.setColumnsGroup = !0;
43077
+ let H = Q.reduce((X, G) => X.concat(G.children), []);
43078
+ formConfig.value.columns.forEach((X) => {
43079
+ X.field && !H.includes(X.field.toLowerCase()) && formConfig.value.params.columnsGroup[0].children.push(X);
43080
+ }), Q.forEach((X) => {
43081
+ let G = {
43082
+ title: X.title,
43083
+ children: []
43084
+ };
43085
+ formConfig.value.columns.forEach((K) => {
43086
+ K.field && X.children.includes(K.field.toLowerCase()) && G.children.push(K);
43087
+ }), formConfig.value.params.columnsGroup.push(G);
43088
+ });
43089
+ }
43055
43090
  }, throwFunction = (Q) => {
43056
43091
  Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X), Q.checkSubmitData = () => checkSubmitData(), Q.searchData = (H) => searchData(H), Q.displayFormItem = (H, X) => displayFormItem(H, X), Q.reset = () => reset(), Q.clearData = () => clearData(), Q.setFieldName = (H, X) => setFieldName(H, X), Q.setFormItemProperty = (H, X, G) => setFormItemProperty(H, X, G), Q.getTableFieldSelectData = (H) => getTableFieldSelectData(H), Q.setFormSelectOption = (H, X) => setFormSelectOption(H, X);
43057
43092
  };
43058
43093
  return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
43059
- const X = resolveComponent("el-icon"), G = resolveComponent("el-button"), K = resolveComponent("el-input"), Z = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
43094
+ const X = resolveComponent("el-icon"), G = resolveComponent("el-button"), K = resolveComponent("el-input"), Z = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form-group"), te = resolveComponent("vxe-form"), ne = resolveComponent("el-dialog");
43060
43095
  return openBlock(), createElementBlock("div", _hoisted_1$l1, [
43061
43096
  unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
43062
43097
  key: 0,
@@ -43069,20 +43104,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43069
43104
  class: "form-buttons",
43070
43105
  style: normalizeStyle(computeOptBtnStyle.value("top"))
43071
43106
  }, [
43072
- (openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ne) => (openBlock(), createBlock(G, {
43073
- key: ne.id,
43107
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (oe) => (openBlock(), createBlock(G, {
43108
+ key: oe.id,
43074
43109
  "auto-insert-space": "",
43075
- style: normalizeStyle("margin: 2px 2px 2px 2px;" + ne.css),
43110
+ style: normalizeStyle("margin: 2px 2px 2px 2px;" + oe.css),
43076
43111
  type: "primary",
43077
- loading: ne.loading,
43078
- onClick: (oe) => btnClickFun(ne)
43112
+ loading: oe.loading,
43113
+ onClick: (re) => btnClickFun(oe)
43079
43114
  }, createSlots({
43080
43115
  default: withCtx(() => [
43081
- createTextVNode(" " + toDisplayString(unref($T)(ne.name)), 1)
43116
+ createTextVNode(" " + toDisplayString(unref($T)(oe.name)), 1)
43082
43117
  ]),
43083
43118
  _: 2
43084
43119
  }, [
43085
- ne.iconComponent ? {
43120
+ oe.iconComponent ? {
43086
43121
  name: "icon",
43087
43122
  fn: withCtx(() => [
43088
43123
  createVNode(X, {
@@ -43090,7 +43125,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43090
43125
  style: { verticalAlign: "middle" }
43091
43126
  }, {
43092
43127
  default: withCtx(() => [
43093
- (openBlock(), createBlock(resolveDynamicComponent(ne.iconComponent)))
43128
+ (openBlock(), createBlock(resolveDynamicComponent(oe.iconComponent)))
43094
43129
  ]),
43095
43130
  _: 2
43096
43131
  }, 1024)
@@ -43100,165 +43135,176 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43100
43135
  ]), 1032, ["style", "loading", "onClick"]))), 128))
43101
43136
  ], 4)) : createCommentVNode("", !0)
43102
43137
  ], 4)) : createCommentVNode("", !0),
43103
- createVNode(ee, {
43138
+ createVNode(te, {
43104
43139
  ref_key: "form",
43105
43140
  ref: form,
43106
43141
  data: unref(formData),
43107
43142
  rules: editRules.value,
43108
43143
  loading: unref(formLoading),
43109
43144
  "title-align": "right",
43110
- "title-width": "115",
43145
+ "title-width": computeTitleWidth.value,
43111
43146
  class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
43112
43147
  }, {
43113
43148
  default: withCtx(() => [
43114
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (ne) => (openBlock(), createElementBlock(Fragment, {
43115
- key: ne.title
43116
- }, [
43117
- ne.colType !== "showInGrid" ? (openBlock(), createBlock(Z, {
43118
- key: 0,
43119
- field: ne.field,
43120
- title: computeItemTitle.value(ne.title),
43121
- "title-overflow": "tooltip",
43122
- span: computeSpan.value(ne),
43123
- "item-render": ne.itemRender,
43124
- "title-prefix": ne.titlePrefix,
43125
- visible: ne.displayForm,
43126
- style: normalizeStyle(ne.style),
43127
- "class-name": computeItemClass.value(ne),
43128
- "visible-method": ne.editRender.props.displayLogic ? displayLogicEvent : null
43129
- }, createSlots({ _: 2 }, [
43130
- ne.dataType === "EDITOR" ? {
43131
- name: "default",
43132
- fn: withCtx(() => [
43133
- createVNode(unref(T$2), {
43134
- modelValue: unref(formData)[ne.field],
43135
- "onUpdate:modelValue": (oe) => unref(formData)[ne.field] = oe,
43136
- extensions: [getCodeLanguagePlugin(ne.language), unref(EditorView).lineWrapping],
43137
- onReady: (oe) => handleReady(ne.field, oe),
43138
- onFocus: (oe) => isRef(editorFocusField) ? editorFocusField.value = ne.field : editorFocusField = ne.field,
43139
- "auto-destroy": ""
43140
- }, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
43141
- createElementVNode("div", {
43142
- class: "editor-operation-btn",
43143
- style: normalizeStyle(computeEditorBtnStyle.value(ne.field))
43144
- }, [
43145
- ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
43146
- key: 0,
43147
- title: "美化",
43148
- class: "iconfont icon-magic-stick",
43149
- onClick: (oe) => onEditorBtnClick(ne, "beautify")
43150
- }, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
43151
- createElementVNode("i", {
43152
- title: "全选",
43153
- class: "iconfont icon-check-square",
43154
- onClick: (oe) => onEditorBtnClick(ne, "checkAll")
43155
- }, null, 8, _hoisted_4$ax),
43156
- createElementVNode("i", {
43157
- title: "复制",
43158
- class: "iconfont icon-document-copy",
43159
- onClick: (oe) => onEditorBtnClick(ne, "copy")
43160
- }, null, 8, _hoisted_5$4X),
43161
- createElementVNode("i", {
43162
- title: "清空",
43163
- class: "iconfont icon-clear",
43164
- onClick: (oe) => onEditorBtnClick(ne, "clear")
43165
- }, null, 8, _hoisted_6$20),
43166
- ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
43167
- key: 1,
43168
- title: "组合式API转换",
43169
- class: "iconfont icon-swap",
43170
- onClick: (oe) => onEditorBtnClick(ne, "swap")
43171
- }, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
43172
- ], 4)
43173
- ]),
43174
- key: "0"
43175
- } : ne.dataType === "STRING" && ne.canScan === !0 ? {
43176
- name: "default",
43177
- fn: withCtx(() => [
43178
- createVNode(K, {
43179
- modelValue: unref(formData)[ne.field],
43180
- "onUpdate:modelValue": (oe) => unref(formData)[ne.field] = oe,
43181
- onKeyup: (oe) => onIconInputEnter(ne, oe),
43182
- onChange: (oe) => onIconInputChange(ne)
43183
- }, {
43184
- suffix: withCtx(() => [
43185
- createElementVNode("i", {
43186
- class: "iconfont icon-scan1",
43187
- onClick: (oe) => onScanIconClick(ne),
43188
- style: { cursor: "pointer" }
43189
- }, null, 8, ["onClick"])
43190
- ]),
43191
- _: 2
43192
- }, 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43193
- ]),
43194
- key: "1"
43195
- } : ne.itemRender.props.suffixIconfont || ne.itemRender.props.prefixIconfont ? {
43196
- name: "default",
43197
- fn: withCtx(() => [
43198
- createVNode(K, {
43199
- modelValue: unref(formData)[ne.field],
43200
- "onUpdate:modelValue": (oe) => unref(formData)[ne.field] = oe,
43201
- clearable: !1,
43202
- onKeyup: (oe) => onIconInputEnter(ne, oe),
43203
- onChange: (oe) => onIconInputChange(ne)
43204
- }, createSlots({ _: 2 }, [
43205
- ne.itemRender.props.suffixIconfont ? {
43206
- name: "suffix",
43207
- fn: withCtx(() => [
43149
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).params.columnsGroup, (oe) => (openBlock(), createBlock(ee, {
43150
+ span: "24",
43151
+ title: oe.title,
43152
+ "content-class-name": oe.title ? "vxe-form--group-content-border" : "",
43153
+ "title-bold": "",
43154
+ vertical: ""
43155
+ }, {
43156
+ default: withCtx(() => [
43157
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(computeItemGroup.value(oe), (re) => (openBlock(), createElementBlock(Fragment, {
43158
+ key: re.title
43159
+ }, [
43160
+ re.colType !== "showInGrid" ? (openBlock(), createBlock(Z, {
43161
+ key: 0,
43162
+ field: re.field,
43163
+ title: computeItemTitle.value(re.title),
43164
+ "title-overflow": "tooltip",
43165
+ span: computeSpan.value(re),
43166
+ "item-render": re.itemRender,
43167
+ "title-prefix": re.titlePrefix,
43168
+ visible: re.displayForm,
43169
+ style: normalizeStyle(re.style),
43170
+ "class-name": computeItemClass.value(re),
43171
+ "visible-method": re.editRender.props.displayLogic ? displayLogicEvent : null
43172
+ }, createSlots({ _: 2 }, [
43173
+ re.dataType === "EDITOR" ? {
43174
+ name: "default",
43175
+ fn: withCtx(() => [
43176
+ createVNode(unref(T$2), {
43177
+ modelValue: unref(formData)[re.field],
43178
+ "onUpdate:modelValue": (ae) => unref(formData)[re.field] = ae,
43179
+ extensions: [getCodeLanguagePlugin(re.language), unref(EditorView).lineWrapping],
43180
+ onReady: (ae) => handleReady(re.field, ae),
43181
+ onFocus: (ae) => isRef(editorFocusField) ? editorFocusField.value = re.field : editorFocusField = re.field,
43182
+ "auto-destroy": ""
43183
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
43184
+ createElementVNode("div", {
43185
+ class: "editor-operation-btn",
43186
+ style: normalizeStyle(computeEditorBtnStyle.value(re.field))
43187
+ }, [
43188
+ re.language == "javascript" ? (openBlock(), createElementBlock("i", {
43189
+ key: 0,
43190
+ title: "美化",
43191
+ class: "iconfont icon-magic-stick",
43192
+ onClick: (ae) => onEditorBtnClick(re, "beautify")
43193
+ }, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
43208
43194
  createElementVNode("i", {
43209
- class: normalizeClass("iconfont " + ne.itemRender.props.suffixIconfont),
43210
- onClick: (oe) => onIconClick(ne),
43211
- style: { cursor: "pointer" }
43212
- }, null, 10, ["onClick"])
43213
- ]),
43214
- key: "0"
43215
- } : ne.itemRender.props.prefixIconfont ? {
43216
- name: "prefix",
43217
- fn: withCtx(() => [
43195
+ title: "全选",
43196
+ class: "iconfont icon-check-square",
43197
+ onClick: (ae) => onEditorBtnClick(re, "checkAll")
43198
+ }, null, 8, _hoisted_4$ax),
43218
43199
  createElementVNode("i", {
43219
- class: normalizeClass("iconfont " + ne.itemRender.props.prefixIconfont),
43220
- onClick: (oe) => onIconClick(ne),
43221
- style: { cursor: "pointer" }
43222
- }, null, 10, ["onClick"])
43223
- ]),
43224
- key: "1"
43225
- } : void 0
43226
- ]), 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43227
- ]),
43228
- key: "2"
43229
- } : ne.dataType === "IMG" ? {
43230
- name: "default",
43231
- fn: withCtx(() => [
43232
- createVNode(unref(PictureUpload), {
43233
- uploadConfig: unref(uploadConfig),
43234
- filePreviewList: unref(fieldPreviewMap)[ne.field],
43235
- "onUpdate:filePreviewList": (oe) => unref(fieldPreviewMap)[ne.field] = oe
43236
- }, null, 8, ["uploadConfig", "filePreviewList", "onUpdate:filePreviewList"])
43237
- ]),
43238
- key: "3"
43239
- } : void 0
43240
- ]), 1032, ["field", "title", "span", "item-render", "title-prefix", "visible", "style", "class-name", "visible-method"])) : createCommentVNode("", !0)
43241
- ], 64))), 128)),
43200
+ title: "复制",
43201
+ class: "iconfont icon-document-copy",
43202
+ onClick: (ae) => onEditorBtnClick(re, "copy")
43203
+ }, null, 8, _hoisted_5$4X),
43204
+ createElementVNode("i", {
43205
+ title: "清空",
43206
+ class: "iconfont icon-clear",
43207
+ onClick: (ae) => onEditorBtnClick(re, "clear")
43208
+ }, null, 8, _hoisted_6$20),
43209
+ re.language == "javascript" ? (openBlock(), createElementBlock("i", {
43210
+ key: 1,
43211
+ title: "组合式API转换",
43212
+ class: "iconfont icon-swap",
43213
+ onClick: (ae) => onEditorBtnClick(re, "swap")
43214
+ }, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
43215
+ ], 4)
43216
+ ]),
43217
+ key: "0"
43218
+ } : re.dataType === "STRING" && re.canScan === !0 ? {
43219
+ name: "default",
43220
+ fn: withCtx(() => [
43221
+ createVNode(K, {
43222
+ modelValue: unref(formData)[re.field],
43223
+ "onUpdate:modelValue": (ae) => unref(formData)[re.field] = ae,
43224
+ onKeyup: (ae) => onIconInputEnter(re, ae),
43225
+ onChange: (ae) => onIconInputChange(re)
43226
+ }, {
43227
+ suffix: withCtx(() => [
43228
+ createElementVNode("i", {
43229
+ class: "iconfont icon-scan1",
43230
+ onClick: (ae) => onScanIconClick(re),
43231
+ style: { cursor: "pointer" }
43232
+ }, null, 8, ["onClick"])
43233
+ ]),
43234
+ _: 2
43235
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43236
+ ]),
43237
+ key: "1"
43238
+ } : re.itemRender.props.suffixIconfont || re.itemRender.props.prefixIconfont ? {
43239
+ name: "default",
43240
+ fn: withCtx(() => [
43241
+ createVNode(K, {
43242
+ modelValue: unref(formData)[re.field],
43243
+ "onUpdate:modelValue": (ae) => unref(formData)[re.field] = ae,
43244
+ clearable: !1,
43245
+ onKeyup: (ae) => onIconInputEnter(re, ae),
43246
+ onChange: (ae) => onIconInputChange(re)
43247
+ }, createSlots({ _: 2 }, [
43248
+ re.itemRender.props.suffixIconfont ? {
43249
+ name: "suffix",
43250
+ fn: withCtx(() => [
43251
+ createElementVNode("i", {
43252
+ class: normalizeClass("iconfont " + re.itemRender.props.suffixIconfont),
43253
+ onClick: (ae) => onIconClick(re),
43254
+ style: { cursor: "pointer" }
43255
+ }, null, 10, ["onClick"])
43256
+ ]),
43257
+ key: "0"
43258
+ } : re.itemRender.props.prefixIconfont ? {
43259
+ name: "prefix",
43260
+ fn: withCtx(() => [
43261
+ createElementVNode("i", {
43262
+ class: normalizeClass("iconfont " + re.itemRender.props.prefixIconfont),
43263
+ onClick: (ae) => onIconClick(re),
43264
+ style: { cursor: "pointer" }
43265
+ }, null, 10, ["onClick"])
43266
+ ]),
43267
+ key: "1"
43268
+ } : void 0
43269
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43270
+ ]),
43271
+ key: "2"
43272
+ } : re.dataType === "IMG" ? {
43273
+ name: "default",
43274
+ fn: withCtx(() => [
43275
+ createVNode(unref(PictureUpload), {
43276
+ uploadConfig: unref(uploadConfig),
43277
+ filePreviewList: unref(fieldPreviewMap)[re.field],
43278
+ "onUpdate:filePreviewList": (ae) => unref(fieldPreviewMap)[re.field] = ae
43279
+ }, null, 8, ["uploadConfig", "filePreviewList", "onUpdate:filePreviewList"])
43280
+ ]),
43281
+ key: "3"
43282
+ } : void 0
43283
+ ]), 1032, ["field", "title", "span", "item-render", "title-prefix", "visible", "style", "class-name", "visible-method"])) : createCommentVNode("", !0)
43284
+ ], 64))), 128))
43285
+ ]),
43286
+ _: 2
43287
+ }, 1032, ["title", "content-class-name"]))), 256)),
43242
43288
  unref(formConfig).type === "FORM" && buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("BOTTOM") ? (openBlock(), createBlock(Z, {
43243
43289
  key: 0,
43244
43290
  align: computeOptBtnStyle.value("bottom"),
43245
43291
  span: "24"
43246
43292
  }, {
43247
43293
  default: withCtx(() => [
43248
- (openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ne) => (openBlock(), createBlock(G, {
43249
- key: ne.id,
43294
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (oe) => (openBlock(), createBlock(G, {
43295
+ key: oe.id,
43250
43296
  "auto-insert-space": "",
43251
- style: normalizeStyle("margin: 2px 2px 2px 2px;" + ne.css),
43297
+ style: normalizeStyle("margin: 2px 2px 2px 2px;" + oe.css),
43252
43298
  type: "primary",
43253
- loading: ne.loading,
43254
- onClick: (oe) => btnClickFun(ne)
43299
+ loading: oe.loading,
43300
+ onClick: (re) => btnClickFun(oe)
43255
43301
  }, createSlots({
43256
43302
  default: withCtx(() => [
43257
- createTextVNode(" " + toDisplayString(unref($T)(ne.name)), 1)
43303
+ createTextVNode(" " + toDisplayString(unref($T)(oe.name)), 1)
43258
43304
  ]),
43259
43305
  _: 2
43260
43306
  }, [
43261
- ne.iconComponent ? {
43307
+ oe.iconComponent ? {
43262
43308
  name: "icon",
43263
43309
  fn: withCtx(() => [
43264
43310
  createVNode(X, {
@@ -43266,7 +43312,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43266
43312
  style: { verticalAlign: "middle" }
43267
43313
  }, {
43268
43314
  default: withCtx(() => [
43269
- (openBlock(), createBlock(resolveDynamicComponent(ne.iconComponent)))
43315
+ (openBlock(), createBlock(resolveDynamicComponent(oe.iconComponent)))
43270
43316
  ]),
43271
43317
  _: 2
43272
43318
  }, 1024)
@@ -43279,12 +43325,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43279
43325
  }, 8, ["align"])) : createCommentVNode("", !0)
43280
43326
  ]),
43281
43327
  _: 1
43282
- }, 8, ["data", "rules", "loading", "class"]),
43283
- createVNode(te, {
43328
+ }, 8, ["data", "rules", "loading", "title-width", "class"]),
43329
+ createVNode(ne, {
43284
43330
  ref: "pictureUploadModal",
43285
43331
  width: "20%",
43286
43332
  modelValue: unref(uploadConfig).show,
43287
- "onUpdate:modelValue": H[0] || (H[0] = (ne) => unref(uploadConfig).show = ne),
43333
+ "onUpdate:modelValue": H[0] || (H[0] = (oe) => unref(uploadConfig).show = oe),
43288
43334
  "z-index": 1e3,
43289
43335
  draggable: "",
43290
43336
  "append-to-body": "",
@@ -43300,7 +43346,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43300
43346
  ]);
43301
43347
  };
43302
43348
  }
43303
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3b9acef8"]]);
43349
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dd626eb7"]]);
43304
43350
  WindowForm.name = "slw-window-form";
43305
43351
  WindowForm.install = (Q) => {
43306
43352
  Q.component(WindowForm.name, WindowForm);
@@ -59076,7 +59122,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59076
59122
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59077
59123
  setup(Q, { emit: H }) {
59078
59124
  const X = Q, G = defineAsyncComponent(
59079
- () => import("./index-0266a427.js")
59125
+ () => import("./index-30bdf62f.js")
59080
59126
  );
59081
59127
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref(0), oe = ref(null);
59082
59128
  oe.value = createDesigner();
@@ -165447,7 +165493,7 @@ function reConsole() {
165447
165493
  }
165448
165494
  }
165449
165495
  console.info(
165450
- `%cSLW %cVer 1.0.0-alpha.4%c
165496
+ `%cSLW %cVer 1.0.0-alpha.5%c
165451
165497
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
165452
165498
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
165453
165499
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-066ef62f.js";
1
+ import { i as m } from "./index-ae82bf80.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {