uxcore / uxcore-matrix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matrix 定位

eternalsky opened this issue · comments

  • 支持任意跨行跨列的数据矩阵。
  • 没有表头的观念,任一列都可以成为 Title
  • 根据定位和跨行跨列的层级组织数据结构。
  • 因此需要在渲染前对数据进行脏数据校验,将一些无法渲染出来的区块抛错出来。
  • 数据结构为
[
  {x: 0, y: 0, row: 2, col: 2, text: '1'},
  {x: 2, y: 0, row: 2, col: 2, text: '2'},
  {x: 4, y: 0, row: 3, col: 1, text: '3'},
  {x: 0, y: 2, row: 1, col: 3, text: '4'},
  {x: 3, y: 2, row: 1, col: 1, text: '5'}
]

virtual matrix