tdesign-mobile-vue
Version:
tdesign-mobile-vue
24 lines (23 loc) • 678 B
TypeScript
import { ButtonProps } from '../button';
import { TNode, Styles } from '../common';
export interface TdFabProps {
buttonProps?: ButtonProps;
draggable?: boolean | FabDirectionEnum;
icon?: TNode;
magnet?: boolean | MagnetEnum;
style?: string | Styles;
text?: string;
xBounds?: Array<string | number>;
yBounds?: Array<string | number>;
onClick?: (context: {
e: MouseEvent;
}) => void;
onDragEnd?: (context: {
e: TouchEvent;
}) => void;
onDragStart?: (context: {
e: TouchEvent;
}) => void;
}
export type FabDirectionEnum = 'all' | 'vertical' | 'horizontal';
export type MagnetEnum = 'left' | 'right';