slw 0.8.78 → 0.8.80
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 +36 -13
- package/lib/index.umd.cjs +7 -7
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8511
8511
|
PictureUpload.install = (Q) => {
|
|
8512
8512
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8513
8513
|
};
|
|
8514
|
-
const
|
|
8514
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_7237020f_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-7237020f"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8515
8515
|
class: "slw-window-grid-container",
|
|
8516
8516
|
style: { height: "100%" }
|
|
8517
8517
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hU = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$av = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4V = [
|
|
@@ -8723,7 +8723,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_24c44435_lang = "", _withScop
|
|
|
8723
8723
|
let ve = me.name.match(/[\u4e00-\u9fa5]/g);
|
|
8724
8724
|
if (ve) {
|
|
8725
8725
|
let ke = Math.ceil(ve.length / 2);
|
|
8726
|
-
pe += ke
|
|
8726
|
+
pe += ke;
|
|
8727
|
+
} else {
|
|
8728
|
+
let ke = Math.ceil(me.name.length / 6);
|
|
8729
|
+
pe += ke;
|
|
8727
8730
|
}
|
|
8728
8731
|
}
|
|
8729
8732
|
}
|
|
@@ -10059,7 +10062,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_24c44435_lang = "", _withScop
|
|
|
10059
10062
|
]);
|
|
10060
10063
|
};
|
|
10061
10064
|
}
|
|
10062
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10065
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7237020f"]]);
|
|
10063
10066
|
WindowGrid.name = "slw-window-grid";
|
|
10064
10067
|
WindowGrid.install = (Q) => {
|
|
10065
10068
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -38896,7 +38899,7 @@ var js = js$1.exports;
|
|
|
38896
38899
|
})(Q);
|
|
38897
38900
|
})(js$1);
|
|
38898
38901
|
var jsExports = js$1.exports;
|
|
38899
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38902
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_778f9c06_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-778f9c06"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38900
38903
|
key: 0,
|
|
38901
38904
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38902
38905
|
}, _hoisted_3$hT = ["onClick"], _hoisted_4$au = ["onClick"], _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _sfc_main$5 = {
|
|
@@ -39452,7 +39455,8 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39452
39455
|
}, onIconInputEnter = (Q, H) => {
|
|
39453
39456
|
H.key === "Enter" && Q.itemRender.props.enterFunction && evalEvent(
|
|
39454
39457
|
Q.itemRender.props.enterFunction,
|
|
39455
|
-
formData.value[Q.field]
|
|
39458
|
+
formData.value[Q.field],
|
|
39459
|
+
Q.field
|
|
39456
39460
|
);
|
|
39457
39461
|
}, onIconClick = (Q) => {
|
|
39458
39462
|
Q.itemRender.props.iconClickFun && evalEvent(
|
|
@@ -39669,11 +39673,12 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39669
39673
|
class: "iconfont icon-clear",
|
|
39670
39674
|
onClick: (re) => onEditorBtnClick(ne, "clear")
|
|
39671
39675
|
}, null, 8, _hoisted_6$1_),
|
|
39672
|
-
|
|
39676
|
+
ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
39677
|
+
key: 1,
|
|
39673
39678
|
title: "组合式API转换",
|
|
39674
39679
|
class: "iconfont icon-swap",
|
|
39675
39680
|
onClick: (re) => onEditorBtnClick(ne, "swap")
|
|
39676
|
-
}, null, 8, _hoisted_7$12)
|
|
39681
|
+
}, null, 8, _hoisted_7$12)) : createCommentVNode("", !0)
|
|
39677
39682
|
], 4)
|
|
39678
39683
|
]),
|
|
39679
39684
|
key: "0"
|
|
@@ -39812,7 +39817,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39812
39817
|
]);
|
|
39813
39818
|
};
|
|
39814
39819
|
}
|
|
39815
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39820
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-778f9c06"]]);
|
|
39816
39821
|
WindowForm.name = "slw-window-form";
|
|
39817
39822
|
WindowForm.install = (Q) => {
|
|
39818
39823
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -40449,7 +40454,11 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40449
40454
|
_sfc_main$2.install = (Q) => {
|
|
40450
40455
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40451
40456
|
};
|
|
40452
|
-
const
|
|
40457
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_5709e274_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-5709e274"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { style: {
|
|
40458
|
+
fontSize: "16px",
|
|
40459
|
+
fontWeight: "bold",
|
|
40460
|
+
letterSpacing: "1px"
|
|
40461
|
+
} }, _hoisted_3$hS = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40453
40462
|
__name: "window-index",
|
|
40454
40463
|
props: {
|
|
40455
40464
|
windowId: {
|
|
@@ -40617,7 +40626,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_fb5e7ce8_lang = "", _withSco
|
|
|
40617
40626
|
});
|
|
40618
40627
|
}
|
|
40619
40628
|
return Q;
|
|
40620
|
-
}, getParentRegion = (Q) => layoutIdRegionMap.value[Q] ? regionIdRegionMap.value[layoutIdRegionMap.value[Q].parentRegionId] : null,
|
|
40629
|
+
}, getParentRegion = (Q) => layoutIdRegionMap.value[Q] ? regionIdRegionMap.value[layoutIdRegionMap.value[Q].parentRegionId] : null, getQueryFormDefaultValue = async (Q) => {
|
|
40630
|
+
const H = await axios.post(
|
|
40631
|
+
"window/paramsDefaultValue",
|
|
40632
|
+
$qs.stringify({ _region_id: Q })
|
|
40633
|
+
);
|
|
40634
|
+
if (H != null && H.data.result && H.data.data)
|
|
40635
|
+
return H.data.data;
|
|
40636
|
+
}, joinFieldInfo = async (Q, H, X) => {
|
|
40621
40637
|
let G = {
|
|
40622
40638
|
border: "inner",
|
|
40623
40639
|
stripe: !0,
|
|
@@ -40847,7 +40863,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_fb5e7ce8_lang = "", _withSco
|
|
|
40847
40863
|
});
|
|
40848
40864
|
break;
|
|
40849
40865
|
case "DATETIME":
|
|
40850
|
-
ue.itemRender.attrs.style = "width: 100%;", K[se].
|
|
40866
|
+
if (ue.itemRender.attrs.style = "width: 100%;", K[se].defaultValue) {
|
|
40867
|
+
const fe = await getQueryFormDefaultValue(Z.id);
|
|
40868
|
+
fe[K[se].columnName.toUpperCase()] && (ue.itemRender.defaultValue = [
|
|
40869
|
+
fe[K[se].columnName.toUpperCase()],
|
|
40870
|
+
fe["END_" + K[se].columnName.toUpperCase()]
|
|
40871
|
+
]);
|
|
40872
|
+
}
|
|
40873
|
+
K[se].type === "LT_GT_EQ" ? (ue.itemRender.name = "ElDateRangePicker", ue.itemRender.props = {
|
|
40851
40874
|
...ue.itemRender.props,
|
|
40852
40875
|
type: "datetimerange",
|
|
40853
40876
|
isRange: !0,
|
|
@@ -41603,7 +41626,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_fb5e7ce8_lang = "", _withSco
|
|
|
41603
41626
|
]);
|
|
41604
41627
|
};
|
|
41605
41628
|
}
|
|
41606
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41629
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5709e274"]]);
|
|
41607
41630
|
WindowIndex.name = "slw-window-index";
|
|
41608
41631
|
WindowIndex.install = (Q) => {
|
|
41609
41632
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -124411,7 +124434,7 @@ function reConsole() {
|
|
|
124411
124434
|
}
|
|
124412
124435
|
}
|
|
124413
124436
|
console.info(
|
|
124414
|
-
`%cSLW %cVer 0.8.
|
|
124437
|
+
`%cSLW %cVer 0.8.80%c
|
|
124415
124438
|
%c文档地址:%chttp://slwdoc.js.sforcecon.com:5900/`,
|
|
124416
124439
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
|
124417
124440
|
"color:#fff;font-size: 12px;background-color:#409EFF;padding:2px 4px;border-radius:3px;",
|