1.2.0 • Published 2 years ago

l-dashboard v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

dash-op-conf

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report


# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

安装cross-env

npm i --save-dev cross-env

"scripts": {

"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",

"start": "npm run dev",

"unit": "jest --config test/unit/jest.conf.js --coverage",

"test": "npm run unit",

"build": "node build/build.js"

},

安装antv依赖 暂时没有用上,可去除此依赖

npm install @antv/g6 --save

关于此项目中数据展板组件封装,采用了组件内部调用的方式,其中关于柱状图GrowthTrend和LessonTrend两个文件兼容了第三方调用,

项目初衷是将组件全封装为路径(第三方可调用)的形式,但由于此项目引入的依赖过多,包括一些百度地图的引入,会导致加载组件较慢,后期可能会将组件迁移到另一个项目中进行三方可调用形式