Browse Source

style(utils): 优化复制文本提示信息的样式

- 将复制文本提示信息中的 strong 标签改为 span 标签
- 添加 font-medium 类和颜色样式,使提示信息更加美观
WanGxC 6 months ago
parent
commit
60341f9c13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/useCopyText.ts

+ 1 - 1
src/utils/useCopyText.ts

@@ -12,7 +12,7 @@ export function handleCopy(copyText: string) {
     if (successful) {
       ElMessage.info({
         dangerouslyUseHTMLString: true,
-        message: `<strong>${ textarea.value }</strong> 已复制至剪切板`,
+        message: `<span class="font-medium" style="color: #1D2129;">${ textarea.value }</span> 已复制至剪切板`,
         plain: true,
         icon: 'DocumentCopy'
       });