wujingjing
2025-03-03 26e2d14957500f4f738945d4c71d1288a72c85cb
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"
            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: String,
    default: '',
});
 
const input = (value) => {
    emit('input', value);
};
</script>
<style scoped lang="scss"></style>