form-custom-test 3.0.240 → 3.0.242
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 +35 -10
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +4 -4
- package/dist/render.es.js +35 -10
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -26330,6 +26330,13 @@ const _sfc_main$J = {
|
|
|
26330
26330
|
this.emitFormValidateSuccess(this.formDataModel);
|
|
26331
26331
|
callback2(this.formDataModel);
|
|
26332
26332
|
} else {
|
|
26333
|
+
this.$nextTick(() => {
|
|
26334
|
+
const firstErrorElement = document.querySelector(".el-form-item.is-error");
|
|
26335
|
+
if (firstErrorElement) {
|
|
26336
|
+
console.log(firstErrorElement, "11111");
|
|
26337
|
+
firstErrorElement.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
26338
|
+
}
|
|
26339
|
+
});
|
|
26333
26340
|
callback2(this.formDataModel, this.i18nt("render.hint.validationFailed"));
|
|
26334
26341
|
}
|
|
26335
26342
|
});
|
|
@@ -26648,7 +26655,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26648
26655
|
_: 3
|
|
26649
26656
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
26650
26657
|
}
|
|
26651
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-
|
|
26658
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-7ef95586"]]);
|
|
26652
26659
|
function registerIcon(app) {
|
|
26653
26660
|
app.component("el-icon-edit", edit);
|
|
26654
26661
|
app.component("el-icon-minus", minus);
|
|
@@ -26663,13 +26670,13 @@ function registerIcon(app) {
|
|
|
26663
26670
|
if (typeof window !== "undefined") {
|
|
26664
26671
|
let loadSvg = function() {
|
|
26665
26672
|
var body = document.body;
|
|
26666
|
-
var svgDom = document.getElementById("
|
|
26673
|
+
var svgDom = document.getElementById("__svg__icons__dom__1786063355937__");
|
|
26667
26674
|
if (!svgDom) {
|
|
26668
26675
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26669
26676
|
svgDom.style.position = "absolute";
|
|
26670
26677
|
svgDom.style.width = "0";
|
|
26671
26678
|
svgDom.style.height = "0";
|
|
26672
|
-
svgDom.id = "
|
|
26679
|
+
svgDom.id = "__svg__icons__dom__1786063355937__";
|
|
26673
26680
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26674
26681
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26675
26682
|
}
|
|
@@ -65005,6 +65012,10 @@ const _sfc_main$d = {
|
|
|
65005
65012
|
VFormRender
|
|
65006
65013
|
},
|
|
65007
65014
|
props: {
|
|
65015
|
+
title: {
|
|
65016
|
+
type: String,
|
|
65017
|
+
default: "\u67E5\u770B\u8BE6\u60C5"
|
|
65018
|
+
},
|
|
65008
65019
|
visible: {
|
|
65009
65020
|
type: Boolean,
|
|
65010
65021
|
default: false
|
|
@@ -65248,7 +65259,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65248
65259
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
65249
65260
|
modelValue: $options.dialogVisible,
|
|
65250
65261
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.dialogVisible = $event),
|
|
65251
|
-
title:
|
|
65262
|
+
title: $props.title,
|
|
65252
65263
|
width: "1200px",
|
|
65253
65264
|
onClose: $options.handleClose,
|
|
65254
65265
|
"close-on-click-modal": false,
|
|
@@ -65287,9 +65298,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65287
65298
|
])
|
|
65288
65299
|
]),
|
|
65289
65300
|
_: 1
|
|
65290
|
-
}, 8, ["modelValue", "onClose"]);
|
|
65301
|
+
}, 8, ["modelValue", "title", "onClose"]);
|
|
65291
65302
|
}
|
|
65292
|
-
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
65303
|
+
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-ad2f356c"]]);
|
|
65293
65304
|
var index_vue_vue_type_style_index_0_lang$2 = "";
|
|
65294
65305
|
const _sfc_main$c = {
|
|
65295
65306
|
name: "asset-table-widget",
|
|
@@ -65916,7 +65927,20 @@ const _sfc_main$a = {
|
|
|
65916
65927
|
disabled: true
|
|
65917
65928
|
};
|
|
65918
65929
|
},
|
|
65919
|
-
computed: {
|
|
65930
|
+
computed: {
|
|
65931
|
+
title() {
|
|
65932
|
+
var _a, _b, _c;
|
|
65933
|
+
if (((_b = (_a = this.field) == null ? void 0 : _a.options) == null ? void 0 : _b.disabled) || this.disabled) {
|
|
65934
|
+
return "\u67E5\u770B\u8BE6\u60C5";
|
|
65935
|
+
} else {
|
|
65936
|
+
if ((_c = this.detailDialogData) == null ? void 0 : _c.id) {
|
|
65937
|
+
return "\u4FEE\u6539\u5408\u540C\u76F8\u5173\u65B9";
|
|
65938
|
+
} else {
|
|
65939
|
+
return "\u65B0\u589E\u5408\u540C\u76F8\u5173\u65B9";
|
|
65940
|
+
}
|
|
65941
|
+
}
|
|
65942
|
+
}
|
|
65943
|
+
},
|
|
65920
65944
|
watch: {
|
|
65921
65945
|
"field.options.required"() {
|
|
65922
65946
|
this.buildFieldRules();
|
|
@@ -66109,7 +66133,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66109
66133
|
default: withCtx(() => [
|
|
66110
66134
|
createVNode(_component_el_table_column, {
|
|
66111
66135
|
prop: "companyName",
|
|
66112
|
-
label: "\u5408\u540C\u76F8\
|
|
66136
|
+
label: "\u5408\u540C\u76F8\u5173\u65B9\u540D\u79F0"
|
|
66113
66137
|
}),
|
|
66114
66138
|
createVNode(_component_el_table_column, {
|
|
66115
66139
|
prop: "legalPersonName",
|
|
@@ -66188,8 +66212,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66188
66212
|
data: $data.detailDialogData,
|
|
66189
66213
|
onClose: $options.handleCloseDetailDialog,
|
|
66190
66214
|
onConfirm: $options.handleConfirm,
|
|
66191
|
-
disabled: $props.field.options.disabled || $data.disabled
|
|
66192
|
-
|
|
66215
|
+
disabled: $props.field.options.disabled || $data.disabled,
|
|
66216
|
+
title: $options.title
|
|
66217
|
+
}, null, 8, ["visible", "typeJson", "data", "onClose", "onConfirm", "disabled", "title"])
|
|
66193
66218
|
]),
|
|
66194
66219
|
_: 1
|
|
66195
66220
|
}, 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"]);
|