🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
551 B

<docs>
---
order: 10
title:
zh-CN: useBreakpoint Hook
en-US: useBreakpoint Hook
---
## zh-CN
使用 `useBreakpoint` 个性化布局
## en-US
Use `useBreakpoint` Hook provide personalized layout.
</docs>
<template>
Current break point:
<template v-for="(value, key) in screens">
<a-tag v-if="!!value" :key="key" color="blue">
{{ key }}
</a-tag>
</template>
</template>
<script lang="ts" setup>
import { Grid } from 'ant-design-vue';
const useBreakpoint = Grid.useBreakpoint;
const screens = useBreakpoint();
</script>