RecycleBin.vue
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<div class="recycle-bin-container">
<div class="recycle-bin-button" @click="openRecycleBin">
<el-icon style="color: var(--table-other-text); font-size: 16px">
<Delete />
</el-icon>
<span>{{ $t("KnowledgeBase.recycleBin") }}</span>
</div>
</div>
</template>
<script setup lang="ts">
import { Delete } from "@element-plus/icons-vue";
const emit = defineEmits<{
(e: "open-recycle-bin"): void;
}>();
const openRecycleBin = () => {
emit("open-recycle-bin");
};
</script>
<style scoped lang="scss">
.recycle-bin-container {
padding: 12px 16px 12px 6px;
border-top: 1px solid var(--color-border);
background: var(--color-card);
flex-shrink: 0;
}
.recycle-bin-button {
display: flex;
align-items: center;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
color: var(--color-text);
background: transparent;
border: 1px solid transparent;
width: 100%;
justify-content: flex-start;
gap: 8px;
span {
font-size: 14px;
}
}
</style>