rb-document-form-constructor 0.10.1 → 0.10.3
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.
|
@@ -33455,15 +33455,13 @@ var script$1 = {
|
|
|
33455
33455
|
|
|
33456
33456
|
currentInputName(val) {
|
|
33457
33457
|
this.field.input = UtFormConstructor.getInputTypeByName(this.currentInputName, this.field);
|
|
33458
|
-
}
|
|
33459
|
-
|
|
33460
|
-
multiple
|
|
33461
|
-
|
|
33458
|
+
} // multiple() {
|
|
33459
|
+
// let input = UtFormConstructor.getDefaultInput(this.field);
|
|
33460
|
+
// if (this.field.multiple) {
|
|
33461
|
+
// this.currentInputName = input.name;
|
|
33462
|
+
// }
|
|
33463
|
+
// },
|
|
33462
33464
|
|
|
33463
|
-
if (this.field.multiple) {
|
|
33464
|
-
this.currentInputName = input.name;
|
|
33465
|
-
}
|
|
33466
|
-
}
|
|
33467
33465
|
|
|
33468
33466
|
},
|
|
33469
33467
|
methods: {
|
|
@@ -33508,12 +33506,14 @@ var script$1 = {
|
|
|
33508
33506
|
this.ruleModalCfg = {
|
|
33509
33507
|
mode: 'ins',
|
|
33510
33508
|
rule: {
|
|
33509
|
+
id: UtRandom.getRandomString(10),
|
|
33511
33510
|
name: null,
|
|
33512
33511
|
script: null
|
|
33513
33512
|
},
|
|
33514
33513
|
onAfterOk: rule => {
|
|
33515
33514
|
this.field.rules = this.field.rules ? this.field.rules : [];
|
|
33516
|
-
this.field.rules.push({ ...rule
|
|
33515
|
+
this.field.rules.push({ ...rule,
|
|
33516
|
+
id: rule.id || UtRandom.getRandomString(10)
|
|
33517
33517
|
});
|
|
33518
33518
|
this.rulesHash = UtRandom.getRandomString(10);
|
|
33519
33519
|
}
|
|
@@ -33538,7 +33538,7 @@ var script$1 = {
|
|
|
33538
33538
|
},
|
|
33539
33539
|
|
|
33540
33540
|
removeRule(rule) {
|
|
33541
|
-
|
|
33541
|
+
const index = this.field.rules.indexOf(rule);
|
|
33542
33542
|
|
|
33543
33543
|
if (index >= 0) {
|
|
33544
33544
|
this.field.rules.splice(index, 1);
|
|
@@ -33819,6 +33819,7 @@ var __vue_render__$1 = function () {
|
|
|
33819
33819
|
},
|
|
33820
33820
|
on: {
|
|
33821
33821
|
"click": function ($event) {
|
|
33822
|
+
$event.stopPropagation();
|
|
33822
33823
|
return _vm.removeRule(rule);
|
|
33823
33824
|
}
|
|
33824
33825
|
}
|