vue使用render函数创建具名插槽:
let table = h('table', { style: {} props: {} scopedSlots: { // 插槽名 slotDemoName: (scope) => { return h('button', { props: {}, on: { click: () => { deleteRowData(scope.$index); } } }, '删除'); } } });
"正是因为得不到,所以才显得格外珍惜。"
vue使用render函数创建具名插槽:
let table = h('table', { style: {} props: {} scopedSlots: { // 插槽名 slotDemoName: (scope) => { return h('button', { props: {}, on: { click: () => { deleteRowData(scope.$index); } } }, '删除'); } } });
"正是因为得不到,所以才显得格外珍惜。"