2021-06-07 09:35:03 +00:00
|
|
|
import 'vue';
|
|
|
|
|
|
|
|
type EventHandler = (...args: any[]) => void;
|
|
|
|
|
|
|
|
declare module 'vue' {
|
|
|
|
interface ComponentCustomProps {
|
|
|
|
role?: string;
|
|
|
|
tabindex?: number | string;
|
|
|
|
// 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
|
2022-01-03 14:23:24 +00:00
|
|
|
// onBlur?: EventHandler;
|
|
|
|
// onOpen?: EventHandler;
|
|
|
|
// onEdit?: EventHandler;
|
|
|
|
// onLoad?: EventHandler;
|
|
|
|
// onClose?: EventHandler;
|
|
|
|
// onFocus?: EventHandler;
|
|
|
|
// onInput?: EventHandler;
|
|
|
|
// onClick?: EventHandler;
|
|
|
|
// onPress?: EventHandler;
|
|
|
|
// onCancel?: EventHandler;
|
|
|
|
// onChange?: EventHandler;
|
|
|
|
// onDelete?: EventHandler;
|
|
|
|
// onScroll?: EventHandler;
|
|
|
|
// onSubmit?: EventHandler;
|
|
|
|
// onSelect?: EventHandler;
|
|
|
|
// onConfirm?: EventHandler;
|
|
|
|
// onPreview?: EventHandler;
|
|
|
|
// onKeypress?: EventHandler;
|
|
|
|
// onTouchend?: EventHandler;
|
|
|
|
// onTouchmove?: EventHandler;
|
|
|
|
// onTouchstart?: EventHandler;
|
|
|
|
// onTouchcancel?: EventHandler;
|
|
|
|
// onMouseenter?: EventHandler;
|
|
|
|
// onMouseleave?: EventHandler;
|
|
|
|
// onMousemove?: EventHandler;
|
|
|
|
// onKeydown?: EventHandler;
|
|
|
|
// onKeyup?: EventHandler;
|
|
|
|
// onDeselect?: EventHandler;
|
|
|
|
// onClear?: EventHandler;
|
2021-06-07 09:35:03 +00:00
|
|
|
}
|
|
|
|
}
|