slw 0.9.51 → 0.9.53
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,17 +8525,17 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (Q) => {
|
|
8526
8526
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_edfa3df5_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-edfa3df5"), Q = Q(), popScopeId(), Q), _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 = {
|
|
8535
|
+
], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = {
|
|
8536
8536
|
key: 0,
|
|
8537
8537
|
style: { verticalAlign: "middle" }
|
|
8538
|
-
},
|
|
8538
|
+
}, _hoisted_9$n = { style: { padding: "20px 0" } }, _sfc_main$d = {
|
|
8539
8539
|
__name: "window-grid",
|
|
8540
8540
|
props: {
|
|
8541
8541
|
gridData: {
|
|
@@ -8765,7 +8765,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
|
|
|
8765
8765
|
me.width != de * 60 && de * 60 >= 60 && (fe = !0, me.width = de.toFixed(1) * 60);
|
|
8766
8766
|
return;
|
|
8767
8767
|
}
|
|
8768
|
-
}), fe && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (
|
|
8768
|
+
}), fe && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (rowIndex.value = gridData.value.params.rowIndex), le.data.data.length > rowIndex.value ? se = le.data.data[rowIndex.value] : se = le.data.data[0];
|
|
8769
8769
|
const pe = getCurRegion();
|
|
8770
8770
|
if (pe) {
|
|
8771
8771
|
const me = pe.getColumnById("_operation_");
|
|
@@ -10072,6 +10072,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
|
|
|
10072
10072
|
_: 2
|
|
10073
10073
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
10074
10074
|
]),
|
|
10075
|
+
other_item: withCtx(({ data: ae, property: le }) => [
|
|
10076
|
+
createElementVNode("div", {
|
|
10077
|
+
class: "other_item",
|
|
10078
|
+
id: "other_item_" + unref(gridData).params.code
|
|
10079
|
+
}, null, 8, _hoisted_7$14)
|
|
10080
|
+
]),
|
|
10075
10081
|
operation: withCtx(({ row: ae, rowIndex: le }) => [
|
|
10076
10082
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(le, ae), (se) => (openBlock(), createBlock(K, {
|
|
10077
10083
|
key: se._button_id,
|
|
@@ -10084,7 +10090,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
|
|
|
10084
10090
|
onClick: (ce) => toolBarButtonClick(se, ae, le)
|
|
10085
10091
|
}, createSlots({
|
|
10086
10092
|
default: withCtx(() => [
|
|
10087
|
-
!se.iconComponent || typeof se.iconComponent > "u" ? (openBlock(), createElementBlock("span",
|
|
10093
|
+
!se.iconComponent || typeof se.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$G, toDisplayString(unref($T)(se.name)), 1)) : createCommentVNode("", !0)
|
|
10088
10094
|
]),
|
|
10089
10095
|
_: 2
|
|
10090
10096
|
}, [
|
|
@@ -10170,7 +10176,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
|
|
|
10170
10176
|
"on-success": importSuccess
|
|
10171
10177
|
}, {
|
|
10172
10178
|
default: withCtx(() => [
|
|
10173
|
-
createElementVNode("div",
|
|
10179
|
+
createElementVNode("div", _hoisted_9$n, [
|
|
10174
10180
|
createVNode(te, { width: 50 }),
|
|
10175
10181
|
createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
|
|
10176
10182
|
])
|
|
@@ -10201,7 +10207,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
|
|
|
10201
10207
|
]);
|
|
10202
10208
|
};
|
|
10203
10209
|
}
|
|
10204
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10210
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-edfa3df5"]]);
|
|
10205
10211
|
WindowGrid.name = "slw-window-grid";
|
|
10206
10212
|
WindowGrid.install = (Q) => {
|
|
10207
10213
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42515,13 +42521,10 @@ var js = js$1.exports;
|
|
|
42515
42521
|
})(Q);
|
|
42516
42522
|
})(js$1);
|
|
42517
42523
|
var jsExports = js$1.exports;
|
|
42518
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42519
|
-
key: 0,
|
|
42520
|
-
class: "form-header-box"
|
|
42521
|
-
}, _hoisted_3$hX = {
|
|
42524
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_07db5a2f_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-07db5a2f"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42522
42525
|
key: 0,
|
|
42523
42526
|
class: "form-title"
|
|
42524
|
-
},
|
|
42527
|
+
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$c = {
|
|
42525
42528
|
__name: "window-form",
|
|
42526
42529
|
props: {
|
|
42527
42530
|
formConfig: {
|
|
@@ -42664,7 +42667,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42664
42667
|
H = "justify-content: flex-start;";
|
|
42665
42668
|
break;
|
|
42666
42669
|
case "TOP_CENTER":
|
|
42667
|
-
H = "justify-content: center;";
|
|
42670
|
+
H = "justify-content: center;", computeOnlyShowBtn.value && (H = "justify-content: center;height: 100%;align-items: center;");
|
|
42668
42671
|
break;
|
|
42669
42672
|
case "TOP_RIGHT":
|
|
42670
42673
|
H = "justify-content: flex-end;";
|
|
@@ -42683,6 +42686,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42683
42686
|
break;
|
|
42684
42687
|
}
|
|
42685
42688
|
return H;
|
|
42689
|
+
}), computeOnlyShowBtn = computed(() => {
|
|
42690
|
+
let Q = !1;
|
|
42691
|
+
return formConfig.value.columns.filter((G) => G.displayForm).length == 0 && (Q = !0), Q;
|
|
42686
42692
|
});
|
|
42687
42693
|
onMounted(async () => {
|
|
42688
42694
|
var H, G, X;
|
|
@@ -43269,8 +43275,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43269
43275
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
43270
43276
|
const G = resolveComponent("el-icon"), X = resolveComponent("el-button"), Z = resolveComponent("el-input"), K = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
|
|
43271
43277
|
return openBlock(), createElementBlock("div", _hoisted_1$l0, [
|
|
43272
|
-
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div",
|
|
43273
|
-
|
|
43278
|
+
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
|
|
43279
|
+
key: 0,
|
|
43280
|
+
class: "form-header-box",
|
|
43281
|
+
style: normalizeStyle(computeOnlyShowBtn.value ? "height: 100%" : "")
|
|
43282
|
+
}, [
|
|
43283
|
+
unref(formConfig).params.showTitle ? (openBlock(), createElementBlock("span", _hoisted_2$kX, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
|
|
43274
43284
|
buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("TOP") ? (openBlock(), createElementBlock("div", {
|
|
43275
43285
|
key: 1,
|
|
43276
43286
|
class: "form-buttons",
|
|
@@ -43306,7 +43316,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43306
43316
|
} : void 0
|
|
43307
43317
|
]), 1032, ["style", "loading", "onClick"]))), 128))
|
|
43308
43318
|
], 4)) : createCommentVNode("", !0)
|
|
43309
|
-
])) : createCommentVNode("", !0),
|
|
43319
|
+
], 4)) : createCommentVNode("", !0),
|
|
43310
43320
|
createVNode(ee, {
|
|
43311
43321
|
ref_key: "form",
|
|
43312
43322
|
ref: form,
|
|
@@ -43357,28 +43367,28 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43357
43367
|
title: "美化",
|
|
43358
43368
|
class: "iconfont icon-magic-stick",
|
|
43359
43369
|
onClick: (re) => onEditorBtnClick(ne, "beautify")
|
|
43360
|
-
}, null, 8,
|
|
43370
|
+
}, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
|
|
43361
43371
|
createElementVNode("i", {
|
|
43362
43372
|
title: "全选",
|
|
43363
43373
|
class: "iconfont icon-check-square",
|
|
43364
43374
|
onClick: (re) => onEditorBtnClick(ne, "checkAll")
|
|
43365
|
-
}, null, 8,
|
|
43375
|
+
}, null, 8, _hoisted_4$ax),
|
|
43366
43376
|
createElementVNode("i", {
|
|
43367
43377
|
title: "复制",
|
|
43368
43378
|
class: "iconfont icon-document-copy",
|
|
43369
43379
|
onClick: (re) => onEditorBtnClick(ne, "copy")
|
|
43370
|
-
}, null, 8,
|
|
43380
|
+
}, null, 8, _hoisted_5$4X),
|
|
43371
43381
|
createElementVNode("i", {
|
|
43372
43382
|
title: "清空",
|
|
43373
43383
|
class: "iconfont icon-clear",
|
|
43374
43384
|
onClick: (re) => onEditorBtnClick(ne, "clear")
|
|
43375
|
-
}, null, 8,
|
|
43385
|
+
}, null, 8, _hoisted_6$20),
|
|
43376
43386
|
ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
43377
43387
|
key: 1,
|
|
43378
43388
|
title: "组合式API转换",
|
|
43379
43389
|
class: "iconfont icon-swap",
|
|
43380
43390
|
onClick: (re) => onEditorBtnClick(ne, "swap")
|
|
43381
|
-
}, null, 8,
|
|
43391
|
+
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
|
|
43382
43392
|
], 4)
|
|
43383
43393
|
]),
|
|
43384
43394
|
key: "0"
|
|
@@ -43513,7 +43523,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43513
43523
|
]);
|
|
43514
43524
|
};
|
|
43515
43525
|
}
|
|
43516
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
43526
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-07db5a2f"]]);
|
|
43517
43527
|
WindowForm.name = "slw-window-form";
|
|
43518
43528
|
WindowForm.install = (Q) => {
|
|
43519
43529
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59289,7 +59299,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59289
59299
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59290
59300
|
setup(Q, { emit: H }) {
|
|
59291
59301
|
const G = Q, X = defineAsyncComponent(
|
|
59292
|
-
() => import("./index-
|
|
59302
|
+
() => import("./index-e2d7bc6e.js")
|
|
59293
59303
|
);
|
|
59294
59304
|
let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
|
|
59295
59305
|
re.value = createDesigner();
|
|
@@ -59374,7 +59384,7 @@ WindowDesigner.name = "slw-window-designer";
|
|
|
59374
59384
|
WindowDesigner.install = (Q) => {
|
|
59375
59385
|
Q.component(WindowDesigner.name, WindowDesigner);
|
|
59376
59386
|
};
|
|
59377
|
-
const
|
|
59387
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_f3042971_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-f3042971"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
59378
59388
|
__name: "window-index",
|
|
59379
59389
|
props: {
|
|
59380
59390
|
windowId: {
|
|
@@ -59866,6 +59876,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e74c82c7_lang = "", _withSco
|
|
|
59866
59876
|
]
|
|
59867
59877
|
},
|
|
59868
59878
|
visible: !ae
|
|
59879
|
+
}), X.formConfig.items.push({
|
|
59880
|
+
span: 24,
|
|
59881
|
+
slots: { default: "other_item" }
|
|
59869
59882
|
});
|
|
59870
59883
|
}
|
|
59871
59884
|
let ee = Z.buttons, te = !1, ne = !1;
|
|
@@ -60574,7 +60587,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e74c82c7_lang = "", _withSco
|
|
|
60574
60587
|
]);
|
|
60575
60588
|
};
|
|
60576
60589
|
}
|
|
60577
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
60590
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f3042971"]]);
|
|
60578
60591
|
WindowIndex.name = "slw-window-index";
|
|
60579
60592
|
WindowIndex.install = (Q) => {
|
|
60580
60593
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -144287,7 +144300,7 @@ function reConsole() {
|
|
|
144287
144300
|
}
|
|
144288
144301
|
}
|
|
144289
144302
|
console.info(
|
|
144290
|
-
`%cSLW %cVer 0.9.
|
|
144303
|
+
`%cSLW %cVer 0.9.53%c
|
|
144291
144304
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144292
144305
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144293
144306
|
"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-4148bd9e.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED