@aligov/components-hoz-list

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

Usage no npm install needed!

<script type="module">
  import aligovComponentsHozList from 'https://cdn.skypack.dev/@aligov/components-hoz-list';
</script>

README

横向列表

@aligov/components-hoz-list

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

API

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

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

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