UNPKG

hongluan-ui

Version:
124 lines (120 loc) 2.29 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const simpleTableProps = { fixedHeader: Boolean, fixedFooter: Boolean, border: { type: String, default: "" }, size: String, hover: Boolean, crossHover: Boolean, list: Boolean, autoHeight: Boolean, tableFixed: Boolean, stripe: [Boolean, String], padding: String, cellPadding: String, gap: String, gapX: String, gapY: String, showHeader: { type: Boolean, default: true }, data: { type: Array }, cols: { type: Array, default: () => [] }, rowKey: { type: [String, Function], default: "id" }, expandRowKeys: { type: Array, default: () => [] }, defaultExpandAll: { type: Boolean, default: false }, rowClassName: { type: [String, Function], default: "" }, rowStyle: { type: [Object, Function], default: () => ({}) }, cellClassName: { type: [String, Function], default: "" }, cellStyle: { type: [Object, Function], default: () => ({}) }, headerRowClassName: { type: [String, Function], default: "" }, headerRowStyle: { type: [Object, Function], default: () => ({}) }, headerCellClassName: { type: [String, Function], default: "" }, headerCellStyle: { type: [Object, Function], default: () => ({}) }, spanMethod: Function, highlightCurrentRow: Boolean, resize: { type: [Boolean, Object], default: false }, firstColumnIndex: { type: Number, default: 0 }, treeProps: { type: Object, default: () => ({ children: "children", hasChildren: "hasChildren" }) }, load: Function, scrollContainer: { type: [String, Object] } }; const simpleTableContextKey = Symbol("simpleTableContextKey"); const virtualTableProps = { ...simpleTableProps, height: { type: [Number, String], default: 300 }, itemSize: { type: Number, default: 48 }, total: Number, scrollbarAlwaysOn: { type: Boolean, default: false }, cache: { type: Number, default: 2 } }; exports.simpleTableContextKey = simpleTableContextKey; exports.simpleTableProps = simpleTableProps; exports.virtualTableProps = virtualTableProps; //# sourceMappingURL=simple-table2.js.map