Skip to content
On this page

表格

  • 支持表格滚动
  • 点击事件细化到单元格

静态数据

js
[
  {
    "type1": "数据1",
    "type2": "数据1"
  },
  {
    "type1": "数据2",
    "type2": "数据2"
  },
  ...
]
[
  {
    "type1": "数据1",
    "type2": "数据1"
  },
  {
    "type1": "数据2",
    "type2": "数据2"
  },
  ...
]

属性

参数说明类型
type1表格数据字段名1string
type2表格数据字段名2string

点击事件

点击事件返回值说明:

参数说明类型
cellIndex触发点击事件的当前单元格所在的列索引number
rowIndex触发点击事件的当前单元格所在的行索引number
data当前组件数据array
value触发点击事件的数据项object

表格方法

方法名说明参数
updateColumnOption修改表格列属性设置,通常用于在弹窗中,样式相同的情况下,共用同一个表格组件[{label, prop[, width]}]
updateStaticData修改图表数据object [], 每项数据的keycolumnOption配置prop值一致