AIoT-IDE: 1.7.0
AIoT-toolkit: 2.0.5
镜像: vela-watch-5.0 212x520
问题:在scroll组件中嵌套text组件,scroll无法正常使用
text组件在显示了超过屏幕的内容后被截断了,scroll没有生效
有大佬知道怎么解决吗?
AIoT-toolkit: 2.0.5
镜像: vela-watch-5.0 212x520
问题:在scroll组件中嵌套text组件,scroll无法正常使用
<template>
<scroll class="text-scroll" scroll-y="true" @scroll="onScroll" onclick="toggleInputMethod" id="textScroll" bounces="true">
<text class="text-content">{{displayText}}</text>
</scroll>
</template>
<style>
.text-scroll {
flex: 1;
padding: 20px;
}
.text-content {
font-size: 26px;
color: #ffffff;
width: 100%;
text-align: left;
lines: -1;
}
</style>
text组件在显示了超过屏幕的内容后被截断了,scroll没有生效
有大佬知道怎么解决吗?
最后编辑: