amis-rpc-design/node_modules/rc-picker/lib/PickerTrigger.d.ts

20 lines
868 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { AlignType } from '@rc-component/trigger/lib/interface';
type Placement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
export type PickerTriggerProps = {
prefixCls: string;
visible: boolean;
popupElement: React.ReactElement;
popupStyle?: React.CSSProperties;
children: React.ReactElement;
dropdownClassName?: string;
transitionName?: string;
getPopupContainer?: (node: HTMLElement) => HTMLElement;
dropdownAlign?: AlignType;
range?: boolean;
popupPlacement?: Placement;
direction?: 'ltr' | 'rtl';
};
declare function PickerTrigger({ prefixCls, popupElement, popupStyle, visible, dropdownClassName, dropdownAlign, transitionName, getPopupContainer, children, range, popupPlacement, direction, }: PickerTriggerProps): React.JSX.Element;
export default PickerTrigger;