0.3.0 • Published 1 year ago

hanwei-web-ui v0.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

私有仓库使用方式

1、npm set registry http://npm.orderplus.com/

2、npm adduser --registry http://npm.orderplus.com/

建议客户端使用nrm 进行npm registry地址管理和切换

安装

npm install -g nrm

nrm add op http://npm.orderplus.com/

切换私有仓库

nrm use op

op-ui库安装及使用

安装
npm install op-ui ---save
使用

import Opui from 'op-ui'

import 'op-ui/dist/css/index.css'

Vue.use(Opui)

全局引入请求方式,以便opui 使用

import request from "@/utils/request"

Vue.prototype.$request = request

全局引入请求链接

Vue.prototype.$api = { common: { getQueryTemplate: '/public/sqlTemplate/queryComponents' } }

1、执行命令watch代码

npm run watch

2、以管理员身份执行

npm link

3、在使用的项目中执行命令

npm link op-ui

4、在项目中unlink op-ui包

npm unlink op-ui

5、发布上去后npm仓库,再进行npm install