slw 0.8.98 → 0.9.0
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.
- package/lib/index.js +98 -23
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -38957,16 +38957,13 @@ var js = js$1.exports;
|
|
|
38957
38957
|
})(Q);
|
|
38958
38958
|
})(js$1);
|
|
38959
38959
|
var jsExports = js$1.exports;
|
|
38960
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38960
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_6c679cb8_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-6c679cb8"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38961
38961
|
key: 0,
|
|
38962
38962
|
class: "form-header-box"
|
|
38963
38963
|
}, _hoisted_3$hS = {
|
|
38964
38964
|
key: 0,
|
|
38965
38965
|
class: "form-title"
|
|
38966
|
-
}, _hoisted_4$au = {
|
|
38967
|
-
key: 1,
|
|
38968
|
-
class: "form-buttons"
|
|
38969
|
-
}, _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _hoisted_8$F = ["onClick"], _hoisted_9$m = ["onClick"], _sfc_main$5 = {
|
|
38966
|
+
}, _hoisted_4$au = ["onClick"], _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _hoisted_8$F = ["onClick"], _sfc_main$5 = {
|
|
38970
38967
|
__name: "window-form",
|
|
38971
38968
|
props: {
|
|
38972
38969
|
formConfig: {
|
|
@@ -39101,7 +39098,34 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39101
39098
|
}), computeItemTitle = computed(() => (Q) => {
|
|
39102
39099
|
const H = Q.match(/([^()]+)\(/);
|
|
39103
39100
|
return $T(H ? H[1] : Q);
|
|
39104
|
-
}), computeEditorBtnStyle = computed(() => (Q) => editorFocusField.value == Q ? "background: rgba(64, 158, 255, 0.5)" : "")
|
|
39101
|
+
}), computeEditorBtnStyle = computed(() => (Q) => editorFocusField.value == Q ? "background: rgba(64, 158, 255, 0.5)" : ""), computeOptBtnStyle = computed(() => (Q) => {
|
|
39102
|
+
let H = "";
|
|
39103
|
+
if (Q == "top")
|
|
39104
|
+
switch (formConfig.value.params.buttonPosition) {
|
|
39105
|
+
case "TOP_LEFT":
|
|
39106
|
+
H = "justify-content: flex-start;";
|
|
39107
|
+
break;
|
|
39108
|
+
case "TOP_CENTER":
|
|
39109
|
+
H = "justify-content: center;";
|
|
39110
|
+
break;
|
|
39111
|
+
case "TOP_RIGHT":
|
|
39112
|
+
H = "justify-content: flex-end;";
|
|
39113
|
+
break;
|
|
39114
|
+
}
|
|
39115
|
+
else if (Q == "bottom")
|
|
39116
|
+
switch (formConfig.value.params.buttonPosition) {
|
|
39117
|
+
case "BOTTOM_LEFT":
|
|
39118
|
+
H = "left";
|
|
39119
|
+
break;
|
|
39120
|
+
case "BOTTOM_CENTER":
|
|
39121
|
+
H = "center";
|
|
39122
|
+
break;
|
|
39123
|
+
case "BOTTOM_RIGHT":
|
|
39124
|
+
H = "right";
|
|
39125
|
+
break;
|
|
39126
|
+
}
|
|
39127
|
+
return H;
|
|
39128
|
+
});
|
|
39105
39129
|
onMounted(async () => {
|
|
39106
39130
|
var H, G, X;
|
|
39107
39131
|
if (formConfig.value.params.linkUrl)
|
|
@@ -39681,7 +39705,11 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39681
39705
|
return openBlock(), createElementBlock("div", _hoisted_1$kV, [
|
|
39682
39706
|
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kR, [
|
|
39683
39707
|
unref(formConfig).params.showTitle ? (openBlock(), createElementBlock("span", _hoisted_3$hS, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
|
|
39684
|
-
buttons.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
39708
|
+
buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("TOP") ? (openBlock(), createElementBlock("div", {
|
|
39709
|
+
key: 1,
|
|
39710
|
+
class: "form-buttons",
|
|
39711
|
+
style: normalizeStyle(computeOptBtnStyle.value("top"))
|
|
39712
|
+
}, [
|
|
39685
39713
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ne) => (openBlock(), createBlock(X, {
|
|
39686
39714
|
key: ne.id,
|
|
39687
39715
|
"auto-insert-space": "",
|
|
@@ -39711,7 +39739,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39711
39739
|
key: "0"
|
|
39712
39740
|
} : void 0
|
|
39713
39741
|
]), 1032, ["style", "loading", "onClick"]))), 128))
|
|
39714
|
-
])) : createCommentVNode("", !0)
|
|
39742
|
+
], 4)) : createCommentVNode("", !0)
|
|
39715
39743
|
])) : createCommentVNode("", !0),
|
|
39716
39744
|
createVNode(ee, {
|
|
39717
39745
|
ref_key: "form",
|
|
@@ -39763,28 +39791,28 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39763
39791
|
title: "美化",
|
|
39764
39792
|
class: "iconfont icon-magic-stick",
|
|
39765
39793
|
onClick: (re) => onEditorBtnClick(ne, "beautify")
|
|
39766
|
-
}, null, 8,
|
|
39794
|
+
}, null, 8, _hoisted_4$au)) : createCommentVNode("", !0),
|
|
39767
39795
|
createElementVNode("i", {
|
|
39768
39796
|
title: "全选",
|
|
39769
39797
|
class: "iconfont icon-check-square",
|
|
39770
39798
|
onClick: (re) => onEditorBtnClick(ne, "checkAll")
|
|
39771
|
-
}, null, 8,
|
|
39799
|
+
}, null, 8, _hoisted_5$4U),
|
|
39772
39800
|
createElementVNode("i", {
|
|
39773
39801
|
title: "复制",
|
|
39774
39802
|
class: "iconfont icon-document-copy",
|
|
39775
39803
|
onClick: (re) => onEditorBtnClick(ne, "copy")
|
|
39776
|
-
}, null, 8,
|
|
39804
|
+
}, null, 8, _hoisted_6$1_),
|
|
39777
39805
|
createElementVNode("i", {
|
|
39778
39806
|
title: "清空",
|
|
39779
39807
|
class: "iconfont icon-clear",
|
|
39780
39808
|
onClick: (re) => onEditorBtnClick(ne, "clear")
|
|
39781
|
-
}, null, 8,
|
|
39809
|
+
}, null, 8, _hoisted_7$12),
|
|
39782
39810
|
ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
39783
39811
|
key: 1,
|
|
39784
39812
|
title: "组合式API转换",
|
|
39785
39813
|
class: "iconfont icon-swap",
|
|
39786
39814
|
onClick: (re) => onEditorBtnClick(ne, "swap")
|
|
39787
|
-
}, null, 8,
|
|
39815
|
+
}, null, 8, _hoisted_8$F)) : createCommentVNode("", !0)
|
|
39788
39816
|
], 4)
|
|
39789
39817
|
]),
|
|
39790
39818
|
key: "0"
|
|
@@ -39857,7 +39885,45 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39857
39885
|
key: "3"
|
|
39858
39886
|
} : void 0
|
|
39859
39887
|
]), 1032, ["field", "title", "span", "item-render", "title-prefix", "visible", "style", "class-name", "visible-method"])) : createCommentVNode("", !0)
|
|
39860
|
-
], 64))), 128))
|
|
39888
|
+
], 64))), 128)),
|
|
39889
|
+
unref(formConfig).type === "FORM" && buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("BOTTOM") ? (openBlock(), createBlock(K, {
|
|
39890
|
+
key: 0,
|
|
39891
|
+
align: computeOptBtnStyle.value("bottom"),
|
|
39892
|
+
span: "24"
|
|
39893
|
+
}, {
|
|
39894
|
+
default: withCtx(() => [
|
|
39895
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ne) => (openBlock(), createBlock(X, {
|
|
39896
|
+
key: ne.id,
|
|
39897
|
+
"auto-insert-space": "",
|
|
39898
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + ne.css),
|
|
39899
|
+
type: "primary",
|
|
39900
|
+
loading: ne.loading,
|
|
39901
|
+
onClick: (re) => btnClickFun(ne)
|
|
39902
|
+
}, createSlots({
|
|
39903
|
+
default: withCtx(() => [
|
|
39904
|
+
createTextVNode(" " + toDisplayString(unref($T)(ne.name)), 1)
|
|
39905
|
+
]),
|
|
39906
|
+
_: 2
|
|
39907
|
+
}, [
|
|
39908
|
+
ne.iconComponent ? {
|
|
39909
|
+
name: "icon",
|
|
39910
|
+
fn: withCtx(() => [
|
|
39911
|
+
createVNode(G, {
|
|
39912
|
+
size: "15",
|
|
39913
|
+
style: { verticalAlign: "middle" }
|
|
39914
|
+
}, {
|
|
39915
|
+
default: withCtx(() => [
|
|
39916
|
+
(openBlock(), createBlock(resolveDynamicComponent(ne.iconComponent)))
|
|
39917
|
+
]),
|
|
39918
|
+
_: 2
|
|
39919
|
+
}, 1024)
|
|
39920
|
+
]),
|
|
39921
|
+
key: "0"
|
|
39922
|
+
} : void 0
|
|
39923
|
+
]), 1032, ["style", "loading", "onClick"]))), 128))
|
|
39924
|
+
]),
|
|
39925
|
+
_: 1
|
|
39926
|
+
}, 8, ["align"])) : createCommentVNode("", !0)
|
|
39861
39927
|
]),
|
|
39862
39928
|
_: 1
|
|
39863
39929
|
}, 8, ["data", "rules", "loading", "class"]),
|
|
@@ -39885,7 +39951,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39885
39951
|
]);
|
|
39886
39952
|
};
|
|
39887
39953
|
}
|
|
39888
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39954
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-6c679cb8"]]);
|
|
39889
39955
|
WindowForm.name = "slw-window-form";
|
|
39890
39956
|
WindowForm.install = (Q) => {
|
|
39891
39957
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -40508,7 +40574,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40508
40574
|
_sfc_main$2.install = (Q) => {
|
|
40509
40575
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40510
40576
|
};
|
|
40511
|
-
const
|
|
40577
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_884e163e_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-884e163e"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40512
40578
|
__name: "window-index",
|
|
40513
40579
|
props: {
|
|
40514
40580
|
windowId: {
|
|
@@ -40822,8 +40888,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_6b79eda7_lang = "", _withSco
|
|
|
40822
40888
|
linkUrl: Z.linkUrl,
|
|
40823
40889
|
addChildData: Z.addChildData,
|
|
40824
40890
|
childRegionCode: Z.childRegionCode,
|
|
40825
|
-
isHavePicUploadBtn: !1
|
|
40826
|
-
|
|
40891
|
+
isHavePicUploadBtn: !1,
|
|
40892
|
+
buttonPosition: "BOTTOM_CENTER"
|
|
40893
|
+
// 表单操作按钮布局位置 TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER(默认), BOTTOM_RIGHT
|
|
40894
|
+
}, Z.buttonPosition && Z.buttonPosition != "null" && (X.params.buttonPosition = Z.buttonPosition), Z.linkUrl && $components && $componentsPath) {
|
|
40827
40895
|
let ae = `${$componentsPath}/${Z.linkUrl}`, le = await $components[ae]();
|
|
40828
40896
|
X.params.linkComponentView = markRaw(le.default);
|
|
40829
40897
|
}
|
|
@@ -40905,7 +40973,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_6b79eda7_lang = "", _withSco
|
|
|
40905
40973
|
case "DATE":
|
|
40906
40974
|
if (ue.itemRender.attrs.style = "width: 100%;", K[se].type === "LT_GT_EQ") {
|
|
40907
40975
|
if (K[se].defaultValue) {
|
|
40908
|
-
const fe = await getQueryFormDefaultValue(
|
|
40976
|
+
const fe = await getQueryFormDefaultValue(
|
|
40977
|
+
Z.id
|
|
40978
|
+
);
|
|
40909
40979
|
fe[K[se].columnName.toUpperCase()] && (ue.itemRender.defaultValue = [
|
|
40910
40980
|
fe[K[se].columnName.toUpperCase()],
|
|
40911
40981
|
fe["END_" + K[se].columnName.toUpperCase()]
|
|
@@ -40927,7 +40997,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_6b79eda7_lang = "", _withSco
|
|
|
40927
40997
|
case "DATETIME":
|
|
40928
40998
|
if (ue.itemRender.attrs.style = "width: 100%;", K[se].type === "LT_GT_EQ") {
|
|
40929
40999
|
if (K[se].defaultValue) {
|
|
40930
|
-
const fe = await getQueryFormDefaultValue(
|
|
41000
|
+
const fe = await getQueryFormDefaultValue(
|
|
41001
|
+
Z.id
|
|
41002
|
+
);
|
|
40931
41003
|
fe[K[se].columnName.toUpperCase()] && (ue.itemRender.defaultValue = [
|
|
40932
41004
|
fe[K[se].columnName.toUpperCase()],
|
|
40933
41005
|
fe["END_" + K[se].columnName.toUpperCase()]
|
|
@@ -41183,7 +41255,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_6b79eda7_lang = "", _withSco
|
|
|
41183
41255
|
label: ge.NAME
|
|
41184
41256
|
},
|
|
41185
41257
|
ge
|
|
41186
|
-
))),
|
|
41258
|
+
))), oe[se].multiRecord && (pe.formatter = ({ row: ge, column: _e }) => ge[_e.field].split(",").map((ke) => {
|
|
41259
|
+
var we;
|
|
41260
|
+
return (we = ue.options.filter((Ce) => Ce.value == ke)[0]) == null ? void 0 : we.label;
|
|
41261
|
+
}).toString()), ue.props.dropdownStyle = {
|
|
41187
41262
|
"z-index": 5e3
|
|
41188
41263
|
};
|
|
41189
41264
|
break;
|
|
@@ -41674,7 +41749,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_6b79eda7_lang = "", _withSco
|
|
|
41674
41749
|
]);
|
|
41675
41750
|
};
|
|
41676
41751
|
}
|
|
41677
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41752
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-884e163e"]]);
|
|
41678
41753
|
WindowIndex.name = "slw-window-index";
|
|
41679
41754
|
WindowIndex.install = (Q) => {
|
|
41680
41755
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -125284,7 +125359,7 @@ function reConsole() {
|
|
|
125284
125359
|
}
|
|
125285
125360
|
}
|
|
125286
125361
|
console.info(
|
|
125287
|
-
`%cSLW %cVer 0.
|
|
125362
|
+
`%cSLW %cVer 0.9.00%c
|
|
125288
125363
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
125289
125364
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/files/6`,
|
|
125290
125365
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|