|
|
|
|
@ -63,7 +63,7 @@ export default {
|
|
|
|
|
return { width: '100%', marginBottom: "20px"}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnWidth:{
|
|
|
|
|
type:Number,
|
|
|
|
|
default:190
|
|
|
|
|
@ -93,6 +93,9 @@ export default {
|
|
|
|
|
selectClick(selection, row){
|
|
|
|
|
this.$emit('select',selection, row)
|
|
|
|
|
},
|
|
|
|
|
rowClick(selection, row){
|
|
|
|
|
this.$emit('rowClick',selection, row)
|
|
|
|
|
},
|
|
|
|
|
cellClick(row, column, cell){
|
|
|
|
|
this.$emit('cellClick',row, column, cell)
|
|
|
|
|
},
|
|
|
|
|
@ -117,7 +120,7 @@ export default {
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
render(h) {
|
|
|
|
|
let {summaryMethod,cellClick,btnWidth,selectClick,height,createIndexRow,tableStyle,treeProps,showSummary,showHeader,$scopedSlots,showIndex,defaultExpandAll,headerCellStyle,headerRowStyle,rowStyle,cellStyle,indent,tableHeight,tableItem,list,deleteClick,editorClick} = this
|
|
|
|
|
let {summaryMethod,cellClick,btnWidth,selectClick,height,createIndexRow,tableStyle,treeProps,showSummary,showHeader,$scopedSlots,showIndex,defaultExpandAll,headerCellStyle,headerRowStyle,rowStyle,cellStyle,indent,tableHeight,tableItem,list,deleteClick,editorClick,rowClick} = this
|
|
|
|
|
return (
|
|
|
|
|
<div class="table-tree">
|
|
|
|
|
{ tableItem && tableItem.length>0 ?
|
|
|
|
|
@ -140,7 +143,7 @@ export default {
|
|
|
|
|
default-expand-all={defaultExpandAll}
|
|
|
|
|
tree-props={treeProps}
|
|
|
|
|
fit={true}
|
|
|
|
|
on={{['select']:selectClick,['cell-click']:cellClick}}>
|
|
|
|
|
on={{['select']:selectClick,['cell-click']:cellClick,['row-click']:rowClick}}>
|
|
|
|
|
{
|
|
|
|
|
//序号
|
|
|
|
|
showIndex ? createIndexRow() : ''
|
|
|
|
|
@ -285,4 +288,3 @@ export default {
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|