slw 1.0.0-rc.1.8 → 1.0.0-rc.1.9
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.
|
@@ -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-cdd5c2fe.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -53275,7 +53275,7 @@ WindowCharts.name = "slw-window-charts";
|
|
|
53275
53275
|
WindowCharts.install = (G) => {
|
|
53276
53276
|
G.component(WindowCharts.name, WindowCharts);
|
|
53277
53277
|
};
|
|
53278
|
-
const
|
|
53278
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_029fd65c_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-029fd65c"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
|
|
53279
53279
|
class: "slw-window-grid-container",
|
|
53280
53280
|
style: { height: "100%" }
|
|
53281
53281
|
}, _hoisted_2$k_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$h_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$aA = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4_ = [
|
|
@@ -54237,7 +54237,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_05119f82_lang = "", _withScop
|
|
|
54237
54237
|
for (const Q of Object.keys(formSelectMap.value)) {
|
|
54238
54238
|
const K = formSelectMap.value[Q];
|
|
54239
54239
|
K.dataType === "TREE" ? await getSelectorData(G, K.id, K.selectorId).then((Z) => {
|
|
54240
|
-
K.editRender.props.treeData = Z, K.editRender.name == "ElCascader" && (K.editRender.props.options = Z);
|
|
54240
|
+
K.editRender.props.treeData = Z, K.editRender.name == "ElCascader" && (K.editRender.props.options = Z), K.editRender.props.props || (K.editRender.props.props = {}), K.editRender.props.props.label = (ee, te) => ee.label || ee.title;
|
|
54241
54241
|
}) : typeof K.selectorId < "u" && (await getSelectorData(G, K.id, K.selectorId).then((Z) => {
|
|
54242
54242
|
K.editRender.options = Z.map((ee) => Object.assign(
|
|
54243
54243
|
{
|
|
@@ -54276,8 +54276,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_05119f82_lang = "", _withScop
|
|
|
54276
54276
|
}), ae != H.length - 1 && (Z["_" + K + "_NAME"] += ",");
|
|
54277
54277
|
})) : (H = H[H.length - 1], re = Object.assign({}, getSelectedTreeDataOptionByValue(ne, H)), Z["_" + K + "_NAME"] = re.label), Z[K] = H) : X.multiple ? (Z["_" + K + "_NAME"] = "", H.forEach((oe, ae) => {
|
|
54278
54278
|
let se = Object.assign({}, getSelectedTreeDataOptionByValue(ne, oe));
|
|
54279
|
-
ae == 0 ? Z["_" + K + "_NAME"] = se.label : Z["_" + K + "_NAME"] += `,${se.label}`;
|
|
54280
|
-
})) : (re = Object.assign({}, getSelectedTreeDataOptionByValue(ne, H)), Z["_" + K + "_NAME"] = re.label), evalEvent(X.changeFunction, H, re, "字段值更改方法");
|
|
54279
|
+
ae == 0 ? Z["_" + K + "_NAME"] = se.label || se.title : Z["_" + K + "_NAME"] += `,${se.label || se.title}`;
|
|
54280
|
+
})) : (re = Object.assign({}, getSelectedTreeDataOptionByValue(ne, H)), Z["_" + K + "_NAME"] = re.label || opt.title), evalEvent(X.changeFunction, H, re, "字段值更改方法");
|
|
54281
54281
|
}
|
|
54282
54282
|
} else
|
|
54283
54283
|
evalEvent(X.changeFunction, H, K, Z, "字段值更改方法");
|
|
@@ -55417,7 +55417,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_05119f82_lang = "", _withScop
|
|
|
55417
55417
|
]);
|
|
55418
55418
|
};
|
|
55419
55419
|
}
|
|
55420
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
55420
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-029fd65c"]]);
|
|
55421
55421
|
WindowGrid.name = "slw-window-grid";
|
|
55422
55422
|
WindowGrid.install = (G) => {
|
|
55423
55423
|
G.component(WindowGrid.name, WindowGrid);
|
|
@@ -77850,7 +77850,7 @@ var js = js$1.exports;
|
|
|
77850
77850
|
})(G);
|
|
77851
77851
|
})(js$1);
|
|
77852
77852
|
var jsExports = js$1.exports;
|
|
77853
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
77853
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_44d11799_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-44d11799"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
|
|
77854
77854
|
key: 0,
|
|
77855
77855
|
class: "form-title"
|
|
77856
77856
|
}, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$e = {
|
|
@@ -78235,7 +78235,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
78235
78235
|
_select_id: ee.selectorId
|
|
78236
78236
|
})
|
|
78237
78237
|
).then((te) => {
|
|
78238
|
-
te.data.result && te.data.data && (ee.itemRender.props.treeData = te.data.data, ee.itemRender.name == "ElCascader" && (ee.itemRender.props.options = te.data.data));
|
|
78238
|
+
te.data.result && te.data.data && (ee.itemRender.props.treeData = te.data.data, ee.itemRender.name == "ElCascader" && (ee.itemRender.props.options = te.data.data), ee.itemRender.props.props || (ee.itemRender.props.props = {}), ee.itemRender.props.props.label = (ne, re) => ne.label || ne.title);
|
|
78239
78239
|
});
|
|
78240
78240
|
else if (ee.remoteSearch) {
|
|
78241
78241
|
ee.itemRender.options = [], ee.itemRender.props.remoteMethod = debounce(async (ne) => {
|
|
@@ -78346,17 +78346,17 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
78346
78346
|
if (H instanceof Array)
|
|
78347
78347
|
formConfig.value.formData[G.property] = H, formConfig.value.formData[Z] = "", H.forEach((ne, re) => {
|
|
78348
78348
|
let oe = Object.assign({}, getSelectedTreeDataOptionByValue(te, ne));
|
|
78349
|
-
re == 0 ? formConfig.value.formData[Z] = oe.label : formConfig.value.formData[Z] += `,${oe.label}`;
|
|
78349
|
+
re == 0 ? formConfig.value.formData[Z] = oe.label || oe.title : formConfig.value.formData[Z] += `,${oe.label || oe.title}`;
|
|
78350
78350
|
});
|
|
78351
78351
|
else if (X = Object.assign({}, getSelectedTreeDataOptionByValue(te, H)), Object.keys(X).length > 0)
|
|
78352
78352
|
if (G.checked)
|
|
78353
|
-
formConfig.value.formData[Z] ? formConfig.value.formData[Z].includes(X.label) || (formConfig.value.formData[Z] += `,${X.label}`) : formConfig.value.formData[Z] = X.label;
|
|
78353
|
+
formConfig.value.formData[Z] ? formConfig.value.formData[Z].includes(X.label || X.title) || (formConfig.value.formData[Z] += `,${X.label || X.title}`) : formConfig.value.formData[Z] = X.label || X.title;
|
|
78354
78354
|
else {
|
|
78355
|
-
let ne = formConfig.value.formData[Z].split(",");
|
|
78356
|
-
ne = ne.filter((
|
|
78355
|
+
let ne = formConfig.value.formData[Z].split(","), re = X.label || X.title;
|
|
78356
|
+
ne = ne.filter((oe) => oe !== re), formConfig.value.formData[Z] = ne.join(",");
|
|
78357
78357
|
}
|
|
78358
78358
|
} else
|
|
78359
|
-
X = Object.assign({}, getSelectedTreeDataOptionByValue(te, H)), Object.keys(X).length > 0 ? (formConfig.value.formData[G.property] = X.value, formConfig.value.formData[Z] = X.label) : (formConfig.value.formData[G.property] = "", formConfig.value.formData[Z] = "");
|
|
78359
|
+
X = Object.assign({}, getSelectedTreeDataOptionByValue(te, H)), Object.keys(X).length > 0 ? (formConfig.value.formData[G.property] = X.value, formConfig.value.formData[Z] = X.label || X.title) : (formConfig.value.formData[G.property] = "", formConfig.value.formData[Z] = "");
|
|
78360
78360
|
} else if (formSelectMap.value[K].itemRender.options) {
|
|
78361
78361
|
let te = formSelectMap.value[K].itemRender.options;
|
|
78362
78362
|
if (formConfig.value.formData[Z] = "", formSelectMap.value[K].itemRender.props.multiple)
|
|
@@ -78957,7 +78957,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
78957
78957
|
]);
|
|
78958
78958
|
};
|
|
78959
78959
|
}
|
|
78960
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
78960
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-44d11799"]]);
|
|
78961
78961
|
WindowForm.name = "slw-window-form";
|
|
78962
78962
|
WindowForm.install = (G) => {
|
|
78963
78963
|
G.component(WindowForm.name, WindowForm);
|
|
@@ -92028,7 +92028,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
92028
92028
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
92029
92029
|
setup(G, { emit: H }) {
|
|
92030
92030
|
const X = G, Q = defineAsyncComponent(
|
|
92031
|
-
() => import("./index-
|
|
92031
|
+
() => import("./index-7b492f4c.js")
|
|
92032
92032
|
);
|
|
92033
92033
|
let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
|
|
92034
92034
|
re.value = createDesigner();
|
|
@@ -224795,7 +224795,7 @@ function reConsole() {
|
|
|
224795
224795
|
}
|
|
224796
224796
|
}
|
|
224797
224797
|
console.info(
|
|
224798
|
-
`%cSLW %cVer 1.0.0-rc.1.
|
|
224798
|
+
`%cSLW %cVer 1.0.0-rc.1.9%c
|
|
224799
224799
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
224800
224800
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
224801
224801
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED