mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:17:54 +08:00
affix 初始检测一次
This commit is contained in:
parent
6bc4c1e870
commit
176f197ad8
@ -44,6 +44,7 @@ export default class Panel extends React.Component<PanelProps> {
|
||||
this.parentNode = parent;
|
||||
parent.addEventListener('scroll', this.affixDetect);
|
||||
this.unSensor = resizeSensor(dom as HTMLElement, this.affixDetect);
|
||||
this.affixDetect();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
Loading…
Reference in New Issue
Block a user