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

浙公网安备 33010602011771号