:::

12. 使用 Element plus

  1. 安裝 Element plus
    npm install element-plus --save

     

  2. 安裝主題機制以及白堊主題
    npm i element-theme -g
    npm i element-theme-chalk -D

     

  3. 完整引入(並套用正體中文語系) src\main.js
    import { createApp } from 'vue'
    import App from './App.vue'
    import router from './router'
    import store from './store'
    
    import ElementPlus from 'element-plus';
    import locale from 'element-plus/lib/locale/lang/zh-tw'
    import 'element-plus/lib/theme-chalk/index.css';
    
    const app = createApp(App)
    app.use(ElementPlus, { locale })
    app.use(store)
    app.use(router)
    app.mount('#app')
    

     

  4.  

:::

書籍目錄

展開 | 闔起

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D33%26tbdsn%3D1747

計數器

今天: 2735273527352735
昨天: 3755375537553755
總計: 4458574445857444585744458574445857444585744458574