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/designer.es.js
CHANGED
|
@@ -28337,6 +28337,13 @@ const _sfc_main$39 = {
|
|
|
28337
28337
|
this.emitFormValidateSuccess(this.formDataModel);
|
|
28338
28338
|
callback2(this.formDataModel);
|
|
28339
28339
|
} else {
|
|
28340
|
+
this.$nextTick(() => {
|
|
28341
|
+
const firstErrorElement = document.querySelector(".el-form-item.is-error");
|
|
28342
|
+
if (firstErrorElement) {
|
|
28343
|
+
console.log(firstErrorElement, "11111");
|
|
28344
|
+
firstErrorElement.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
28345
|
+
}
|
|
28346
|
+
});
|
|
28340
28347
|
callback2(this.formDataModel, this.i18nt("render.hint.validationFailed"));
|
|
28341
28348
|
}
|
|
28342
28349
|
});
|
|
@@ -28655,7 +28662,7 @@ function _sfc_render$39(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28655
28662
|
_: 3
|
|
28656
28663
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
28657
28664
|
}
|
|
28658
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$39, [["render", _sfc_render$39], ["__scopeId", "data-v-
|
|
28665
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$39, [["render", _sfc_render$39], ["__scopeId", "data-v-7ef95586"]]);
|
|
28659
28666
|
var ace$2 = { exports: {} };
|
|
28660
28667
|
(function(module, exports) {
|
|
28661
28668
|
(function() {
|
|
@@ -69412,13 +69419,13 @@ function registerIcon(app) {
|
|
|
69412
69419
|
if (typeof window !== "undefined") {
|
|
69413
69420
|
let loadSvg = function() {
|
|
69414
69421
|
var body = document.body;
|
|
69415
|
-
var svgDom = document.getElementById("
|
|
69422
|
+
var svgDom = document.getElementById("__svg__icons__dom__1786063347658__");
|
|
69416
69423
|
if (!svgDom) {
|
|
69417
69424
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
69418
69425
|
svgDom.style.position = "absolute";
|
|
69419
69426
|
svgDom.style.width = "0";
|
|
69420
69427
|
svgDom.style.height = "0";
|
|
69421
|
-
svgDom.id = "
|
|
69428
|
+
svgDom.id = "__svg__icons__dom__1786063347658__";
|
|
69422
69429
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
69423
69430
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
69424
69431
|
}
|
|
@@ -82209,6 +82216,10 @@ const _sfc_main$d = {
|
|
|
82209
82216
|
VFormRender
|
|
82210
82217
|
},
|
|
82211
82218
|
props: {
|
|
82219
|
+
title: {
|
|
82220
|
+
type: String,
|
|
82221
|
+
default: "\u67E5\u770B\u8BE6\u60C5"
|
|
82222
|
+
},
|
|
82212
82223
|
visible: {
|
|
82213
82224
|
type: Boolean,
|
|
82214
82225
|
default: false
|
|
@@ -82452,7 +82463,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
82452
82463
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
82453
82464
|
modelValue: $options.dialogVisible,
|
|
82454
82465
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.dialogVisible = $event),
|
|
82455
|
-
title:
|
|
82466
|
+
title: $props.title,
|
|
82456
82467
|
width: "1200px",
|
|
82457
82468
|
onClose: $options.handleClose,
|
|
82458
82469
|
"close-on-click-modal": false,
|
|
@@ -82491,9 +82502,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
82491
82502
|
])
|
|
82492
82503
|
]),
|
|
82493
82504
|
_: 1
|
|
82494
|
-
}, 8, ["modelValue", "onClose"]);
|
|
82505
|
+
}, 8, ["modelValue", "title", "onClose"]);
|
|
82495
82506
|
}
|
|
82496
|
-
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
82507
|
+
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-ad2f356c"]]);
|
|
82497
82508
|
var index_vue_vue_type_style_index_0_lang$2 = "";
|
|
82498
82509
|
const _sfc_main$c = {
|
|
82499
82510
|
name: "asset-table-widget",
|
|
@@ -83120,7 +83131,20 @@ const _sfc_main$a = {
|
|
|
83120
83131
|
disabled: true
|
|
83121
83132
|
};
|
|
83122
83133
|
},
|
|
83123
|
-
computed: {
|
|
83134
|
+
computed: {
|
|
83135
|
+
title() {
|
|
83136
|
+
var _a2, _b2, _c2;
|
|
83137
|
+
if (((_b2 = (_a2 = this.field) == null ? void 0 : _a2.options) == null ? void 0 : _b2.disabled) || this.disabled) {
|
|
83138
|
+
return "\u67E5\u770B\u8BE6\u60C5";
|
|
83139
|
+
} else {
|
|
83140
|
+
if ((_c2 = this.detailDialogData) == null ? void 0 : _c2.id) {
|
|
83141
|
+
return "\u4FEE\u6539\u5408\u540C\u76F8\u5173\u65B9";
|
|
83142
|
+
} else {
|
|
83143
|
+
return "\u65B0\u589E\u5408\u540C\u76F8\u5173\u65B9";
|
|
83144
|
+
}
|
|
83145
|
+
}
|
|
83146
|
+
}
|
|
83147
|
+
},
|
|
83124
83148
|
watch: {
|
|
83125
83149
|
"field.options.required"() {
|
|
83126
83150
|
this.buildFieldRules();
|
|
@@ -83313,7 +83337,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83313
83337
|
default: withCtx(() => [
|
|
83314
83338
|
createVNode(_component_el_table_column, {
|
|
83315
83339
|
prop: "companyName",
|
|
83316
|
-
label: "\u5408\u540C\u76F8\
|
|
83340
|
+
label: "\u5408\u540C\u76F8\u5173\u65B9\u540D\u79F0"
|
|
83317
83341
|
}),
|
|
83318
83342
|
createVNode(_component_el_table_column, {
|
|
83319
83343
|
prop: "legalPersonName",
|
|
@@ -83392,8 +83416,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83392
83416
|
data: $data.detailDialogData,
|
|
83393
83417
|
onClose: $options.handleCloseDetailDialog,
|
|
83394
83418
|
onConfirm: $options.handleConfirm,
|
|
83395
|
-
disabled: $props.field.options.disabled || $data.disabled
|
|
83396
|
-
|
|
83419
|
+
disabled: $props.field.options.disabled || $data.disabled,
|
|
83420
|
+
title: $options.title
|
|
83421
|
+
}, null, 8, ["visible", "typeJson", "data", "onClose", "onConfirm", "disabled", "title"])
|
|
83397
83422
|
]),
|
|
83398
83423
|
_: 1
|
|
83399
83424
|
}, 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"]);
|