0.1.19 • Published 6 years ago

uxcore-card v0.1.19

Weekly downloads
13
License
MIT
Repository
github
Last release
6 years ago

uxcore-card

React card

NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads

Sauce Test Status

Development

git clone https://github.com/uxcore/uxcore-card
cd uxcore-card
npm install
npm run server

if 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 start

Test Case

npm run test

Coverage

npm run coverage

Demo

http://uxcore.github.io/components/card

Contribute

Yes please! See the CONTRIBUTING for details.

Props

NameTypeRequiredDefaultComments
prefixClsStringNo-类名前缀
classNameStringNo-额外类名
iconReact ElementNo-头部图标
titleReact ElementNo-头部标题
tipReact ElementNo-头部提示
overlayStyleOfTipObjectNo{ maxWidth: 400, textAlign: 'left' }头部提示样式
placementOfTipStringNo'top'头部提示的位置,one of 'left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'
extraReact ElementNo-头部右侧额外区域,通用用于放置动作
childrenReact ElementNo-卡片内容
showCollapseIconBoolNofalse显示折叠按钮
onCollapseChangefunc(collapse)Nonoop折叠状态发生改变时的回调,参数为是否被折叠
contentHeightnumberNo内容区高度,用于固定卡片高度的场景,默认为内容区实际渲染高度
contentPaddingSizestringNo'middle'内容区间距,枚举值:middle/none
defaultCollapsedboolNofalse默认是否折叠
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

6 years ago

0.1.9

6 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