fix: problem of expandedRowRender in StandardTable.vue; 🐛

修复:StandardTable.vue 组件展开行插槽问题;
master
iczer 5 years ago
parent 5b5a5ea3ef
commit 93eaf9d36f
  1. 4
      src/components/table/StandardTable.vue

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

Loading…
Cancel
Save