[update] 文档拆分详情页布局
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
<span v-else-if="ol.text === $t('cancelSubscribe')" v-has="ol.has" class="text">
|
||||
{{ !record.subscribeFlag || record.subscribeFlag === 0 ? $t('subscribe') :$t('cancelSubscribe') }}
|
||||
</span>
|
||||
<span v-else v-has="ol.has" class="text">
|
||||
<!-- v-has="ol.has"-->
|
||||
<span v-else class="text">
|
||||
{{ ol.text }}
|
||||
</span>
|
||||
</a>
|
||||
@@ -200,6 +201,21 @@ export default {
|
||||
// scopedSlots: { customRender: 'operation' }
|
||||
// }
|
||||
]
|
||||
let width = 0
|
||||
if (this.operationList.length > 0) {
|
||||
for (let i = 0; i < this.operationList.length; i++) {
|
||||
width += this.getTextWith(this.operationList[i].text)
|
||||
}
|
||||
}
|
||||
if (this.showAction) {
|
||||
this.columns.push({
|
||||
title: this.$t('operation'),
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
width: width,
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
})
|
||||
}
|
||||
this.dataSource = [
|
||||
{
|
||||
collectFlag: '0',
|
||||
|
||||
Reference in New Issue
Block a user