tdesign-miniprogram
tdesign-miniprogram copied to clipboard
[Toast轻提示] prevent-scroll-through设置无效
tdesign-miniprogram 版本
0.9.0
重现链接
No response
重现步骤
我按官方文档使用,发现 prevent-scroll-through 设置无效。
期望结果
prevent-scroll-through 设置有效,并期望Toast 轻提示 示例给出对应 代码模块
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
👋 @synctimes163,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
升级最新版即可
让我升级最新版是哪个版本?怎么执行升级最新版本命令
在 2022-08-06 00:12:06,"leejimqiu" @.***> 写道:
升级最新版即可
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
已经是最新版了啊,仍然复现,麻烦看看呢
npm 安装之后,还需要用开发者工具 “构建”
npm 安装之后,还需要用开发者工具 “构建” npm 安装,还需要工具“构建” 演示示例出来不是代表成功了吗? 找出原因了,跟
放置的节点位置有关。 这个你们做优化吗?
和位置有关,应该是和你代码里其他节点的 z-index 有关了。
ok 那组件里面的文字和 宽度可以设置吗?怎么设置? 现在默认最大是 374rpx.如果文字想换行可以吗
.t-toast__content { position: fixed; right: -50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.6); align-items: center; border-radius: 8rpx; font-size: 28rpx; color: white; max-width: 374rpx; width: fit-content; line-height: 44rpx; box-sizing: border-box; z-index: 12001; }
ok 那组件里面的文字和 宽度可以设置吗?怎么设置? 现在默认最大是 374rpx.如果文字想换行可以吗
.t-toast__content { position: fixed; right: -50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.6); align-items: center; border-radius: 8rpx; font-size: 28rpx; color: white; max-width: 374rpx; width: fit-content; line-height: 44rpx; box-sizing: border-box; z-index: 12001; }
你可以直接给 .t-toast__content
写样式,会覆盖当前的样式的
目前看起来没什么问题了,我就先关掉 issue,后续要问题可以提新的 issue 反馈给我们