Home > @jview/hooks > UseElementContentRectOption
UseElementContentRectOption interface
useElementContentRect 选项
Signature:
typescript
export interface UseElementContentRectOption
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
boolean | 是否在onActivated钩子中自动计算 ContentRect | ||
boolean | 是否在onMounted钩子中自动计算 ContentRect | ||
boolean | 是否在窗口 resize 时自动计算 ContentRect | ||
GeneralFunction<Element> | 函数,返回一个Element | ||
boolean | 是否立即计算 ContentRect | ||
boolean | 是否启用 useResizeObserver,启用则会实时观察计算 ContentRect | ||
Exclude<Partial<UseResizeObserverOption>, 'getElement'> | 对应 UseResizeObserverOption |