mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-08 22:54:09 +08:00
23 lines
496 B
Vue
23 lines
496 B
Vue
<template>
|
|
<div class="clip-search">
|
|
<input v-model="filterText" autofocus type="text" placeholder="🔍" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref, watch } from 'vue'
|
|
const filterText = ref('')
|
|
const props = defineProps({
|
|
modelValue: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
})
|
|
const emit = defineEmits(['update:modelValue'])
|
|
watch(filterText, (val) => emit('update:modelValue', val))
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '../style';
|
|
</style>
|