Skip to content

详情表格

详情表格用法

属性

属性名说明类型默认值
lineCount一行显示几个number1
titleWidth标题列的宽度string | number100
config组件的配置HuiDataViewConfig[]-
data组件设置回显的值obj-

HuiDataViewConfig说明

属性名说明类型默认值
prop表格项主键string-
value表格项的值string | null | string[]-
title表格每一项的标题string-
rightText列表项右侧文字string-
classvalue项的动态classstring-
handlerrightText的点击触发事件function-
type内容部分显示的类型,目前支图片 type='img'那么显示图片string-

插槽使用

标题 :prop + '-title'

value: prop + '-left'

右侧文字:prop + '-right'