form-custom-test 3.0.37 → 3.0.38
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 +39 -6
- package/dist/designer.umd.js +4 -4
- package/dist/render.es.js +27 -5
- package/dist/render.umd.js +3 -3
- 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
|
|
@@ -67588,13 +67621,13 @@ function registerIcon(app) {
|
|
|
67588
67621
|
if (typeof window !== "undefined") {
|
|
67589
67622
|
let loadSvg = function() {
|
|
67590
67623
|
var body = document.body;
|
|
67591
|
-
var svgDom = document.getElementById("
|
|
67624
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772086118019__");
|
|
67592
67625
|
if (!svgDom) {
|
|
67593
67626
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67594
67627
|
svgDom.style.position = "absolute";
|
|
67595
67628
|
svgDom.style.width = "0";
|
|
67596
67629
|
svgDom.style.height = "0";
|
|
67597
|
-
svgDom.id = "
|
|
67630
|
+
svgDom.id = "__svg__icons__dom__1772086118019__";
|
|
67598
67631
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67599
67632
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67600
67633
|
}
|