demo页面
import { Cell } from 'zarm';
<Cell title="标题文字" />
<Cell
title={
<div className="box">
<div className="box-title">标题文字</div>
<div className="box-description">描述文字</div>
</div>
}
/>
<Cell title="标题文字" description="描述文字" />
<Cell title="标题文字" description={<Icon type="right" />} />
<Cell title="标题文字" icon={<Icon type="right" />} />
<Cell title="标题文字" icon={<img alt="" src={require('../images/icons/state.png')} />} />
<Cell hasArrow title="标题文字" onClick={() => {}} />
<Cell
title="标题"
help={<Message theme="error" icon={<Icon type="info-round" />}>标题不能为空</Message>}>
<Input type="text" placeholder="请输入标题" />
</Cell>
属性 |
类型 |
默认值 |
可选值/参数 |
说明 |
prefixCls |
string |
za-cell |
|
类名前缀 |
className |
string |
|
|
追加类名 |
icon |
any |
|
|
显示的图标 |
titile |
any |
|
|
标题 |
description |
any |
|
|
描述 |
hasArrow |
bool |
false |
|
是否显示箭头 |
onClick |
func |
noop |
|
点击后触发的回调函数 |
help |
any |
|
|
下方提示信息,通常配合Message 组件使用 |