添加文档库弹框组件

This commit is contained in:
qq787203167
2022-02-15 17:53:00 +08:00
parent 469c190dc1
commit 12ac3223e1
7 changed files with 863 additions and 294 deletions
+15 -13
View File
@@ -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>