slw 1.0.0-rc.1.26 → 1.0.0-rc.1.28

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.
@@ -53280,7 +53280,7 @@ WindowCharts.name = "slw-window-charts";
53280
53280
  WindowCharts.install = (G) => {
53281
53281
  G.component(WindowCharts.name, WindowCharts);
53282
53282
  };
53283
- const windowGrid_vue_vue_type_style_index_0_scoped_2b9e18b7_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-2b9e18b7"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53283
+ const windowGrid_vue_vue_type_style_index_0_scoped_0ddaf2d7_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-0ddaf2d7"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53284
53284
  class: "slw-window-grid-container",
53285
53285
  style: { height: "100%" }
53286
53286
  }, _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_ = [
@@ -53598,7 +53598,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2b9e18b7_lang = "", _withScop
53598
53598
  se = ce.data.data, ve(se);
53599
53599
  let ge = !1;
53600
53600
  gridData.value.columns.forEach((Ce) => {
53601
- Ce.colId == "_operation_" && Ce.title == "操作" && Ce.width != pe && pe >= 60 && (ge = !0, Ce.width = pe + "px");
53601
+ Ce.colId == "_operation_" && Ce.title == "操作" && Ce.width != pe && pe > 60 && (ge = !0, Ce.width = pe + "px");
53602
53602
  }), ge && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (rowIndex.value = gridData.value.params.rowIndex), ce.data.data.length > rowIndex.value ? de = ce.data.data[rowIndex.value] : de = ce.data.data[0];
53603
53603
  const $e = getCurRegion();
53604
53604
  if ($e) {
@@ -55468,12 +55468,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2b9e18b7_lang = "", _withScop
55468
55468
  ]);
55469
55469
  };
55470
55470
  }
55471
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-2b9e18b7"]]);
55471
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-0ddaf2d7"]]);
55472
55472
  WindowGrid.name = "slw-window-grid";
55473
55473
  WindowGrid.install = (G) => {
55474
55474
  G.component(WindowGrid.name, WindowGrid);
55475
55475
  };
55476
- const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScopeId$8 = (G) => (pushScopeId("data-v-8ce32d16"), G = G(), popScopeId(), G), _hoisted_1$l2 = { class: "el-upload__tip" }, _hoisted_2$kZ = { class: "el-upload-list el-upload-list--text" }, _hoisted_3$hZ = {
55476
+ const fileUpload_vue_vue_type_style_index_0_scoped_7b14b530_lang = "", _withScopeId$8 = (G) => (pushScopeId("data-v-7b14b530"), G = G(), popScopeId(), G), _hoisted_1$l2 = { class: "el-upload__tip" }, _hoisted_2$kZ = { class: "el-upload-list el-upload-list--text" }, _hoisted_3$hZ = {
55477
55477
  class: "el-upload-list__item is-success",
55478
55478
  tabindex: "0"
55479
55479
  }, _hoisted_4$az = {
@@ -55499,11 +55499,14 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55499
55499
  },
55500
55500
  fileFormData: {
55501
55501
  type: Array
55502
+ },
55503
+ uploadFinished: {
55504
+ type: Boolean
55502
55505
  }
55503
55506
  },
