因为element-plus 1.2.0-beta.1以后移除了,所以需要自己引入
npm install @element-plus/icons //引入
按需引入
js
import { ArrowDown } from '@element-plus/icons'
export default defineComponent({
components: { ArrowDown }
})
html
<el-icon class="el-icon--right"><ArrowDown /></el-icon>