0.0.0 • Published 2 years ago

mygearui v0.0.0

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

GearUi 开发指南

介绍

感谢您使用 GearUi。

本组件库基于 vue2vant2 结合公司实际业务搭建的组件库。

希望本组件库发展的越来越好!

在向 GearUi 提交代码之前,请先花几分钟时间阅读以下指南。

本地开发

按照下面的步骤操作,即可在本地开发 GearUi 组件。

# 克隆仓库
git clone https://gits.autostreets.com/autostreets_web/as-cocoon.git

# 安装依赖
cd gearui && npm install

# 开发模式
npm run dev

目录结构

主要目录结构如下:

as-cocoon
├─ bin      # 构建
├─ plugins  # 插件
└─ ui       # 组件

创建组件

按照下面步骤,即可新建 AsCocoon 组件

# 执行下面命令
npm run add

# ? 请输入创建的组件名称:
test-component
#[add] DONE: ./gearui/ui/components/gear-test-component

or

npm run add test-component
#[add] DONE: ./gearui/ui/components/gear-test-component

删除组件

按照下面步骤,即可删除 AsCocoon 组件,谨慎使用

# 执行下面命令
npm run remove test-component

# 需要二次确认
Y
#[remove] DONE

发布组件

npm run pub

注册组件

npm install gearui --save

在main.js中全局注册组件

import  GearUi from 'gearui/ui'
Vue.use(GearUi)