Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
bplok20010 committed Aug 1, 2020
1 parent b859d3a commit ae138bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ export interface TriggerProps {
destroyPopupOnHide?: boolean;
/** 设置弹出框的zIndex */
zIndex?: number;
/** popup位置最终适配方法 */
adjustPosition?: (
dom: HTMLElement,
pos: {
left: number;
top: number;
},
feedback: Feedback
) => void;
/** 是否使用Portal进行渲染弹出框 */
usePortal?: boolean;
/** 当destroyPopupOnHide=false时,组件刷新时强制更新弹出框组件 */
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export interface TriggerProps {
forceRender?: boolean;
/** jquery-ui/position.js 的配置参数 */
position?: PositionOptions;
/** popup位置最终适配方法 */
adjustPosition?: (
dom: HTMLElement,
pos: {
Expand Down

0 comments on commit ae138bd

Please sign in to comment.