久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

Vue項目如何引入bootstrap、elementUI、echarts

瀏覽:99日期:2022-10-23 14:36:27

引入bootstrap

安裝依賴包

cnpm install bootstrap --save-devcnpm install jquery --save-devcnpm install popper.js --save-dev

全局引入

在項目中根目錄下的main.js中添加如下代碼:

import ’bootstrap’import $ from ’jquery’

在vue文件中引用

<script>import ’bootstrap/dist/css/bootstrap.min.css’import ’bootstrap/dist/js/bootstrap.min.js’</script>

引入elementUI

安裝 elementUI

打開終端,輸入以下內容

npm i element-ui -S

全局引入

在項目中根目錄下的main.js中添加如下代碼:

import ElementUI from ’element-ui’import ’element-ui/lib/theme-chalk/index.css’;Vue.use(ElementUI)

引入echarts

安裝echarts

npm install echarts -S

2.全局引入main.js

// 引入echartsimport echarts from ’echarts’Vue.prototype.$echarts = echarts

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。

標簽: Vue
相關文章:
主站蜘蛛池模板: 镇赉县| 临朐县| 理塘县| 绩溪县| 天镇县| 大同市| 林周县| 水富县| 汉寿县| 新津县| 浮梁县| 长岛县| 抚顺县| 鸡泽县| 陆丰市| 兰坪| 福建省| 澳门| 东港市| 卢氏县| 怀安县| 繁峙县| 大新县| 汉沽区| 玉屏| 石首市| 探索| 青河县| 石泉县| 噶尔县| 西峡县| 彩票| 和静县| 天等县| 华亭县| 连城县| 西平县| 海兴县| 比如县| 怀仁县| 夏津县|