slw 0.9.75 → 0.9.76
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,20 +8525,20 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (H) => {
|
|
8526
8526
|
H.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_661b6710_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-661b6710"), 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 = [
|
|
8532
8532
|
_hoisted_2$kY,
|
|
8533
8533
|
_hoisted_3$hY,
|
|
8534
8534
|
_hoisted_4$ay
|
|
8535
|
-
], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = {
|
|
8535
|
+
], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = ["id"], _hoisted_9$n = {
|
|
8536
8536
|
key: 0,
|
|
8537
8537
|
style: { verticalAlign: "middle" }
|
|
8538
|
-
},
|
|
8538
|
+
}, _hoisted_10$q = ["id"], _hoisted_11$g = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
|
|
8539
8539
|
class: "iconfont icon-carryout",
|
|
8540
8540
|
style: { cursor: "pointer", padding: "0" }
|
|
8541
|
-
}, null, -1)),
|
|
8541
|
+
}, null, -1)), _hoisted_12$8 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_13$4 = { style: { padding: "20px 0" } }, _sfc_main$d = {
|
|
8542
8542
|
__name: "window-grid",
|
|
8543
8543
|
props: {
|
|
8544
8544
|
gridData: {
|
|
@@ -8565,8 +8565,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
8565
8565
|
{ code: "contract", name: $T("收缩节点"), disabled: !1 }
|
|
8566
8566
|
]
|
|
8567
8567
|
]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
|
|
8568
|
-
const otherItem = ref(), tableTop = ref();
|
|
8569
|
-
let otherItemComponent = shallowRef(), tableTopComponent = shallowRef();
|
|
8568
|
+
const otherItem = ref(), tableTop = ref(), queryTop = ref();
|
|
8569
|
+
let otherItemComponent = shallowRef(), tableTopComponent = shallowRef(), queryTopComponent = shallowRef();
|
|
8570
8570
|
const preTag = computed(() => gridData.value.params.preTag || ""), computeExcelUrl = computed(() => {
|
|
8571
8571
|
let H = getCurRegion();
|
|
8572
8572
|
return H.params.newImportUrl ? H.params.newImportUrl : importUrl.value;
|
|
@@ -10066,7 +10066,20 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10066
10066
|
}, allCheckboxFunList = [], addAllCheckboxFun = (H) => {
|
|
10067
10067
|
allCheckboxFunList.push(H);
|
|
10068
10068
|
}, setGridSlotsVuePath = async (H, Q) => {
|
|
10069
|
-
gridData.value.params.slotsVuePath || (gridData.value.params.slotsVuePath = {}), Q == "other_item" ? otherItemComponent.value = (await $components[`${$componentsPath}/${H}`]()).default : Q == "table_top"
|
|
10069
|
+
if (gridData.value.params.slotsVuePath || (gridData.value.params.slotsVuePath = {}), Q == "other_item" ? otherItemComponent.value = (await $components[`${$componentsPath}/${H}`]()).default : Q == "table_top" ? tableTopComponent.value = (await $components[`${$componentsPath}/${H}`]()).default : Q == "query_top" && (queryTopComponent.value = (await $components[`${$componentsPath}/${H}`]()).default), otherItemComponent.value || tableTopComponent.value || queryTopComponent.value) {
|
|
10070
|
+
switch (gridData.value.params.slotsVuePath[Q] = H, await nextTick(), Q) {
|
|
10071
|
+
case "other_item":
|
|
10072
|
+
regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = otherItem.value, regionMap.value[Q + "-" + gridData.value.params.code] = otherItem.value;
|
|
10073
|
+
break;
|
|
10074
|
+
case "table_top":
|
|
10075
|
+
regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = tableTop.value, regionMap.value[Q + "-" + gridData.value.params.code] = tableTop.value;
|
|
10076
|
+
break;
|
|
10077
|
+
case "query_top":
|
|
10078
|
+
regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = queryTop.value, regionMap.value[Q + "-" + gridData.value.params.code] = queryTop.value;
|
|
10079
|
+
break;
|
|
10080
|
+
}
|
|
10081
|
+
getCurRegion().recalculate(!0);
|
|
10082
|
+
}
|
|
10070
10083
|
};
|
|
10071
10084
|
return onMounted(async () => {
|
|
10072
10085
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10183,11 +10196,26 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10183
10196
|
_: 2
|
|
10184
10197
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
10185
10198
|
]),
|
|
10186
|
-
|
|
10199
|
+
query_top: withCtx(({ data: se, property: ce }) => {
|
|
10200
|
+
var de;
|
|
10201
|
+
return [
|
|
10202
|
+
createElementVNode("div", {
|
|
10203
|
+
class: "query_top",
|
|
10204
|
+
id: "query_top_" + unref(gridData).params.code
|
|
10205
|
+
}, [
|
|
10206
|
+
(de = unref(gridData).params.slotsVuePath) != null && de.query_top ? (openBlock(), createBlock(resolveDynamicComponent(unref(queryTopComponent)), {
|
|
10207
|
+
key: 0,
|
|
10208
|
+
ref_key: "queryTop",
|
|
10209
|
+
ref: queryTop
|
|
10210
|
+
}, null, 512)) : createCommentVNode("", !0)
|
|
10211
|
+
], 8, _hoisted_7$14)
|
|
10212
|
+
];
|
|
10213
|
+
}),
|
|
10214
|
+
query_bottom: withCtx(({ data: se, property: ce }) => {
|
|
10187
10215
|
var de;
|
|
10188
10216
|
return [
|
|
10189
10217
|
createElementVNode("div", {
|
|
10190
|
-
class: "
|
|
10218
|
+
class: "query_bottom",
|
|
10191
10219
|
id: "other_item_" + unref(gridData).params.code
|
|
10192
10220
|
}, [
|
|
10193
10221
|
(de = unref(gridData).params.slotsVuePath) != null && de.other_item ? (openBlock(), createBlock(resolveDynamicComponent(unref(otherItemComponent)), {
|
|
@@ -10195,7 +10223,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10195
10223
|
ref_key: "otherItem",
|
|
10196
10224
|
ref: otherItem
|
|
10197
10225
|
}, null, 512)) : createCommentVNode("", !0)
|
|
10198
|
-
], 8,
|
|
10226
|
+
], 8, _hoisted_8$G)
|
|
10199
10227
|
];
|
|
10200
10228
|
}),
|
|
10201
10229
|
operation: withCtx(({ row: se, rowIndex: ce }) => [
|
|
@@ -10210,7 +10238,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10210
10238
|
onClick: (he) => toolBarButtonClick(de, se, ce)
|
|
10211
10239
|
}, createSlots({
|
|
10212
10240
|
default: withCtx(() => [
|
|
10213
|
-
!de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span",
|
|
10241
|
+
!de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_9$n, toDisplayString(unref($T)(de.name)), 1)) : createCommentVNode("", !0)
|
|
10214
10242
|
]),
|
|
10215
10243
|
_: 2
|
|
10216
10244
|
}, [
|
|
@@ -10251,7 +10279,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10251
10279
|
ref_key: "tableTop",
|
|
10252
10280
|
ref: tableTop
|
|
10253
10281
|
}, null, 512)) : createCommentVNode("", !0)
|
|
10254
|
-
], 8,
|
|
10282
|
+
], 8, _hoisted_10$q)
|
|
10255
10283
|
];
|
|
10256
10284
|
}),
|
|
10257
10285
|
checkbox_tool: withCtx(({}) => [
|
|
@@ -10268,7 +10296,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10268
10296
|
title: "已勾选数据"
|
|
10269
10297
|
}, {
|
|
10270
10298
|
default: withCtx(() => [
|
|
10271
|
-
|
|
10299
|
+
_hoisted_11$g
|
|
10272
10300
|
]),
|
|
10273
10301
|
_: 1
|
|
10274
10302
|
})
|
|
@@ -10276,7 +10304,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10276
10304
|
default: withCtx(() => [
|
|
10277
10305
|
createVNode(te, normalizeProps(guardReactiveProps(unref(checkedGridOptions))), {
|
|
10278
10306
|
toolbar_buttons: withCtx(() => [
|
|
10279
|
-
createElementVNode("b",
|
|
10307
|
+
createElementVNode("b", _hoisted_12$8, toDisplayString(unref($T)("已勾选数据")), 1),
|
|
10280
10308
|
createVNode(ee, {
|
|
10281
10309
|
status: "danger",
|
|
10282
10310
|
size: "mini",
|
|
@@ -10355,7 +10383,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10355
10383
|
"on-success": importSuccess
|
|
10356
10384
|
}, {
|
|
10357
10385
|
default: withCtx(() => [
|
|
10358
|
-
createElementVNode("div",
|
|
10386
|
+
createElementVNode("div", _hoisted_13$4, [
|
|
10359
10387
|
createVNode(re, { width: 50 }),
|
|
10360
10388
|
createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
|
|
10361
10389
|
])
|
|
@@ -10386,7 +10414,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
|
|
|
10386
10414
|
]);
|
|
10387
10415
|
};
|
|
10388
10416
|
}
|
|
10389
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10417
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-661b6710"]]);
|
|
10390
10418
|
WindowGrid.name = "slw-window-grid";
|
|
10391
10419
|
WindowGrid.install = (H) => {
|
|
10392
10420
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62517,7 +62545,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62517
62545
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62518
62546
|
setup(H, { emit: Q }) {
|
|
62519
62547
|
const Z = H, X = defineAsyncComponent(
|
|
62520
|
-
() => import("./index-
|
|
62548
|
+
() => import("./index-ea401e56.js")
|
|
62521
62549
|
);
|
|
62522
62550
|
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);
|
|
62523
62551
|
re.value = createDesigner();
|
|
@@ -62602,7 +62630,7 @@ WindowDesigner.name = "slw-window-designer";
|
|
|
62602
62630
|
WindowDesigner.install = (H) => {
|
|
62603
62631
|
H.component(WindowDesigner.name, WindowDesigner);
|
|
62604
62632
|
};
|
|
62605
|
-
const
|
|
62633
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withScopeId = (H) => (pushScopeId("data-v-995b2510"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
62606
62634
|
__name: "window-index",
|
|
62607
62635
|
props: {
|
|
62608
62636
|
windowId: {
|
|
@@ -63103,9 +63131,12 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f5b3abee_lang = "", _withSco
|
|
|
63103
63131
|
visible: !ae
|
|
63104
63132
|
});
|
|
63105
63133
|
}
|
|
63106
|
-
X.formConfig.items.
|
|
63134
|
+
X.formConfig.items.unshift({
|
|
63135
|
+
span: 24,
|
|
63136
|
+
slots: { default: "query_top" }
|
|
63137
|
+
}), X.formConfig.items.push({
|
|
63107
63138
|
span: 24,
|
|
63108
|
-
slots: { default: "
|
|
63139
|
+
slots: { default: "query_bottom" }
|
|
63109
63140
|
});
|
|
63110
63141
|
let ee = G.buttons, te = !1, ne = !1;
|
|
63111
63142
|
G.showTitle && X.toolbarConfig.buttons.push({
|
|
@@ -63814,7 +63845,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f5b3abee_lang = "", _withSco
|
|
|
63814
63845
|
]);
|
|
63815
63846
|
};
|
|
63816
63847
|
}
|
|
63817
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
63848
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-995b2510"]]);
|
|
63818
63849
|
WindowIndex.name = "slw-window-index";
|
|
63819
63850
|
WindowIndex.install = (H) => {
|
|
63820
63851
|
H.component(WindowIndex.name, WindowIndex);
|
|
@@ -147526,7 +147557,7 @@ function reConsole() {
|
|
|
147526
147557
|
}
|
|
147527
147558
|
}
|
|
147528
147559
|
console.info(
|
|
147529
|
-
`%cSLW %cVer 0.9.
|
|
147560
|
+
`%cSLW %cVer 0.9.76%c
|
|
147530
147561
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147531
147562
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147532
147563
|
"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-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-d743b8a6.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED