Comments (9)
Hello @youpeng-863. Please provide an online reproduction demo by codesandbox or a minimal GitHub repository. Issues marked with need reproduce
will be closed if there is no activity within 3 days. For background, please refer to Why reproductions are required.
你好 @youpeng-863, 我们需要你提供一个在线的重现示例,以便于我们帮你排查问题。你可以通过点击 codesandbox 创建,或者提供一个最小化的 GitHub 仓库。如果 3 天内未跟进,此 issue 将会被自动关闭。背景请参考 为什么需要最小重现。
from vant.
我将会尽快提供一个在线实例以供参考
from vant.
一般 teleport 和 auto-locate 不会同时使用,你可以试一下只使用 teleport 还会有这个问题吗。
auto-locate 适用于修正父级元素应用了 transform 样式时可能出现的定位偏差。
from vant.
在线的测试实例已经提供 https://weixin.zjcarcb.cn/QWApp/#/TestListHome;进入测试页后正常,但是点击新增按钮到下一个路由再返回就会出现问题,目前该实例中仅仅使用了auto-locate,关于你的建议如果需要我可以再次提供另一个测试实例。
但是有个很奇怪的问题,我在本地测试的时候并没有发现此问题,打包部署上线后就会出现。
from vant.
以下是两个测试实例的具体代码,与真实环境的差别就是去掉了鉴权和载入的数据是静态数据const listData = ref(Test.list);
TestListHome.txt
TestReportHome.txt
from vant.
仅使用teleport 的实例也已经提供 https://weixin.zjcarcb.cn/QWApp/#/TestListHome2
但似乎存在同样的问题。
from vant.
一般 teleport 和 auto-locate 不会同时使用,你可以试一下只使用 teleport 还会有这个问题吗。
auto-locate 适用于修正父级元素应用了 transform 样式时可能出现的定位偏差。
两个实例都已经提供但都没有解决问题
from vant.
看了一下,和 teleport 或是 auto-locate 属性无关,因为跳转返回后,.van-dropdown-item__content 类的样式被覆盖掉了。
不清楚你项目具体的构建配置,你可以暂时通过设置 van-dropdown-item__content 的样式解决这个问题:
.van-dropdown-item__content {
position: absolute !important;
}
from vant.
暂时使用teleport="body"并添加样式
.van-dropdown-item__content { position: absolute !important; } .van-dropdown-item__option--active { color: var(--van-dropdown-menu-option-active-color) !important; }
解决了问题,但样式为什么被覆盖暂时没找到问题,我们会在后续工作中持续关注这个问题,这两个测试实例将持续开放至1月15日,如果您有兴趣可以继续查看,需要配合也可以尽管留言或联系微信13849103232,我们将尽力配合调查,或者您可以直接关闭这个问题。
from vant.
Related Issues (20)
- [Bug Report] IONIC-CLI使用unplugin-vue-components引入组件报错 HOT 2
- [Bug Report] tabs 切换动画 和 滑动切换 一块使用时@change在第一个tab不会触发 HOT 1
- [Bug Report] 我现在尝试在PC端使用Picker组件,但是发现无法使用拖动功能 HOT 1
- [Feature Request] FloatingBubble 浮动气泡增加新功能 HOT 6
- [Bug Report] 必填的星号在icon的右侧 HOT 2
- v4.8.3 版本 tab 添加了 stick 属性之后,头部样式会默认多了 top: 0px, 导致样式错乱 HOT 5
- [Bug Report] van-field type=number not allow decimal points in iOS devices HOT 5
- [Feature Request] 希望官方能提供vant-use的构建版本 HOT 2
- vant-cli6.0.0 版本 ,组件使用 setup 语法,打包后在 es/index.js 中没有组件引入。 HOT 2
- [Bug Report] ConfigProvider组件在对FloatingBubble 浮动气泡组件进行自定义样式时,不起作用。 HOT 1
- Search 搜索 支持电脑端 HOT 2
- [Bug Report] van-field 组件存在奇怪的修改其它字段值的问题,vant2~4 均存在该问题 HOT 2
- [Docs] 在官方文档中添加“全量引入”的示例 HOT 1
- [Bug Report] vant 4 preview has breaked HOT 4
- [Bug Report] van-dialog :close-on-click-overlay="true" 和 :closeOnClickOverlay="true" 都不生效 HOT 2
- [Bug Report] dropdown-menu-item使用title-class报错
- [Feature Request] Field info message
- Dialog 样式失效 HOT 1
- 自定义文档的头部,或者插入自定义样式文件。 HOT 1
- [Feature Request] DropdownItem请求添加点击事件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vant.