@afeefa/vue-app 0.0.189 → 0.0.190

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.
@@ -1 +1 @@
1
- 0.0.189
1
+ 0.0.190
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -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 this.field.getValidator()
121
+ return validator
122
122
  }
123
123
 
124
124
  get validationRules () {