wujingjing
2025-03-03 254816a712847b099184d84ca8631a50fb32f39e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
    <div>
        <el-input
            v-if="filter === 'like'"
            @input="(value) => input(value)"
            v-model="modelValue[0]"
            style="width: 226.4px"
            clearable
        />
    </div>
</template>
 
<script setup lang="ts" name="TableSearch">
const props = defineProps(['filter']);
const emit = defineEmits(['input']);
const modelValue = defineModel({
    type: Array<string>,
    default: [''],
});
 
const input = (value) => {
    emit('input', value);
};
</script>
<style scoped lang="scss"></style>