Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky 应用在隐藏/显示元素高度不会重新计算 #1549

Closed
xiaolong0612 opened this issue Jan 24, 2019 · 4 comments
Closed

Sticky 应用在隐藏/显示元素高度不会重新计算 #1549

xiaolong0612 opened this issue Jan 24, 2019 · 4 comments

Comments

@xiaolong0612
Copy link

包裹Sticky的标签隐藏后在显示,Sticky高度为0

@PanJiaChen
Copy link
Owner

PanJiaChen commented Jan 24, 2019

由于内部组件 是无法感知父组件的 v-show 的变化的,所以需要你在 v-show 变化的时候手动处理一下。

click() {
      this.show = !this.show
      this.$refs.sticky.reset()
    }

ps: #1550 更新一下代码

@xiaolong0612
Copy link
Author

xiaolong0612 commented Jan 24, 2019

由于内部组件是无法感知父组件的v-show的变化的,所以需要你在v-show变化的时候手动处理一下。

click(){
       this.show = !this.show
      this.$refs.sticky.reset()
    }

ps:#1550更新一下代码

当应用在响应式布局中,无法使用事件的方式处理。例如:sm='0' :md='1'的元素下无法用事件的方式,可能我要想其它方式实现了

@PanJiaChen
Copy link
Owner

我又更新了下,你可以试试
8ef6c7e

@xiaolong0612
Copy link
Author

谢谢大大

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants