form-custom-test 3.0.37 → 3.0.39
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 +47 -13
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +6 -6
- package/dist/render.es.js +31 -7
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +4 -4
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -1440,7 +1440,18 @@ const basicFields = [
|
|
|
1440
1440
|
required: false,
|
|
1441
1441
|
requiredHint: "",
|
|
1442
1442
|
validation: "",
|
|
1443
|
-
validationHint: ""
|
|
1443
|
+
validationHint: "",
|
|
1444
|
+
customClass: "",
|
|
1445
|
+
labelIconClass: null,
|
|
1446
|
+
labelIconPosition: "rear",
|
|
1447
|
+
labelTooltip: null,
|
|
1448
|
+
onCreated: "",
|
|
1449
|
+
onMounted: "",
|
|
1450
|
+
onRemoteQuery: "",
|
|
1451
|
+
onChange: "",
|
|
1452
|
+
onFocus: "",
|
|
1453
|
+
onBlur: "",
|
|
1454
|
+
onValidate: ""
|
|
1444
1455
|
}
|
|
1445
1456
|
},
|
|
1446
1457
|
{
|
|
@@ -10545,10 +10556,10 @@ var fieldMixin = {
|
|
|
10545
10556
|
}
|
|
10546
10557
|
},
|
|
10547
10558
|
clearSelectedOptions() {
|
|
10548
|
-
if (this.field.type !== "checkbox" && this.field.type !== "radio" && this.field.type !== "select") {
|
|
10559
|
+
if (this.field.type !== "checkbox" && this.field.type !== "radio" && this.field.type !== "select" && this.field.type !== "select-tree") {
|
|
10549
10560
|
return;
|
|
10550
10561
|
}
|
|
10551
|
-
if (this.field.type === "checkbox" || this.field.type === "select" && this.field.options.multiple) {
|
|
10562
|
+
if (this.field.type === "checkbox" || this.field.type === "select" && this.field.options.multiple || this.field.type === "select-tree" && this.field.options.multiple) {
|
|
10552
10563
|
this.fieldModel = [];
|
|
10553
10564
|
} else {
|
|
10554
10565
|
this.fieldModel = "";
|
|
@@ -24719,6 +24730,28 @@ const _sfc_main$2Z = {
|
|
|
24719
24730
|
return void 0;
|
|
24720
24731
|
}
|
|
24721
24732
|
}
|
|
24733
|
+
},
|
|
24734
|
+
methods: {
|
|
24735
|
+
handleTreeSelectChange(val) {
|
|
24736
|
+
const isEvent = val && typeof val === "object" && "isTrusted" in val;
|
|
24737
|
+
this.handleChangeEvent(isEvent ? this.fieldModel : val);
|
|
24738
|
+
}
|
|
24739
|
+
},
|
|
24740
|
+
beforeCreate() {
|
|
24741
|
+
},
|
|
24742
|
+
created() {
|
|
24743
|
+
this.initOptionItems();
|
|
24744
|
+
this.initFieldModel();
|
|
24745
|
+
this.registerToRefList();
|
|
24746
|
+
this.initEventHandler();
|
|
24747
|
+
this.buildFieldRules();
|
|
24748
|
+
this.handleOnCreated();
|
|
24749
|
+
},
|
|
24750
|
+
mounted() {
|
|
24751
|
+
this.handleOnMounted();
|
|
24752
|
+
},
|
|
24753
|
+
beforeUnmount() {
|
|
24754
|
+
this.unregisterFromRefList();
|
|
24722
24755
|
}
|
|
24723
24756
|
};
|
|
24724
24757
|
function _sfc_render$2Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -24761,7 +24794,7 @@ function _sfc_render$2Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24761
24794
|
"remote-method": $options.remoteMethod,
|
|
24762
24795
|
onFocus: _ctx.handleFocusCustomEvent,
|
|
24763
24796
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
24764
|
-
onChange:
|
|
24797
|
+
onChange: $options.handleTreeSelectChange
|
|
24765
24798
|
}, null, 8, ["modelValue", "data", "show-checkbox", "disabled", "size", "clearable", "filterable", "allow-create", "default-first-option", "automatic-dropdown", "multiple", "multiple-limit", "placeholder", "remote", "remote-method", "onFocus", "onBlur", "onChange"])
|
|
24766
24799
|
]),
|
|
24767
24800
|
_: 1
|
|
@@ -55495,12 +55528,11 @@ const _sfc_main$27 = {
|
|
|
55495
55528
|
let dictManager = null;
|
|
55496
55529
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
55497
55530
|
const dictItems = window.getDictData(dictCode);
|
|
55498
|
-
console.log(dictItems, "dictItems");
|
|
55499
55531
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
55500
55532
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55501
55533
|
id: generateId(),
|
|
55502
55534
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55503
|
-
value: item.dictValue || item.value || item.code || "",
|
|
55535
|
+
value: item.dictValue || item.value || item.code || item.value || "",
|
|
55504
55536
|
disabled: item.disabled || false
|
|
55505
55537
|
}));
|
|
55506
55538
|
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -55514,7 +55546,7 @@ const _sfc_main$27 = {
|
|
|
55514
55546
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55515
55547
|
id: generateId(),
|
|
55516
55548
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55517
|
-
value: item.dictValue || item.value || item.code || "",
|
|
55549
|
+
value: item.dictValue || item.value || item.code || item.value || "",
|
|
55518
55550
|
disabled: item.disabled || false
|
|
55519
55551
|
}));
|
|
55520
55552
|
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -55536,7 +55568,7 @@ const _sfc_main$27 = {
|
|
|
55536
55568
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55537
55569
|
id: generateId(),
|
|
55538
55570
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
55539
|
-
value: item.dictValue || item.value || item.code || "",
|
|
55571
|
+
value: item.dictValue || item.value || item.code || item.value || "",
|
|
55540
55572
|
disabled: item.disabled || false
|
|
55541
55573
|
}));
|
|
55542
55574
|
this.$message.success("\u4ECE\u5B57\u5178\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
@@ -56028,7 +56060,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56028
56060
|
]) : createCommentVNode("", true)
|
|
56029
56061
|
]);
|
|
56030
56062
|
}
|
|
56031
|
-
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-
|
|
56063
|
+
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-8874312a"]]);
|
|
56032
56064
|
const _sfc_main$26 = {
|
|
56033
56065
|
name: "optionItems-editor",
|
|
56034
56066
|
mixins: [i18n$1],
|
|
@@ -67588,13 +67620,13 @@ function registerIcon(app) {
|
|
|
67588
67620
|
if (typeof window !== "undefined") {
|
|
67589
67621
|
let loadSvg = function() {
|
|
67590
67622
|
var body = document.body;
|
|
67591
|
-
var svgDom = document.getElementById("
|
|
67623
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772152578604__");
|
|
67592
67624
|
if (!svgDom) {
|
|
67593
67625
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67594
67626
|
svgDom.style.position = "absolute";
|
|
67595
67627
|
svgDom.style.width = "0";
|
|
67596
67628
|
svgDom.style.height = "0";
|
|
67597
|
-
svgDom.id = "
|
|
67629
|
+
svgDom.id = "__svg__icons__dom__1772152578604__";
|
|
67598
67630
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67599
67631
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67600
67632
|
}
|
|
@@ -76768,7 +76800,6 @@ const _sfc_main$1 = {
|
|
|
76768
76800
|
this.designer.saveCurrentHistoryStep();
|
|
76769
76801
|
},
|
|
76770
76802
|
loadDictOptionsForColumn(col) {
|
|
76771
|
-
console.log(col, "col");
|
|
76772
76803
|
if (!col.dictCode || !col.dictCode.trim()) {
|
|
76773
76804
|
return;
|
|
76774
76805
|
}
|
|
@@ -76778,6 +76809,7 @@ const _sfc_main$1 = {
|
|
|
76778
76809
|
let dictManager = null;
|
|
76779
76810
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
76780
76811
|
const dictItems = window.getDictData(dictCode);
|
|
76812
|
+
console.log(dictItems, "dictItems");
|
|
76781
76813
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76782
76814
|
col.options = dictItems.map((item) => ({
|
|
76783
76815
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -76793,6 +76825,7 @@ const _sfc_main$1 = {
|
|
|
76793
76825
|
}
|
|
76794
76826
|
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
76795
76827
|
const dictItems = window.dictCache[dictCode];
|
|
76828
|
+
console.log(dictItems, "dictItems");
|
|
76796
76829
|
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76797
76830
|
col.options = dictItems.map((item) => ({
|
|
76798
76831
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -76807,6 +76840,7 @@ const _sfc_main$1 = {
|
|
|
76807
76840
|
}
|
|
76808
76841
|
}
|
|
76809
76842
|
if (typeof window !== "undefined" && window.service) {
|
|
76843
|
+
console.log(window.service, "window.service");
|
|
76810
76844
|
window.service.post("/unified-dict/sysItemDict/page", {
|
|
76811
76845
|
current: 1,
|
|
76812
76846
|
size: 1e4,
|
|
@@ -77313,7 +77347,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77313
77347
|
}, 8, ["modelValue", "title"])
|
|
77314
77348
|
], 64);
|
|
77315
77349
|
}
|
|
77316
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
77350
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-5930cc9c"]]);
|
|
77317
77351
|
const _sfc_main = {
|
|
77318
77352
|
name: "current-user-widget",
|
|
77319
77353
|
componentName: "FieldWidget",
|