0
点赞
收藏
分享

微信扫一扫

ElementUI组件库的使用

芷兮离离 2022-01-06 阅读 31

2.修改main.js,增加router、ElementUI

import Vue from 'vue'
import App from "./App";

import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI);


new Vue({
  el: '#app',
  router,
  render: h => h(App) //ElementUI
});

3.新建视图Main.vue、Confirm.vue

<template>
    <h1>首页</h1>
</templat
举报

相关推荐

0 条评论