当前位置:网站首页>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
边栏推荐
- Webauthn - official development document
- Cluster Analysis in R Simplified and Enhanced
- The selected cells in Excel form have the selection effect of cross shading
- LVM operation
- STM32 single chip microcomputer programming learning
- A white hole formed by antineutrons produced by particle accelerators
- flutter 问题总结
- On April 17, 2022, the five heart matchmaker team received double good news
- Order by注入
- 可升级合约的原理-DelegateCall
猜你喜欢

TDSQL|就业难?腾讯云数据库微认证来帮你

mmrotate旋转目标检测框架使用记录

可昇級合約的原理-DelegateCall

vant tabs组件选中第一个下划线位置异常

CentOS8之mysql基本用法

JS -- take a number randomly from the array every call, and it cannot be the same as the last time

Principe du contrat évolutif - delegatecall

Summary of data export methods in powerbi

Multi line display and single line display of tqdm

What is the relationship between digital transformation of manufacturing industry and lean production
随机推荐
excel表格中选中单元格出现十字带阴影的选中效果
C#多维数组的属性获取方法及操作注意
webauthn——官方开发文档
Functional interfaces and method references
Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
Tiktok overseas tiktok: finalizing the final data security agreement with Biden government
Native method merge word
Visualization of chip SEQ data by deeptools
在连接mysql数据库的时候一直报错
LVM operation
ros gazebo相关包的安装
Homer预测motif
enumrate的start属性的坑
The working day of the month is calculated from the 1st day of each month
ctf 记录
基于 Openzeppelin 的可升级合约解决方案的注意事项
制造业数字化转型和精益生产什么关系
Some suggestions for young people who are about to enter the workplace in the graduation season
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
抖音海外版TikTok:正与拜登政府敲定最终数据安全协议