element-plus
Version:
A Component Library for Vue 3
133 lines (129 loc) • 2.86 kB
JavaScript
'use strict';
var common = require('./common.js');
var row = require('./row.js');
var header = require('./header.js');
var grid = require('./grid.js');
var props = require('../../virtual-list/src/props.js');
var runtime = require('../../../utils/vue/props/runtime.js');
const tableV2Props = runtime.buildProps({
cache: grid.tableV2GridProps.cache,
estimatedRowHeight: row.tableV2RowProps.estimatedRowHeight,
rowKey: common.rowKey,
// Header attributes
headerClass: {
type: runtime.definePropType([
String,
Function
])
},
headerProps: {
type: runtime.definePropType([
Object,
Function
])
},
headerCellProps: {
type: runtime.definePropType([
Object,
Function
])
},
headerHeight: header.tableV2HeaderProps.headerHeight,
/**
* Footer attributes
*/
footerHeight: {
type: Number,
default: 0
},
/**
* Row attributes
*/
rowClass: {
type: runtime.definePropType([String, Function])
},
rowProps: {
type: runtime.definePropType([Object, Function])
},
rowHeight: {
type: Number,
default: 50
},
/**
* Cell attributes
*/
cellProps: {
type: runtime.definePropType([
Object,
Function
])
},
/**
* Data models
*/
columns: common.columns,
data: common.dataType,
dataGetter: {
type: runtime.definePropType(Function)
},
fixedData: common.fixedDataType,
/**
* Expanded keys
*/
expandColumnKey: row.tableV2RowProps.expandColumnKey,
expandedRowKeys: common.expandKeys,
defaultExpandedRowKeys: common.expandKeys,
/**
* Attributes
*/
class: common.classType,
// disabled: Boolean,
fixed: Boolean,
style: {
type: runtime.definePropType(Object)
},
width: common.requiredNumber,
height: common.requiredNumber,
maxHeight: Number,
useIsScrolling: Boolean,
indentSize: {
type: Number,
default: 12
},
iconSize: {
type: Number,
default: 12
},
hScrollbarSize: props.virtualizedGridProps.hScrollbarSize,
vScrollbarSize: props.virtualizedGridProps.vScrollbarSize,
scrollbarAlwaysOn: props.virtualizedScrollbarProps.alwaysOn,
/**
* Sorting
*/
sortBy: {
type: runtime.definePropType(Object),
default: () => ({})
},
sortState: {
type: runtime.definePropType(Object),
default: void 0
},
/**
* Handlers
*/
onColumnSort: {
type: runtime.definePropType(Function)
},
onExpandedRowsChange: {
type: runtime.definePropType(Function)
},
onEndReached: {
type: runtime.definePropType(Function)
},
onRowExpand: row.tableV2RowProps.onRowExpand,
onScroll: grid.tableV2GridProps.onScroll,
onRowsRendered: grid.tableV2GridProps.onRowsRendered,
rowEventHandlers: row.tableV2RowProps.rowEventHandlers
});
exports.tableV2Props = tableV2Props;
//# sourceMappingURL=table.js.map