1.1.2 • Published 2 years ago
ft-vchart v1.1.2
使用说明
vchart组件的使用
# 1、本地目录放入 vchart.js 文件
## 或
cnpm install ft-vchart -D
#2、在main.js 中设置,
import vChart from "@/../vchart.js"
## 或
import vChart from "ft-vchart"
#如果系统中已使用element-ui
Vue.use(vChart,true)
#如果系统中使用了vxe-Table
Vue.use(vChart,true,true)
#否则
Vue.use(vChart)
# 3、在具体展示页面中引用VChart组件
<v-chart
:slug=""
:project-code=""
:env=""
:token=""
></v-chart>
## slug:看板路径
## projectCode: 项目编码
## env: 默认可为空,标识方特测试环境
### =pro :方特正式环境 (已有)
### =dev :方特测试环境 (已有)
### =hqpro :华强正式环境
### =hqdev :华强测试环境
## token :用户token
# serve with hot reload at localhost:8080
#本地测试运行时
npm run dev
# build for production with minification
#打包为组件时,请先修改webpack.config:entry为index.js
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.