init
This commit is contained in:
parent
a5321e843e
commit
8135a8c341
3 changed files with 34 additions and 1 deletions
20
src/components/table/slot.js
Normal file
20
src/components/table/slot.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
export default {
|
||||
name: 'TableSlot',
|
||||
functional: true,
|
||||
inject: ['tableRoot'],
|
||||
props: {
|
||||
row: Object,
|
||||
index: Number,
|
||||
column: {
|
||||
type: Object,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
render: (h, ctx) => {
|
||||
return h('div', ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot]({
|
||||
row: ctx.props.row,
|
||||
column: ctx.props.column,
|
||||
index: ctx.props.index
|
||||
}));
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue