Skip to content

Latest commit

 

History

History
57 lines (50 loc) · 1.59 KB

List.mdx

File metadata and controls

57 lines (50 loc) · 1.59 KB
title
List 列表

示例

import { List, ListHeader, ListItem, Icon, Tag } from '@tarojsx/ui'; import { Text } from '@tarojs/components'; import { UI } from '@/ui';

<List>
  <ListHeader title="基本用法" />
  <ListItem title="文字" />
  <ListItem title="箭头" arrow="right" />
  <ListItem title="文字" extra="详细信息" />
  <ListItem title="禁用" disabled arrow="right" />
</List>
<List>
  <ListHeader title="高级用法" />
  <ListItem title={<Text style={{ color: 'orange' }}>标题组件</Text>} extra={<Icon value="download" />} />
  <ListItem title="子组件" arrow="right">
    children
  </ListItem>
</List>
标题组件} extra={} /> {['TaroX', 'UI', 'ListItem'].map((c) => ( {c} ))} alert('清除')} />

API