ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

A dynamic style section will be generated in the header, and sometimes there will be two identical sections.

Open yurizhang opened this issue 2 years ago • 1 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.12

Environment

vue3.2

Reproduction link

https://www.antdv.com/components/icon

Steps to reproduce

F12打开调试器 展开header style段

What is expected?

为什么会产生这个动态的样式?有时会有2段。https://www.antdv.com/components/icon源文件里就能看到,

What is actually happening?

是ant-design/icons-vue": "^6.0.1", 版本的原因吗?


.anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.anticon > * { line-height: 1; }

.anticon svg { display: inline-block; }

.anticon::before { display: none; }

.anticon .anticon-icon { display: block; }

.anticon[tabindex] { cursor: pointer; }

.anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; }

@-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

@keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

image

yurizhang avatar Sep 15 '22 08:09 yurizhang

image 切换路由的时候就会产生2段,内容是一样的; 还好,最多就只出现2段~

yurizhang avatar Sep 15 '22 08:09 yurizhang

Hello @yurizhang. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch, fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @yurizhang,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支,务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

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

按理说只有一段才对,icon 图标动态写入一份

tangjinzhou avatar Sep 28 '22 07:09 tangjinzhou

但是最多也只会写入2段~~蛮奇怪的~

yurizhang avatar Sep 30 '22 07:09 yurizhang

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 30 '22 02:11 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 09 '23 00:12 github-actions[bot]