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.
35 lines
617 B
35 lines
617 B
3 years ago
|
<docs>
|
||
|
---
|
||
|
order: 5
|
||
|
title:
|
||
|
zh-CN: 响应式尺寸
|
||
|
en-US: Responsive Size
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
头像大小可以根据屏幕大小自动调整。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Avatar size can be automatically adjusted based on the screen size.
|
||
|
</docs>
|
||
|
|
||
|
<template>
|
||
|
<a-avatar :size="{ xs: 24, sm: 32, md: 40, lg: 64, xl: 80, xxl: 100 }">
|
||
|
<template #icon>
|
||
|
<AntDesignOutlined />
|
||
|
</template>
|
||
|
</a-avatar>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { AntDesignOutlined } from '@ant-design/icons-vue';
|
||
|
import { defineComponent } from 'vue';
|
||
|
export default defineComponent({
|
||
|
components: {
|
||
|
AntDesignOutlined,
|
||
|
},
|
||
|
});
|
||
|
</script>
|