# List 列表
样式多元化的列表组件
# 单选List
单选展示的List
first mid
1256 first mid last
3321 db1112222333
100064.6 test14
440 test13
65670 test12
53450 test11
3520 A2
3210 xxx8
43870 xx
9870 tt
3459 复制代码
# 多选List
多选展示的List
first mid
1256 first mid last
3321 db1112222333
100064.6 test14
440 test13
65670 test12
53450 test11
3520 A2
3210 xxx8
43870 xx
9870 tt
3459 复制代码
# 禁用项
first mid
1256 first mid last
3321 db1112222333
100064.6 test14
440 test13
65670 test12
53450 test11
3520 A2
3210 xxx8
43870 xx
9870 tt
3459 复制代码
# 开关模式的List
Item包含开关按钮的List组件
支持普通快递
支持普通快递发货
支持COD(货到付款)
支持货到付款业务,先发货,由快递公司代收款
复制代码
# 可搜索
first mid
1256 first mid last
3321 db1112222333
100064.6 test14
440 test13
65670 test12
53450 test11
3520 A2
3210 xxx8
43870 xx
9870 tt
3459 复制代码
# 控制Item行个数
Item 固定多少个一行,该示例还举例了grid的用法
first mid
1256 first mid last
3321 db1112222333
100064.6 test14
440 test13
65670 test12
53450 test11
3520 A2
3210 xxx8
43870 xx
9870 tt
3459 复制代码
# List Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | List 组件类型 | String | radio,checkbox,enabled | radio |
grid | List-item 一行展示个数 | Number | - | — |
justify | 水平居中方式 | string | center | — |
add-search | 可搜索 | String | true,auto(等其他字符串)关闭搜索 | auto |
# List-item Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
disabled | List-item是否可选 | Boolean | - | false |
# List Events
事件名 | 说明 | 参数 |
---|---|---|
change | List-item 选中项变更时触发 | 选中Item的值 |