remove element-plus icons.

This commit is contained in:
2023-11-22 00:09:32 +08:00
parent aa7d46effc
commit 24f9e97962
33 changed files with 1339 additions and 988 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import { DocumentCopy, Select } from "@element-plus/icons-vue"
import copy from "copy-text-to-clipboard"
import Select from "~/shared/icons/Select.vue"
import Copy from "~/shared/icons/Copy.vue"
defineProps<{ value: string }>()
const [copied, toggle] = useToggle()
@@ -16,7 +17,7 @@ function handleClick(value: string) {
<n-tooltip trigger="hover">
<template #trigger>
<n-icon class="icon" @click="handleClick(value)">
<component :is="copied ? Select : DocumentCopy"></component>
<component :is="copied ? Select : Copy"></component>
</n-icon>
</template>
{{ copied ? "已复制" : "复制" }}