slw 1.0.0-beta.17.1 → 1.0.0-beta.17.3

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-e6d9d97d.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-fcf1053c.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -53257,7 +53257,7 @@ WindowCharts.name = "slw-window-charts";
53257
53257
  WindowCharts.install = (G) => {
53258
53258
  G.component(WindowCharts.name, WindowCharts);
53259
53259
  };
53260
- const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-97bbd759"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53260
+ const windowGrid_vue_vue_type_style_index_0_scoped_e0ef89f5_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-e0ef89f5"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53261
53261
  class: "slw-window-grid-container",
53262
53262
  style: { height: "100%" }
53263
53263
  }, _hoisted_2$k_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$h_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$aA = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4_ = [
@@ -53272,8 +53272,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
53272
53272
  style: { cursor: "pointer", padding: "0" }
53273
53273
  }, null, -1)), _hoisted_17 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_18 = {
53274
53274
  key: 0,
53275
- class: "pager-left-wrapper"
53276
- }, _hoisted_19 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { style: { width: "45px", "text-align": "left" } }, "全量", -1)), _hoisted_20 = { style: { padding: "20px 0" } }, _sfc_main$g = {
53275
+ class: "pager-left-wrapper",
53276
+ title: "全量数据全选/取消"
53277
+ }, _hoisted_19 = { style: { padding: "20px 0" } }, _sfc_main$g = {
53277
53278
  __name: "window-grid",
53278
53279
  props: {
53279
53280
  gridData: {
@@ -53576,7 +53577,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
53576
53577
  }
53577
53578
  ((he = (de = checkedGridOptions.value) == null ? void 0 : de.data) == null ? void 0 : he.length) > 0 && checkedGridOptions.value.data.forEach((fe) => {
53578
53579
  getCurRegion().setCheckboxRow(fe, !0);
53579
- }), pagerToolChecked.value && gridData.value.params.fullCheckboxLinkage && ce.data.data.forEach((fe) => {
53580
+ }), pagerToolChecked.value && ce.data.data.forEach((fe) => {
53580
53581
  getCurRegion().setCheckboxRow(fe, !0);
53581
53582
  }), rowClickCommon(ue, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((fe) => {
53582
53583
  if (fe && typeof fe == "function")
@@ -54025,16 +54026,13 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
54025
54026
  });
54026
54027
  }
54027
54028
  if (H)
54028
- G || (removeRowEvent(H), gridData.value.params.fullCheckboxLinkage && (pagerToolChecked.value = !1)), rowClickCommon(H, X);
54029
+ G || removeRowEvent(H), rowClickCommon(H, X);
54029
54030
  else {
54030
- if (!G) {
54031
- if (((Z = (K = checkedGridOptions.value) == null ? void 0 : K.data) == null ? void 0 : Z.length) > 0) {
54032
- const { data: te } = curRegion.value.getProxyInfo();
54033
- te.forEach((ne) => {
54034
- removeRowEvent(ne);
54035
- });
54036
- }
54037
- gridData.value.params.fullCheckboxLinkage && (pagerToolChecked.value = !1);
54031
+ if (!G && ((Z = (K = checkedGridOptions.value) == null ? void 0 : K.data) == null ? void 0 : Z.length) > 0) {
54032
+ const { data: te } = curRegion.value.getProxyInfo();
54033
+ te.forEach((ne) => {
54034
+ removeRowEvent(ne);
54035
+ });
54038
54036
  }
54039
54037
  allCheckboxFunList && allCheckboxFunList.length > 0 && allCheckboxFunList.forEach((te) => {
54040
54038
  if (te && typeof te == "function")
@@ -54815,7 +54813,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
54815
54813
  }, removeAllRowEvent = () => {
54816
54814
  getCheckedReserveData().forEach((H) => {
54817
54815
  removeRowEvent(H);
54818
- }), pagerToolChecked.value = !1;
54816
+ });
54819
54817
  };
54820
54818
  let checkedGridShowCols = ref$2(null);
54821
54819
  const setCheckedGridShowCols = (G) => {
@@ -54824,16 +54822,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
54824
54822
  var X;
54825
54823
  const H = await axios.post("/window/data/" + gridData.value.params.datasourceCode, G);
54826
54824
  return ((X = H == null ? void 0 : H.data) == null ? void 0 : X.data) || [];
54825
+ }, headerPagerToolCheckedClick = () => {
54826
+ pagerToolChecked.value = !pagerToolChecked.value, headerPagerToolCheckedChange({ checked: pagerToolChecked.value });
54827
54827
  }, headerPagerToolCheckedChange = async ({ checked: G, $event: H }) => {
54828
- if (gridData.value.params.fullCheckboxLinkage) {
54829
- let X = getCurRegion();
54830
- const { data: Q } = curRegion.value.getProxyInfo();
54831
- G ? Q.forEach((K) => {
54832
- X.setCheckboxRow(K, !0);
54833
- }) : Q.forEach((K) => {
54834
- removeRowEvent(K);
54835
- });
54836
- }
54828
+ let X = getCurRegion();
54829
+ const { data: Q } = curRegion.value.getProxyInfo();
54830
+ G ? Q.forEach((K) => {
54831
+ X.setCheckboxRow(K, !0);
54832
+ }) : (Q.forEach((K) => {
54833
+ removeRowEvent(K);
54834
+ }), removeAllRowEvent());
54837
54835
  }, remoteMethod = async (G, H, X) => {
54838
54836
  let Q = [], K = await axios.post(
54839
54837
  "/window/selector",
@@ -54895,7 +54893,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
54895
54893
  queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[G]);
54896
54894
  }), gridData.value.columns.forEach((G) => {
54897
54895
  G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (G.events.change = onFieldChange, G.events["on-change"] = onFieldChange, G.events.keyup = onFieldEnter, G.editRender.events = G.events, G.itemRender.events = G.events), G.itemRender && G.itemRender.props._select_id && (formSelectMap.value[G.id] = G);
54898
- }), 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, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
54896
+ }), 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, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), setTimeout(() => {
54897
+ let G = getCurRegion().$el.querySelector(".vxe-table--main-wrapper .vxe-table--header-wrapper .vxe-cell--checkbox");
54898
+ G.title = "当页全选/取消";
54899
+ }, 1500), curRegion.value.closeModal = () => {
54899
54900
  closeModal && closeModal();
54900
54901
  }, curRegion.value.closeDrawer = () => {
54901
54902
  closeDrawer();
@@ -55183,9 +55184,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
55183
55184
  var fe;
55184
55185
  return [
55185
55186
  (fe = unref(gridData).pagerConfig.slots) != null && fe.left ? (openBlock(), createElementBlock("div", _hoisted_18, [
55186
- _hoisted_19,
55187
+ createElementVNode("span", {
55188
+ style: { width: "45px", "text-align": "center", background: "#409eff", color: "#fff", "border-radius": "5px", cursor: "pointer" },
55189
+ onClick: headerPagerToolCheckedClick
55190
+ }, " 全选 "),
55187
55191
  createVNode$1(se, {
55188
- title: "全量数据全选/取消",
55189
55192
  class: "checkbox-box",
55190
55193
  modelValue: unref(pagerToolChecked),
55191
55194
  "onUpdate:modelValue": H[1] || (H[1] = (pe) => isRef(pagerToolChecked) ? pagerToolChecked.value = pe : pagerToolChecked = pe),
@@ -55252,7 +55255,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
55252
55255
  "on-success": importSuccess
55253
55256
  }, {
55254
55257
  default: withCtx(() => [
55255
- createElementVNode("div", _hoisted_20, [
55258
+ createElementVNode("div", _hoisted_19, [
55256
55259
  createVNode$1(le, { width: 50 }),
55257
55260
  createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
55258
55261
  ])
@@ -55304,12 +55307,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_97bbd759_lang = "", _withScop
55304
55307
  ]);
55305
55308
  };
55306
55309
  }
55307
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-97bbd759"]]);
55310
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-e0ef89f5"]]);
55308
55311
  WindowGrid.name = "slw-window-grid";
55309
55312
  WindowGrid.install = (G) => {
55310
55313
  G.component(WindowGrid.name, WindowGrid);
55311
55314
  };
55312
- const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScopeId$8 = (G) => (pushScopeId("data-v-217c4b9f"), G = G(), popScopeId(), G), _hoisted_1$l2 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("div", { class: "el-upload__tip" }, "大小不超过20MB的文件.", -1)), _hoisted_2$kZ = { class: "el-upload-list el-upload-list--text" }, _hoisted_3$hZ = {
55315
+ const fileUpload_vue_vue_type_style_index_0_scoped_b6b5a57d_lang = "", _withScopeId$8 = (G) => (pushScopeId("data-v-b6b5a57d"), G = G(), popScopeId(), G), _hoisted_1$l2 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("div", { class: "el-upload__tip" }, "大小不超过20MB的文件.", -1)), _hoisted_2$kZ = { class: "el-upload-list el-upload-list--text" }, _hoisted_3$hZ = {
55313
55316
  class: "el-upload-list__item is-success",
55314
55317
  tabindex: "0"
55315
55318
  }, _hoisted_4$az = {
@@ -55329,21 +55332,24 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55329
55332
  },
55330
55333
  filePreviewList: {
55331
55334
  type: Array
55335
+ },
55336
+ fileFormData: {
55337
+ type: Array
55332
55338
  }
55333
55339
  },
55334
55340
  emits: ["update:filePreviewList"],
55335
55341
  setup(G, { emit: H }) {
55336
55342
  const X = G, Q = inject("$httpHeaders"), K = inject("$vxeMessage"), Z = inject("$axios"), ee = inject("$qs"), te = inject("$t"), ne = inject("$vxeConfirm");
55337
- let re = ref$2(), oe = ref$2(`${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/upload/`), ae = useVModel$1(X, "filePreviewList", H), se = ref$2({ dataId: "", columnId: "" });
55338
- const le = computed(() => X.uploadConfig.openType == "view"), ce = (me) => {
55339
- re.value.handleRemove(me);
55340
- }, ue = async (me) => {
55343
+ let re = ref$2(), oe = ref$2(`${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/upload/`), ae = useVModel$1(X, "filePreviewList", H), se = useVModel$1(X, "fileFormData", H), le = ref$2({ dataId: "", columnId: "" });
55344
+ const ce = computed(() => X.uploadConfig.openType == "view"), ue = (ge) => {
55345
+ re.value.handleRemove(ge);
55346
+ }, de = async (ge) => {
55341
55347
  if (await ne(te("确定删除?"), void 0, { zIndex: 3e3 }) === "confirm")
55342
- Z.post(`/dataFile/delete/${me.id}`).then((ve) => {
55343
- if (ve.data.result) {
55344
- let we = ae.value.findIndex(($e) => $e.id == me.id);
55345
- ae.value.splice(we, 1), K({
55346
- content: ve.data.msg,
55348
+ Z.post(`/dataFile/delete/${ge.id}`).then((we) => {
55349
+ if (we.data.result) {
55350
+ let $e = se.value.findIndex((Se) => Se == ge.id);
55351
+ se.value.splice($e, 1), K({
55352
+ content: we.data.msg,
55347
55353
  status: "success",
55348
55354
  zIndex: 3e3
55349
55355
  });
@@ -55351,9 +55357,9 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55351
55357
  });
55352
55358
  else
55353
55359
  return !1;
55354
- }, de = (me) => {
55355
- ne(te("确定下载?"), void 0, { zIndex: 3e3 }).then((ge) => {
55356
- ge === "confirm" && Z.export(`/dataFile/download/${me.id}`).then((ve) => {
55360
+ }, he = (ge) => {
55361
+ ne(te("确定下载?"), void 0, { zIndex: 3e3 }).then((ve) => {
55362
+ ve === "confirm" && Z.export(`/dataFile/download/${ge.id}`).then((we) => {
55357
55363
  K({
55358
55364
  content: "下载成功!",
55359
55365
  status: "success",
@@ -55361,68 +55367,68 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55361
55367
  });
55362
55368
  });
55363
55369
  });
55364
- }, he = (me, ge) => {
55370
+ }, fe = (ge, ve) => {
55365
55371
  K({
55366
55372
  content: "允许上传文件的最大数量为1",
55367
55373
  status: "error",
55368
55374
  zIndex: 3e3
55369
55375
  });
55370
- }, fe = (me, ge) => {
55371
- me.result ? (ae.value = ae.value.map((ve) => ({
55372
- id: me.id,
55373
- name: ge.name,
55374
- url: `${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/inline/${me.id}`
55375
- })), K({
55376
- content: me.msg,
55376
+ }, pe = (ge, ve) => {
55377
+ ge.result ? (ae.value = ae.value.map((we) => {
55378
+ var $e;
55379
+ return (($e = we.response) == null ? void 0 : $e.id) == ge.id ? {
55380
+ id: ge.id,
55381
+ name: ve.name
55382
+ } : we;
55383
+ }), se.value.push(ge.id), K({
55384
+ content: ge.msg,
55377
55385
  status: "success",
55378
55386
  zIndex: 3e3
55379
55387
  })) : K({
55380
- content: me.msg,
55388
+ content: ge.msg,
55381
55389
  status: "error",
55382
55390
  zIndex: 3e3
55383
55391
  });
55384
- }, pe = () => {
55385
- ae.value = [], Z.post(`/dataFile/list/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (me) => {
55386
- if (me.data.result && me.data.list.length > 0) {
55387
- let ge = [];
55388
- for (let ve of me.data.list)
55389
- ve.columnName == X.fieldId && ge.push({
55390
- id: ve.id,
55391
- name: ve.name,
55392
- columnName: ve.columnName,
55393
- url: `${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/inline/${ve.id}`
55394
- });
55395
- ae.value = ge;
55392
+ }, me = () => {
55393
+ ae.value = [], Z.post(`/dataFile/list/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (ge) => {
55394
+ if (ge.data.result && ge.data.list.length > 0) {
55395
+ let ve = [];
55396
+ for (let we of ge.data.list)
55397
+ we.columnName == X.fieldId && (ve.push({
55398
+ id: we.id,
55399
+ name: we.name,
55400
+ columnName: we.columnName
55401
+ }), se.value.push(we.id));
55402
+ ae.value = ve;
55396
55403
  }
55397
55404
  });
55398
55405
  };
55399
55406
  return watch(
55400
55407
  () => X.uploadConfig,
55401
- (me) => {
55402
- oe.value += me.regionId, X.fieldId && (se.value.columnId = X.fieldId), me.dataId && (se.value.dataId = me.dataId, pe());
55408
+ (ge) => {
55409
+ oe.value += ge.regionId, X.fieldId && (le.value.columnId = X.fieldId), ge.dataId && (le.value.dataId = ge.dataId, me());
55403
55410
  },
55404
55411
  { deep: !0, immediate: !0 }
55405
- ), (me, ge) => {
55406
- const ve = resolveComponent("el-button"), we = resolveComponent("el-upload");
55407
- return openBlock(), createBlock(we, {
55412
+ ), (ge, ve) => {
55413
+ const we = resolveComponent("el-button"), $e = resolveComponent("el-upload");
55414
+ return openBlock(), createBlock($e, {
55408
55415
  ref_key: "fileUploadRef",
55409
55416
  ref: re,
55410
55417
  "file-list": unref(ae),
55411
- "onUpdate:fileList": ge[0] || (ge[0] = ($e) => isRef(ae) ? ae.value = $e : ae = $e),
55418
+ "onUpdate:fileList": ve[0] || (ve[0] = (Se) => isRef(ae) ? ae.value = Se : ae = Se),
55412
55419
  class: "upload-file",
55413
- disabled: le.value,
55420
+ disabled: ce.value,
55414
55421
  headers: unref(Q)(),
55415
55422
  action: unref(oe),
55416
- data: unref(se),
55417
- limit: 1,
55418
- "on-exceed": he,
55419
- "on-success": fe,
55420
- "before-remove": ue
55423
+ data: unref(le),
55424
+ "on-exceed": fe,
55425
+ "on-success": pe,
55426
+ "before-remove": de
55421
55427
  }, {
55422
55428
  tip: withCtx(() => [
55423
55429
  _hoisted_1$l2
55424
55430
  ]),
55425
- file: withCtx(({ file: $e }) => [
55431
+ file: withCtx(({ file: Se }) => [
55426
55432
  createElementVNode("ul", _hoisted_2$kZ, [
55427
55433
  createElementVNode("li", _hoisted_3$hZ, [
55428
55434
  createElementVNode("div", _hoisted_4$az, [
@@ -55430,30 +55436,30 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55430
55436
  _hoisted_6$21,
55431
55437
  createElementVNode("span", {
55432
55438
  class: "el-upload-list__item-file-name",
55433
- title: $e.name
55434
- }, toDisplayString($e.name), 9, _hoisted_7$14)
55439
+ title: Se.name
55440
+ }, toDisplayString(Se.name), 9, _hoisted_7$14)
55435
55441
  ])
55436
55442
  ]),
55437
55443
  createElementVNode("i", {
55438
55444
  class: "iconfont icon-download1",
55439
55445
  style: { color: "#67c23a", cursor: "pointer" },
55440
- onClick: (Se) => de($e),
55446
+ onClick: (be) => he(Se),
55441
55447
  title: "下载"
55442
55448
  }, null, 8, _hoisted_8$H),
55443
55449
  _hoisted_9$n,
55444
55450
  createElementVNode("i", {
55445
55451
  class: "iconfont icon-close2 el-icon--close el-icon",
55446
55452
  title: "删除",
55447
- onClick: (Se) => ce($e)
55453
+ onClick: (be) => ue(Se)
55448
55454
  }, null, 8, _hoisted_10$q)
55449
55455
  ])
55450
55456
  ])
55451
55457
  ]),
55452
55458
  default: withCtx(() => [
55453
- createVNode$1(ve, {
55459
+ createVNode$1(we, {
55454
55460
  type: "primary",
55455
55461
  size: "small",
55456
- disabled: le.value
55462
+ disabled: ce.value
55457
55463
  }, {
55458
55464
  default: withCtx(() => [
55459
55465
  createTextVNode(" 上传文件 ")
@@ -55465,7 +55471,7 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55465
55471
  }, 8, ["file-list", "disabled", "headers", "action", "data"]);
55466
55472
  };
55467
55473
  }
55468
- }, FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-217c4b9f"]]);
55474
+ }, FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b6b5a57d"]]);
55469
55475
  FileUpload.name = "slw-file-upload";
55470
55476
  FileUpload.install = (G) => {
55471
55477
  G.component(FileUpload.name, FileUpload);
@@ -77660,7 +77666,7 @@ var js = js$1.exports;
77660
77666
  })(G);
77661
77667
  })(js$1);
77662
77668
  var jsExports = js$1.exports;
77663
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_3a38e6a2_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-3a38e6a2"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77669
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_ccfe5ade_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-ccfe5ade"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77664
77670
  key: 0,
77665
77671
  class: "form-title"
77666
77672
  }, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$e = {
@@ -77837,7 +77843,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77837
77843
  if (formConfig.value.formData) {
77838
77844
  formData.value = formConfig.value.formData, G = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$4.clone(formConfig.value.columns, !0));
77839
77845
  for (const ee of formConfig.value.columns)
77840
- formConfig.value.openType === "view" && ((H = ee.itemRender) == null ? void 0 : H.name) == "ElInput" && (ee.itemRender.props.readonly = !0), ee.dataType === "EDITOR" ? formData.value[ee.field] == null ? formData.value[ee.field] = "" : ee.language == "javascript" && (formData.value[ee.field] = jsExports.js_beautify(formData.value[ee.field], codeBeautifyConfig)) : (X = ee.itemRender) != null && X.name.includes("Select") && ee.itemRender.props.multiple && (formData.value[ee.field] == "" ? formData.value[ee.field] = [] : formData.value[ee.field] instanceof String && (formData.value[ee.field] = (Q = formData.value[ee.field]) == null ? void 0 : Q.split(",")));
77846
+ formConfig.value.openType === "view" && ((H = ee.itemRender) == null ? void 0 : H.name) == "ElInput" && (ee.itemRender.props.readonly = !0), ee.dataType === "EDITOR" ? formData.value[ee.field] == null ? formData.value[ee.field] = "" : ee.language == "javascript" && (formData.value[ee.field] = jsExports.js_beautify(formData.value[ee.field], codeBeautifyConfig)) : (X = ee.itemRender) != null && X.name.includes("Select") && ee.itemRender.props.multiple ? formData.value[ee.field] == "" ? formData.value[ee.field] = [] : formData.value[ee.field] instanceof String && (formData.value[ee.field] = (Q = formData.value[ee.field]) == null ? void 0 : Q.split(",")) : ee.dataType === "FILE" && (formData.value[ee.field] = []);
77841
77847
  } else {
77842
77848
  for (const ee of formConfig.value.columns)
77843
77849
  ee.type !== "seq" && ee.type !== "checkbox" && (formData.value[ee.field] = "", (K = ee.itemRender) != null && K.name.includes("Select") && ee.itemRender.props.multiple && (formData.value[ee.field] = formData.value[ee.field] == "" ? [] : (Z = formData.value[ee.field]) == null ? void 0 : Z.split(",")));
@@ -78575,9 +78581,11 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78575
78581
  createVNode$1(unref(FileUpload), {
78576
78582
  uploadConfig: unref(uploadConfig),
78577
78583
  fieldId: ae.id,
78584
+ fileFormData: unref(formData)[ae.field],
78585
+ "onUpdate:fileFormData": (se) => unref(formData)[ae.field] = se,
78578
78586
  filePreviewList: unref(fieldPreviewMap)[ae.field],
78579
78587
  "onUpdate:filePreviewList": (se) => unref(fieldPreviewMap)[ae.field] = se
78580
- }, null, 8, ["uploadConfig", "fieldId", "filePreviewList", "onUpdate:filePreviewList"])
78588
+ }, null, 8, ["uploadConfig", "fieldId", "fileFormData", "onUpdate:fileFormData", "filePreviewList", "onUpdate:filePreviewList"])
78581
78589
  ]),
78582
78590
  key: "4"
78583
78591
  } : void 0,
@@ -78676,7 +78684,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78676
78684
  ]);
78677
78685
  };
78678
78686
  }
78679
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-3a38e6a2"]]);
78687
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ccfe5ade"]]);
78680
78688
  WindowForm.name = "slw-window-form";
78681
78689
  WindowForm.install = (G) => {
78682
78690
  G.component(WindowForm.name, WindowForm);
@@ -91747,7 +91755,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
91747
91755
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
91748
91756
  setup(G, { emit: H }) {
91749
91757
  const X = G, Q = defineAsyncComponent(
91750
- () => import("./index-e2324ebb.js")
91758
+ () => import("./index-e0b31bca.js")
91751
91759
  );
91752
91760
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
91753
91761
  re.value = createDesigner();
@@ -91832,7 +91840,7 @@ WindowDesigner.name = "slw-window-designer";
91832
91840
  WindowDesigner.install = (G) => {
91833
91841
  G.component(WindowDesigner.name, WindowDesigner);
91834
91842
  };
91835
- const windowIndex_vue_vue_type_style_index_0_scoped_f16a5f64_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-f16a5f64"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91843
+ const windowIndex_vue_vue_type_style_index_0_scoped_bdfedaab_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-bdfedaab"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91836
91844
  __name: "window-index",
91837
91845
  props: {
91838
91846
  windowId: {
@@ -92662,7 +92670,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f16a5f64_lang = "", _withSco
92662
92670
  }, toggleModalLoading = () => {
92663
92671
  emit("togglePreViewLoading");
92664
92672
  }, preViewxModal = ref$2(), showPreViewClose = () => {
92665
- preViewShow.value = !1, preViewCloseFun.value && evalEvent(preViewCloseFun.value), exeEndEdit();
92673
+ preViewShow.value = !1, preViewWidth.value = null, preViewHeight.value = null, preViewCloseFun.value && evalEvent(preViewCloseFun.value), exeEndEdit();
92666
92674
  }, preViewCloseCallback = () => {
92667
92675
  emit("close");
92668
92676
  }, layout = ref$2(), preViewSubmit = () => {
@@ -93028,7 +93036,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f16a5f64_lang = "", _withSco
93028
93036
  ]);
93029
93037
  };
93030
93038
  }
93031
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f16a5f64"]]);
93039
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-bdfedaab"]]);
93032
93040
  WindowIndex.name = "slw-window-index";
93033
93041
  WindowIndex.install = (G) => {
93034
93042
  G.component(WindowIndex.name, WindowIndex);
@@ -224361,7 +224369,7 @@ function reConsole() {
224361
224369
  }
224362
224370
  }
224363
224371
  console.info(
224364
- `%cSLW %cVer 1.0.0-beta.17.1%c
224372
+ `%cSLW %cVer 1.0.0-beta.17.3%c
224365
224373
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224366
224374
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
224367
224375
  "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-e6d9d97d.js";
1
+ import { i as m } from "./index-fcf1053c.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {