mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
20 lines
496 B
TypeScript
20 lines
496 B
TypeScript
import 'vue';
|
|
|
|
type EventHandler = (...args: any[]) => void;
|
|
|
|
// TODO
|
|
// should be removed after Vue supported component events typing
|
|
// see: https://github.com/vuejs/vue-next/issues/1553
|
|
// https://github.com/vuejs/vue-next/issues/3029
|
|
declare module 'vue' {
|
|
interface ComponentCustomProps {
|
|
role?: string;
|
|
tabindex?: number;
|
|
onClick?: EventHandler;
|
|
onClosed?: EventHandler;
|
|
onChange?: EventHandler;
|
|
onToggle?: EventHandler;
|
|
onClickStep?: EventHandler;
|
|
}
|
|
}
|