今天在用element-plus 开发的时候,遇到控制台的一个警告。虽然页面正常显示,但是图标不显示,并且全局安装不生效,
解决方法:把 icon 前面的 :冒号去掉就可以了
<el-row>
<el-button :icon="Search" circle />
<el-button type="primary" :icon="Edit" circle />
<el-button type="success" :icon="Check" circle />
<el-button type="info" :icon="Message" circle />
<el-button type="warning" :icon="Star" circle />
<el-button type="danger" :icon="Delete" circle />
</el-row>