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

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

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

瀏覽:125日期: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
相關文章:
主站蜘蛛池模板: 沙湾县| 绥江县| 平定县| 平和县| 诸暨市| 三亚市| 岚皋县| 四川省| 县级市| 社会| 曲周县| 邯郸县| 鸡东县| 清苑县| 武川县| 桐梓县| 柯坪县| 丘北县| 徐闻县| 南昌县| 霸州市| 德阳市| 祁阳县| 东台市| 赫章县| 轮台县| 佳木斯市| 江川县| 吉水县| 梁平县| 芜湖县| 扶沟县| 密云县| 武夷山市| 贡觉县| 都江堰市| 香河县| 酉阳| 宁强县| 乌兰浩特市| 淅川县|