0.0.25 • Published 3 years ago

@omiu/table v0.0.25

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Table 表格

展示行列数据。

导入

import '@omiu/table'

或者直接 script 标签引入。

<script src="https://unpkg.com/@omiu/table"></script>

使用

<o-table></o-table>

API

属性

{
  options: TableOptions
}

TableOptions

{
  data: {[key: string]: any}[]
  columns: Column[]
  mergeCells: mergeCell[]
}

Column

{
  align?:	'left' | 'right' | 'center'	// 设置列的对齐方式, 默认 left
  render?: ({cellData, column, rowData, tableData}) => VNode
}

mergeCell

{
  row: number
  col: number
  rowSpan: number
  colSpan: number
}

Events

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago