vant.d.ts 680 B

123456789101112131415
  1. import type { PickerCancelEventParams, PickerChangeEventParams, PickerColumn, PickerConfirmEventParams, PickerInstance, PickerOption, PickerProps } from 'vant';
  2. declare global {
  3. declare type VantPickEmits = {
  4. 'update:modelValue': [$event: string[]];
  5. confirm: [$event: PickerConfirmEventParams];
  6. cancel: [$event: PickerCancelEventParams];
  7. change: [$event: PickerChangeEventParams];
  8. 'click-option': [$event: PickerChangeEventParams & { currentOption: PickerOption }];
  9. };
  10. declare type VantPickProps = Partial<PickerProps & EmitsToProps<VantPickEmits>>;
  11. declare type VantPickerInstance = PickerInstance;
  12. declare type VantPickerColumn = PickerColumn;
  13. }