import { VantComponent } from '../vant-ui/common/component'

VantComponent({
  props: {
    placeholder: String,
    disabled: Boolean,
    value: String
  },
  methods: {
    bindconfirm (e) {
      const { value } = e.detail
      this.triggerEvent('search', value)
    },
    bindinput (e) {
      this.triggerEvent('input', e.detail.value)
    }
  }
})
