当前位置:网站首页>The position of the first underline selected by the vant tabs component is abnormal
The position of the first underline selected by the vant tabs component is abnormal
2022-07-02 11:44:00 【00008795】
Example of error diagram
Create a scene : The top title is the background interface data return .vnat-tabs Already in data Setting jump to this page is the selected state active=0, After the data appears , The underline label position is abnormal , Set again after the title is successfully obtained active=0, No effect , But sometimes the underlined data is normal .
Cause analysis :Tabs When the component is mounted , Will get its own width , And calculate the position of the bottom bar . If the component is hidden at first , Then the obtained width is always 0, Therefore, the position of the bottom bar cannot be displayed .
Problem solving : I used method two
Be careful : Call after getting the title data selectComponent Method , Otherwise, redrawing is invalid .
vant-tabs Official address
边栏推荐
猜你喜欢
VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
vant tabs组件选中第一个下划线位置异常
电脑无缘无故黑屏,无法调节亮度。
Skills of PLC recorder in quickly monitoring multiple PLC bits
亚马逊云科技 Community Builder 申请窗口开启
八大排序汇总
Attribute acquisition method and operation notes of C # multidimensional array
PLC-Recorder快速监控多个PLC位的技巧
GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
随机推荐
PowerBI中导出数据方法汇总
How to Create a Beautiful Plots in R with Summary Statistics Labels
每月1号开始计算当月工作日
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
STM32 single chip microcomputer programming learning
Basic usage of MySQL in centos8
GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
Importerror: impossible d'importer le nom « graph» de « graphviz»
From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang
ros gazebo相关包的安装
基于Hardhat和Openzeppelin开发可升级合约(一)
Homer预测motif
A sharp tool for exposing data inconsistencies -- a real-time verification system
Order by injection
Complement (Mathematical Simulation
电脑无缘无故黑屏,无法调节亮度。
揭露数据不一致的利器 —— 实时核对系统
Map set assignment to database
What is the relationship between digital transformation of manufacturing industry and lean production
6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用