slw 0.9.67 → 0.9.69
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
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_bd149a4a_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-bd149a4a"), 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 = [
|
|
@@ -8593,27 +8593,41 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
8593
8593
|
let checkedGridOptions = ref({});
|
|
8594
8594
|
const computeCheckedData = computed(() => {
|
|
8595
8595
|
const H = getCheckedData();
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
},
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8596
|
+
if ((H == null ? void 0 : H.length) > 0) {
|
|
8597
|
+
const Q = gridData.value.rowId;
|
|
8598
|
+
if (removeCheckedRow.value) {
|
|
8599
|
+
let X = H.findIndex((G) => G[Q] == removeCheckedRow.value[Q]);
|
|
8600
|
+
X >= 0 && H.splice(X, 1);
|
|
8601
|
+
}
|
|
8602
|
+
let Z = gridData.value.columns.filter((X) => X.field);
|
|
8603
|
+
return Z.unshift({ title: "操作", width: 100, align: "center", slots: { default: "operate" } }), checkedGridOptions.value = {
|
|
8604
|
+
border: !0,
|
|
8605
|
+
showOverflow: "title",
|
|
8606
|
+
showHeaderOverflow: !0,
|
|
8607
|
+
align: null,
|
|
8608
|
+
columnConfig: {
|
|
8609
|
+
resizable: !0
|
|
8610
|
+
},
|
|
8611
|
+
rowId: Q,
|
|
8612
|
+
columns: Z,
|
|
8613
|
+
toolbarConfig: {
|
|
8614
|
+
buttons: [
|
|
8615
|
+
{
|
|
8616
|
+
name: $T("已勾选数据"),
|
|
8617
|
+
buttonRender: { name: "toolBarTitle" }
|
|
8618
|
+
}
|
|
8619
|
+
],
|
|
8620
|
+
custom: !0
|
|
8621
|
+
},
|
|
8622
|
+
data: H
|
|
8623
|
+
}, !0;
|
|
8624
|
+
}
|
|
8625
|
+
return !1;
|
|
8626
|
+
});
|
|
8627
|
+
let removeCheckedRow = ref(null);
|
|
8628
|
+
const removeRowEvent = (H) => {
|
|
8629
|
+
removeCheckedRow.value = H, getCurRegion().setCheckboxRow(H, !1);
|
|
8630
|
+
}, showButtons = (H, Q) => gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? gridData.value.toolbarConfig.buttons.filter(
|
|
8617
8631
|
(Z) => Z.showInGrid && Z.btnShowInGrid[Q._INDEX]
|
|
8618
8632
|
) : gridData.value.toolbarConfig.buttons.filter(
|
|
8619
8633
|
(Z) => Z.showInGrid && Z.btnShowInGrid[H]
|
|
@@ -9182,7 +9196,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
9182
9196
|
getCurRegion().commitProxy("query", { clearGrid: !0 });
|
|
9183
9197
|
}, getCheckedData = () => {
|
|
9184
9198
|
const H = getCurRegion();
|
|
9185
|
-
return H ? H.getCheckboxRecords() : null;
|
|
9199
|
+
return H ? H.getCheckboxRecords().concat(H.getCheckboxReserveRecords()) : null;
|
|
9186
9200
|
}, headerCheckboxChange = ({ checked: H, row: Q, rowIndex: Z }) => {
|
|
9187
9201
|
let X = getCheckedData();
|
|
9188
9202
|
if (X.length > 0)
|
|
@@ -10075,14 +10089,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10075
10089
|
}), onUnmounted(() => {
|
|
10076
10090
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10077
10091
|
}), __expose({ gridReload, reload }), (H, Q) => {
|
|
10078
|
-
const Z = resolveComponent("el-input"), X = resolveComponent("el-icon"), G = resolveComponent("el-tooltip"), K = resolveComponent("el-button"), ee = resolveComponent("vxe-
|
|
10092
|
+
const Z = resolveComponent("el-input"), X = resolveComponent("el-icon"), G = resolveComponent("el-tooltip"), K = resolveComponent("el-button"), ee = resolveComponent("vxe-button"), te = resolveComponent("vxe-grid"), ne = resolveComponent("el-popover"), re = resolveComponent("cloud-upload"), oe = resolveComponent("el-upload"), ae = resolveComponent("download-outline"), le = resolveComponent("el-dialog");
|
|
10079
10093
|
return openBlock(), createElementBlock("div", _hoisted_1$l1, [
|
|
10080
10094
|
createElementVNode("div", {
|
|
10081
10095
|
class: "vxe-table--cell-area",
|
|
10082
10096
|
ref_key: "cellarea",
|
|
10083
10097
|
ref: cellarea
|
|
10084
10098
|
}, _hoisted_5$4Y, 512),
|
|
10085
|
-
createVNode(
|
|
10099
|
+
createVNode(te, mergeProps$1({
|
|
10086
10100
|
ref_key: "curRegion",
|
|
10087
10101
|
ref: curRegion,
|
|
10088
10102
|
class: computeGridClass.value,
|
|
@@ -10099,48 +10113,48 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10099
10113
|
onProxyQuery: headerProxyQuery,
|
|
10100
10114
|
onCustom: headerCustomClick
|
|
10101
10115
|
}), {
|
|
10102
|
-
scan_item: withCtx(({ data:
|
|
10116
|
+
scan_item: withCtx(({ data: se, property: ce }) => [
|
|
10103
10117
|
createVNode(Z, {
|
|
10104
|
-
modelValue: unref(queryFormScanData)[
|
|
10105
|
-
"onUpdate:modelValue": (
|
|
10118
|
+
modelValue: unref(queryFormScanData)[ce],
|
|
10119
|
+
"onUpdate:modelValue": (de) => unref(queryFormScanData)[ce] = de
|
|
10106
10120
|
}, {
|
|
10107
10121
|
suffix: withCtx(() => [
|
|
10108
10122
|
createElementVNode("i", {
|
|
10109
10123
|
class: "iconfont icon-scan1",
|
|
10110
|
-
onClick: (
|
|
10124
|
+
onClick: (de) => onScanIconClick(se[ce], ce),
|
|
10111
10125
|
style: { cursor: "pointer" }
|
|
10112
10126
|
}, null, 8, _hoisted_6$21)
|
|
10113
10127
|
]),
|
|
10114
10128
|
_: 2
|
|
10115
10129
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
10116
10130
|
]),
|
|
10117
|
-
other_item: withCtx(({ data:
|
|
10131
|
+
other_item: withCtx(({ data: se, property: ce }) => [
|
|
10118
10132
|
createElementVNode("div", {
|
|
10119
10133
|
class: "other_item",
|
|
10120
10134
|
id: "other_item_" + unref(gridData).params.code
|
|
10121
10135
|
}, null, 8, _hoisted_7$14)
|
|
10122
10136
|
]),
|
|
10123
|
-
operation: withCtx(({ row:
|
|
10124
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(
|
|
10125
|
-
key:
|
|
10126
|
-
iconComponent:
|
|
10137
|
+
operation: withCtx(({ row: se, rowIndex: ce }) => [
|
|
10138
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(ce, se), (de) => (openBlock(), createBlock(K, {
|
|
10139
|
+
key: de._button_id,
|
|
10140
|
+
iconComponent: de.iconComponent,
|
|
10127
10141
|
"auto-insert-space": "",
|
|
10128
10142
|
size: "small",
|
|
10129
|
-
style: normalizeStyle(
|
|
10143
|
+
style: normalizeStyle(de.css + "marginLeft: 0px; padding: 5px"),
|
|
10130
10144
|
type: "primary",
|
|
10131
10145
|
text: "",
|
|
10132
|
-
onClick: (
|
|
10146
|
+
onClick: (he) => toolBarButtonClick(de, se, ce)
|
|
10133
10147
|
}, createSlots({
|
|
10134
10148
|
default: withCtx(() => [
|
|
10135
|
-
!
|
|
10149
|
+
!de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$G, toDisplayString(unref($T)(de.name)), 1)) : createCommentVNode("", !0)
|
|
10136
10150
|
]),
|
|
10137
10151
|
_: 2
|
|
10138
10152
|
}, [
|
|
10139
|
-
|
|
10153
|
+
de.iconComponent ? {
|
|
10140
10154
|
name: "icon",
|
|
10141
10155
|
fn: withCtx(() => [
|
|
10142
10156
|
createVNode(G, {
|
|
10143
|
-
content: unref($T)(
|
|
10157
|
+
content: unref($T)(de.name),
|
|
10144
10158
|
placement: "top"
|
|
10145
10159
|
}, {
|
|
10146
10160
|
default: withCtx(() => [
|
|
@@ -10149,7 +10163,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10149
10163
|
style: { verticalAlign: "middle" }
|
|
10150
10164
|
}, {
|
|
10151
10165
|
default: withCtx(() => [
|
|
10152
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
10166
|
+
(openBlock(), createBlock(resolveDynamicComponent(de.iconComponent)))
|
|
10153
10167
|
]),
|
|
10154
10168
|
_: 2
|
|
10155
10169
|
}, 1024)
|
|
@@ -10168,7 +10182,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10168
10182
|
}, null, 8, _hoisted_9$n)
|
|
10169
10183
|
]),
|
|
10170
10184
|
checkbox_tool: withCtx(({}) => [
|
|
10171
|
-
computeCheckedData.value ? (openBlock(), createBlock(
|
|
10185
|
+
computeCheckedData.value ? (openBlock(), createBlock(ne, {
|
|
10172
10186
|
key: 0,
|
|
10173
10187
|
placement: "right",
|
|
10174
10188
|
width: 500,
|
|
@@ -10187,19 +10201,29 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10187
10201
|
})
|
|
10188
10202
|
]),
|
|
10189
10203
|
default: withCtx(() => [
|
|
10190
|
-
createVNode(
|
|
10204
|
+
createVNode(te, normalizeProps(guardReactiveProps(unref(checkedGridOptions))), {
|
|
10205
|
+
operate: withCtx(({ row: se }) => [
|
|
10206
|
+
createVNode(ee, {
|
|
10207
|
+
status: "danger",
|
|
10208
|
+
content: "删除",
|
|
10209
|
+
size: "mini",
|
|
10210
|
+
onClick: (ce) => removeRowEvent(se)
|
|
10211
|
+
}, null, 8, ["onClick"])
|
|
10212
|
+
]),
|
|
10213
|
+
_: 1
|
|
10214
|
+
}, 16)
|
|
10191
10215
|
]),
|
|
10192
10216
|
_: 1
|
|
10193
10217
|
})) : createCommentVNode("", !0)
|
|
10194
10218
|
]),
|
|
10195
10219
|
_: 1
|
|
10196
10220
|
}, 16, ["class"]),
|
|
10197
|
-
createVNode(
|
|
10221
|
+
createVNode(le, {
|
|
10198
10222
|
ref: "importModal",
|
|
10199
10223
|
modelValue: unref(isImport),
|
|
10200
|
-
"onUpdate:modelValue": Q[0] || (Q[0] = (
|
|
10224
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (se) => isRef(isImport) ? isImport.value = se : isImport = se),
|
|
10201
10225
|
visible: unref(isImport),
|
|
10202
|
-
"onUpdate:visible": Q[1] || (Q[1] = (
|
|
10226
|
+
"onUpdate:visible": Q[1] || (Q[1] = (se) => isRef(isImport) ? isImport.value = se : isImport = se),
|
|
10203
10227
|
zIndex: 1e3,
|
|
10204
10228
|
title: unref($T)("Excel导入"),
|
|
10205
10229
|
width: "500px",
|
|
@@ -10227,7 +10251,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10227
10251
|
style: { verticalAlign: "middle" }
|
|
10228
10252
|
}, {
|
|
10229
10253
|
default: withCtx(() => [
|
|
10230
|
-
createVNode(
|
|
10254
|
+
createVNode(ae)
|
|
10231
10255
|
]),
|
|
10232
10256
|
_: 1
|
|
10233
10257
|
})
|
|
@@ -10236,7 +10260,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10236
10260
|
})
|
|
10237
10261
|
]),
|
|
10238
10262
|
default: withCtx(() => [
|
|
10239
|
-
createVNode(
|
|
10263
|
+
createVNode(oe, {
|
|
10240
10264
|
ref: "uploadExcel",
|
|
10241
10265
|
type: "drag",
|
|
10242
10266
|
drag: "",
|
|
@@ -10250,7 +10274,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10250
10274
|
}, {
|
|
10251
10275
|
default: withCtx(() => [
|
|
10252
10276
|
createElementVNode("div", _hoisted_11$g, [
|
|
10253
|
-
createVNode(
|
|
10277
|
+
createVNode(re, { width: 50 }),
|
|
10254
10278
|
createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
|
|
10255
10279
|
])
|
|
10256
10280
|
]),
|
|
@@ -10259,11 +10283,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10259
10283
|
]),
|
|
10260
10284
|
_: 1
|
|
10261
10285
|
}, 8, ["modelValue", "visible", "title"]),
|
|
10262
|
-
createVNode(
|
|
10286
|
+
createVNode(le, {
|
|
10263
10287
|
ref: "pictureUploadModal",
|
|
10264
10288
|
width: "20%",
|
|
10265
10289
|
modelValue: unref(uploadConfig).show,
|
|
10266
|
-
"onUpdate:modelValue": Q[2] || (Q[2] = (
|
|
10290
|
+
"onUpdate:modelValue": Q[2] || (Q[2] = (se) => unref(uploadConfig).show = se),
|
|
10267
10291
|
"z-index": 1e3,
|
|
10268
10292
|
draggable: "",
|
|
10269
10293
|
"append-to-body": "",
|
|
@@ -10280,7 +10304,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4343f8f2_lang = "", _withScop
|
|
|
10280
10304
|
]);
|
|
10281
10305
|
};
|
|
10282
10306
|
}
|
|
10283
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10307
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-bd149a4a"]]);
|
|
10284
10308
|
WindowGrid.name = "slw-window-grid";
|
|
10285
10309
|
WindowGrid.install = (H) => {
|
|
10286
10310
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62390,7 +62414,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62390
62414
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62391
62415
|
setup(H, { emit: Q }) {
|
|
62392
62416
|
const Z = H, X = defineAsyncComponent(
|
|
62393
|
-
() => import("./index-
|
|
62417
|
+
() => import("./index-c0486e96.js")
|
|
62394
62418
|
);
|
|
62395
62419
|
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);
|
|
62396
62420
|
re.value = createDesigner();
|
|
@@ -147399,7 +147423,7 @@ function reConsole() {
|
|
|
147399
147423
|
}
|
|
147400
147424
|
}
|
|
147401
147425
|
console.info(
|
|
147402
|
-
`%cSLW %cVer 0.9.
|
|
147426
|
+
`%cSLW %cVer 0.9.69%c
|
|
147403
147427
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147404
147428
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147405
147429
|
"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-23d72455.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED