const a={props:{name:{type:String,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:Object,default:void 0}},emits:["changeValue"],watch:{required(e,t){e!==t&&this.update(this.currValue)}},created(){this.update(this.currValue)},methods:{update(e){const t=this.validate?this.validate(e):{valid:!0,errors:[]};this.$emit("changeValue",this.name,e,t)}}};export{a as _};