feat: 新增全站历史统计功能

This commit is contained in:
陈淳
2024-02-27 13:43:56 +08:00
parent 5a2d9125d4
commit 6697649b97
7 changed files with 148 additions and 52 deletions

View File

@@ -2,7 +2,12 @@
import { ref } from "vue";
const props = defineProps(["items", "header", "text", "hideDivider", "height"]);
const emit = defineEmits(['onClickText'])
const height = ref(props.height + "px");
const onClickText=()=>{
emit('onClickText')
}
</script>
<template>
@@ -10,7 +15,7 @@ const height = ref(props.height + "px");
<template #header>
<div class="card-header">
<span>{{ props.header }}</span>
<el-link :underline="false" type="primary">{{ props.text }}</el-link>
<el-link :underline="false" type="primary" @click="onClickText">{{ props.text }}</el-link>
</div>
</template>