form-custom-test 3.0.162 → 3.0.163
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 +10 -52
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +45 -45
- package/dist/render.es.js +10 -52
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +4 -4
- package/package.json +2 -2
package/dist/render.es.js
CHANGED
|
@@ -8790,29 +8790,11 @@ var fieldMixin = {
|
|
|
8790
8790
|
this.fieldModel = this.field.options.defaultValue;
|
|
8791
8791
|
}
|
|
8792
8792
|
},
|
|
8793
|
-
clearFieldValidate() {
|
|
8794
|
-
var _a;
|
|
8795
|
-
if (this.designState || !((_a = this.field) == null ? void 0 : _a.formItemFlag)) {
|
|
8796
|
-
return;
|
|
8797
|
-
}
|
|
8798
|
-
const formRef = this.getFormRef();
|
|
8799
|
-
if (!formRef || typeof formRef.clearValidate !== "function") {
|
|
8800
|
-
return;
|
|
8801
|
-
}
|
|
8802
|
-
const prop = this.getPropName();
|
|
8803
|
-
if (!prop) {
|
|
8804
|
-
return;
|
|
8805
|
-
}
|
|
8806
|
-
this.$nextTick(() => {
|
|
8807
|
-
formRef.clearValidate(prop);
|
|
8808
|
-
});
|
|
8809
|
-
},
|
|
8810
8793
|
clearFieldRules() {
|
|
8811
8794
|
if (!this.field.formItemFlag) {
|
|
8812
8795
|
return;
|
|
8813
8796
|
}
|
|
8814
8797
|
this.rules.splice(0, this.rules.length);
|
|
8815
|
-
this.clearFieldValidate();
|
|
8816
8798
|
},
|
|
8817
8799
|
buildFieldRules() {
|
|
8818
8800
|
if (!this.field.formItemFlag) {
|
|
@@ -8820,7 +8802,6 @@ var fieldMixin = {
|
|
|
8820
8802
|
}
|
|
8821
8803
|
this.rules.splice(0, this.rules.length);
|
|
8822
8804
|
if (!!this.field.options.hidden && !this.designState) {
|
|
8823
|
-
this.clearFieldValidate();
|
|
8824
8805
|
return;
|
|
8825
8806
|
}
|
|
8826
8807
|
if (!!this.field.options.required) {
|
|
@@ -8860,7 +8841,6 @@ var fieldMixin = {
|
|
|
8860
8841
|
label: this.field.options.label
|
|
8861
8842
|
});
|
|
8862
8843
|
}
|
|
8863
|
-
this.clearFieldValidate();
|
|
8864
8844
|
},
|
|
8865
8845
|
disableChangeValidate() {
|
|
8866
8846
|
if (!this.rules) {
|
|
@@ -24519,8 +24499,6 @@ const _sfc_main$B = {
|
|
|
24519
24499
|
if (!this.widget)
|
|
24520
24500
|
return;
|
|
24521
24501
|
const hiddenFlag = !!hidden;
|
|
24522
|
-
const propsToClear = [];
|
|
24523
|
-
const formRef = this.getFormRef();
|
|
24524
24502
|
traverseFieldWidgetsOfContainer(this.widget, (fieldWidget) => {
|
|
24525
24503
|
if (!fieldWidget.formItemFlag || !fieldWidget.options || !fieldWidget.options.name) {
|
|
24526
24504
|
return;
|
|
@@ -24535,15 +24513,7 @@ const _sfc_main$B = {
|
|
|
24535
24513
|
} else if (typeof fieldRef.buildFieldRules === "function") {
|
|
24536
24514
|
fieldRef.buildFieldRules();
|
|
24537
24515
|
}
|
|
24538
|
-
if (typeof fieldRef.getPropName === "function") {
|
|
24539
|
-
propsToClear.push(fieldRef.getPropName());
|
|
24540
|
-
}
|
|
24541
24516
|
});
|
|
24542
|
-
if (propsToClear.length > 0 && formRef && typeof formRef.clearValidate === "function") {
|
|
24543
|
-
this.$nextTick(() => {
|
|
24544
|
-
formRef.clearValidate(propsToClear);
|
|
24545
|
-
});
|
|
24546
|
-
}
|
|
24547
24517
|
},
|
|
24548
24518
|
setHidden(flag) {
|
|
24549
24519
|
if (this.widget && this.widget.options) {
|
|
@@ -24650,7 +24620,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24650
24620
|
[vShow, $options.colVisible]
|
|
24651
24621
|
]) : createCommentVNode("", true);
|
|
24652
24622
|
}
|
|
24653
|
-
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["render", _sfc_render$B], ["__scopeId", "data-v-
|
|
24623
|
+
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["render", _sfc_render$B], ["__scopeId", "data-v-20705201"]]);
|
|
24654
24624
|
var __glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24655
24625
|
__proto__: null,
|
|
24656
24626
|
"default": GridColItem
|
|
@@ -25943,6 +25913,9 @@ const _sfc_main$v = {
|
|
|
25943
25913
|
const fieldRef = this.getWidgetRef(fieldName);
|
|
25944
25914
|
if (fieldRef && typeof fieldRef.setRequired === "function") {
|
|
25945
25915
|
fieldRef.setRequired(flag);
|
|
25916
|
+
if (typeof fieldRef.buildFieldRules === "function") {
|
|
25917
|
+
fieldRef.buildFieldRules();
|
|
25918
|
+
}
|
|
25946
25919
|
return true;
|
|
25947
25920
|
}
|
|
25948
25921
|
const fieldSchema = this.findFieldByName(fieldName);
|
|
@@ -25951,8 +25924,6 @@ const _sfc_main$v = {
|
|
|
25951
25924
|
const refAfter = this.getWidgetRef(fieldName);
|
|
25952
25925
|
if (refAfter && typeof refAfter.buildFieldRules === "function") {
|
|
25953
25926
|
refAfter.buildFieldRules();
|
|
25954
|
-
} else {
|
|
25955
|
-
this.$nextTick(() => this.clearValidate(fieldName));
|
|
25956
25927
|
}
|
|
25957
25928
|
return true;
|
|
25958
25929
|
}
|
|
@@ -26239,11 +26210,7 @@ const _sfc_main$v = {
|
|
|
26239
26210
|
});
|
|
26240
26211
|
},
|
|
26241
26212
|
clearValidate(props) {
|
|
26242
|
-
|
|
26243
|
-
if (!form || typeof form.clearValidate !== "function") {
|
|
26244
|
-
return;
|
|
26245
|
-
}
|
|
26246
|
-
form.clearValidate(props);
|
|
26213
|
+
this.$refs.renderForm.clearValidate(props);
|
|
26247
26214
|
},
|
|
26248
26215
|
validateForm(callback2) {
|
|
26249
26216
|
this.$refs["renderForm"].validate((valid) => {
|
|
@@ -26368,7 +26335,6 @@ const _sfc_main$v = {
|
|
|
26368
26335
|
if (!col)
|
|
26369
26336
|
return;
|
|
26370
26337
|
const hiddenFlag = !!hidden;
|
|
26371
|
-
const propsToClear = [];
|
|
26372
26338
|
traverseFieldWidgetsOfContainer(col, (fieldWidget) => {
|
|
26373
26339
|
if (!fieldWidget.formItemFlag || !fieldWidget.options || !fieldWidget.options.name) {
|
|
26374
26340
|
return;
|
|
@@ -26383,15 +26349,7 @@ const _sfc_main$v = {
|
|
|
26383
26349
|
} else if (typeof fieldRef.buildFieldRules === "function") {
|
|
26384
26350
|
fieldRef.buildFieldRules();
|
|
26385
26351
|
}
|
|
26386
|
-
if (typeof fieldRef.getPropName === "function") {
|
|
26387
|
-
propsToClear.push(fieldRef.getPropName());
|
|
26388
|
-
}
|
|
26389
26352
|
});
|
|
26390
|
-
if (propsToClear.length > 0) {
|
|
26391
|
-
this.$nextTick(() => {
|
|
26392
|
-
this.clearValidate(propsToClear);
|
|
26393
|
-
});
|
|
26394
|
-
}
|
|
26395
26353
|
},
|
|
26396
26354
|
setColHidden(colName, hidden) {
|
|
26397
26355
|
if (Array.isArray(colName)) {
|
|
@@ -26468,7 +26426,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26468
26426
|
_: 3
|
|
26469
26427
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
26470
26428
|
}
|
|
26471
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-
|
|
26429
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-3d429201"]]);
|
|
26472
26430
|
function registerIcon(app) {
|
|
26473
26431
|
app.component("el-icon-edit", edit);
|
|
26474
26432
|
app.component("el-icon-minus", minus);
|
|
@@ -26483,13 +26441,13 @@ function registerIcon(app) {
|
|
|
26483
26441
|
if (typeof window !== "undefined") {
|
|
26484
26442
|
let loadSvg = function() {
|
|
26485
26443
|
var body = document.body;
|
|
26486
|
-
var svgDom = document.getElementById("
|
|
26444
|
+
var svgDom = document.getElementById("__svg__icons__dom__1779357212195__");
|
|
26487
26445
|
if (!svgDom) {
|
|
26488
26446
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26489
26447
|
svgDom.style.position = "absolute";
|
|
26490
26448
|
svgDom.style.width = "0";
|
|
26491
26449
|
svgDom.style.height = "0";
|
|
26492
|
-
svgDom.id = "
|
|
26450
|
+
svgDom.id = "__svg__icons__dom__1779357212195__";
|
|
26493
26451
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26494
26452
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26495
26453
|
}
|
|
@@ -62303,7 +62261,7 @@ const _sfc_main$6 = {
|
|
|
62303
62261
|
this.handleGetAssetTypeOptions();
|
|
62304
62262
|
}
|
|
62305
62263
|
};
|
|
62306
|
-
const _hoisted_1$4 = { class: "asset-
|
|
62264
|
+
const _hoisted_1$4 = { class: "asset-bodybody-wrap" };
|
|
62307
62265
|
const _hoisted_2$2 = { class: "bottom-wrap" };
|
|
62308
62266
|
const _hoisted_3$1 = { class: "left-wrap" };
|
|
62309
62267
|
const _hoisted_4 = { class: "filter-wrap" };
|
|
@@ -62635,7 +62593,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62635
62593
|
_: 1
|
|
62636
62594
|
}, 8, ["modelValue", "onClose"]);
|
|
62637
62595
|
}
|
|
62638
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
62596
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-d26bfe7c"]]);
|
|
62639
62597
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
62640
62598
|
const _sfc_main$5 = {
|
|
62641
62599
|
name: "asset-select-widget",
|