/dashboard-components

Components for Dashboard

Primary LanguageTypeScriptApache License 2.0Apache-2.0

api7-dashboard-components

用于存放常用组件,基于 Ant Design Pro Components 进行构建。

组件看板

组件 下载量 版本
ui npm package
plugin npm package
pluginchart npm package

本地开发

  1. /packages/boilerplate 为模板组件所在目录,如需创建新组件,拷贝其目录并修改初始化文件即可;
  2. /packages/boilerplate 为例,该组件完整名称为 @api7-dashboard/boilerplate
$ # 在根目录下进行构建

$ yarn install && yarn dev

$ cd /packages/boilerplate

$ yarn link

$ # 输出 Registered "@api7-dashboard/boilerplate" 表示链接成功

$ # 进入目标项目目录,如 apisix-dashboard

$ cd apisix-dashboard

$ yarn link @api7-dashboard/boilerplate

$ # 输出:success Using linked package for "@api7-dashboard/boilerplate". 表示绑定成功,在项目内可直接使用 import XXX from "@api7-dashboard/boilerplate"

发布

$ npm login

$ PACKAGE=boilerplate yarn build
#
$ yarn build

$ cd /packages/boilerplate

# First time for new package
$ npm publish --access public

# Publish
$ npm publish