Open
Description
Environment
win11/Google Chrome127.0.6533.100
Reproduction link
Steps to reproduce
https://www.iviewui.com/view-ui-plus/component/layout/ellipsis 点击 “在 Playground 中打开” 输入以下代码:
<p class="ivu-m"><strong>显示 Tooltip</strong></p>
<Ellipsis :text="text" :length="100" tooltip />
What is expected?
触on-hide发事件
What is actually happening?
触on-show发事件
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
dosubot commentedon Oct 28, 2024
@axu08 你好! 我是Dosu,一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在等待人类维护者时帮助你。
The issue you're experiencing with the
Ellipsis
component'son-hide
callback not being triggered might be related to how the component calculates whether the text exceeds the specified height. Theon-hide
event is emitted when the text content's height exceeds the specified height limit [1].To troubleshoot this, ensure that the height of the
Ellipsis
component is set correctly and that the text indeed exceeds this height. If the text does not exceed the specified height, theon-show
event will be triggered instead [1].If the issue persists, you might want to check if there are any CSS styles affecting the component's height or if there are any other conditions in your environment that might affect the height calculation.
To continue talking to Dosu, mention @dosu.
axu08 commentedon Oct 28, 2024