添加文档库弹框组件
This commit is contained in:
@@ -46,15 +46,15 @@
|
||||
type: Array,
|
||||
default: []
|
||||
},
|
||||
//是否显示操作;默认显示
|
||||
isOperation: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
flag: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
//是否显示操作;默认不显示
|
||||
showAction:{
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -99,12 +99,14 @@
|
||||
align: 'center'
|
||||
})
|
||||
})
|
||||
this.columns.push({
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
})
|
||||
if (this.showAction){
|
||||
this.columns.push({
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -136,7 +138,7 @@
|
||||
},
|
||||
OperationClick(ol, item) {
|
||||
this.$emit(ol.ClickEvent, item)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user