form-custom-test 3.0.239 → 3.0.240
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 +14 -8
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +14 -8
- package/dist/render.umd.js +2 -2
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -26663,13 +26663,13 @@ function registerIcon(app) {
|
|
|
26663
26663
|
if (typeof window !== "undefined") {
|
|
26664
26664
|
let loadSvg = function() {
|
|
26665
26665
|
var body = document.body;
|
|
26666
|
-
var svgDom = document.getElementById("
|
|
26666
|
+
var svgDom = document.getElementById("__svg__icons__dom__1784612571865__");
|
|
26667
26667
|
if (!svgDom) {
|
|
26668
26668
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26669
26669
|
svgDom.style.position = "absolute";
|
|
26670
26670
|
svgDom.style.width = "0";
|
|
26671
26671
|
svgDom.style.height = "0";
|
|
26672
|
-
svgDom.id = "
|
|
26672
|
+
svgDom.id = "__svg__icons__dom__1784612571865__";
|
|
26673
26673
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26674
26674
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26675
26675
|
}
|
|
@@ -65932,6 +65932,7 @@ const _sfc_main$a = {
|
|
|
65932
65932
|
this.$nextTick(() => {
|
|
65933
65933
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
65934
65934
|
});
|
|
65935
|
+
this.syncUpdateFormModel(newVal);
|
|
65935
65936
|
},
|
|
65936
65937
|
deep: true
|
|
65937
65938
|
}
|
|
@@ -66043,10 +66044,12 @@ const _sfc_main$a = {
|
|
|
66043
66044
|
if (!this.fieldModel) {
|
|
66044
66045
|
this.fieldModel = [];
|
|
66045
66046
|
}
|
|
66047
|
+
const oldValue = lodash.exports.cloneDeep(this.fieldModel);
|
|
66046
66048
|
this.fieldModel.push(formData);
|
|
66047
66049
|
this.fieldModel.forEach((item, index2) => {
|
|
66048
66050
|
item.id = index2;
|
|
66049
66051
|
});
|
|
66052
|
+
this.triggerEvent("onChange", this.fieldModel, oldValue);
|
|
66050
66053
|
} else {
|
|
66051
66054
|
const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
|
|
66052
66055
|
if (index2 === -1)
|
|
@@ -66081,7 +66084,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66081
66084
|
class: "legal-table-widget",
|
|
66082
66085
|
style: normalizeStyle(_ctx.widgetStyle)
|
|
66083
66086
|
}, [
|
|
66084
|
-
|
|
66087
|
+
!$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
66088
|
+
key: 0,
|
|
66085
66089
|
class: "add-button",
|
|
66086
66090
|
type: "primary",
|
|
66087
66091
|
size: "small",
|
|
@@ -66091,7 +66095,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66091
66095
|
createTextVNode("\u65B0\u589E", -1)
|
|
66092
66096
|
])]),
|
|
66093
66097
|
_: 1
|
|
66094
|
-
}, 8, ["onClick"]),
|
|
66098
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
66095
66099
|
createVNode(_component_el_table, {
|
|
66096
66100
|
data: $data.fieldModel,
|
|
66097
66101
|
"max-height": "500px",
|
|
@@ -66138,7 +66142,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66138
66142
|
label: "\u64CD\u4F5C"
|
|
66139
66143
|
}, {
|
|
66140
66144
|
default: withCtx(({ row }) => [
|
|
66141
|
-
|
|
66145
|
+
!$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
66146
|
+
key: 0,
|
|
66142
66147
|
type: "primary",
|
|
66143
66148
|
link: "",
|
|
66144
66149
|
onClick: ($event) => $options.handleRow(row)
|
|
@@ -66147,7 +66152,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66147
66152
|
createTextVNode("\u4FEE\u6539", -1)
|
|
66148
66153
|
])]),
|
|
66149
66154
|
_: 1
|
|
66150
|
-
}, 8, ["onClick"]),
|
|
66155
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
66151
66156
|
createVNode(_component_el_button, {
|
|
66152
66157
|
type: "primary",
|
|
66153
66158
|
link: "",
|
|
@@ -66158,7 +66163,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66158
66163
|
])]),
|
|
66159
66164
|
_: 1
|
|
66160
66165
|
}, 8, ["onClick"]),
|
|
66161
|
-
|
|
66166
|
+
!$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
66167
|
+
key: 1,
|
|
66162
66168
|
type: "danger",
|
|
66163
66169
|
link: "",
|
|
66164
66170
|
onClick: ($event) => $options.deleteRow(row)
|
|
@@ -66167,7 +66173,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66167
66173
|
createTextVNode("\u5220\u9664", -1)
|
|
66168
66174
|
])]),
|
|
66169
66175
|
_: 1
|
|
66170
|
-
}, 8, ["onClick"])
|
|
66176
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
66171
66177
|
]),
|
|
66172
66178
|
_: 1
|
|
66173
66179
|
})
|