ant-design-vue/components/_util/hooks/useFlexGapSupport.ts

12 lines
247 B
TypeScript

import { onMounted, ref } from 'vue';
import { detectFlexGapSupported } from '../styleChecker';
export default () => {
const flexible = ref(false);
onMounted(() => {
flexible.value = detectFlexGapSupported();
});
return flexible;
};