mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-09-09 07:43:18 +08:00
feat: add space
This commit is contained in:
12
components/_util/hooks/flex-gap-support.ts
Normal file
12
components/_util/hooks/flex-gap-support.ts
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user