Skip to content

面板最大高度

通过 panel-max-height 属性可以设置下拉面板的最大高度。

<script setup lang="ts">
import { ref } from 'vue'
import { dataSource } from './data-source'

const items = dataSource

const tags = ref([])
</script>

<template>
  <ClientOnly>
    <tiny-search-box v-model="tags" :items="items" panel-max-height="100px" />
  </ClientOnly>
</template>