123456789101112131415161718192021222324 |
- export var FieldMixin = {
- inject: {
- vanField: {
- default: null
- }
- },
- watch: {
- value: function value() {
- var field = this.vanField;
- if (field) {
- field.resetValidation();
- field.validateWithTrigger('onChange');
- }
- }
- },
- created: function created() {
- var field = this.vanField;
- if (field && !field.children) {
- field.children = this;
- }
- }
- };
|