Skip to content

基础用法

通过 items 配置搜索数据项

<template>
  <ClientOnly>
    <tiny-search-box v-model="tags" :items="dataSource" />
  </ClientOnly>
</template>

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

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