Skip to content

Commit 5f1c978

Browse files
author
cole
committed
style: table
1 parent 1d846b9 commit 5f1c978

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/packages/table/table/index.jsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ export default defineComponent({
218218
paddingBlock: '16px'
219219
})
220220

221+
const extraDom = getSlotVNode(slots, props, 'extra', {
222+
pageData: requestProps.dataSource,
223+
loading: requestProps.loading,
224+
pagination: requestProps.pagination
225+
})
226+
221227
const needTableProps = {
222228
...attrs,
223229
...pick(props, Object.keys(Table.props)),
@@ -231,17 +237,12 @@ export default defineComponent({
231237
const needTableSlots = omit(slots, ['search', 'extra', 'title', 'actions', 'settings', 'alert', 'alertOptions'])
232238

233239
const baseTableDom = <Table {...needTableProps} v-slots={needTableSlots}/>
240+
234241
const tableDom = getSlotVNode(slots, props, 'table', {
235242
props: needTableProps,
236243
dom: baseTableDom
237244
})
238245

239-
const extraDom = getSlotVNode(slots, props, 'extra', {
240-
loading: requestProps.loading,
241-
pageData: requestProps.dataSource,
242-
pagination: requestProps.pagination
243-
})
244-
245246
return (
246247
<div class={cx('table')}>
247248
{propsSearch !== false && renderSearch()}

0 commit comments

Comments
 (0)