0.0.23 • Published 5 years ago

@alicd/crui-dashboard v0.0.23

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

category: Components type: UI Views component: Basic chinese: 展示面板

english: Dashboard

一般在系统的首页展示一些指标数据,也可以快速导航的入口

API

Dashboard

成员说明类型默认值
width设定弹层宽度number100%
height设定弹层高度number100%
className设置定义的样式stringnull
contentPadding指定相对于父元素大小的内间距,可以指定上下左右四个方向array48
showGapLine是否展示行与列之间的borderbooleantrue
showGapMark展示展示行与列交叉的交叉点样式booleantrue
column每一行多少列number4
itemMinWidth单个条目的最小宽度numberauto
shadowSize鼠标浮上去的阴影大小number30
shadowSkewingSize阴影动画的最大调整范围number20
type主题风格,三种 primary,secondary,normalstringnormal

Dashboard.Group

Dashboard 的直接子元素,用于设置分组的 title 信息,其子元素可以是任何节点,子元素如果是 Dashboard.Item ,就可以按照 组件的 API 配置相应的字段信息,如果 Dashboard.Item 满足不了您的需求,请自行设置内部展示的结构

成员说明类型默认值
title设置分组信息的 titlestring/Element''
className设置Group 的 classNamestringnull
itemHeight设置内容区每一个内容区块的高度Numbernull
columnFlex设置列的宽度比重,多少列数组中就有几个数字Arraynull

Dashboard.Item

设置单个条目的信息,子节点用于填充图表,当然你也可以选择放其他的元素

成员说明类型默认值
count数量字段(支持 0-9¥$%.,?₽€*+-<>,超出将以文本展示)Number/Stringnull
title标题String/Elementnull
subtitle副标题String/Elementnull
thousandGap对于 count 字段,通过 , 隔开千位Booleantrue
chartWidth图标元素的宽度number180
chartHeight图标元素的高度number120
href单个元素的链接地址,配置该属性,点击可以跳转stringnull
target页面跳转时的打开方式string'_self'
className设置单个 Item 的 classNamestringnull