Appearance
act-prize-log-search-bar 活动奖品列表搜索
代码演示
用于奖品列表页的搜索,内部会做 300ms
的防抖,无需额外处理:
vue
<script setup>
import {ref} from 'vue'
const searchWord = ref('')
</script>
<template>
<!-- 搜索值的更新已做防抖 -->
<act-prize-log-search-bar v-model:value="searchWord" />
...
</template>
API
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
value v-model | 绑定值 | string | - | required |