fix: problem of expandedRowRender in StandardTable.vue; 🐛

修复:StandardTable.vue 组件展开行插槽问题;
This commit is contained in:
iczer 2020-08-18 10:51:44 +08:00
parent 5b5a5ea3ef
commit 93eaf9d36f

View File

@ -31,8 +31,8 @@
<template :slot="slot" v-for="slot in Object.keys($slots)"> <template :slot="slot" v-for="slot in Object.keys($slots)">
<slot :name="slot"></slot> <slot :name="slot"></slot>
</template> </template>
<template slot-scope="record, index, indent, expanded" slot="expandedRowRender" v-if="$scopedSlots.expandedRowRender"> <template slot-scope="record, index, indent, expanded" :slot="$scopedSlots.expandedRowRender ? 'expandedRowRender' : ''">
<slot v-bind="{record, index, indent, expanded}" name="expandedRowRender"></slot> <slot v-bind="{record, index, indent, expanded}" :name="$scopedSlots.expandedRowRender ? 'expandedRowRender' : ''"></slot>
</template> </template>
</a-table> </a-table>
</div> </div>