form-custom-test 3.0.84 → 3.0.85
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 +23 -19
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +23 -19
- package/dist/render.umd.js +65 -65
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -68175,13 +68175,13 @@ function registerIcon(app) {
|
|
|
68175
68175
|
if (typeof window !== "undefined") {
|
|
68176
68176
|
let loadSvg = function() {
|
|
68177
68177
|
var body = document.body;
|
|
68178
|
-
var svgDom = document.getElementById("
|
|
68178
|
+
var svgDom = document.getElementById("__svg__icons__dom__1775622333451__");
|
|
68179
68179
|
if (!svgDom) {
|
|
68180
68180
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68181
68181
|
svgDom.style.position = "absolute";
|
|
68182
68182
|
svgDom.style.width = "0";
|
|
68183
68183
|
svgDom.style.height = "0";
|
|
68184
|
-
svgDom.id = "
|
|
68184
|
+
svgDom.id = "__svg__icons__dom__1775622333451__";
|
|
68185
68185
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68186
68186
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68187
68187
|
}
|
|
@@ -74535,7 +74535,6 @@ const _sfc_main$c = {
|
|
|
74535
74535
|
return {
|
|
74536
74536
|
fieldModel: null,
|
|
74537
74537
|
oldFieldValue: null,
|
|
74538
|
-
radioValue: null,
|
|
74539
74538
|
rules: [],
|
|
74540
74539
|
inputValue: ""
|
|
74541
74540
|
};
|
|
@@ -74555,6 +74554,21 @@ const _sfc_main$c = {
|
|
|
74555
74554
|
];
|
|
74556
74555
|
}
|
|
74557
74556
|
},
|
|
74557
|
+
watch: {
|
|
74558
|
+
fieldModel: {
|
|
74559
|
+
handler(newVal) {
|
|
74560
|
+
if (typeof newVal === "string" && newVal.includes("_RADIO_OTHER_")) {
|
|
74561
|
+
this.radioValue = "_RADIO_OTHER_";
|
|
74562
|
+
this.inputValue = newVal.split("_RADIO_OTHER_")[1];
|
|
74563
|
+
} else {
|
|
74564
|
+
this.radioValue = newVal;
|
|
74565
|
+
this.inputValue = "";
|
|
74566
|
+
}
|
|
74567
|
+
}
|
|
74568
|
+
},
|
|
74569
|
+
immediate: true,
|
|
74570
|
+
deep: true
|
|
74571
|
+
},
|
|
74558
74572
|
created() {
|
|
74559
74573
|
this.initOptionItems();
|
|
74560
74574
|
this.initFieldModel();
|
|
@@ -74591,8 +74605,8 @@ const _sfc_main$c = {
|
|
|
74591
74605
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
74592
74606
|
},
|
|
74593
74607
|
handleOtherValueChange() {
|
|
74594
|
-
if (this.
|
|
74595
|
-
const newValue = this.inputValue ? `${this.
|
|
74608
|
+
if (this.radioValue === "_RADIO_OTHER_") {
|
|
74609
|
+
const newValue = this.inputValue ? `${this.radioValue}&${this.inputValue}` : this.radioValue;
|
|
74596
74610
|
console.log(newValue, "newValue");
|
|
74597
74611
|
this.oldFieldValue = this.fieldModel;
|
|
74598
74612
|
this.syncUpdateFormModel(newValue);
|
|
@@ -74621,8 +74635,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74621
74635
|
}, {
|
|
74622
74636
|
default: withCtx(() => [
|
|
74623
74637
|
createVNode(_component_el_radio_group, {
|
|
74624
|
-
modelValue:
|
|
74625
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
74638
|
+
modelValue: _ctx.radioValue,
|
|
74639
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.radioValue = $event),
|
|
74626
74640
|
class: normalizeClass({ "radio-group-block": $props.field.options.displayStyle === "block" }),
|
|
74627
74641
|
disabled: $props.field.options.disabled,
|
|
74628
74642
|
size: $options.widgetSize,
|
|
@@ -74646,7 +74660,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74646
74660
|
]),
|
|
74647
74661
|
_: 1
|
|
74648
74662
|
}, 8, ["modelValue", "class", "disabled", "size", "onChange"]),
|
|
74649
|
-
|
|
74663
|
+
_ctx.radioValue === "_RADIO_OTHER_" ? (openBlock(), createBlock(_component_el_input, {
|
|
74650
74664
|
key: 0,
|
|
74651
74665
|
class: "w-[200px] ml-10px",
|
|
74652
74666
|
modelValue: $data.inputValue,
|
|
@@ -78136,17 +78150,7 @@ const _sfc_main = {
|
|
|
78136
78150
|
method: "get",
|
|
78137
78151
|
url: "unified-system/employee/loginInfo?accessType=0"
|
|
78138
78152
|
});
|
|
78139
|
-
|
|
78140
|
-
return;
|
|
78141
|
-
const { data: personList } = await service$1({
|
|
78142
|
-
method: "get",
|
|
78143
|
-
url: "/unified-system/employee/queryList",
|
|
78144
|
-
params: {
|
|
78145
|
-
userId: data2.id
|
|
78146
|
-
}
|
|
78147
|
-
});
|
|
78148
|
-
const userInfo = personList ? personList[0] : {};
|
|
78149
|
-
this.fieldModel = __spreadValues(__spreadValues({}, data2), userInfo);
|
|
78153
|
+
this.fieldModel = data2;
|
|
78150
78154
|
this.syncUpdateFormModel(this.fieldModel);
|
|
78151
78155
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
78152
78156
|
}
|