为什么标签无法滑动?点击一个标签无法移动到完全展示的位置。
<scroll-view scroll-x="{{true}}" style="width:100vw;">
<t-tabs bind:click="onStabsClick" defaultValue="{{1}}" theme="tag" style="position: relative;left: 5vw;--td-tab-item-tag-active-bg:#600020;--td-tab-item-active-color:#ffffff;z-index: 0;width: 180vw; overflow-x:scroll;">
<t-tab-panel label=" " value="0" />
<t-tab-panel label="升学" value="1" />
<t-tab-panel label="伴学" value="2" />
<t-tab-panel label="体育" value="3" />
<t-tab-panel label="语言" value="4" />
<t-tab-panel label="硬核" value="5" />
<t-tab-panel label="经验" value="6" />
<t-tab-panel label="艺术" value="7" />
<t-tab-panel label="技能" value="8" />
<t-tab-panel label="住家" value="9" />
</t-tabs>
</scroll-view>
onStabsClick: function (event) {
console.log(`now is ${event.detail.value}.`);
this.setData({
citynow: "筛选同城",
typenow: event.detail.value,
loading: "visibility:visible;position: fixed;top: 95.4vh;z-index: 2000;width: 100vw;height:100vh;"
})
},
[图片]