当前位置:网站首页>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
边栏推荐
- How to Visualize Missing Data in R using a Heatmap
- MySQL comparison operator in problem solving
- How to Create a Nice Box and Whisker Plot in R
- Tdsql | difficult employment? Tencent cloud database micro authentication to help you
- The difference between SQL left join main table restrictions written after on and where
- Webauthn - official development document
- Complement (Mathematical Simulation
- 【云原生】2.5 Kubernetes 核心实战(下)
- Rest (XOR) position and thinking
- Attribute acquisition method and operation notes of C # multidimensional array
猜你喜欢

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

HOW TO CREATE AN INTERACTIVE CORRELATION MATRIX HEATMAP IN R

由粒子加速器产生的反中子形成的白洞

Summary of data export methods in powerbi

Eight sorting summaries

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

MySQL comparison operator in problem solving

MySQL比较运算符IN问题求解

PLC-Recorder快速监控多个PLC位的技巧

【云原生】2.5 Kubernetes 核心实战(下)
随机推荐
String (Analog
C#基于当前时间,获取唯一识别号(ID)的方法
Writing contract test cases based on hardhat
PX4 Position_Control RC_Remoter引入
How to Visualize Missing Data in R using a Heatmap
MTK full dump grab
Amazon cloud technology community builder application window opens
Is the stock account given by qiniu business school safe? Can I open an account?
2022年遭“挤爆”的三款透明LED显示屏
ros缺少xacro的包
What week is a date obtained by QT
Eight sorting summaries
Precautions for scalable contract solution based on openzeppelin
Homer预测motif
Wechat applet uses Baidu API to achieve plant recognition
CTF record
A sharp tool for exposing data inconsistencies -- a real-time verification system
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
GGPlot Examples Best Reference
SSRF