slw 0.9.64 → 0.9.65

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.
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
8525
8525
  PictureUpload.install = (H) => {
8526
8526
  H.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_c930a99c_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-c930a99c"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_0b752425_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-0b752425"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
8529
8529
  class: "slw-window-grid-container",
8530
8530
  style: { height: "100%" }
8531
8531
  }, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
@@ -8548,7 +8548,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c930a99c_lang = "", _withScop
8548
8548
  },
8549
8549
  emits: ["update:gridData", "jumpDesign"],
8550
8550
  setup(__props, { expose: __expose, emit }) {
8551
- const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), route = useRoute();
8551
+ const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), route = useRoute();
8552
8552
  let gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8553
8553
  show: !1,
8554
8554
  dataId: "",
@@ -9085,12 +9085,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c930a99c_lang = "", _withScop
9085
9085
  });
9086
9086
  }
9087
9087
  );
9088
- else if (H.windowId)
9088
+ else if (H.windowId) {
9089
+ if (beginEdit && await beginEdit(Q, gridData.value.rowConfig.keyField, curRegion.value) == !1)
9090
+ return;
9089
9091
  showPreView(H.windowId, H.name, Q, {
9090
9092
  width: H.openWidth,
9091
9093
  height: H.openHeight
9092
9094
  });
9093
- else
9095
+ } else
9094
9096
  try {
9095
9097
  H.clickFunction && await evalEvent(
9096
9098
  "async " + H.clickFunction,
@@ -9112,11 +9114,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c930a99c_lang = "", _withScop
9112
9114
  break;
9113
9115
  }
9114
9116
  typeof Z < "u" ? H.btnLoad[Z] = !1 : H.loading = !1;
9115
- }, curRegion = ref(), getCurRegion = () => curRegion.value, commonEditData = (H, Q) => {
9117
+ }, curRegion = ref(), getCurRegion = () => curRegion.value, commonEditData = async (H, Q) => {
9116
9118
  const Z = gridData.value.params.isEdit && (editBtn.value.visible || editBtn.value.btnShowInGrid[Q] || gridData.value.type === "TREE");
9117
9119
  gridData.value.params.parentData = getParentData();
9118
9120
  let X = Object.assign({}, gridData.value);
9119
- X = {
9121
+ beginEdit && Z && await beginEdit(H, gridData.value.rowConfig.keyField, curRegion.value) == !1 || (X = {
9120
9122
  ...X,
9121
9123
  formData: Object.assign({}, H),
9122
9124
  windowTitle: $T(Z ? "[编辑]" : "[查看]") + gridData.value.params.windowTitle,
@@ -9127,7 +9129,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c930a99c_lang = "", _withScop
9127
9129
  height: gridData.value.params.editHeight ? gridData.value.params.editHeight : "",
9128
9130
  tableData: getCanEditData(),
9129
9131
  rowIndex: Q
9130
- }, X.params.queryParams !== null && typeof X.params.queryParams < "u" && (X.params.queryParams.unQuery = !0), X.formData._button_id = gridData.value.params.edit_button_id, X._reload = () => reload(), rowDbClick(X);
9132
+ }, X.params.queryParams !== null && typeof X.params.queryParams < "u" && (X.params.queryParams.unQuery = !0), X.formData._button_id = gridData.value.params.edit_button_id, X._reload = () => reload(), rowDbClick(X));
9131
9133
  }, reload = () => {
9132
9134
  var H;
9133
9135
  (H = getCurRegion()) == null || H.commitProxy("query");
@@ -10176,7 +10178,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c930a99c_lang = "", _withScop
10176
10178
  ]);
10177
10179
  };
10178
10180
  }
10179
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-c930a99c"]]);
10181
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0b752425"]]);
10180
10182
  WindowGrid.name = "slw-window-grid";
10181
10183
  WindowGrid.install = (H) => {
10182
10184
  H.component(WindowGrid.name, WindowGrid);
@@ -62286,7 +62288,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62286
62288
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62287
62289
  setup(H, { emit: Q }) {
62288
62290
  const Z = H, X = defineAsyncComponent(
62289
- () => import("./index-b6aeb1a0.js")
62291
+ () => import("./index-ef5b7e06.js")
62290
62292
  );
62291
62293
  let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
62292
62294
  re.value = createDesigner();
@@ -147240,7 +147242,8 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
147240
147242
  componentsPath: "/src/view",
147241
147243
  customI18n: !1,
147242
147244
  VXETableConfig: null,
147243
- externalFun: null
147245
+ externalFun: null,
147246
+ beginEdit: null
147244
147247
  }) => {
147245
147248
  var G, K;
147246
147249
  components.forEach((ee) => {
@@ -147260,7 +147263,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
147260
147263
  translate(ee, te) {
147261
147264
  return Q.customI18n(ee, te);
147262
147265
  }
147263
- })) : (X = (ee) => ee, H.provide("$t", X)), Q.VXETableConfig && VXETableExport.setup(Q.VXETableConfig), H.provide("$VXETableConfig", Q.VXETableConfig), H.provide("$externalFun", Q.externalFun), H.use(VXETableExport), H.provide("$componentMapping", Z), H.provide("$axios", H.config.globalProperties.axios), H.provide("$qs", qs), H.provide(
147266
+ })) : (X = (ee) => ee, H.provide("$t", X)), Q.VXETableConfig && VXETableExport.setup(Q.VXETableConfig), H.provide("$VXETableConfig", Q.VXETableConfig), H.provide("$externalFun", Q.externalFun), H.provide("$beginEdit", Q.beginEdit), H.use(VXETableExport), H.provide("$componentMapping", Z), H.provide("$axios", H.config.globalProperties.axios), H.provide("$qs", qs), H.provide(
147264
147267
  "$crypto",
147265
147268
  (Q == null ? void 0 : Q.crypto) || {
147266
147269
  encrypt,
@@ -147292,7 +147295,7 @@ function reConsole() {
147292
147295
  }
147293
147296
  }
147294
147297
  console.info(
147295
- `%cSLW %cVer 0.9.64%c
147298
+ `%cSLW %cVer 0.9.65%c
147296
147299
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147297
147300
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147298
147301
  "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-2a6ace30.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-87998248.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-2a6ace30.js";
1
+ import { i as m } from "./index-87998248.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {