<a-auto-complete>did you register the component correctly? For recursive components, make sure to pr

今天在开发项目的时候遇到ant-design-vue版本1.7.8报错did you register the component correctly? For recursive components, make sure to provide the “name” option.
他的意思大概是:说组件没有注册
1.引入组件

import AutoComplete from 'ant-design-vue/es/auto-complete'
export default {
  components: {  AutoComplete },
}

2.使用组件

          <auto-complete
            v-model="nickname"
            :maxLength="20"
            style="width: 200px"
            option-label-prop="title"
            placeholder="请输入昵称"
            @select="onSelect"
            @search="onSearch"
            @change="onChange"
            @blur="handlerBlur"
            @keyup.enter.native="usageData"
          >
            <template slot="dataSource">
              <a-select-option v-for="item in options" :key="item.id" :title="item.username">
                <span>{{ item.username }}</span>
                <span class="ml-16 fs-14" style="color: #A0A2AA;">{{ item.org_name }}</span>
              </a-select-option>
            </template>
          </auto-complete>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值