Skip to content

Commit 995807b

Browse files
committed
feat: 优化复制的图标
1 parent d6c75b0 commit 995807b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/components/CopyButton.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const handleCopy = () => {
4141
<span class="label">{{ props.label }}</span>
4242
<code class="copy-text">{{ props.text }}</code>
4343
<button class="copy-btn" @click="handleCopy">
44-
{{ copied ? "✅ 已复制" : "📋 点击复制" }}
44+
{{ copied ? "✅" : "📋" }}
4545
</button>
4646
</div>
4747
</template>
@@ -51,6 +51,7 @@ const handleCopy = () => {
5151
display: flex;
5252
align-items: center;
5353
gap: 8px;
54+
5455
}
5556
5657
.label {

0 commit comments

Comments
 (0)