Skip to content

Commit ae138bd

Browse files
committed
更新文档
1 parent b859d3a commit ae138bd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ export interface TriggerProps {
155155
destroyPopupOnHide?: boolean;
156156
/** 设置弹出框的zIndex */
157157
zIndex?: number;
158+
/** popup位置最终适配方法 */
159+
adjustPosition?: (
160+
dom: HTMLElement,
161+
pos: {
162+
left: number;
163+
top: number;
164+
},
165+
feedback: Feedback
166+
) => void;
158167
/** 是否使用Portal进行渲染弹出框 */
159168
usePortal?: boolean;
160169
/** 当destroyPopupOnHide=false时,组件刷新时强制更新弹出框组件 */

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export interface TriggerProps {
115115
forceRender?: boolean;
116116
/** jquery-ui/position.js 的配置参数 */
117117
position?: PositionOptions;
118+
/** popup位置最终适配方法 */
118119
adjustPosition?: (
119120
dom: HTMLElement,
120121
pos: {

0 commit comments

Comments
 (0)