目录
实现效果
关键点
实现效果
关键点
和VUE2+elementUI有差异。在elementUI直接设置icon
<el-button type="primary" icon="el-icon-star-off" >立即购买</el-button>
在VUE3+element plus中要引入icon图标变量
<el-button type="success" :icon="Star" >立即购买</el-button>
<script>
import {Star} from '@element-plus/icons-vue'
</script>