antd-tiny-vue/components/_util/hooks/flex-gap-support.ts
2023-04-17 08:08:22 +08:00

13 lines
290 B
TypeScript

import { useState } from '@v-c/utils'
import { onMounted } from 'vue'
import { detectFlexGapSupported } from '../style-checker'
export default () => {
const [flexible, setFlexible] = useState(false)
onMounted(() => {
setFlexible(detectFlexGapSupported())
})
return flexible
}