elementui样式不生效,icon不生效时
检查组件是否正常注册:确保您的组件已经成功注册且被正确引用。
在 Vue 中,需要通过 Vue.use() 方法来全局注册 Element UI 组件,例如:
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
elementui样式不生效,icon不生效时
检查组件是否正常注册:确保您的组件已经成功注册且被正确引用。
在 Vue 中,需要通过 Vue.use() 方法来全局注册 Element UI 组件,例如:
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);