@afeefa/vue-app 0.0.188 → 0.0.190
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.190
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@ import { Component, Vue } from '@a-vue'
|
|
2
2
|
import { ListAction } from '@a-vue/api-resources/ApiActions'
|
3
3
|
|
4
4
|
@Component({
|
5
|
-
props: ['name', 'label', 'additionalRules', 'optionRequestParams']
|
5
|
+
props: ['name', 'label', 'customValidator', 'additionalRules', 'optionRequestParams']
|
6
6
|
})
|
7
7
|
export class FormFieldMixin extends Vue {
|
8
8
|
get model () {
|
@@ -114,11 +114,11 @@ export class FormFieldMixin extends Vue {
|
|
114
114
|
}
|
115
115
|
|
116
116
|
get validator () {
|
117
|
-
const validator = this.field.getValidator()
|
117
|
+
const validator = this.customValidator || this.field.getValidator()
|
118
118
|
if (this.additionalRules) {
|
119
119
|
validator.setAdditionalRules(this.additionalRules)
|
120
120
|
}
|
121
|
-
return
|
121
|
+
return validator
|
122
122
|
}
|
123
123
|
|
124
124
|
get validationRules () {
|
@@ -73,7 +73,14 @@
|
|
73
73
|
</template>
|
74
74
|
|
75
75
|
<div v-else-if="!isLoading">
|
76
|
-
<
|
76
|
+
<div v-if="$scopedSlots['not-found']">
|
77
|
+
<slot name="not-found" />
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<a-info
|
81
|
+
v-else
|
82
|
+
type="warning"
|
83
|
+
>
|
77
84
|
<div v-if="$has.filters && meta_.count_all">
|
78
85
|
Nichts gefunden. <a
|
79
86
|
href=""
|
@@ -86,6 +93,7 @@
|
|
86
93
|
</div>
|
87
94
|
</a-info>
|
88
95
|
</div>
|
96
|
+
|
89
97
|
<div
|
90
98
|
v-if="$has.filters"
|
91
99
|
class="filters"
|