@@ -81,6 +81,7 @@ const setupFieldProps = (instance: FieldInterface, props: any, data: any) =>
8181 $interceptors : props . $interceptors || data ?. interceptors || null ,
8282 $ref : props . $ref || data ?. ref || undefined ,
8383 $nullable : props . $nullable || data ?. nullable || false ,
84+ $autocomplete : props . $autocomplete || data ?. autocomplete || undefined ,
8485 } ) ;
8586
8687const setupDefaultProp = (
@@ -162,6 +163,7 @@ export default class Field extends Base implements FieldInterface {
162163 $inputMode : string = undefined ;
163164 $ref : any = undefined ;
164165 $nullable : boolean = false ;
166+ $autocomplete : string | undefined = undefined ;
165167
166168 showError : boolean = false ;
167169 errorSync : string | null = null ;
@@ -259,7 +261,7 @@ export default class Field extends Base implements FieldInterface {
259261 this . state = state ;
260262
261263 this . setupField ( key , path , struct , data , props , update ) ;
262- this . checkValidationPlugins ( ) ;
264+ // this.checkValidationPlugins();
263265 this . initNestedFields ( data , update ) ;
264266
265267 this . incremental = this . hasIncrementalKeys ;
@@ -366,6 +368,10 @@ export default class Field extends Base implements FieldInterface {
366368 return propGetter ( this , FieldPropsEnum . nullable ) ;
367369 }
368370
371+ get autocomplete ( ) : string | undefined {
372+ return propGetter ( this , FieldPropsEnum . autocomplete ) ;
373+ }
374+
369375 get ref ( ) {
370376 return propGetter ( this , FieldPropsEnum . ref )
371377 }
@@ -687,26 +693,26 @@ export default class Field extends Base implements FieldInterface {
687693 return toJS ( val ) ;
688694 }
689695
690- checkValidationPlugins ( ) : void {
691- const { drivers } = this . state . form . validator ;
692- const form = this . state . form . name ? `${ this . state . form . name } /` : "" ;
693-
694- if ( _ . isNil ( drivers . dvr ) && ! _ . isNil ( this . rules ) ) {
695- throw new Error (
696- `The DVR validation rules are defined but no DVR plugin provided. Field: "${
697- form + this . path
698- } ".`
699- ) ;
700- }
701-
702- if ( _ . isNil ( drivers . vjf ) && ! _ . isNil ( this . validators ) ) {
703- throw new Error (
704- `The VJF validators functions are defined but no VJF plugin provided. Field: "${
705- form + this . path
706- } ".`
707- ) ;
708- }
709- }
696+ // checkValidationPlugins(): void {
697+ // const { drivers } = this.state.form.validator;
698+ // const form = this.state.form.name ? `${this.state.form.name}/` : "";
699+
700+ // if (_.isNil(drivers.dvr) && !_.isNil(this.rules)) {
701+ // throw new Error(
702+ // `The DVR validation rules are defined but no DVR plugin provided. Field: "${
703+ // form + this.path
704+ // }".`
705+ // );
706+ // }
707+
708+ // if (_.isNil(drivers.vjf) && !_.isNil(this.validators)) {
709+ // throw new Error(
710+ // `The VJF validators functions are defined but no VJF plugin provided. Field: "${
711+ // form + this.path
712+ // }".`
713+ // );
714+ // }
715+ // }
710716
711717 initNestedFields ( field : any , update : boolean ) : void {
712718 const fields = _ . isNil ( field ) ? null : field . fields ;
0 commit comments