slw 1.0.0-beta.17.7 → 1.0.0-beta.17.8
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-48a289b7.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -77755,7 +77755,7 @@ var js = js$1.exports;
|
|
|
77755
77755
|
})(G);
|
|
77756
77756
|
})(js$1);
|
|
77757
77757
|
var jsExports = js$1.exports;
|
|
77758
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
77758
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_0d205e0d_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-0d205e0d"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
|
|
77759
77759
|
key: 0,
|
|
77760
77760
|
class: "form-title"
|
|
77761
77761
|
}, _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 = {
|
|
@@ -78127,28 +78127,15 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
78127
78127
|
});
|
|
78128
78128
|
else if (ee.remoteSearch) {
|
|
78129
78129
|
ee.itemRender.options = [], ee.itemRender.props.remoteMethod = debounce(async (ne) => {
|
|
78130
|
-
ne && (ee.itemRender.props.loading = !0, ee.itemRender.options = await remoteMethod(
|
|
78131
|
-
ne,
|
|
78132
|
-
ee.id,
|
|
78133
|
-
ee.selectorId
|
|
78134
|
-
), ee.itemRender.props.loading = !1);
|
|
78130
|
+
ne && (ee.itemRender.props.loading = !0, ee.itemRender.options = await remoteMethod(ne, ee.id, ee.selectorId), ee.itemRender.props.loading = !1);
|
|
78135
78131
|
}, 1e3);
|
|
78136
78132
|
let te = G["_" + ee.field + "_NAME"];
|
|
78137
78133
|
if (G[ee.field] && te) {
|
|
78138
|
-
ee.itemRender.options = await remoteMethod(
|
|
78139
|
-
te,
|
|
78140
|
-
ee.id,
|
|
78141
|
-
ee.selectorId
|
|
78142
|
-
);
|
|
78134
|
+
ee.itemRender.options = await remoteMethod(te, ee.id, ee.selectorId);
|
|
78143
78135
|
let ne = ee.itemRender.options;
|
|
78144
78136
|
formConfig.value.openType === "new" && ee.visible && !G[ee.field] && ne.length > 0 && (G[ee.field] = ne[0].VALUE);
|
|
78145
78137
|
} else
|
|
78146
|
-
G[ee.field] && !te && (ee.itemRender.options = await remoteMethod(
|
|
78147
|
-
G[ee.field],
|
|
78148
|
-
ee.id,
|
|
78149
|
-
ee.selectorId,
|
|
78150
|
-
"$_value"
|
|
78151
|
-
));
|
|
78138
|
+
G[ee.field] && !te && (ee.itemRender.options = await remoteMethod(G[ee.field], ee.id, ee.selectorId, "$_value"));
|
|
78152
78139
|
} else if (typeof ee.selectorId < "u")
|
|
78153
78140
|
ee.itemRender.props.loading = !0, Q.push(
|
|
78154
78141
|
axios.post(
|
|
@@ -78461,6 +78448,59 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
78461
78448
|
return;
|
|
78462
78449
|
}
|
|
78463
78450
|
}), await nextTick(), await form.value.updateStatus({ field: H }), form.value.clearValidate(H), regionMap.value[`form_item_title-${H}-${formConfig.value.params.code}-${formConfig.value.params.preTag}`] = formItemTitleRefs.value[H], regionMap.value[`form_item_title-${H}-${formConfig.value.params.code}`] = formItemTitleRefs.value[H]);
|
|
78451
|
+
}, addExtraFormItem = (G, H, X = {}) => {
|
|
78452
|
+
if (G = G.toUpperCase(), formConfig.value.columns.findIndex((ee) => ee.field == G) >= 0)
|
|
78453
|
+
return;
|
|
78454
|
+
let K = {
|
|
78455
|
+
field: G,
|
|
78456
|
+
className: G,
|
|
78457
|
+
dataType: "STRING",
|
|
78458
|
+
title: H,
|
|
78459
|
+
visible: !0,
|
|
78460
|
+
displayForm: !0,
|
|
78461
|
+
events: {},
|
|
78462
|
+
colType: "showInForm",
|
|
78463
|
+
fwidth: 12,
|
|
78464
|
+
width: null,
|
|
78465
|
+
id: "",
|
|
78466
|
+
minWidth: 100,
|
|
78467
|
+
extra: !0
|
|
78468
|
+
}, Z = {
|
|
78469
|
+
name: "ElInput",
|
|
78470
|
+
props: {
|
|
78471
|
+
type: "text",
|
|
78472
|
+
openLabel: "是",
|
|
78473
|
+
closeLabel: "否",
|
|
78474
|
+
activeValue: "Y",
|
|
78475
|
+
inactiveValue: "N",
|
|
78476
|
+
readonly: !0,
|
|
78477
|
+
readonlyLogic: null,
|
|
78478
|
+
disabled: !1,
|
|
78479
|
+
displayLogic: null,
|
|
78480
|
+
changeFunction: null,
|
|
78481
|
+
enterFunction: null,
|
|
78482
|
+
clickFunction: null,
|
|
78483
|
+
dataType: "STRING",
|
|
78484
|
+
clearable: !0,
|
|
78485
|
+
multiple: !1,
|
|
78486
|
+
unitName: null,
|
|
78487
|
+
format: null,
|
|
78488
|
+
filterColumn: null,
|
|
78489
|
+
sqlLogicListenField: null,
|
|
78490
|
+
newLine: !1,
|
|
78491
|
+
_field_id: "",
|
|
78492
|
+
_select_id: null,
|
|
78493
|
+
name: G,
|
|
78494
|
+
notNull: !0,
|
|
78495
|
+
maxlength: 50,
|
|
78496
|
+
size: "default"
|
|
78497
|
+
},
|
|
78498
|
+
attrs: {
|
|
78499
|
+
id: G
|
|
78500
|
+
},
|
|
78501
|
+
events: {}
|
|
78502
|
+
};
|
|
78503
|
+
Object.assign(Z.props, X), K.itemRender = Z, K.editRender = Z, formConfig.value.columns.push(K), formData.value[G] = "";
|
|
78464
78504
|
}, throwFunction = (G) => {
|
|
78465
78505
|
G.getData = () => getData(), G.submitData = () => submitData(), G.getValue = (H) => getValue(H), G.setValue = (H, X, Q) => setValue(H, X, Q), G.checkSubmitData = () => checkSubmitData(), G.searchData = (H) => searchData(H), G.displayFormItem = (H, X) => displayFormItem(H, X), G.resetForm = () => resetForm(), G.clearData = () => clearData(), G.setFieldName = (H, X) => setFieldName(H, X), G.setFormItemProperty = (H, X, Q) => setFormItemProperty(H, X, Q), G.getTableFieldSelectData = (H) => getTableFieldSelectData(H), G.setFormSelectOption = (H, X) => setFormSelectOption(H, X), G.closeDrawer = () => {
|
|
78466
78506
|
closeDrawer();
|
|
@@ -78773,7 +78813,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
78773
78813
|
]);
|
|
78774
78814
|
};
|
|
78775
78815
|
}
|
|
78776
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
78816
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-0d205e0d"]]);
|
|
78777
78817
|
WindowForm.name = "slw-window-form";
|
|
78778
78818
|
WindowForm.install = (G) => {
|
|
78779
78819
|
G.component(WindowForm.name, WindowForm);
|
|
@@ -91844,7 +91884,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
91844
91884
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
91845
91885
|
setup(G, { emit: H }) {
|
|
91846
91886
|
const X = G, Q = defineAsyncComponent(
|
|
91847
|
-
() => import("./index-
|
|
91887
|
+
() => import("./index-018ac1a8.js")
|
|
91848
91888
|
);
|
|
91849
91889
|
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);
|
|
91850
91890
|
re.value = createDesigner();
|
|
@@ -224462,7 +224502,7 @@ function reConsole() {
|
|
|
224462
224502
|
}
|
|
224463
224503
|
}
|
|
224464
224504
|
console.info(
|
|
224465
|
-
`%cSLW %cVer 1.0.0-beta.17.
|
|
224505
|
+
`%cSLW %cVer 1.0.0-beta.17.8%c
|
|
224466
224506
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
224467
224507
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
224468
224508
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED