form-custom-test 3.0.83 → 3.0.84
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 +21 -18
- package/dist/designer.umd.js +3 -3
- package/dist/render.es.js +20 -17
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -26025,13 +26025,13 @@ function registerIcon(app) {
|
|
|
26025
26025
|
if (typeof window !== "undefined") {
|
|
26026
26026
|
let loadSvg = function() {
|
|
26027
26027
|
var body = document.body;
|
|
26028
|
-
var svgDom = document.getElementById("
|
|
26028
|
+
var svgDom = document.getElementById("__svg__icons__dom__1775620862287__");
|
|
26029
26029
|
if (!svgDom) {
|
|
26030
26030
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26031
26031
|
svgDom.style.position = "absolute";
|
|
26032
26032
|
svgDom.style.width = "0";
|
|
26033
26033
|
svgDom.style.height = "0";
|
|
26034
|
-
svgDom.id = "
|
|
26034
|
+
svgDom.id = "__svg__icons__dom__1775620862287__";
|
|
26035
26035
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26036
26036
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26037
26037
|
}
|
|
@@ -32512,8 +32512,8 @@ const _sfc_main$i = {
|
|
|
32512
32512
|
this.inputValue = "";
|
|
32513
32513
|
if (value2 === "_RADIO_OTHER_") {
|
|
32514
32514
|
this.fieldModel = value2;
|
|
32515
|
-
if (this.
|
|
32516
|
-
this.syncUpdateFormModel(`${value2}
|
|
32515
|
+
if (this.inputValue) {
|
|
32516
|
+
this.syncUpdateFormModel(`${value2}&${this.inputValue}`);
|
|
32517
32517
|
} else {
|
|
32518
32518
|
this.syncUpdateFormModel(value2);
|
|
32519
32519
|
}
|
|
@@ -32528,7 +32528,8 @@ const _sfc_main$i = {
|
|
|
32528
32528
|
},
|
|
32529
32529
|
handleOtherValueChange() {
|
|
32530
32530
|
if (this.fieldModel === "_RADIO_OTHER_") {
|
|
32531
|
-
const newValue = this.
|
|
32531
|
+
const newValue = this.inputValue ? `${this.fieldModel}&${this.inputValue}` : this.fieldModel;
|
|
32532
|
+
console.log(newValue, "newValue");
|
|
32532
32533
|
this.oldFieldValue = this.fieldModel;
|
|
32533
32534
|
this.syncUpdateFormModel(newValue);
|
|
32534
32535
|
this.emitFieldDataChange(newValue, this.oldFieldValue);
|
|
@@ -32538,9 +32539,9 @@ const _sfc_main$i = {
|
|
|
32538
32539
|
}
|
|
32539
32540
|
};
|
|
32540
32541
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32541
|
-
const _component_el_input = resolveComponent("el-input");
|
|
32542
32542
|
const _component_el_radio = resolveComponent("el-radio");
|
|
32543
32543
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
32544
|
+
const _component_el_input = resolveComponent("el-input");
|
|
32544
32545
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
32545
32546
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
32546
32547
|
designer: $props.designer,
|
|
@@ -32557,7 +32558,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32557
32558
|
default: withCtx(() => [
|
|
32558
32559
|
createVNode(_component_el_radio_group, {
|
|
32559
32560
|
modelValue: $data.fieldModel,
|
|
32560
|
-
"onUpdate:modelValue": _cache[
|
|
32561
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
|
|
32561
32562
|
class: normalizeClass({ "radio-group-block": $props.field.options.displayStyle === "block" }),
|
|
32562
32563
|
disabled: $props.field.options.disabled,
|
|
32563
32564
|
size: $options.widgetSize,
|
|
@@ -32573,22 +32574,22 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32573
32574
|
style: normalizeStyle({ display: $props.field.options.displayStyle })
|
|
32574
32575
|
}, {
|
|
32575
32576
|
default: withCtx(() => [
|
|
32576
|
-
createElementVNode("span", null, toDisplayString(item.label), 1)
|
|
32577
|
-
$data.radioValue === "_RADIO_OTHER_" && item.value === "_RADIO_OTHER_" ? (openBlock(), createBlock(_component_el_input, {
|
|
32578
|
-
key: 0,
|
|
32579
|
-
class: "w-[200px] ml-10px",
|
|
32580
|
-
modelValue: $data.inputValue,
|
|
32581
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.inputValue = $event),
|
|
32582
|
-
onChange: ($event) => $options.handleOtherValueChange(item.value),
|
|
32583
|
-
placeholder: "\u8BF7\u8F93\u5165\u5176\u4ED6\u9009\u9879"
|
|
32584
|
-
}, null, 8, ["modelValue", "onChange"])) : createCommentVNode("", true)
|
|
32577
|
+
createElementVNode("span", null, toDisplayString(item.label), 1)
|
|
32585
32578
|
]),
|
|
32586
32579
|
_: 2
|
|
32587
32580
|
}, 1032, ["label", "disabled", "border", "style"]);
|
|
32588
32581
|
}), 128))
|
|
32589
32582
|
]),
|
|
32590
32583
|
_: 1
|
|
32591
|
-
}, 8, ["modelValue", "class", "disabled", "size", "onChange"])
|
|
32584
|
+
}, 8, ["modelValue", "class", "disabled", "size", "onChange"]),
|
|
32585
|
+
$data.radioValue === "_RADIO_OTHER_" ? (openBlock(), createBlock(_component_el_input, {
|
|
32586
|
+
key: 0,
|
|
32587
|
+
class: "w-[200px] ml-10px",
|
|
32588
|
+
modelValue: $data.inputValue,
|
|
32589
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.inputValue = $event),
|
|
32590
|
+
onInput: _cache[2] || (_cache[2] = ($event) => $options.handleOtherValueChange()),
|
|
32591
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
32592
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
32592
32593
|
]),
|
|
32593
32594
|
_: 1
|
|
32594
32595
|
}, 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"]);
|
|
@@ -61532,6 +61533,8 @@ const _sfc_main = {
|
|
|
61532
61533
|
method: "get",
|
|
61533
61534
|
url: "unified-system/employee/loginInfo?accessType=0"
|
|
61534
61535
|
});
|
|
61536
|
+
if (!data2.id)
|
|
61537
|
+
return;
|
|
61535
61538
|
const { data: personList } = await service$1({
|
|
61536
61539
|
method: "get",
|
|
61537
61540
|
url: "/unified-system/employee/queryList",
|