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/designer.es.js
CHANGED
|
@@ -3674,7 +3674,7 @@ const personTreeSchema = {
|
|
|
3674
3674
|
buttonText: "\u9009\u62E9\u4EBA\u5458",
|
|
3675
3675
|
confirmText: "\u786E\u5B9A",
|
|
3676
3676
|
cancelText: "\u53D6\u6D88",
|
|
3677
|
-
dialogTitle: "\u4EBA\u5458
|
|
3677
|
+
dialogTitle: "\u9009\u62E9\u4EBA\u5458",
|
|
3678
3678
|
dialogWidth: "50%",
|
|
3679
3679
|
hideFooter: false,
|
|
3680
3680
|
multiple: true,
|
|
@@ -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__1775620854345__");
|
|
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__1775620854345__";
|
|
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
|
}
|
|
@@ -74576,8 +74576,8 @@ const _sfc_main$c = {
|
|
|
74576
74576
|
this.inputValue = "";
|
|
74577
74577
|
if (value2 === "_RADIO_OTHER_") {
|
|
74578
74578
|
this.fieldModel = value2;
|
|
74579
|
-
if (this.
|
|
74580
|
-
this.syncUpdateFormModel(`${value2}
|
|
74579
|
+
if (this.inputValue) {
|
|
74580
|
+
this.syncUpdateFormModel(`${value2}&${this.inputValue}`);
|
|
74581
74581
|
} else {
|
|
74582
74582
|
this.syncUpdateFormModel(value2);
|
|
74583
74583
|
}
|
|
@@ -74592,7 +74592,8 @@ const _sfc_main$c = {
|
|
|
74592
74592
|
},
|
|
74593
74593
|
handleOtherValueChange() {
|
|
74594
74594
|
if (this.fieldModel === "_RADIO_OTHER_") {
|
|
74595
|
-
const newValue = this.
|
|
74595
|
+
const newValue = this.inputValue ? `${this.fieldModel}&${this.inputValue}` : this.fieldModel;
|
|
74596
|
+
console.log(newValue, "newValue");
|
|
74596
74597
|
this.oldFieldValue = this.fieldModel;
|
|
74597
74598
|
this.syncUpdateFormModel(newValue);
|
|
74598
74599
|
this.emitFieldDataChange(newValue, this.oldFieldValue);
|
|
@@ -74602,9 +74603,9 @@ const _sfc_main$c = {
|
|
|
74602
74603
|
}
|
|
74603
74604
|
};
|
|
74604
74605
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74605
|
-
const _component_el_input = resolveComponent("el-input");
|
|
74606
74606
|
const _component_el_radio = resolveComponent("el-radio");
|
|
74607
74607
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
74608
|
+
const _component_el_input = resolveComponent("el-input");
|
|
74608
74609
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
74609
74610
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
74610
74611
|
designer: $props.designer,
|
|
@@ -74621,7 +74622,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74621
74622
|
default: withCtx(() => [
|
|
74622
74623
|
createVNode(_component_el_radio_group, {
|
|
74623
74624
|
modelValue: $data.fieldModel,
|
|
74624
|
-
"onUpdate:modelValue": _cache[
|
|
74625
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
|
|
74625
74626
|
class: normalizeClass({ "radio-group-block": $props.field.options.displayStyle === "block" }),
|
|
74626
74627
|
disabled: $props.field.options.disabled,
|
|
74627
74628
|
size: $options.widgetSize,
|
|
@@ -74637,22 +74638,22 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74637
74638
|
style: normalizeStyle({ display: $props.field.options.displayStyle })
|
|
74638
74639
|
}, {
|
|
74639
74640
|
default: withCtx(() => [
|
|
74640
|
-
createElementVNode("span", null, toDisplayString(item.label), 1)
|
|
74641
|
-
$data.radioValue === "_RADIO_OTHER_" && item.value === "_RADIO_OTHER_" ? (openBlock(), createBlock(_component_el_input, {
|
|
74642
|
-
key: 0,
|
|
74643
|
-
class: "w-[200px] ml-10px",
|
|
74644
|
-
modelValue: $data.inputValue,
|
|
74645
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.inputValue = $event),
|
|
74646
|
-
onChange: ($event) => $options.handleOtherValueChange(item.value),
|
|
74647
|
-
placeholder: "\u8BF7\u8F93\u5165\u5176\u4ED6\u9009\u9879"
|
|
74648
|
-
}, null, 8, ["modelValue", "onChange"])) : createCommentVNode("", true)
|
|
74641
|
+
createElementVNode("span", null, toDisplayString(item.label), 1)
|
|
74649
74642
|
]),
|
|
74650
74643
|
_: 2
|
|
74651
74644
|
}, 1032, ["label", "disabled", "border", "style"]);
|
|
74652
74645
|
}), 128))
|
|
74653
74646
|
]),
|
|
74654
74647
|
_: 1
|
|
74655
|
-
}, 8, ["modelValue", "class", "disabled", "size", "onChange"])
|
|
74648
|
+
}, 8, ["modelValue", "class", "disabled", "size", "onChange"]),
|
|
74649
|
+
$data.radioValue === "_RADIO_OTHER_" ? (openBlock(), createBlock(_component_el_input, {
|
|
74650
|
+
key: 0,
|
|
74651
|
+
class: "w-[200px] ml-10px",
|
|
74652
|
+
modelValue: $data.inputValue,
|
|
74653
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.inputValue = $event),
|
|
74654
|
+
onInput: _cache[2] || (_cache[2] = ($event) => $options.handleOtherValueChange()),
|
|
74655
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
74656
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
74656
74657
|
]),
|
|
74657
74658
|
_: 1
|
|
74658
74659
|
}, 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"]);
|
|
@@ -78135,6 +78136,8 @@ const _sfc_main = {
|
|
|
78135
78136
|
method: "get",
|
|
78136
78137
|
url: "unified-system/employee/loginInfo?accessType=0"
|
|
78137
78138
|
});
|
|
78139
|
+
if (!data2.id)
|
|
78140
|
+
return;
|
|
78138
78141
|
const { data: personList } = await service$1({
|
|
78139
78142
|
method: "get",
|
|
78140
78143
|
url: "/unified-system/employee/queryList",
|