-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto published by siyuan-plugin-publisher
- Loading branch information
lizhenwei
committed
Dec 1, 2023
1 parent
fbcbca2
commit 9e2b4d8
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<p><img src="assets/unsplash-THB1yHtmT2E-20231201100227-bn11lxi.jpg" alt="image" /></p> | ||
<h1>开发问题记录📝</h1> | ||
<h2>vant组件开发相关问题</h2> | ||
<ul> | ||
<li> | ||
<p>vant开发的组件库初次渲染没问题,只要跳转至其他页面再进来设置的label-align属性就会丢失不生效</p> | ||
<ol> | ||
<li> | ||
<p>原因: 进入其他页面加载了主项目的vant库的css优先级层级高,然后就把组件本身的样式覆盖了,</p> | ||
<ol> | ||
<li><img src="assets/image-20231201094126-xywjoqc.png" alt="image" /></li> | ||
</ol> | ||
</li> | ||
<li> | ||
<p>解决思路: 使用渗透把主项目的样式给重写覆盖</p> | ||
<ol> | ||
<li><img src="assets/image-20231201094150-52yelat.png" alt="image" /></li> | ||
<li><img src="assets/image-20231201094242-xagu8lw.png" alt="image" /></li> | ||
</ol> | ||
</li> | ||
</ol> | ||
</li> | ||
</ul> | ||
<p></p> |