Files
dl-site/file_full_path
Becken f96a4a939c feat: 初始化项目结构和配置
- 添加 .editorconfig, .gitignore, .prettierrc.json 等配置文件
- 创建项目目录结构,包括 src, test 等文件夹
- 添加 Vue 3 和 Vite 相关依赖
- 配置 ESLint, Prettier 等代码规范工具
- 添加 README.md 文件,说明项目的基本信息和操作指南
2025-03-14 01:55:23 +08:00

40 lines
706 B
Plaintext

<template>
<el-card>
<img :src="imageSrc" style="width: 100%" />
<template #header>{{ cardName }}</template>
<div style="text-align: center; margin-top: 10px;">
<el-button type="primary" @click="handleDownload">下载</el-button>
</div>
</el-card>
</template>
<script>
export default {
name: 'Card',
props: {
imageSrc: {
type: String,
required: true
},
cardName: {
type: String,
required: true
},
downloadLink: {
type: String,
required: true
}
},
methods: {
handleDownload() {
window.location.href = this.downloadLink;
}
}
}
</script>
<style scoped>
.el-card {
margin-bottom: 20px;
}
</style>