0.1.0-beta.11 • Published 4 months ago

adder-components-plus v0.1.0-beta.11

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

adder-components-plus

  • 前端 react 组件库

node版本

  • 16.14.2

Getting Started

Install dependencies,

$ npm i

Start the dev server,

$ npm start

Build documentation,

$ npm run docs:build

Run test,

$ npm test

Build library via father,

$ npm run build

注意事项

  • 端口号是在 .umirc.ts 里配的
  • 权限问题:sudo chown -R xinzhiqiang adder-components

dumi 提供了一些 FrontMatter 属性,以满足不同的 demo 渲染需求,在源代码顶部配置即可:

  • transform: 捕获 fixed 元素
  • background: 修改背景色
  • compact: 不需要内边距
  • defaultShowCode: 是否默认显示示例代码
  • title: 标题
  • desc: 简介
  • inline: 配置 inline 为 true 则不会展示包裹器、直接在文档里嵌入 demo:
  • debug: 设置 debug 为 true,则该 demo 仅在开发环境下展示、且会有一个特殊标记:
  • iframe: 设置 iframe 为 true,将会使用 iframe 渲染 demo,可实现和文档的完全隔离,通常用于布局型组件,此时 compact 配置默认为 true。设置为数值可控制 iframe 高度。