import type { ExtractPropTypes } from 'vue'
import { makeArrayProp } from '../utils'
import type { PickerOption, PickerColumn } from 'vant'

export const horPickerProps = {
  title: String,
  value: [String, Number, Object],
  filterable: {
    type: Boolean,
    default: false,
  },
  columns: makeArrayProp<PickerOption | PickerColumn>(),
}

export type HorPickerProps = ExtractPropTypes<typeof horPickerProps>
