UNPKG

gridcellx

Version:

GridCell component for React, written in TypeScript

39 lines (38 loc) 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var CellType; (function (CellType) { /** * 文本cell,不能作为容器 */ CellType[CellType["Text"] = 0] = "Text"; /** * 容器cell,渲染其child */ CellType[CellType["Group"] = 1] = "Group"; /** * 自定义cell,渲染render */ CellType[CellType["Custom"] = 2] = "Custom"; /** * 内部cell,渲染内部表格 */ CellType[CellType["InnerCell"] = 3] = "InnerCell"; })(CellType = exports.CellType || (exports.CellType = {})); var DataType; (function (DataType) { DataType[DataType["Default"] = 0] = "Default"; DataType[DataType["List"] = 1] = "List"; })(DataType = exports.DataType || (exports.DataType = {})); var Cell = /** @class */ (function () { function Cell() { this.text = ""; this.dataType = DataType.Default; this.type = CellType.Text; this.span = 1; this.child = []; this.className = ""; } return Cell; }()); exports.Cell = Cell;