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.
44 lines
975 B
44 lines
975 B
<docs>
|
|
---
|
|
order: 2
|
|
title:
|
|
zh-CN: 箭头
|
|
en-US: Arrow
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
可以展示一个箭头。
|
|
|
|
## en-US
|
|
|
|
You could display an arrow.
|
|
|
|
</docs>
|
|
|
|
<template>
|
|
<a-space style="display: flex; flex-wrap: wrap">
|
|
<template v-for="placement in placements" :key="placement">
|
|
<a-dropdown :placement="placement" arrow>
|
|
<a-button>{{ placement }}</a-button>
|
|
<template #overlay>
|
|
<a-menu>
|
|
<a-menu-item>
|
|
<a href="javascript:;">1st menu item</a>
|
|
</a-menu-item>
|
|
<a-menu-item>
|
|
<a href="javascript:;">2nd menu item</a>
|
|
</a-menu-item>
|
|
<a-menu-item>
|
|
<a href="javascript:;">3rd menu item</a>
|
|
</a-menu-item>
|
|
</a-menu>
|
|
</template>
|
|
</a-dropdown>
|
|
</template>
|
|
</a-space>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
const placements = ['topLeft', 'top', 'topRight', 'bottomLeft', 'bottom', 'bottomRight'] as const;
|
|
</script>
|