Designed by 77
加载资源 ......
感谢 ♥ 作者
先不感谢了

vue使用render函数创建具名插槽

vue使用render函数创建具名插槽:

let table = h('table', {
    style: {}
    props: {}
    scopedSlots: {
        // 插槽名
        slotDemoName: (scope) => {
            return h('button', {
                props: {},
                on: {
                    click: () => {
                        deleteRowData(scope.$index);
                    }
                }
            }, '删除');
        }
    }
});

 

"正是因为得不到,所以才显得格外珍惜。"

posted @ 2020-06-26 07:55  yanggb  阅读(1502)  评论(0编辑  收藏  举报