0.1.19 • Published 6 years ago
uxcore-card v0.1.19
uxcore-card
React card
Development
git clone https://github.com/uxcore/uxcore-card
cd uxcore-card
npm install
npm run serverif you'd like to save your install time,you can use uxcore-tools globally.
npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-card
cd uxcore-card
npm install
npm run dep
npm run startTest Case
npm run testCoverage
npm run coverageDemo
http://uxcore.github.io/components/card
Contribute
Yes please! See the CONTRIBUTING for details.
Props
| Name | Type | Required | Default | Comments |
|---|---|---|---|---|
| prefixCls | String | No | - | 类名前缀 |
| className | String | No | - | 额外类名 |
| icon | React Element | No | - | 头部图标 |
| title | React Element | No | - | 头部标题 |
| tip | React Element | No | - | 头部提示 |
| overlayStyleOfTip | Object | No | { maxWidth: 400, textAlign: 'left' } | 头部提示样式 |
| placementOfTip | String | No | 'top' | 头部提示的位置,one of 'left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight' |
| extra | React Element | No | - | 头部右侧额外区域,通用用于放置动作 |
| children | React Element | No | - | 卡片内容 |
| showCollapseIcon | Bool | No | false | 显示折叠按钮 |
| onCollapseChange | func(collapse) | No | noop | 折叠状态发生改变时的回调,参数为是否被折叠 |
| contentHeight | number | No | 内容区高度,用于固定卡片高度的场景,默认为内容区实际渲染高度 | |
| contentPaddingSize | string | No | 'middle' | 内容区间距,枚举值:middle/none |
| defaultCollapsed | bool | No | false | 默认是否折叠 |
0.1.19
6 years ago
0.1.18
6 years ago
0.1.17
6 years ago
0.1.16
6 years ago
0.1.15
6 years ago
0.1.14
6 years ago
0.1.13
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago