We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b859d3a commit ae138bdCopy full SHA for ae138bd
2 files changed
README.md
@@ -155,6 +155,15 @@ export interface TriggerProps {
155
destroyPopupOnHide?: boolean;
156
/** 设置弹出框的zIndex */
157
zIndex?: number;
158
+ /** popup位置最终适配方法 */
159
+ adjustPosition?: (
160
+ dom: HTMLElement,
161
+ pos: {
162
+ left: number;
163
+ top: number;
164
+ },
165
+ feedback: Feedback
166
+ ) => void;
167
/** 是否使用Portal进行渲染弹出框 */
168
usePortal?: boolean;
169
/** 当destroyPopupOnHide=false时,组件刷新时强制更新弹出框组件 */
src/index.tsx
@@ -115,6 +115,7 @@ export interface TriggerProps {
115
forceRender?: boolean;
116
/** jquery-ui/position.js 的配置参数 */
117
position?: PositionOptions;
118
119
adjustPosition?: (
120
dom: HTMLElement,
121
pos: {
0 commit comments