
本文共 2412 字,大约阅读时间需要 8 分钟。
Vue.js UI���������������������Element UI���Bootstrap Vue���������
���������Vue.js���������������������������������������������������������UI������������������������������������������������������Element UI���Bootstrap Vue������������������������
������Element UI������������������
Element UI���������Vue.js���������������������UI������������������������������������������������������������������������������
������Element UI
- ������npm������
element-ui
���������������������������������npm install element-ui --save
- ������Element UI������������������������������Chalk���������
import 'element-ui/lib/theme-chalk/index.css'
- ���main.js���������Element UI���
import ElementUI from 'element-ui'Vue.use(ElementUI)
Element UI���������������
- ���������������������������������
������������������ ������
v-model
������������������UI������������������������
������Bootstrap Vue���������
Bootstrap Vue���������Bootstrap CSS���������Vue.js������������������������������������������������
������Bootstrap Vue
- ���������������������npm������
npm install bootstrap-vue --savenpm install bootstrap/dist/css/bootstrap.css --savenpm install bootstrap-vue/dist/bootstrap-vue.css --save
- ���main.js���������������������
import BootstrapVue from 'bootstrap-vue'Vue.use(BootstrapVue)
Bootstrap Vue���������������
- ���������������������������������
���������
container
���mt-4
���������������Bootstrap CSS������������
������������������
CSS���������������
- ������������������������������������CSS���������������������������������������
!important
������������������������������������������������
.list-group-item { border: 0px !important;}
Vue������������
- ���������������API���������������
vue.config.js
���������������������������������������������������������module.exports = { devServer: { proxy: { '/api': { target: 'http://127.0.0.1:5000', secure: false, changeOrigin: true, pathRewrite: { '^/api': '' } } } }}
������������������������������Vue������������������������������������UI���������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
