zhangnuoyan
2024-08-24 392765e4c6823745345fe349e5422e1b98ca8f09
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
26
27
<template>
    <div>
        <p>{{ title }}</p>
        <a-input-search :style="{ width: '250px' }" :placeholder="placeholder" />
    </div>
</template>
<script lang="ts" setup name="TheASearch">
const props = withDefaults(
    defineProps<{
        title?: string;
        placeholder?: string;
    }>(),
    {
        placeholder: "",
        title: ""
    }
);
</script>
<style lang="scss" scoped>
div {
    display: flex;
    align-items: center;
    > p {
        margin-right: 10px;
    }
}
</style>