UNPKG

element-plus

Version:

A Component Library for Vue 3

55 lines (51 loc) 1.5 kB
'use strict'; var common = require('./common.js'); var header = require('./header.js'); var row = require('./row.js'); var props = require('../../virtual-list/src/props.js'); var runtime = require('../../../utils/vue/props/runtime.js'); const tableV2GridProps = runtime.buildProps({ columns: common.columns, data: common.dataType, fixedData: common.fixedDataType, estimatedRowHeight: row.tableV2RowProps.estimatedRowHeight, /** * Size related attributes */ width: common.requiredNumber, height: common.requiredNumber, headerWidth: common.requiredNumber, headerHeight: header.tableV2HeaderProps.headerHeight, bodyWidth: common.requiredNumber, rowHeight: common.requiredNumber, /** * Special attributes */ cache: props.virtualizedListProps.cache, useIsScrolling: Boolean, scrollbarAlwaysOn: props.virtualizedGridProps.scrollbarAlwaysOn, scrollbarStartGap: props.virtualizedGridProps.scrollbarStartGap, scrollbarEndGap: props.virtualizedGridProps.scrollbarEndGap, /** * CSS attributes */ class: common.classType, style: common.styleType, containerStyle: common.styleType, getRowHeight: { type: runtime.definePropType(Function), required: true }, rowKey: row.tableV2RowProps.rowKey, /** * Event handlers */ onRowsRendered: { type: runtime.definePropType(Function) }, onScroll: { type: runtime.definePropType(Function) } }); exports.tableV2GridProps = tableV2GridProps; //# sourceMappingURL=grid.js.map