<template>
  <a-input-search v-model="value" v-bind="$attrs">
    <template v-for="(item, key, index) in $slots" :key="index" v-slot:[key]>
      <slot :name="key"></slot>
    </template>
  </a-input-search>
</template>
<script lang="ts">
import { defineComponent } from "vue";

import { debounceRef } from "../../refs";

export default defineComponent({
  name: "c-input-search",
  inheritAttrs: false,
  props: ["modelValue"],
  setup(props, context) {
    const value = debounceRef(props, context);
    return { value };
  },
});
</script>
