mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 13:08:48 +08:00
a2f7d6d062
closes vueComponent/ant-design-vue#5765 Add `compatConfig: { MODE: 3 }` to all component definitions to signal to `@vue/compat` not to use any Vue 2 compatibility features.
14 lines
266 B
Vue
14 lines
266 B
Vue
import { defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
compatConfig: { MODE: 3 },
|
|
name: 'Portal',
|
|
inheritAttrs: false,
|
|
props: ['getContainer'],
|
|
setup(_props, { slots }) {
|
|
return () => {
|
|
return slots.default?.();
|
|
};
|
|
},
|
|
});
|