当前位置:网站首页>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
边栏推荐
- Basic usage of MySQL in centos8
- php 根据经纬度查询距离
- PX4 Position_Control RC_Remoter引入
- Precautions for scalable contract solution based on openzeppelin
- 2022年遭“挤爆”的三款透明LED显示屏
- STM32 single chip microcomputer programming learning
- SSRF
- ren域名有价值吗?值不值得投资?ren域名的应用范围有哪些?
- Mmrotate rotation target detection framework usage record
- 原生方法合并word
猜你喜欢
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang
enumrate的start属性的坑
PLC-Recorder快速监控多个PLC位的技巧
可昇級合約的原理-DelegateCall
可升级合约的原理-DelegateCall
The selected cells in Excel form have the selection effect of cross shading
TDSQL|就业难?腾讯云数据库微认证来帮你
How to Create a Nice Box and Whisker Plot in R
C#多维数组的属性获取方法及操作注意
随机推荐
excel表格中选中单元格出现十字带阴影的选中效果
Summary of flutter problems
对毕业季即将踏入职场的年轻人的一点建议
What week is a date obtained by QT
MySQL比较运算符IN问题求解
C#基于当前时间,获取唯一识别号(ID)的方法
Order by注入
The computer screen is black for no reason, and the brightness cannot be adjusted.
Liftover for genome coordinate conversion
启牛商学院给的股票账户安全吗?能开户吗?
Tick Data and Resampling
R HISTOGRAM EXAMPLE QUICK REFERENCE
可昇級合約的原理-DelegateCall
Summary of data export methods in powerbi
Verilog and VHDL signed and unsigned number correlation operations
Seriation in R: How to Optimally Order Objects in a Data Matrice
Eight sorting summaries
ctf 记录
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
PHP query distance according to longitude and latitude