Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[van-tabs] van-tabs在开发者工具上是正常的,提交上传后,真机下会出问题,只展示一个tab,同样的van-dropdown-item也只展示一个 #5945

Open
wghe110 opened this issue Dec 5, 2024 · 6 comments

Comments

@wghe110
Copy link

wghe110 commented Dec 5, 2024

重现链接

van-tabs在开发者工具上是正常的,提交上传后,真机下会出问题,只展示一个tab,同样的van-dropdown-item也只展示一个
附件有图片,下面是代码
1
2

Vant Weapp 版本

1.11.7

描述一下你遇到的问题。

代码如下:

<van-tabs color="#1975FF" active="{{managerStatus}}" lazy-render="{{false}}" bind:change="tabChangeFn" id="id-tabs">
    <van-tab name="-1" title="全部"></van-tab>
    <van-tab name="0" title="安装中"></van-tab>
    <van-tab name="1" title="安装完成"></van-tab>
    <van-tab name="2" title="安装失败"></van-tab>
  </van-tabs>

  <van-dropdown-menu active-color="#1975FF">
    <van-dropdown-item title="{{name || '全部企业'}}" id="id-dropdown-company">
      <company-select model:value="{{name}}" options="{{nameOpts}}" bind:close="closeCompanyFn" bind:change="searchFn"></company-select>
    </van-dropdown-item>
    <van-dropdown-item title="{{dateTitle}}" bind:open="dateOpenFn" id="id-dropdown-date">
      <c-date-range-picker class="date-picker" model:start-date="{{startInstallAccTime}}" model:end-date="{{endInstallAccTime}}" bind:close="closeDateFn" bind:change="dateChangeFn"></c-date-range-picker>
    </van-dropdown-item>
  </van-dropdown-menu>

重现步骤

van-tabs在开发者工具上是正常的,提交上传后,真机下会出问题,只展示一个tab,同样的van-dropdown-item也只展示一个
附件有图片,下面是代码

设备/浏览器

No response

@wang-Edword
Copy link

我也发现了这个问题,没有人解答下吗?

@zsg179
Copy link

zsg179 commented Dec 5, 2024

一样,开发者工具上显示正常,手机上只显示一个,重新安装,重新npm都没用

@devotion-d
Copy link

看下app.json有配置"componentFramework": "glass-easel"没,删掉试下

@zsg179
Copy link

zsg179 commented Dec 5, 2024

看下app.json有配置"componentFramework": "glass-easel"没,删掉试下

有用!!!感谢!!!

@wghe110
Copy link
Author

wghe110 commented Dec 5, 2024

看下app.json有配置"componentFramework": "glass-easel"没,删掉试下

感觉治标不治本,官方有没有解决方法

@devotion-d
Copy link

现在不用移除这个配置也正常了,感觉是微信的问题,之前发包正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants