1.在安装antd的环境后,想使用select组件但是失败了,一直无法加载出来select的表单
原因:
1.在div中没有使用已经写好的selectItem标签
2.select在app.vue中,不能使用select关键字作为标签
3.没有配置vue.config.js文件(之前这个文件就不存在)
4.main.js没有按照antd的官方文档引入,特别是不要忘记引入样式
app.vue
<template>
<div id="app">
<todo-list>
<todo-item @delete="handleDelete" v-for ="item in list" :key="item.title" :title="item.title" :del="item.del">
<!--<template v-slot:pre-icon ="{value}">-->
<!--<span>前置图标{
{value}}</span>-->
<!--<select>111 </select>-->
<!--</template>-->
</todo-item>
</todo-list>
<selectItem></selectItem>
</div>
</template>
<script>
import TodoList from