1.0.0 • Published 8 years ago

tnt-list-item v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

#tnt-list-item npm version

react 列表组件

#Development npm i && npm test

#Usage

var TntListItem = require('tnt-list-item');
var React = require('react');  
var ReactDOM = require('react-dom');   
ReactDOM.render(<TntListItem >标题</TntListItem>, document.getElementById('app')); 

#API

##props

| name      | type       | default       | description          |
| subtitle  | string     |               | 副标题               |
| icon      | string     |               | 图标                 |
| iconSize  | string     |               | 图标大小 以竖线分割  |
| ishidden  | bool       | true          | 超出一行是否隐藏     |
| style     | object     | {}            | 组件容器样式         |
| onClick   | function() |               | 点击事件             |
| prefixCls | string     | tnt-list-item | 样式前缀用于重写样式 |
| arrow     | bool       | true          | 是否显示右侧箭头     |
1.0.0

8 years ago