web-vue2
Version:
web ui for vue2
61 lines (60 loc) • 1.28 kB
Markdown
# web-vue2
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
以建立跨web及app为一体的核心ui库
1,安装nodejs,window10 安装 v14.15.3 window7 安装v12.12.0
2,安装vue-cli -g表示全局环境安装,如果已经安装不用重复安装,这个不会写入package.json
安装vue cli 2
```
npm install vue-cli -g
```
安装vue cli 3
```
npm install @vue/cli -g
```
3,安装npx环境
```
npm install -g npx
```
4,安装cnpm,使用淘宝镜像,该功能只是加速下载速度,和npm并没有本质区别,当然,可能有些国内的资源会在淘宝上,而没在国外注册
```
npm install -g cnpm --registry=https://registry.npm.taobao.org
```
5,安装生产运行环境
```
npm install -g serve
```
6,开发环境调试
```
npm run serve
```
7,生产环境运行,并设置端口
```
serve -s dist -l 9000
```
8,在web中应用
安装web-ui-core
```
npm install web-vue2
```
引入web-vue2
```
import ui from 'web-vue2/packages/components/editors/ListView';
Vue.component("ListView",ui.datePicker);
```