mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-15 00:09:14 +08:00
13 lines
290 B
TypeScript
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
|
|
}
|