element-tree-grid
Version:
element tree table with vue
87 lines (86 loc) • 1.7 kB
JavaScript
export var ElTableTreeColumnPropDefine = {
prop: {
type: String
},
label: String,
className: String,
labelClassName: String,
property: String,
width: {},
minWidth: {},
renderHeader: Function,
sortable: {
type: [String, Boolean],
default: false
},
sortMethod: Function,
resizable: {
type: Boolean,
default: true
},
context: {},
columnKey: String,
align: String,
headerAlign: String,
showTooltipWhenOverflow: Boolean,
showOverflowTooltip: Boolean,
fixed: [Boolean, String],
formatter: Function,
selectable: Function,
reserveSelection: Boolean,
filterMethod: Function,
filteredValue: Array,
filters: Array,
filterMultiple: {
type: Boolean,
default: true
},
treeKey: {
type: String,
default: 'id'
},
childNumKey: {
type: String,
default: 'child_num'
},
parentKey: {
type: String,
default: 'parent_id'
},
levelKey: {
type: String,
default: 'depth'
},
childKey: {
type: String,
default: 'children'
},
fileIcon: {
type: String,
default: 'el-icon-file'
},
folderIcon: {
type: String,
default: 'el-icon-folder'
},
remote: {
type: Function,
default: null
},
allRemote: {
type: Boolean,
default: false
},
indentSize: {
type: Number,
default: 14
},
expandAll: {
type: Boolean,
default: false
},
expandKey: {
type: String,
default: 'expanded'
},
};