form-custom-test 3.0.38 → 3.0.40
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/dist/designer.es.js +14 -12
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +3 -3
- package/dist/render.es.js +9 -7
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +2 -2
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -55528,12 +55528,11 @@ const _sfc_main$27 = {
|
|
|
55528
55528
|
let dictManager = null;
|
|
55529
55529
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
55530
55530
|
const dictItems = window.getDictData(dictCode);
|
|
55531
|
-
console.log(dictItems, "dictItems");
|
|
55532
55531
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
55533
55532
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55534
55533
|
id: generateId(),
|
|
55535
55534
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55536
|
-
value: item.dictValue || item.value || item.code || "",
|
|
55535
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
55537
55536
|
disabled: item.disabled || false
|
|
55538
55537
|
}));
|
|
55539
55538
|
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -55547,7 +55546,7 @@ const _sfc_main$27 = {
|
|
|
55547
55546
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55548
55547
|
id: generateId(),
|
|
55549
55548
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55550
|
-
value: item.dictValue || item.value || item.code || "",
|
|
55549
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
55551
55550
|
disabled: item.disabled || false
|
|
55552
55551
|
}));
|
|
55553
55552
|
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -55565,11 +55564,12 @@ const _sfc_main$27 = {
|
|
|
55565
55564
|
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
55566
55565
|
if (Array.isArray(records) && records.length > 0) {
|
|
55567
55566
|
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
55567
|
+
console.log(dictItems, "dictItems222222");
|
|
55568
55568
|
if (dictItems.length > 0) {
|
|
55569
55569
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55570
55570
|
id: generateId(),
|
|
55571
55571
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55572
|
-
value: item.dictValue || item.value || item.code || "",
|
|
55572
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
55573
55573
|
disabled: item.disabled || false
|
|
55574
55574
|
}));
|
|
55575
55575
|
this.$message.success("\u4ECE\u5B57\u5178\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -56061,7 +56061,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56061
56061
|
]) : createCommentVNode("", true)
|
|
56062
56062
|
]);
|
|
56063
56063
|
}
|
|
56064
|
-
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-
|
|
56064
|
+
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-1342d87e"]]);
|
|
56065
56065
|
const _sfc_main$26 = {
|
|
56066
56066
|
name: "optionItems-editor",
|
|
56067
56067
|
mixins: [i18n$1],
|
|
@@ -67621,13 +67621,13 @@ function registerIcon(app) {
|
|
|
67621
67621
|
if (typeof window !== "undefined") {
|
|
67622
67622
|
let loadSvg = function() {
|
|
67623
67623
|
var body = document.body;
|
|
67624
|
-
var svgDom = document.getElementById("
|
|
67624
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772153042460__");
|
|
67625
67625
|
if (!svgDom) {
|
|
67626
67626
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67627
67627
|
svgDom.style.position = "absolute";
|
|
67628
67628
|
svgDom.style.width = "0";
|
|
67629
67629
|
svgDom.style.height = "0";
|
|
67630
|
-
svgDom.id = "
|
|
67630
|
+
svgDom.id = "__svg__icons__dom__1772153042460__";
|
|
67631
67631
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67632
67632
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67633
67633
|
}
|
|
@@ -76801,7 +76801,6 @@ const _sfc_main$1 = {
|
|
|
76801
76801
|
this.designer.saveCurrentHistoryStep();
|
|
76802
76802
|
},
|
|
76803
76803
|
loadDictOptionsForColumn(col) {
|
|
76804
|
-
console.log(col, "col");
|
|
76805
76804
|
if (!col.dictCode || !col.dictCode.trim()) {
|
|
76806
76805
|
return;
|
|
76807
76806
|
}
|
|
@@ -76811,10 +76810,11 @@ const _sfc_main$1 = {
|
|
|
76811
76810
|
let dictManager = null;
|
|
76812
76811
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
76813
76812
|
const dictItems = window.getDictData(dictCode);
|
|
76813
|
+
console.log(dictItems, "dictItems");
|
|
76814
76814
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76815
76815
|
col.options = dictItems.map((item) => ({
|
|
76816
76816
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
76817
|
-
value: item.dictValue || item.value || item.code || "",
|
|
76817
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
76818
76818
|
disabled: item.disabled || false
|
|
76819
76819
|
}));
|
|
76820
76820
|
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
@@ -76826,10 +76826,11 @@ const _sfc_main$1 = {
|
|
|
76826
76826
|
}
|
|
76827
76827
|
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
76828
76828
|
const dictItems = window.dictCache[dictCode];
|
|
76829
|
+
console.log(dictItems, "dictItems");
|
|
76829
76830
|
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76830
76831
|
col.options = dictItems.map((item) => ({
|
|
76831
76832
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
76832
|
-
value: item.dictValue || item.value || item.code || "",
|
|
76833
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
76833
76834
|
disabled: item.disabled || false
|
|
76834
76835
|
}));
|
|
76835
76836
|
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
@@ -76840,6 +76841,7 @@ const _sfc_main$1 = {
|
|
|
76840
76841
|
}
|
|
76841
76842
|
}
|
|
76842
76843
|
if (typeof window !== "undefined" && window.service) {
|
|
76844
|
+
console.log(window.service, "window.service");
|
|
76843
76845
|
window.service.post("/unified-dict/sysItemDict/page", {
|
|
76844
76846
|
current: 1,
|
|
76845
76847
|
size: 1e4,
|
|
@@ -76852,7 +76854,7 @@ const _sfc_main$1 = {
|
|
|
76852
76854
|
if (dictItems.length > 0) {
|
|
76853
76855
|
col.options = dictItems.map((item) => ({
|
|
76854
76856
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
76855
|
-
value: item.dictValue || item.value || item.code || "",
|
|
76857
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
76856
76858
|
disabled: item.disabled || false
|
|
76857
76859
|
}));
|
|
76858
76860
|
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
@@ -77346,7 +77348,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77346
77348
|
}, 8, ["modelValue", "title"])
|
|
77347
77349
|
], 64);
|
|
77348
77350
|
}
|
|
77349
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
77351
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-7d20f42f"]]);
|
|
77350
77352
|
const _sfc_main = {
|
|
77351
77353
|
name: "current-user-widget",
|
|
77352
77354
|
componentName: "FieldWidget",
|