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.
33 lines
551 B
33 lines
551 B
1 year ago
|
<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>
|