slw 0.10.19 → 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-
|
|
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-
|
|
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,12 +10301,18 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-304b4e9a"), Q = Q(), popScope
|
|
|
10301
10301
|
return X;
|
|
10302
10302
|
}, setExportDataLimit = (Q) => {
|
|
10303
10303
|
gridData.value.params.exportDataLimit = Q;
|
|
10304
|
-
},
|
|
10305
|
-
if (typeof
|
|
10306
|
-
gridData.value.params.
|
|
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
|
+
};
|
|
10307
10310
|
return;
|
|
10308
10311
|
}
|
|
10309
|
-
gridData.value.params.
|
|
10312
|
+
gridData.value.params.queryEvent[Q] = {
|
|
10313
|
+
debounce: H,
|
|
10314
|
+
enable: !0
|
|
10315
|
+
};
|
|
10310
10316
|
};
|
|
10311
10317
|
return onMounted(async () => {
|
|
10312
10318
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10327,10 +10333,10 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-304b4e9a"), Q = Q(), popScope
|
|
|
10327
10333
|
events: { click: toolBarButtonClick }
|
|
10328
10334
|
});
|
|
10329
10335
|
}), gridData.value.formConfig.items.forEach((Q) => {
|
|
10330
|
-
var H, G, X, K;
|
|
10331
|
-
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)), ((
|
|
10332
|
-
|
|
10333
|
-
|
|
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,
|
|
10334
10340
|
Q.querys.id,
|
|
10335
10341
|
Q.querys.selectorId
|
|
10336
10342
|
), Q.itemRender.props.loading = !1);
|
|
@@ -10338,8 +10344,8 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-304b4e9a"), Q = Q(), popScope
|
|
|
10338
10344
|
Q.itemRender.defaultValue,
|
|
10339
10345
|
Q.querys.id,
|
|
10340
10346
|
Q.querys.selectorId
|
|
10341
|
-
).then((
|
|
10342
|
-
Q.itemRender.options =
|
|
10347
|
+
).then((ae) => {
|
|
10348
|
+
Q.itemRender.options = ae;
|
|
10343
10349
|
})) : Q.querys && axios.post(
|
|
10344
10350
|
"/window/selector",
|
|
10345
10351
|
$qs.stringify({
|
|
@@ -10347,24 +10353,24 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-304b4e9a"), Q = Q(), popScope
|
|
|
10347
10353
|
_field_id: Q.querys.id,
|
|
10348
10354
|
_select_id: Q.querys.selectorId
|
|
10349
10355
|
})
|
|
10350
|
-
).then((
|
|
10351
|
-
if (
|
|
10352
|
-
const
|
|
10356
|
+
).then((ae) => {
|
|
10357
|
+
if (ae.data.result && ae.data.data) {
|
|
10358
|
+
const le = ae.data.data.map((se) => Object.assign(
|
|
10353
10359
|
{
|
|
10354
|
-
value:
|
|
10355
|
-
label:
|
|
10360
|
+
value: se.VALUE,
|
|
10361
|
+
label: se.NAME
|
|
10356
10362
|
},
|
|
10357
|
-
|
|
10363
|
+
se
|
|
10358
10364
|
));
|
|
10359
|
-
Q.itemRender.options =
|
|
10365
|
+
Q.itemRender.options = le;
|
|
10360
10366
|
}
|
|
10361
10367
|
}), ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(
|
|
10362
|
-
(
|
|
10368
|
+
(oe = Q == null ? void 0 : Q.itemRender) == null ? void 0 : oe.name
|
|
10363
10369
|
)) {
|
|
10364
|
-
let
|
|
10365
|
-
|
|
10366
|
-
let
|
|
10367
|
-
return
|
|
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();
|
|
10368
10374
|
};
|
|
10369
10375
|
}
|
|
10370
10376
|
}), gridData.value.columns.forEach((Q) => {
|
|
@@ -10665,7 +10671,7 @@ const _withScopeId$8 = (Q) => (pushScopeId("data-v-304b4e9a"), Q = Q(), popScope
|
|
|
10665
10671
|
]);
|
|
10666
10672
|
};
|
|
10667
10673
|
}
|
|
10668
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10674
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e052b084"]]);
|
|
10669
10675
|
WindowGrid.name = "slw-window-grid";
|
|
10670
10676
|
WindowGrid.install = (Q) => {
|
|
10671
10677
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -47349,7 +47355,7 @@ const _withScopeId$1 = (Q) => (pushScopeId("data-v-a3ebe962"), Q = Q(), popScope
|
|
|
47349
47355
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
47350
47356
|
setup(Q, { emit: H }) {
|
|
47351
47357
|
const G = Q, X = defineAsyncComponent(
|
|
47352
|
-
() => import("./index-
|
|
47358
|
+
() => import("./index-BtIauaIB.js")
|
|
47353
47359
|
);
|
|
47354
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);
|
|
47355
47361
|
re.value = createDesigner();
|
|
@@ -47434,7 +47440,7 @@ WindowDesigner.name = "slw-window-designer";
|
|
|
47434
47440
|
WindowDesigner.install = (Q) => {
|
|
47435
47441
|
Q.component(WindowDesigner.name, WindowDesigner);
|
|
47436
47442
|
};
|
|
47437
|
-
const _withScopeId = (Q) => (pushScopeId("data-v-
|
|
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 = {
|
|
47438
47444
|
__name: "window-index",
|
|
47439
47445
|
props: {
|
|
47440
47446
|
windowId: {
|
|
@@ -47761,13 +47767,15 @@ const _withScopeId = (Q) => (pushScopeId("data-v-fd60ab4d"), Q = Q(), popScopeId
|
|
|
47761
47767
|
// 表单操作按钮布局位置 TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER(默认), BOTTOM_RIGHT
|
|
47762
47768
|
queryFieldChangeNoQuery: le.queryFieldChangeNoQuery,
|
|
47763
47769
|
// 控制查询条件值更改是否触发表格查询
|
|
47764
|
-
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
|
|
47765
47771
|
// 最大导出数据限制
|
|
47766
|
-
|
|
47767
|
-
|
|
47768
|
-
|
|
47769
|
-
|
|
47770
|
-
|
|
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) {
|
|
47771
47779
|
let pe = `${$componentsPath}/${le.linkUrl}`, me = await $components[pe]();
|
|
47772
47780
|
X.params.linkComponentView = markRaw(me.default);
|
|
47773
47781
|
}
|
|
@@ -48672,7 +48680,7 @@ const _withScopeId = (Q) => (pushScopeId("data-v-fd60ab4d"), Q = Q(), popScopeId
|
|
|
48672
48680
|
]);
|
|
48673
48681
|
};
|
|
48674
48682
|
}
|
|
48675
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
48683
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ae6197ec"]]);
|
|
48676
48684
|
WindowIndex.name = "slw-window-index";
|
|
48677
48685
|
WindowIndex.install = (Q) => {
|
|
48678
48686
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -132119,7 +132127,7 @@ function reConsole() {
|
|
|
132119
132127
|
}
|
|
132120
132128
|
}
|
|
132121
132129
|
console.info(
|
|
132122
|
-
`%cSLW %cVer 0.10.
|
|
132130
|
+
`%cSLW %cVer 0.10.20%c
|
|
132123
132131
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
132124
132132
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
132125
132133
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED