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/designer.es.js
CHANGED
|
@@ -69412,13 +69412,13 @@ function registerIcon(app) {
|
|
|
69412
69412
|
if (typeof window !== "undefined") {
|
|
69413
69413
|
let loadSvg = function() {
|
|
69414
69414
|
var body = document.body;
|
|
69415
|
-
var svgDom = document.getElementById("
|
|
69415
|
+
var svgDom = document.getElementById("__svg__icons__dom__1784612560853__");
|
|
69416
69416
|
if (!svgDom) {
|
|
69417
69417
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
69418
69418
|
svgDom.style.position = "absolute";
|
|
69419
69419
|
svgDom.style.width = "0";
|
|
69420
69420
|
svgDom.style.height = "0";
|
|
69421
|
-
svgDom.id = "
|
|
69421
|
+
svgDom.id = "__svg__icons__dom__1784612560853__";
|
|
69422
69422
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
69423
69423
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
69424
69424
|
}
|
|
@@ -83136,6 +83136,7 @@ const _sfc_main$a = {
|
|
|
83136
83136
|
this.$nextTick(() => {
|
|
83137
83137
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
83138
83138
|
});
|
|
83139
|
+
this.syncUpdateFormModel(newVal);
|
|
83139
83140
|
},
|
|
83140
83141
|
deep: true
|
|
83141
83142
|
}
|
|
@@ -83247,10 +83248,12 @@ const _sfc_main$a = {
|
|
|
83247
83248
|
if (!this.fieldModel) {
|
|
83248
83249
|
this.fieldModel = [];
|
|
83249
83250
|
}
|
|
83251
|
+
const oldValue = lodash.exports.cloneDeep(this.fieldModel);
|
|
83250
83252
|
this.fieldModel.push(formData);
|
|
83251
83253
|
this.fieldModel.forEach((item, index2) => {
|
|
83252
83254
|
item.id = index2;
|
|
83253
83255
|
});
|
|
83256
|
+
this.triggerEvent("onChange", this.fieldModel, oldValue);
|
|
83254
83257
|
} else {
|
|
83255
83258
|
const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
|
|
83256
83259
|
if (index2 === -1)
|
|
@@ -83285,7 +83288,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83285
83288
|
class: "legal-table-widget",
|
|
83286
83289
|
style: normalizeStyle(_ctx.widgetStyle)
|
|
83287
83290
|
}, [
|
|
83288
|
-
|
|
83291
|
+
!$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
83292
|
+
key: 0,
|
|
83289
83293
|
class: "add-button",
|
|
83290
83294
|
type: "primary",
|
|
83291
83295
|
size: "small",
|
|
@@ -83295,7 +83299,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83295
83299
|
createTextVNode("\u65B0\u589E", -1)
|
|
83296
83300
|
])]),
|
|
83297
83301
|
_: 1
|
|
83298
|
-
}, 8, ["onClick"]),
|
|
83302
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
83299
83303
|
createVNode(_component_el_table, {
|
|
83300
83304
|
data: $data.fieldModel,
|
|
83301
83305
|
"max-height": "500px",
|
|
@@ -83342,7 +83346,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83342
83346
|
label: "\u64CD\u4F5C"
|
|
83343
83347
|
}, {
|
|
83344
83348
|
default: withCtx(({ row }) => [
|
|
83345
|
-
|
|
83349
|
+
!$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
83350
|
+
key: 0,
|
|
83346
83351
|
type: "primary",
|
|
83347
83352
|
link: "",
|
|
83348
83353
|
onClick: ($event) => $options.handleRow(row)
|
|
@@ -83351,7 +83356,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83351
83356
|
createTextVNode("\u4FEE\u6539", -1)
|
|
83352
83357
|
])]),
|
|
83353
83358
|
_: 1
|
|
83354
|
-
}, 8, ["onClick"]),
|
|
83359
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
83355
83360
|
createVNode(_component_el_button, {
|
|
83356
83361
|
type: "primary",
|
|
83357
83362
|
link: "",
|
|
@@ -83362,7 +83367,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83362
83367
|
])]),
|
|
83363
83368
|
_: 1
|
|
83364
83369
|
}, 8, ["onClick"]),
|
|
83365
|
-
|
|
83370
|
+
!$props.field.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
83371
|
+
key: 1,
|
|
83366
83372
|
type: "danger",
|
|
83367
83373
|
link: "",
|
|
83368
83374
|
onClick: ($event) => $options.deleteRow(row)
|
|
@@ -83371,7 +83377,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83371
83377
|
createTextVNode("\u5220\u9664", -1)
|
|
83372
83378
|
])]),
|
|
83373
83379
|
_: 1
|
|
83374
|
-
}, 8, ["onClick"])
|
|
83380
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
83375
83381
|
]),
|
|
83376
83382
|
_: 1
|
|
83377
83383
|
})
|