55504
- emits: ["update:filePreviewList", "onload"],
55507
+ emits: ["update:filePreviewList", "update:uploadFinished", "onload"],
55505
55508
  setup(G, { emit: H }) {
55506
- var De;
55509
+ var _e;
55507
55510
  const X = G, Q = inject("$httpHeaders"), K = inject("$vxeMessage"), Z = inject("$axios"), ee = inject("$qs"), te = inject("$t"), ne = inject("$vxeConfirm"), re = inject("$VXETableConfig");
55508
55511
  let oe = ref$2(), ae = ref$2(`${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/upload/`), se = useVModel$1(X, "filePreviewList", H), le = useVModel$1(X, "fileFormData", H), ce = ref$2({ dataId: "", columnId: "" }), de = ref$2(!1), ue = ref$2(!1), he = ref$2(), fe = ref$2({
55509
55512
  border: !0,
@@ -55519,22 +55522,22 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55519
55522
  { fixed: "right", title: "操作", align: "center", slots: { default: "operation" }, colId: "_operation_" }
55520
55523
  ],
55521
55524
  data: []
55522
- }), pe = !0, me = ((De = re == null ? void 0 : re.file) == null ? void 0 : De.uploadMaximumSize) || 20;
55523
- const ve = computed(() => X.uploadConfig.openType == "view"), ge = (_e) => {
55524
- oe.value.handleRemove(_e);
55525
- }, $e = (_e) => (pe = _e.size / 1024 / 1024 < me, pe || K({
55525
+ }), pe = !0, me = ((_e = re == null ? void 0 : re.file) == null ? void 0 : _e.uploadMaximumSize) || 20, ve = useVModel$1(X, "uploadFinished", H);
55526
+ const ge = computed(() => X.uploadConfig.openType == "view"), $e = (ye) => {
55527
+ oe.value.handleRemove(ye);
55528
+ }, Ce = (ye) => (ve.value = !1, pe = ye.size / 1024 / 1024 < me, pe || K({
55526
55529
  content: `文件大小不能超过${me}MB!`,
55527
55530
  status: "error",
55528
55531
  zIndex: 3e3
55529
- }), pe), Ce = async (_e) => {
55532
+ }), pe), ke = async (ye) => {
55530
55533
  if (!pe)
55531
55534
  return pe = !0, !0;
55532
55535
  if (await ne(te("确定删除?"), void 0, { zIndex: 3e3 }) === "confirm")
55533
- Z.post(`/dataFile/delete/${_e.id}`).then((xe) => {
55534
- if (xe.data.result) {
55535
- let we = le.value.findIndex((Ee) => Ee == _e.id);
55536
- le.value.splice(we, 1), K({
55537
- content: xe.data.msg,
55536
+ Z.post(`/dataFile/delete/${ye.id}`).then((we) => {
55537
+ if (we.data.result) {
55538
+ let Ee = le.value.findIndex((Me) => Me == ye.id);
55539
+ le.value.splice(Ee, 1), K({
55540
+ content: we.data.msg,
55538
55541
  status: "success",
55539
55542
  zIndex: 3e3
55540
55543
  });
@@ -55542,9 +55545,9 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55542
55545
  });
55543
55546
  else
55544
55547
  return !1;
55545
- }, ke = (_e) => {
55546
- ne(te("确定下载?"), void 0, { zIndex: 3e3 }).then((ye) => {
55547
- ye === "confirm" && Z.export(`/dataFile/download/${_e.id}`).then((xe) => {
55548
+ }, be = (ye) => {
55549
+ ne(te("确定下载?"), void 0, { zIndex: 3e3 }).then((xe) => {
55550
+ xe === "confirm" && Z.export(`/dataFile/download/${ye.id}`).then((we) => {
55548
55551
  K({
55549
55552
  content: "下载成功!",
55550
55553
  status: "success",
@@ -55552,50 +55555,50 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55552
55555
  });
55553
55556
  });
55554
55557
  });
55555
- }, be = (_e, ye) => {
55558
+ }, Te = (ye, xe) => {
55556
55559
  K({
55557
55560
  content: "允许上传文件的最大数量为1",
55558
55561
  status: "error",
55559
55562
  zIndex: 3e3
55560
55563
  });
55561
- }, Te = (_e, ye) => {
55562
- _e.result ? (se.value = se.value.map((xe) => {
55563
- var we;
55564
- return ((we = xe.response) == null ? void 0 : we.id) == _e.id ? {
55565
- id: _e.id,
55566
- name: ye.name
55567
- } : xe;
55568
- }), le.value.push(_e.id), K({
55569
- content: _e.msg,
55564
+ }, Pe = (ye, xe) => {
55565
+ ve.value = !0, ye.result ? (se.value = se.value.map((we) => {
55566
+ var Ee;
55567
+ return ((Ee = we.response) == null ? void 0 : Ee.id) == ye.id ? {
55568
+ id: ye.id,
55569
+ name: xe.name
55570
+ } : we;
55571
+ }), le.value.push(ye.id), K({
55572
+ content: ye.msg,
55570
55573
  status: "success",
55571
55574
  zIndex: 3e3
55572
55575
  })) : K({
55573
- content: _e.msg,
55576
+ content: ye.msg,
55574
55577
  status: "error",
55575
55578
  zIndex: 3e3
55576
55579
  });
55577
- }, Pe = () => {
55578
- se.value = [], Z.post(`/dataFile/list/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (_e) => {
55579
- if (_e.data.result && _e.data.list.length > 0) {
55580
- let ye = [];
55581
- for (let xe of _e.data.list)
55582
- (xe.columnName == X.fieldId || xe.columnName == X.field.toLowerCase()) && (ye.push({
55583
- id: xe.id,
55584
- name: xe.name,
55585
- columnName: xe.columnName
55586
- }), le.value.push(xe.id));
55587
- se.value = ye, H("onload");
55580
+ }, Se = () => {
55581
+ se.value = [], Z.post(`/dataFile/list/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (ye) => {
55582
+ if (ye.data.result && ye.data.list.length > 0) {
55583
+ let xe = [];
55584
+ for (let we of ye.data.list)
55585
+ (we.columnName == X.fieldId || we.columnName == X.field.toLowerCase()) && (xe.push({
55586
+ id: we.id,
55587
+ name: we.name,
55588
+ columnName: we.columnName
55589
+ }), le.value.push(we.id));
55590
+ se.value = xe, H("onload");
55588
55591
  }
55589
55592
  });
55590
- }, Se = () => {
55591
- ue.value = !0, Z.post(`/dataFile/logs/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (_e) => {
55592
- ue.value = !1, _e.data.result && _e.data.list.length > 0 && (fe.value.data = _e.data.list.filter((ye) => !["jpg", "png"].includes(ye.type.toLocaleLowerCase())).sort((ye, xe) => new Date(xe.created) - new Date(ye.created))), de.value = !0;
55593
- }).catch((_e) => {
55593
+ }, Oe = () => {
55594
+ ue.value = !0, Z.post(`/dataFile/logs/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (ye) => {
55595
+ ue.value = !1, ye.data.result && ye.data.list.length > 0 && (fe.value.data = ye.data.list.filter((xe) => !["jpg", "png"].includes(xe.type.toLocaleLowerCase())).sort((xe, we) => new Date(we.created) - new Date(xe.created))), de.value = !0;
55596
+ }).catch((ye) => {
55594
55597
  ue.value = !1;
55595
55598
  });
55596
- }, Oe = (_e) => {
55597
- ne(te("确定下载历史文件?"), void 0, { zIndex: 3e3 }).then((ye) => {
55598
- ye === "confirm" && Z.export(`/dataFile/download/${_e.id}`).then((xe) => {
55599
+ }, De = (ye) => {
55600
+ ne(te("确定下载历史文件?"), void 0, { zIndex: 3e3 }).then((xe) => {
55601
+ xe === "confirm" && Z.export(`/dataFile/download/${ye.id}`).then((we) => {
55599
55602
  K({
55600
55603
  content: "下载成功!",
55601
55604
  status: "success",
@@ -55606,32 +55609,32 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55606
55609
  };
55607
55610
  return watch(
55608
55611
  () => X.uploadConfig,
55609
- (_e) => {
55610
- ae.value += _e.regionId, X.fieldId && (ce.value.columnId = X.fieldId), _e.dataId && (ce.value.dataId = _e.dataId, Pe());
55612
+ (ye) => {
55613
+ ae.value += ye.regionId, X.fieldId && (ce.value.columnId = X.fieldId), ye.dataId && (ce.value.dataId = ye.dataId, Se());
55611
55614
  },
55612
55615
  { deep: !0, immediate: !0 }
55613
- ), (_e, ye) => {
55614
- const xe = resolveComponent("el-button"), we = resolveComponent("el-upload"), Ee = resolveComponent("vxe-grid"), Me = resolveComponent("el-dialog");
55616
+ ), (ye, xe) => {
55617
+ const we = resolveComponent("el-button"), Ee = resolveComponent("el-upload"), Me = resolveComponent("vxe-grid"), Ae = resolveComponent("el-dialog");
55615
55618
  return openBlock(), createElementBlock(Fragment, null, [
55616
- createVNode$1(we, {
55619
+ createVNode$1(Ee, {
55617
55620
  ref_key: "fileUploadRef",
55618
55621
  ref: oe,
55619
55622
  "file-list": unref(se),
55620
- "onUpdate:fileList": ye[0] || (ye[0] = (Ae) => isRef(se) ? se.value = Ae : se = Ae),
55623
+ "onUpdate:fileList": xe[0] || (xe[0] = (Re) => isRef(se) ? se.value = Re : se = Re),
55621
55624
  class: "upload-file",
55622
- disabled: ve.value,
55625
+ disabled: ge.value,
55623
55626
  headers: unref(Q)(),
55624
55627
  action: unref(ae),
55625
55628
  data: unref(ce),
55626
- "before-upload": $e,
55627
- "on-exceed": be,
55628
- "on-success": Te,
55629
- "before-remove": Ce
55629
+ "before-upload": Ce,
55630
+ "on-exceed": Te,
55631
+ "on-success": Pe,
55632
+ "before-remove": ke
55630
55633
  }, {
55631
55634
  tip: withCtx(() => [
55632
55635
  createElementVNode("div", _hoisted_1$l2, "大小不超过" + toDisplayString(unref(me)) + "MB的文件.", 1)
55633
55636
  ]),
55634
- file: withCtx(({ file: Ae }) => [
55637
+ file: withCtx(({ file: Re }) => [
55635
55638
  createElementVNode("ul", _hoisted_2$kZ, [
55636
55639
  createElementVNode("li", _hoisted_3$hZ, [
55637
55640
  createElementVNode("div", _hoisted_4$az, [
@@ -55639,41 +55642,41 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55639
55642
  _hoisted_6$21,
55640
55643
  createElementVNode("span", {
55641
55644
  class: "el-upload-list__item-file-name",
55642
- title: Ae.name
55643
- }, toDisplayString(Ae.name), 9, _hoisted_7$14)
55645
+ title: Re.name
55646
+ }, toDisplayString(Re.name), 9, _hoisted_7$14)
55644
55647
  ])
55645
55648
  ]),
55646
55649
  createElementVNode("i", {
55647
55650
  class: "iconfont icon-download1",
55648
55651
  style: { color: "#67c23a", cursor: "pointer" },
55649
- onClick: (Re) => ke(Ae),
55652
+ onClick: (Ve) => be(Re),
55650
55653
  title: "下载"
55651
55654
  }, null, 8, _hoisted_8$H),
55652
55655
  _hoisted_9$n,
55653
55656
  createElementVNode("i", {
55654
55657
  class: "iconfont icon-close2 el-icon--close el-icon",
55655
55658
  title: "删除",
55656
- onClick: (Re) => ge(Ae)
55659
+ onClick: (Ve) => $e(Re)
55657
55660
  }, null, 8, _hoisted_10$q)
55658
55661
  ])
55659
55662
  ])
55660
55663
  ]),
55661
55664
  default: withCtx(() => [
55662
- createVNode$1(xe, {
55665
+ createVNode$1(we, {
55663
55666
  type: "primary",
55664
55667
  size: "small",
55665
- disabled: ve.value
55668
+ disabled: ge.value
55666
55669
  }, {
55667
55670
  default: withCtx(() => [
55668
55671
  createTextVNode(" 上传文件 ")
55669
55672
  ]),
55670
55673
  _: 1
55671
55674
  }, 8, ["disabled"]),
55672
- createVNode$1(xe, {
55675
+ createVNode$1(we, {
55673
55676
  type: "info",
55674
55677
  size: "small",
55675
55678
  loading: unref(ue),
55676
- onClick: withModifiers(Se, ["stop"])
55679
+ onClick: withModifiers(Oe, ["stop"])
55677
55680
  }, {
55678
55681
  default: withCtx(() => [
55679
55682
  createTextVNode(" 历史文件 ")
@@ -55683,21 +55686,21 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55683
55686
  ]),
55684
55687
  _: 1
55685
55688
  }, 8, ["file-list", "disabled", "headers", "action", "data"]),
55686
- createVNode$1(Me, {
55689
+ createVNode$1(Ae, {
55687
55690
  modelValue: unref(de),
55688
- "onUpdate:modelValue": ye[1] || (ye[1] = (Ae) => isRef(de) ? de.value = Ae : de = Ae),
55691
+ "onUpdate:modelValue": xe[1] || (xe[1] = (Re) => isRef(de) ? de.value = Re : de = Re),
55689
55692
  title: unref(te)("历史文件")
55690
55693
  }, {
55691
55694
  default: withCtx(() => [
55692
- createVNode$1(Ee, mergeProps$1({
55695
+ createVNode$1(Me, mergeProps$1({
55693
55696
  ref_key: "logsRegionRef",
55694
55697
  ref: he
55695
55698
  }, unref(fe)), {
55696
- operation: withCtx(({ row: Ae, rowIndex: Re }) => [
55697
- createVNode$1(xe, {
55699
+ operation: withCtx(({ row: Re, rowIndex: Ve }) => [
55700
+ createVNode$1(we, {
55698
55701
  type: "primary",
55699
55702
  size: "small",
55700
- onClick: (Ve) => Oe(Ae)
55703
+ onClick: (Fe) => De(Re)
55701
55704
  }, {
55702
55705
  default: withCtx(() => [
55703
55706
  _hoisted_11$g,
@@ -55714,7 +55717,7 @@ const fileUpload_vue_vue_type_style_index_0_scoped_8ce32d16_lang = "", _withScop
55714
55717
  ], 64);
55715
55718
  };
55716
55719
  }
55717
- }, FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-8ce32d16"]]);
55720
+ }, FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-7b14b530"]]);
55718
55721
  FileUpload.name = "slw-file-upload";
55719
55722
  FileUpload.install = (G) => {
55720
55723
  G.component(FileUpload.name, FileUpload);
@@ -77909,7 +77912,7 @@ var js = js$1.exports;
77909
77912
  })(G);
77910
77913
  })(js$1);
77911
77914
  var jsExports = js$1.exports;
77912
- const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_db0546b9_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-db0546b9"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77915
+ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_59f70d95_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-59f70d95"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77913
77916
  key: 0,
77914
77917
  class: "form-title"
77915
77918
  }, _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 = {
@@ -77944,7 +77947,7 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77944
77947
  const localEditorViews = shallowRef({}), handleReady = (G, H) => {
77945
77948
  localEditorViews[G] = H.view;
77946
77949
  };
77947
- let codemirrorDrawer = ref$2(!1), codemirrorTitle = ref$2(""), codemirrorCol = ref$2(null);
77950
+ let codemirrorDrawer = ref$2(!1), codemirrorTitle = ref$2(""), codemirrorCol = ref$2(null), fileUploadFinishedMap = ref$2({});
77948
77951
  const $Message = ref$2({
77949
77952
  success(G) {
77950
77953
  success(G);
@@ -78085,7 +78088,7 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78085
78088
  children: []
78086
78089
  }
78087
78090
  ], formConfig.value.columns.forEach((ee, te, ne) => {
78088
- ee.hasOwnProperty("field") && !ee.hasOwnProperty("treeNode") && (ee.events.change = onFieldChange, ee.events.keyup = onFieldEnter, ee.events.click = onFieldClick), (ee == null ? void 0 : ee.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[ee.field] = []), (ee == null ? void 0 : ee.dataType) === "FILE" && (uploadConfig.value.isHaveFileField = !0, fieldPreviewMap.value[ee.field] = []);
78091
+ ee.hasOwnProperty("field") && !ee.hasOwnProperty("treeNode") && (ee.events.change = onFieldChange, ee.events.keyup = onFieldEnter, ee.events.click = onFieldClick), (ee == null ? void 0 : ee.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[ee.field] = []), (ee == null ? void 0 : ee.dataType) === "FILE" && (uploadConfig.value.isHaveFileField = !0, fieldPreviewMap.value[ee.field] = [], fileUploadFinishedMap.value[ee.field] = !0);
78089
78092
  }), await evalEvent(formConfig.value.params.formEvents.dataInit, "FORM", "表单数据初始化前"), formConfig.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun);
78090
78093
  let G = !0;
78091
78094
  if (formConfig.value.formData) {
@@ -78155,6 +78158,11 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78155
78158
  form.value.validate(async (H) => {
78156
78159
  var X;
78157
78160
  if (typeof H > "u") {
78161
+ for (let te in fileUploadFinishedMap.value)
78162
+ if (!fileUploadFinishedMap.value[te]) {
78163
+ $message.error("请等待文件上传完成后再提交表单!"), emits("saveLoadingChange");
78164
+ return;
78165
+ }
78158
78166
  let Q = await evalEvent(formConfig.value.params.formEvents.beginSubmit, formData.value, "表单提交前触发");
78159
78167
  if (typeof Q < "u" && Q === !1) {
78160
78168
  emits("saveLoadingChange");
@@ -78266,19 +78274,16 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78266
78274
  }), await axios.post("window/defaultValue", $qs.stringify({ _region_id: H })).then((te) => {
78267
78275
  if (te.data.result && te.data.data)
78268
78276
  for (let ne in te.data.data) {
78269
- let re = te.data.data[ne] == "null" ? null : te.data.data[ne];
78270
- if (G[ne] = evalDefaultValue(re, {
78277
+ let re = te.data.data[ne] == "null" ? null : te.data.data[ne], oe = formConfig.value.columns.filter((ae) => ae.field == ne)[0];
78278
+ oe && ["LONG", "PLONG", "DOUBLE"].includes(oe.dataType) && (re = Number(re)), G[ne] = evalDefaultValue(re, {
78271
78279
  ...G,
78272
78280
  ...Z,
78273
78281
  ...ee
78274
- }), G[ne]) {
78275
- let oe = formConfig.value.columns.filter((se) => se.field == ne)[0];
78276
- oe.itemRender.defaultValue = G[ne], onFieldChange({
78277
- data: G,
78278
- item: oe,
78279
- property: ne
78280
- });
78281
- }
78282
+ }), G[ne] && (oe.itemRender.defaultValue = G[ne], onFieldChange({
78283
+ data: G,
78284
+ item: oe,
78285
+ property: ne
78286
+ }));
78282
78287
  }
78283
78288
  });
78284
78289
  }
@@ -78919,8 +78924,10 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78919
78924
  "onUpdate:fileFormData": (se) => unref(formData)[ae.field] = se,
78920
78925
  filePreviewList: unref(fieldPreviewMap)[ae.field],
78921
78926
  "onUpdate:filePreviewList": (se) => unref(fieldPreviewMap)[ae.field] = se,
78927
+ uploadFinished: unref(fileUploadFinishedMap)[ae.field],
78928
+ "onUpdate:uploadFinished": (se) => unref(fileUploadFinishedMap)[ae.field] = se,
78922
78929
  onOnload: onloadFile
78923
- }, null, 8, ["uploadConfig", "fieldId", "field", "fileFormData", "onUpdate:fileFormData", "filePreviewList", "onUpdate:filePreviewList"])
78930
+ }, null, 8, ["uploadConfig", "fieldId", "field", "fileFormData", "onUpdate:fileFormData", "filePreviewList", "onUpdate:filePreviewList", "uploadFinished", "onUpdate:uploadFinished"])
78924
78931
  ]),
78925
78932
  key: "4"
78926
78933
  } : void 0,
@@ -79019,7 +79026,7 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
79019
79026
  ]);
79020
79027
  };
79021
79028
  }
79022
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-db0546b9"]]);
79029
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-59f70d95"]]);
79023
79030
  WindowForm.name = "slw-window-form";
79024
79031
  WindowForm.install = (G) => {
79025
79032
  G.component(WindowForm.name, WindowForm);
@@ -92090,7 +92097,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
92090
92097
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
92091
92098
  setup(G, { emit: H }) {
92092
92099
  const X = G, Q = defineAsyncComponent(
92093
- () => import("./index-c26b74da.js")
92100
+ () => import("./index-d1e609af.js")
92094
92101
  );
92095
92102
  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);
92096
92103
  re.value = createDesigner();
@@ -92175,7 +92182,7 @@ WindowDesigner.name = "slw-window-designer";
92175
92182
  WindowDesigner.install = (G) => {
92176
92183
  G.component(WindowDesigner.name, WindowDesigner);
92177
92184
  };
92178
- const windowIndex_vue_vue_type_style_index_0_scoped_c44f0b2e_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-c44f0b2e"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
92185
+ const windowIndex_vue_vue_type_style_index_0_scoped_81853934_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-81853934"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
92179
92186
  __name: "window-index",
92180
92187
  props: {
92181
92188
  windowId: {
@@ -92757,7 +92764,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c44f0b2e_lang = "", _withSco
92757
92764
  Pe && _e.push({
92758
92765
  fixed: ge.toolbarPositionRight ? "right" : "left",
92759
92766
  title: $T("操作"),
92760
- width: Oe === 1 ? 60 : 60 * Oe,
92767
+ width: 60,
92761
92768
  align: "center",
92762
92769
  slots: { default: "operation" },
92763
92770
  colType: "showInGrid",
@@ -93444,7 +93451,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c44f0b2e_lang = "", _withSco
93444
93451
  ]);
93445
93452
  };
93446
93453
  }
93447
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c44f0b2e"]]);
93454
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-81853934"]]);
93448
93455
  WindowIndex.name = "slw-window-index";
93449
93456
  WindowIndex.install = (G) => {
93450
93457
  G.component(WindowIndex.name, WindowIndex);
@@ -154741,19 +154748,17 @@ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = O
154741
154748
  const implementation$2 = /* @__PURE__ */ getDefaultExportFromCjs(implementation$1);
154742
154749
  var implementation = implementation$1, functionBind = Function.prototype.bind || implementation;
154743
154750
  const index$7 = /* @__PURE__ */ getDefaultExportFromCjs(functionBind);
154744
- var functionCall, hasRequiredFunctionCall;
154745
- function requireFunctionCall() {
154746
- return hasRequiredFunctionCall || (hasRequiredFunctionCall = 1, functionCall = Function.prototype.call), functionCall;
154747
- }
154751
+ var functionCall = Function.prototype.call;
154752
+ const functionCall$1 = /* @__PURE__ */ getDefaultExportFromCjs(functionCall);
154748
154753
  var functionApply, hasRequiredFunctionApply;
154749
154754
  function requireFunctionApply() {
154750
154755
  return hasRequiredFunctionApply || (hasRequiredFunctionApply = 1, functionApply = Function.prototype.apply), functionApply;
154751
154756
  }
154752
154757
  var reflectApply = typeof Reflect < "u" && Reflect && Reflect.apply;
154753
154758
  const reflectApply$1 = /* @__PURE__ */ getDefaultExportFromCjs(reflectApply);
154754
- var bind$5 = functionBind, $apply$1 = requireFunctionApply(), $call$2 = requireFunctionCall(), $reflectApply = reflectApply, actualApply = $reflectApply || bind$5.call($call$2, $apply$1);
154759
+ var bind$5 = functionBind, $apply$1 = requireFunctionApply(), $call$2 = functionCall, $reflectApply = reflectApply, actualApply = $reflectApply || bind$5.call($call$2, $apply$1);
154755
154760
  const actualApply$1 = /* @__PURE__ */ getDefaultExportFromCjs(actualApply);
154756
- var bind$4 = functionBind, $TypeError$4 = type, $call$1 = requireFunctionCall(), $actualApply = actualApply, callBindApplyHelpers = function G(H) {
154761
+ var bind$4 = functionBind, $TypeError$4 = type, $call$1 = functionCall, $actualApply = actualApply, callBindApplyHelpers = function G(H) {
154757
154762
  if (H.length < 1 || typeof H[0] != "function")
154758
154763
  throw new $TypeError$4("a function is required");
154759
154764
  return $actualApply(bind$4, $call$1, H);
@@ -154825,7 +154830,7 @@ var undefined$1, $Object = esObjectAtoms, $Error = esErrors, $EvalError = _eval,
154825
154830
  return throwTypeError;
154826
154831
  }
154827
154832
  }
154828
- }() : throwTypeError, hasSymbols = requireHasSymbols()(), getProto = requireGetProto(), $ObjectGPO = requireObject_getPrototypeOf(), $ReflectGPO = requireReflect_getPrototypeOf(), $apply = requireFunctionApply(), $call = requireFunctionCall(), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined$1 : getProto(Uint8Array), INTRINSICS = {
154833
+ }() : throwTypeError, hasSymbols = requireHasSymbols()(), getProto = requireGetProto(), $ObjectGPO = requireObject_getPrototypeOf(), $ReflectGPO = requireReflect_getPrototypeOf(), $apply = requireFunctionApply(), $call = functionCall, needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined$1 : getProto(Uint8Array), INTRINSICS = {
154829
154834
  __proto__: null,
154830
154835
  "%AggregateError%": typeof AggregateError > "u" ? undefined$1 : AggregateError,
154831
154836
  "%Array%": Array,
@@ -224880,7 +224885,7 @@ function reConsole() {
224880
224885
  }
224881
224886
  }
224882
224887
  console.info(
224883
- `%cSLW %cVer 1.0.0-rc.1.26%c
224888
+ `%cSLW %cVer 1.0.0-rc.1.28%c
224884
224889
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224885
224890
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/view`,
224886
224891
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
@@ -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-31e97fcc.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-33555bfd.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-31e97fcc.js";
1
+ import { i as m } from "./index-33555bfd.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {