slw 0.5.997 → 0.5.998

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.
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Qo = Object.defineProperty;
2
2
  var qo = (Q, H, G) => H in Q ? Qo(Q, H, { enumerable: !0, configurable: !0, writable: !0, value: G }) : Q[H] = G;
3
3
  var Mo = (Q, H, G) => (qo(Q, typeof H != "symbol" ? H + "" : H, G), G);
4
- import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$2, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderList, createBlock, toRaw, mergeProps as mergeProps$1, normalizeStyle, createSlots, toDisplayString, resolveDynamicComponent, createTextVNode, renderSlot, withModifiers, isVNode, Comment, Text as Text$2, Transition, Teleport, render as render$1, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$1, createStaticVNode, createApp, onActivated, onDeactivated } from "vue";
4
+ import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$2, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderList, createBlock, toRaw, mergeProps as mergeProps$1, normalizeStyle, createSlots, toDisplayString, resolveDynamicComponent, createTextVNode, renderSlot, onActivated, withModifiers, isVNode, Comment, Text as Text$2, Transition, Teleport, render as render$1, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$1, createStaticVNode, createApp, onDeactivated } from "vue";
5
5
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function getDefaultExportFromCjs(Q) {
7
7
  return Q && Q.__esModule && Object.prototype.hasOwnProperty.call(Q, "default") ? Q.default : Q;
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
8511
8511
  PictureUpload.install = (Q) => {
8512
8512
  Q.component(PictureUpload.name, PictureUpload);
8513
8513
  };
8514
- const windowGrid_vue_vue_type_style_index_0_scoped_e45797c7_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-e45797c7"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-ac0b799b"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8515
8515
  class: "slw-window-grid-container",
8516
8516
  style: { height: "100%" }
8517
8517
  }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
@@ -8534,7 +8534,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e45797c7_lang = "", _withScop
8534
8534
  },
8535
8535
  emits: ["update:gridData", "jumpDesign"],
