tdesign-vue icon indicating copy to clipboard operation
tdesign-vue copied to clipboard

[Message] zIndex配置不生效

Open pecliu opened this issue 2 years ago • 2 comments

tdesign-vue 版本

0.47.0

重现链接

No response

重现步骤

this.$message.error({
          content: '超过平均每个页面3M图片的限制,上传失败. 请优化活动使用的图片大小',
          placement: 'center',
          zIndex: 20000,
          duration: 0,
        });

期望结果

z-index设置为20000

实际结果

z-index依然为默认的5000

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

pecliu avatar Sep 14 '22 09:09 pecliu

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

github-actions[bot] avatar Sep 14 '22 09:09 github-actions[bot]

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

github-actions[bot] avatar Sep 14 '22 09:09 github-actions[bot]

你好 @pecliu, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

github-actions[bot] avatar Sep 28 '22 12:09 github-actions[bot]

codesandbox没有复现 暂时不知道出现原因

uyarn avatar Sep 28 '22 12:09 uyarn

https://codesandbox.io/s/tdesign-vue-demo-forked-j4c3xb?file=/src/demo.vue

首次进入是符合设置的值的。但是页面不关闭,直接修改代码,重新编译出来的ZIndex就还是首次编译的值。

同时如果刷新整体页面,zIndex又会更新成最新的

本地开发也是一样的表现,无法更新成新的

pecliu avatar Oct 04 '22 10:10 pecliu

https://codesandbox.io/s/tdesign-vue-demo-forked-j4c3xb?file=/src/demo.vue

首次进入是符合设置的值的。但是页面不关闭,直接修改代码,重新编译出来的ZIndex就还是首次编译的值。

同时如果刷新整体页面,zIndex又会更新成最新的

本地开发也是一样的表现,无法更新成新的

热更新的问题,codesanbox 编辑完保存一下重新编译就正常了。不是组件的 bug 哈

xixileng avatar Oct 18 '22 02:10 xixileng