trigger
Trigger触发组件
安装
npm install --save react-widget-trigger
使用
;;;; { return <div className="App" style= padding: 100 > <Trigger offset=1 placement="bottomRight" popup= <div style= width: 100 height: 100 border: "1px solid #f2f2f2" padding: 10 > <div>Title</div> <div> Content <Trigger usePortal=false action="hover" delay=50 offset=1 popup= <div style= width: 150 > hover popup test... </div> > <a href="###">Hover</a> </Trigger> </div> <button onClick= trigger>关闭</button> </div> action="click" > <button>点击试试</button> </Trigger> </div> ;}
Interfaces
;;; declare ;declare ;declare ;declare ;declare ;declare ;
defaultProps
prefixCls: "rw-trigger" placement: "bottomLeft" offset: 0 defaultPopupVisible: false action: "click" showAction: hideAction: outsideHideEventName: "mousedown" "click" "scroll" delay: 0 windowdocument container: documentbody mask: false maskClosable: true destroyPopupOnHide: true popupProps: {} popupStyle: {} popupMaskStyle: {} checkDefaultPrevented: false usePortal: true
基础样式