8536
8536
  setup(__props, { expose: __expose, emit }) {
8537
- 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"), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $qs = inject("$qs"), $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");
8537
+ 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"), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $qs = inject("$qs"), $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");
8538
8538
  let gridData = useVModel(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8539
8539
  show: !1,
8540
8540
  dataId: "",
@@ -8660,7 +8660,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e45797c7_lang = "", _withScop
8660
8660
  Object.entries(Z).forEach(([ae, le]) => {
8661
8661
  var se;
8662
8662
  if (le == null && (Z[ae] = null), Z[ae] instanceof Array) {
8663
- let ce = gridData.value.formConfig.items.filter((he) => he.field == ae)[0], de = (se = ce == null ? void 0 : ce.itemRender) == null ? void 0 : se.name;
8663
+ let ce = gridData.value.formConfig.items.filter(
8664
+ (he) => he.field == ae
8665
+ )[0], de = (se = ce == null ? void 0 : ce.itemRender) == null ? void 0 : se.name;
8664
8666
  if (["ElDateRangePicker", "ElDateTimeRangePicker"].includes(de)) {
8665
8667
  let he = XEUtils$1.clone(Z[ae], !0);
8666
8668
  Z[ae] = he[0], Z["end_" + ae] = he[1];
@@ -9717,17 +9719,23 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e45797c7_lang = "", _withScop
9717
9719
  )[0];
9718
9720
  G.itemRender.props.clickFunction && evalEvent(G.itemRender.props.clickFunction, Q, H);
9719
9721
  }, setFormValue = (Q, H) => {
9720
- let G = gridData.value.formConfig.items.filter((X) => X.field == Q)[0];
9722
+ let G = gridData.value.formConfig.items.filter(
9723
+ (X) => X.field == Q
9724
+ )[0];
9721
9725
  G && (G.itemRender.defaultValue = H);
9722
9726
  }, setFormSelectOption = (Q, H, G = []) => {
9723
9727
  let X = getCurRegion();
9724
9728
  Q && (X = getRegion(Q));
9725
- let Z = X.formConfig.items.filter((K) => K.field == H)[0];
9729
+ let Z = X.formConfig.items.filter(
9730
+ (K) => K.field == H
9731
+ )[0];
9726
9732
  Z && (Z.itemRender.options = G);
9727
9733
  }, getFormSelectOption = async (Q, H) => {
9728
9734
  let G = getCurRegion();
9729
9735
  Q && (G = getRegion(Q));
9730
- let X = G.formConfig.items.filter((K) => K.field == H)[0], Z = [];
9736
+ let X = G.formConfig.items.filter(
9737
+ (K) => K.field == H
9738
+ )[0], Z = [];
9731
9739
  if (X.querys) {
9732
9740
  const K = await axios.post(
9733
9741
  "/window/selector",
@@ -9988,7 +9996,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e45797c7_lang = "", _withScop
9988
9996
  ]);
9989
9997
  };
9990
9998
  }
9991
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e45797c7"]]);
9999
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ac0b799b"]]);
9992
10000
  WindowGrid.name = "slw-window-grid";
9993
10001
  WindowGrid.install = (Q) => {
9994
10002
  Q.component(WindowGrid.name, WindowGrid);
@@ -37022,7 +37030,7 @@ const pseudoClasses = /* @__PURE__ */ [
37022
37030
  function css$1() {
37023
37031
  return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
37024
37032
  }
37025
- const windowForm_vue_vue_type_style_index_0_scoped_a62820bf_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a62820bf"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
37033
+ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-3b82697d"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
37026
37034
  key: 0,
37027
37035
  style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
37028
37036
  }, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
@@ -37040,7 +37048,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_a62820bf_lang = "", _withScop
37040
37048
  setup(__props, { expose: __expose, emit: emits }) {
37041
37049
  const props = __props, componentMapping = inject("$componentMapping"), axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
37042
37050
  let regionMap = inject("$regionMap");
37043
- const ElMessageBox = inject("$ElMessageBox");
37051
+ const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun");
37044
37052
  let formConfig = useVModel(props, "formConfig", emits), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
37045
37053
  const $modal = $Modal;
37046
37054
  let uploadConfig = ref({
@@ -37792,7 +37800,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_a62820bf_lang = "", _withScop
37792
37800
  ]);
37793
37801
  };
37794
37802
  }
37795
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a62820bf"]]);
37803
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-3b82697d"]]);
37796
37804
  WindowForm.name = "slw-window-form";
37797
37805
  WindowForm.install = (Q) => {
37798
37806
  Q.component(WindowForm.name, WindowForm);
@@ -38424,7 +38432,7 @@ _sfc_main$2.name = "slw-preview-modal";
38424
38432
  _sfc_main$2.install = (Q) => {
38425
38433
  Q.component(_sfc_main$2.name, _sfc_main$2);
38426
38434
  };
38427
- const windowIndex_vue_vue_type_style_index_0_scoped_d1f16970_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-d1f16970"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
38435
+ const windowIndex_vue_vue_type_style_index_0_scoped_f7fa9fa1_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-f7fa9fa1"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
38428
38436
  __name: "window-index",
38429
38437
  props: {
38430
38438
  windowId: {
@@ -39236,6 +39244,19 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d1f16970_lang = "", _withSco
39236
39244
  loadData(), settPageHeight(), document.addEventListener("keydown", ctrlSSave);
39237
39245
  }), onUnmounted(() => {
39238
39246
  document.removeEventListener("keydown", ctrlSSave);
39247
+ });
39248
+ const activatedList = [], addOnActivatedFun = (Q) => {
39249
+ activatedList.push(Q);
39250
+ };
39251
+ onActivated(() => {
39252
+ activatedList && activatedList.length > 0 && activatedList.forEach((Q) => {
39253
+ if (Q && typeof Q == "function")
39254
+ try {
39255
+ Q();
39256
+ } catch (H) {
39257
+ console.error(H);
39258
+ }
39259
+ });
39239
39260
  }), watch([() => props.windowId, () => props.queryParams], () => {
39240
39261
  loadData(), settPageHeight();
39241
39262
  });
@@ -39249,7 +39270,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d1f16970_lang = "", _withSco
39249
39270
  focusInput(Q, H);
39250
39271
  }, 3 * 1e3);
39251
39272
  }
39252
- return provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), (Q, H) => {
39273
+ return provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), provide("$addOnActivatedFun", addOnActivatedFun), (Q, H) => {
39253
39274
  const G = resolveComponent("el-space"), X = resolveComponent("el-tab-pane"), Z = resolveComponent("el-tabs"), K = resolveComponent("el-scrollbar"), ee = resolveComponent("el-checkbox"), te = resolveComponent("arrow-back"), ne = resolveComponent("el-icon"), re = resolveComponent("el-button"), oe = resolveComponent("arrow-forward"), ae = resolveComponent("el-button-group"), le = resolveComponent("save"), se = resolveComponent("close"), ce = resolveComponent("el-dialog"), de = resolveComponent("window-index", !0);
39254
39275
  return openBlock(), createElementBlock("div", _hoisted_1$kR, [
39255
39276
  (openBlock(), createBlock(unref(WindowLayout), {
@@ -39530,7 +39551,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d1f16970_lang = "", _withSco
39530
39551
  ]);
39531
39552
  };
39532
39553
  }
39533
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d1f16970"]]);
39554
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f7fa9fa1"]]);
39534
39555
  WindowIndex.name = "slw-window-index";
39535
39556
  WindowIndex.install = (Q) => {
39536
39557
  Q.component(WindowIndex.name, WindowIndex);
@@ -122297,7 +122318,7 @@ function reConsole() {
122297
122318
  }
122298
122319
  }
122299
122320
  console.info(
122300
- "%cSLW %cVer 0.5.997",
122321
+ "%cSLW %cVer 0.5.998",
122301
122322
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122302
122323
  "color:#999;font-size: 12px"
122303
122324
  );