ticatec-data-sheet
TypeScript icon, indicating that this package has built-in type declarations

0.0.23 • Public • Published

Ticatec-Adavance-Data-Sheet

列定义

定义一个单行表头

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
    },
]

Datasheet编辑器

setData(data:Array) getData():Array

支持的类型:

  1. 文字输入
  2. 数字输入
  3. 日期选择
  4. 时间输入
  5. 日期和时间选择输入
  6. 下拉框
  7. 弹出框
  8. 用户自己定义的类型

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.231latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.231
0.0.220
0.1.10

Package Sidebar

Install

npm i ticatec-data-sheet

Weekly Downloads

0

Version

0.0.23

License

ISC

Unpacked Size

162 kB

Total Files

107

Last publish

Collaborators

  • henry.feng