1.具体错误

[Vue warn]: Invalid prop: custom validator check failed for prop "type".

found in

---> <Button>
       <FormItem>
         <IForm>
           <Modal>
             <User> at src/components/user/User.vue
               <Content>
                 <Layout>... (2 recursive calls)
                   <Admin> at src/components/admin.vue
                     <App> at src/App.vue
                       <Root>

2.错误的出处,就是用了这ghost这个类型

 <i-button type="ghost" @click="handleReset('formValidate')">重置</i-button>

3.处理这个错误,就是把这个button类型换掉

 <i-button type="warning" @click="handleReset('formValidate')">重置</i-button>

 

Logo

前往低代码交流专区

更多推荐