mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
d870f3f8e0
* fix: fixed error report with no expected value in `expandColumnTitle` slot * fix: optimize optional chain * fix: use default render * refactor: use `customRenderSlot` replace `renderSlot` * style: code format * perf: optimize useColumns code * fix: fix path * feat: add customRenderSlot unit test
12 lines
282 B
Vue
12 lines
282 B
Vue
import { defineComponent } from 'vue';
|
|
import { customRenderSlot } from '../vnode';
|
|
|
|
export default defineComponent({
|
|
name: 'RenderSlot',
|
|
setup(_props, { slots }) {
|
|
return () => {
|
|
return customRenderSlot(slots, 'default', {}, () => ['default value']);
|
|
};
|
|
},
|
|
});
|