@daysnap/horn-ui
Version:
hron ui
16 lines (13 loc) • 414 B
text/typescript
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>