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.
ant-design-vue/components/mentions/demo/placement.vue

39 lines
537 B

<docs>
---
order: 4
title:
zh-CN: 向上展开
en-US: Placemen
---
## zh-CN
向上展开建议
## en-US
Change the suggestions placement.
</docs>
<template>
<a-mentions v-model:value="value" placement="top" :options="options"></a-mentions>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const value = ref<string>('');
const options = [
{
value: 'afc163',
label: 'afc163',
},
{
value: 'zombieJ',
label: 'zombieJ',
},
{
value: 'yesmeck',
label: 'yesmeck',
},
];
</script>