1.0.0 • Published 5 years ago

@aligov/components-hoz-list v1.0.0

Weekly downloads
7
License
MIT
Repository
-
Last release
5 years ago

横向列表

@aligov/components-hoz-list

横向列表,如用于概览数据展示

API

参数名说明必填类型默认值备注
dataSource数据源Array
valueFormatter值格式化方式string, function

dataSource 是一个数组数据源,数组项的格式是 { label: any, value: any }

valueFormatter 是值的格式化方式,默认是不做格式化。格式化的方式包括:千分位分隔(thousandSeparator)、百分比展示(percent)、日期时间(timestamp2Date)。