hongluan-ui
Version:
Hongluan Component Library for Vue 3
118 lines (116 loc) • 2.14 kB
JavaScript
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
}
};
export { simpleTableContextKey, simpleTableProps, virtualTableProps };
//# sourceMappingURL=simple-table2.mjs.map