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

[Picker] Picker选择器错位,首次打开后,显示默认选择第一个,点击确定后,回调中为空数组。 #493

Closed
gswy opened this issue Dec 26, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@gswy
Copy link

gswy commented Dec 26, 2022

tdesign-mobile-vue 版本

^0.14.1

重现链接

No response

重现步骤

模板代码:

<t-cell arrow title="店铺" :note="form.shopId.join(',') || '选择店铺'" @click="popup = true" />
  <t-popup v-model="popup" placement="bottom">
    <t-picker
        v-model="form.shopId"
        :columns="shops"
        @confirm="confirmShop"
        @cancel="popup = false"
    />
  </t-popup>

以下为浏览器调试图

image

期望结果

No response

实际结果

No response

框架版本

^3.2.45

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

ul元素的默认样式去除 margin, padding没有样式。

@github-actions
Copy link
Contributor

👋 @gswy,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

♥️ 有劳 @ppYoung 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @gswy

@github-actions
Copy link
Contributor

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label Jan 26, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2023

此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。

@github-actions github-actions bot closed this as completed Feb 3, 2023
@anlyyao anlyyao reopened this Mar 10, 2023
@anlyyao anlyyao added bug Something isn't working and removed Stale labels Mar 10, 2023
@ppYoung
Copy link
Contributor

ppYoung commented Mar 14, 2023

组件在设计之初是通过px2rem来做移动端适配的,可能是px和rem之间的像素差异导致位置不对,所以请检查以下几点:

  1. 请确认你的项目是否使用的rem来做移动端的布局
  2. 请研究demo对照,我们的demo都是经过严格测试的,可以通过浏览器开发者工具看下两者之间存在什么差异
  3. 请确认是否加载了依赖的样式文件

@LeeJim
Copy link
Collaborator

LeeJim commented Mar 29, 2023

#539 升级了视觉,下周一发布新版本,麻烦看看还有没问题

@LeeJim
Copy link
Collaborator

LeeJim commented Mar 29, 2023

如果还有问题,记得 reopen 这个 issue

@LeeJim LeeJim closed this as completed Mar 29, 2023
@williambao
Copy link

@LeeJim 0.16版本还是有这个问题。
@ppYoung 官方demo里也可以看到这个问题。参考下面的截屏。
CleanShot 2023-04-06 at 10 42 40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants