ant-design-vue/components/_util/hooks/useFlexGapSupport.ts
2023-04-05 22:03:02 +08:00

12 lines
261 B
TypeScript

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