ticatec-advance-datatable
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Ticatec-Adavance-DataTable

列定义

定义一个单行表头

let header = [
    {
        label: '摘要',
        field: 'summary',
        sortable: false,
        align: CellAlign.Left,
        resizable: true,
        weight: 1
    },
    {
        label: '单价',
        field: 'unitPrice',
        sortable: true,
        align: CellAlign.Right,
        resizable: false,
        format: value => utils.formatCurrency(value)
    },
    {
        label: '数量',
        field: 'amount',
        sortable: true,
        align: CellAlign.Right,
        resizable: false
    },
]

这是一个复合表头

let header = [
{
        label: '摘要',
        field: 'summary',
        sortable: false,
        align: CellAlign.Left,
        resizable: true,
        weight: 1
    },
    {
        label: '处理信息',
        coulumns: [
            {
                label: '处理人',
                
            },
            {
            }
        ]
    },
    {
        label: '数量',
        field: 'amount',
        sortable: true,
        align: CellAlign.Right,
        resizable: false
    },
]

Readme

Keywords

none

Package Sidebar

Install

npm i ticatec-advance-datatable

Weekly Downloads

0

Version

0.2.1

License

none

Unpacked Size

95 kB

Total Files

53

Last publish

Collaborators

  • henry.feng