slw 0.10.18 → 0.10.20

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 p, resolveComponent as g, createElementBlock as f, openBlock as o, createBlock as h, createCommentVNode as _, withModifiers as R, normalizeStyle as A, normalizeClass as T, withCtx as r, renderSlot as q, 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 W, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as I, d as L, a as S, u as N } from "./index-B4wvgH_b.js";
2
+ import { _ as I, d as L, a as S, u as N } from "./index-CTIAijTs.js";
3
3
  const x = {
4
4
  computed: {},
5
5
  methods: {
@@ -8640,7 +8640,7 @@ PictureUpload.name = "slw-picture-upload";
8640
8640
  PictureUpload.install = (Q) => {
8641
8641
  Q.component(PictureUpload.name, PictureUpload);
8642
8642
  };
8643
- const _withScopeId$8 = (Q) => (pushScopeId("data-v-b5cd68b4"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8643
+ const _withScopeId$8 = (Q) => (pushScopeId("data-v-e052b084"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8644
8644
  _hoisted_1$l1,
8645
8645
  _hoisted_2$kY,
8646
8646
  _hoisted_3$hY
@@ -10301,8 +10301,18 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-b5cd68b4"), Q = Q(), popScope
10301
10301
  return X;
10302
10302
  }, setExportDataLimit = (Q) => {
10303
10303
  gridData.value.params.exportDataLimit = Q;
10304
- }, setQueryInputEvent = (Q = 800) => {
10305
- gridData.value.params.queryInputEvent = !0, gridData.value.params.queryInputEventDebounceTime = Q;
10304
+ }, setQueryEvent = (Q, H = 800) => {
10305
+ if (gridData.value.params.queryEvent || (gridData.value.params.queryEvent = {}), typeof H != "number" && H === !1) {
10306
+ gridData.value.params.queryEvent[Q] = {
10307
+ debounce: 800,
10308
+ enable: !1
10309
+ };
10310
+ return;
10311
+ }
10312
+ gridData.value.params.queryEvent[Q] = {
10313
+ debounce: H,
10314
+ enable: !0
10315
+ };
10306
10316
  };
10307
10317
  return onMounted(async () => {
10308
10318
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -10323,10 +10333,10 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-b5cd68b4"), Q = Q(), popScope
10323
10333
  events: { click: toolBarButtonClick }
10324
10334
  });
10325
10335
  }), gridData.value.formConfig.items.forEach((Q) => {
10326
- var H, G, X, K;
10327
- if (Q.canScan && (queryFormScanData.value[Q.field] = ""), (G = (H = Q == null ? void 0 : Q.itemRender) == null ? void 0 : H.events) != null && G.hasOwnProperty("change") && (gridData.value.params.queryFieldChangeNoQuery || (Q.itemRender.events.change = search)), ((X = Q == null ? void 0 : Q.itemRender) == null ? void 0 : X.name) === "ElInput" && gridData.value.params.queryInputEvent && (Q.itemRender.events.input = debounce(search, gridData.value.params.queryInputEventDebounceTime), delete Q.itemRender.events.change), Q.remoteSearch ? (Q.itemRender.props.remoteMethod = debounce(async (Z) => {
10328
- Z && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(
10329
- Z,
10336
+ var H, G, X, K, Z, ee, te, ne, re, oe;
10337
+ if (Q.canScan && (queryFormScanData.value[Q.field] = ""), (G = (H = Q == null ? void 0 : Q.itemRender) == null ? void 0 : H.events) != null && G.hasOwnProperty("change") && (gridData.value.params.queryFieldChangeNoQuery || (Q.itemRender.events.change = search, ((Z = (K = (X = gridData.value.params) == null ? void 0 : X.queryEvent) == null ? void 0 : K.change) == null ? void 0 : Z.enable) === !1 && delete Q.itemRender.events.change)), ((ee = Q == null ? void 0 : Q.itemRender) == null ? void 0 : ee.name) === "ElInput" && ((re = (ne = (te = gridData.value.params) == null ? void 0 : te.queryEvent) == null ? void 0 : ne.input) == null ? void 0 : re.enable) === !0 && (Q.itemRender.events.input = debounce(search, gridData.value.params.queryEvent.input.debounce), delete Q.itemRender.events.change), Q.remoteSearch ? (Q.itemRender.props.remoteMethod = debounce(async (ae) => {
10338
+ ae && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(
10339
+ ae,
10330
10340
  Q.querys.id,
10331
10341
  Q.querys.selectorId
10332
10342
  ), Q.itemRender.props.loading = !1);
@@ -10334,8 +10344,8 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-b5cd68b4"), Q = Q(), popScope
10334
10344
  Q.itemRender.defaultValue,
10335
10345
  Q.querys.id,
10336
10346
  Q.querys.selectorId
10337
- ).then((Z) => {
10338
- Q.itemRender.options = Z;
10347
+ ).then((ae) => {
10348
+ Q.itemRender.options = ae;
10339
10349
  })) : Q.querys && axios.post(
10340
10350
  "/window/selector",
10341
10351
  $qs.stringify({
@@ -10343,24 +10353,24 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-b5cd68b4"), Q = Q(), popScope
10343
10353
  _field_id: Q.querys.id,
10344
10354
  _select_id: Q.querys.selectorId
10345
10355
  })
10346
- ).then((Z) => {
10347
- if (Z.data.result && Z.data.data) {
10348
- const ee = Z.data.data.map((te) => Object.assign(
10356
+ ).then((ae) => {
10357
+ if (ae.data.result && ae.data.data) {
10358
+ const le = ae.data.data.map((se) => Object.assign(
10349
10359
  {
10350
- value: te.VALUE,
10351
- label: te.NAME
10360
+ value: se.VALUE,
10361
+ label: se.NAME
10352
10362
  },
10353
- te
10363
+ se
10354
10364
  ));
10355
- Q.itemRender.options = ee;
10365
+ Q.itemRender.options = le;
10356
10366
  }
10357
10367
  }), ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(
10358
- (K = Q == null ? void 0 : Q.itemRender) == null ? void 0 : K.name
10368
+ (oe = Q == null ? void 0 : Q.itemRender) == null ? void 0 : oe.name
10359
10369
  )) {
10360
- let Z = Q.itemRender.props;
10361
- Z.unlinkPanels = !0, Z.disabledDate = (ee) => {
10362
- let te = /* @__PURE__ */ new Date();
10363
- return te.setHours(23), te.setMinutes(59), te.setSeconds(59), ee.valueOf() > te.valueOf();
10370
+ let ae = Q.itemRender.props;
10371
+ ae.unlinkPanels = !0, ae.disabledDate = (le) => {
10372
+ let se = /* @__PURE__ */ new Date();
10373
+ return se.setHours(23), se.setMinutes(59), se.setSeconds(59), le.valueOf() > se.valueOf();
10364
10374
  };
10365
10375
  }
10366
10376
  }), gridData.value.columns.forEach((Q) => {
@@ -10661,7 +10671,7 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-b5cd68b4"), Q = Q(), popScope
10661
10671
  ]);
10662
10672
  };
10663
10673
  }
10664
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b5cd68b4"]]);
10674
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e052b084"]]);
10665
10675
  WindowGrid.name = "slw-window-grid";
10666
10676
  WindowGrid.install = (Q) => {
10667
10677
  Q.component(WindowGrid.name, WindowGrid);
@@ -47345,7 +47355,7 @@ const _withScopeId$1 = (Q) => (pushScopeId("data-v-a3ebe962"), Q = Q(), popScope
47345
47355
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
47346
47356
  setup(Q, { emit: H }) {
47347
47357
  const G = Q, X = defineAsyncComponent(
47348
- () => import("./index-CB7ysIe8.js")
47358
+ () => import("./index-BtIauaIB.js")
47349
47359
  );
47350
47360
  let K = useVModel(G, "type", H), Z = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref$1(0), re = ref$1(null);
47351
47361
  re.value = createDesigner();
@@ -47430,7 +47440,7 @@ WindowDesigner.name = "slw-window-designer";
47430
47440
  WindowDesigner.install = (Q) => {
47431
47441
  Q.component(WindowDesigner.name, WindowDesigner);
47432
47442
  };
47433
- const _withScopeId = (Q) => (pushScopeId("data-v-fd60ab4d"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
47443
+ const _withScopeId = (Q) => (pushScopeId("data-v-ae6197ec"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
47434
47444
  __name: "window-index",
47435
47445
  props: {
47436
47446
  windowId: {
@@ -47757,13 +47767,15 @@ const _withScopeId = (Q) => (pushScopeId("data-v-fd60ab4d"), Q = Q(), popScopeId
47757
47767
  // 表单操作按钮布局位置 TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER(默认), BOTTOM_RIGHT
47758
47768
  queryFieldChangeNoQuery: le.queryFieldChangeNoQuery,
47759
47769
  // 控制查询条件值更改是否触发表格查询
47760
- exportDataLimit: (re = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : re.exportDataLimit,
47770
+ exportDataLimit: (re = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : re.exportDataLimit
47761
47771
  // 最大导出数据限制
47762
- queryInputEvent: (oe = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : oe.queryInputEvent,
47763
- // 查询条件输入框是否触发input事件
47764
- queryInputEventDebounceTime: ((ae = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : ae.queryInputEventDebounceTime) || 800
47765
- // 查询条件输入框触发input事件的防抖时间,单位毫秒
47766
- }, le.buttonPosition && le.buttonPosition != "null" && (X.params.buttonPosition = le.buttonPosition), le.linkUrl && $components && $componentsPath) {
47772
+ }, (oe = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) != null && oe.queryInputEvent && (X.params.queryEvent = {
47773
+ input: {
47774
+ enable: !0,
47775
+ debounce: ((ae = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : ae.queryInputEventDebounceTime) || 800
47776
+ // 查询条件输入框触发input事件的防抖时间,单位毫秒
47777
+ }
47778
+ }), le.buttonPosition && le.buttonPosition != "null" && (X.params.buttonPosition = le.buttonPosition), le.linkUrl && $components && $componentsPath) {
47767
47779
  let pe = `${$componentsPath}/${le.linkUrl}`, me = await $components[pe]();
47768
47780
  X.params.linkComponentView = markRaw(me.default);
47769
47781
  }
@@ -48668,7 +48680,7 @@ const _withScopeId = (Q) => (pushScopeId("data-v-fd60ab4d"), Q = Q(), popScopeId
48668
48680
  ]);
48669
48681
  };
48670
48682
  }
48671
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-fd60ab4d"]]);
48683
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ae6197ec"]]);
48672
48684
  WindowIndex.name = "slw-window-index";
48673
48685
  WindowIndex.install = (Q) => {
48674
48686
  Q.component(WindowIndex.name, WindowIndex);
@@ -132115,7 +132127,7 @@ function reConsole() {
132115
132127
  }
132116
132128
  }
132117
132129
  console.info(
132118
- `%cSLW %cVer 0.10.18%c
132130
+ `%cSLW %cVer 0.10.20%c
132119
132131
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
132120
132132
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
132121
132133
  "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 f } from "./index-B4wvgH_b.js";
1
+ import { i as f } from "./index-CTIAijTs.js";
2
2
  export {
3
3
  f as default
4
4
  };