Vue 中使用element-ui樣式無效

1. Vue 中使用element-ui樣式無效

示例按需加載組件,引用button 後發現樣式無效,後經搜索發現沒有引入樣式,加上即可

2. 點擊校驗後報錯

需要安裝vue-notification

npm install --savevue-notification

並在main.js中引用組件

import Notifications from "vue-notification"

Vue.use(Notifications)

3. 點擊按鈕不提示信息

經搜索發現 vue-notification 組件需要在.vue文件中引用

在app.vue中 添加 <notifications />  提示框就出來了

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章