1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        OpenAnts基于 ElementUI 的 VUE 組件庫

        聯(lián)合創(chuàng)作 · 2023-09-19 17:55

        OpenAnts 是基于 ElementUI 的 VUE 組件庫。

        截圖

        安裝

        npm install openants -S
        or
        yarn add openants

        快速開始

        OpenAnts組件是基于Element開發(fā),所以在你安裝安裝OpenAnts我們將自動幫你安裝ElementUI,而無需你自己安裝,我們建議elementUI全局引入!

        全局使用OpenAnts

        main.js中的配置

        import Vue from 'vue';
        import ElementUI from 'element-ui';   // 需要引入 element-ui
        import 'element-ui/lib/theme-chalk/index.css';  // 需要引入 element-ui 的主題文件
        import OpenAnts from 'openants';   // 需要引入 OpenAnts
        import "openants/lib/openants.css";   // 需要引入 OpenAnts 的 css文件
        import App from './App.vue';
        
        Vue.use(ElementUI);  // 將 ElementUI 組件注冊到VUE
        Vue.use(OpenAnts);  // 將 ElementUI OpenAnts
        
        new Vue({
          el: '#app',
          render: h => h(App)
        });

        按需使用OpenAnts

        main.js中的配置

        import Vue from 'vue';
        import ElementUI from 'element-ui';   // 需要引入 element-ui
        import 'element-ui/lib/theme-chalk/index.css';  // 需要引入 element-ui 的主題文件
        import {btn,xxx} from 'openants';   // 需要引入 OpenAnts
        import "openants/lib/openants.css";   // 需要引入 OpenAnts 的 css文件
        import App from './App.vue';
        
        Vue.use(ElementUI);  // 將 ElementUI 組件注冊到VUE
        Vue.component(btn.name, btn);
        Vue.component(xxx.name, xxx);
        /* 或?qū)憺?
         * Vue.use(btn)
         * Vue.use(xxx)
         */
        
        new Vue({
          el: '#app',
          render: h => h(App)
        });

        完整教程

        http://docs.unpor.com/docs/openants_for_vue/openants_for_vue-1c9f9qf36cnl9

        瀏覽 31
        點(diǎn)贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評論
        圖片
        表情
        推薦
        點(diǎn)贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            黄色AV免费看 | 成人深夜视频免费 | 人人澡人人澡 | 国产7页 国产色婷 | 妇女撒尿bbbb | 国产乱子伦趁熟睡女人 | 996热视频 | 青青伊人网 | 青娱乐极品视频在线 | 婷婷成人五月天 |