当前位置:网站首页>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
边栏推荐
- Always report errors when connecting to MySQL database
- Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic
- RPA进阶(二)Uipath应用实践
- ROS lacks catkin_ pkg
- Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
- Tick Data and Resampling
- JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
- Develop scalable contracts based on hardhat and openzeppelin (II)
- Xiao Sha's pain (double pointer
- 【云原生】2.5 Kubernetes 核心实战(下)
猜你喜欢

How to Create a Beautiful Plots in R with Summary Statistics Labels

MySQL comparison operator in problem solving

MySQL linked list data storage query sorting problem

tidb-dm报警DM_sync_process_exists_with_error排查

C#多维数组的属性获取方法及操作注意

GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT

念念不忘,必有回响 | 悬镜诚邀您参与OpenSCA用户有奖调研

PowerBI中导出数据方法汇总

制造业数字化转型和精益生产什么关系

Webauthn - official development document
随机推荐
Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
vant tabs组件选中第一个下划线位置异常
LVM operation
原生方法合并word
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
String (Analog
A sharp tool for exposing data inconsistencies -- a real-time verification system
tidb-dm报警DM_sync_process_exists_with_error排查
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
STM32 single chip microcomputer programming learning
What week is a date obtained by QT
Always report errors when connecting to MySQL database
The working day of the month is calculated from the 1st day of each month
Skills of PLC recorder in quickly monitoring multiple PLC bits
基于Hardhat和Openzeppelin开发可升级合约(二)
微信小程序利用百度api达成植物识别
Astparser parsing class files with enum enumeration methods
抖音海外版TikTok:正与拜登政府敲定最终数据安全协议
QT获取某个日期是第几周
How to Visualize Missing Data in R using a Heatmap