form-custom-test 3.0.39 → 3.0.41
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 +2 -2
- package/dist/designer.umd.js +4 -4
- package/dist/render.es.js +9 -8
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -12135,7 +12135,8 @@ const _sfc_main$36 = {
|
|
|
12135
12135
|
return {
|
|
12136
12136
|
fileName: data2.fileName,
|
|
12137
12137
|
fileId: data2.fileId,
|
|
12138
|
-
fileUrl: data2.fileUrl
|
|
12138
|
+
fileUrl: data2.fileUrl,
|
|
12139
|
+
type: data2.type
|
|
12139
12140
|
};
|
|
12140
12141
|
} else {
|
|
12141
12142
|
return item;
|
|
@@ -12306,7 +12307,7 @@ function _sfc_render$36(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12306
12307
|
_: 1
|
|
12307
12308
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
12308
12309
|
}
|
|
12309
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$36, [["render", _sfc_render$36], ["__scopeId", "data-v-
|
|
12310
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$36, [["render", _sfc_render$36], ["__scopeId", "data-v-5625ea65"]]);
|
|
12310
12311
|
var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12311
12312
|
__proto__: null,
|
|
12312
12313
|
"default": fileUploadWidget
|
|
@@ -55532,7 +55533,7 @@ const _sfc_main$27 = {
|
|
|
55532
55533
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55533
55534
|
id: generateId(),
|
|
55534
55535
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55535
|
-
value: item.dictValue || item.value || item.code || item.value || "",
|
|
55536
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
55536
55537
|
disabled: item.disabled || false
|
|
55537
55538
|
}));
|
|
55538
55539
|
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -55546,7 +55547,7 @@ const _sfc_main$27 = {
|
|
|
55546
55547
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55547
55548
|
id: generateId(),
|
|
55548
55549
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55549
|
-
value: item.dictValue || item.value || item.code || item.value || "",
|
|
55550
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
55550
55551
|
disabled: item.disabled || false
|
|
55551
55552
|
}));
|
|
55552
55553
|
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -55564,11 +55565,12 @@ const _sfc_main$27 = {
|
|
|
55564
55565
|
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
55565
55566
|
if (Array.isArray(records) && records.length > 0) {
|
|
55566
55567
|
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
55568
|
+
console.log(dictItems, "dictItems222222");
|
|
55567
55569
|
if (dictItems.length > 0) {
|
|
55568
55570
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55569
55571
|
id: generateId(),
|
|
55570
55572
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55571
|
-
value: item.dictValue || item.value || item.code || item.value || "",
|
|
55573
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
55572
55574
|
disabled: item.disabled || false
|
|
55573
55575
|
}));
|
|
55574
55576
|
this.$message.success("\u4ECE\u5B57\u5178\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -56060,7 +56062,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56060
56062
|
]) : createCommentVNode("", true)
|
|
56061
56063
|
]);
|
|
56062
56064
|
}
|
|
56063
|
-
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-
|
|
56065
|
+
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-1342d87e"]]);
|
|
56064
56066
|
const _sfc_main$26 = {
|
|
56065
56067
|
name: "optionItems-editor",
|
|
56066
56068
|
mixins: [i18n$1],
|
|
@@ -67620,13 +67622,13 @@ function registerIcon(app) {
|
|
|
67620
67622
|
if (typeof window !== "undefined") {
|
|
67621
67623
|
let loadSvg = function() {
|
|
67622
67624
|
var body = document.body;
|
|
67623
|
-
var svgDom = document.getElementById("
|
|
67625
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772181279249__");
|
|
67624
67626
|
if (!svgDom) {
|
|
67625
67627
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67626
67628
|
svgDom.style.position = "absolute";
|
|
67627
67629
|
svgDom.style.width = "0";
|
|
67628
67630
|
svgDom.style.height = "0";
|
|
67629
|
-
svgDom.id = "
|
|
67631
|
+
svgDom.id = "__svg__icons__dom__1772181279249__";
|
|
67630
67632
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67631
67633
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67632
67634
|
}
|
|
@@ -76813,7 +76815,7 @@ const _sfc_main$1 = {
|
|
|
76813
76815
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76814
76816
|
col.options = dictItems.map((item) => ({
|
|
76815
76817
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
76816
|
-
value: item.dictValue || item.value || item.code || "",
|
|
76818
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
76817
76819
|
disabled: item.disabled || false
|
|
76818
76820
|
}));
|
|
76819
76821
|
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
@@ -76829,7 +76831,7 @@ const _sfc_main$1 = {
|
|
|
76829
76831
|
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76830
76832
|
col.options = dictItems.map((item) => ({
|
|
76831
76833
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
76832
|
-
value: item.dictValue || item.value || item.code || "",
|
|
76834
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
76833
76835
|
disabled: item.disabled || false
|
|
76834
76836
|
}));
|
|
76835
76837
|
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
@@ -76853,7 +76855,7 @@ const _sfc_main$1 = {
|
|
|
76853
76855
|
if (dictItems.length > 0) {
|
|
76854
76856
|
col.options = dictItems.map((item) => ({
|
|
76855
76857
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
76856
|
-
value: item.dictValue || item.value || item.code || "",
|
|
76858
|
+
value: item.dictValue || item.value || item.code || item.value || item.itemValue || "",
|
|
76857
76859
|
disabled: item.disabled || false
|
|
76858
76860
|
}));
|
|
76859
76861
|
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
@@ -77347,7 +77349,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77347
77349
|
}, 8, ["modelValue", "title"])
|
|
77348
77350
|
], 64);
|
|
77349
77351
|
}
|
|
77350
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
77352
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-7d20f42f"]]);
|
|
77351
77353
|
const _sfc_main = {
|
|
77352
77354
|
name: "current-user-widget",
|
|
77353
77355
|
componentName: "FieldWidget",
|