增加标签栏显示

This commit is contained in:
2024-12-11 15:07:46 +08:00
parent d90aa86f3f
commit 72e3d1b756
2 changed files with 57 additions and 3 deletions

View File

@@ -1,12 +1,17 @@
<script setup>
import ProjectList from './components/ProjectList.vue'
import { ref } from 'vue'
// 生成模拟数据
const listData = Array.from({ length: 789 }, (_, i) => ({
id: i,
name: `project-${i + 1}`,
path: `/Users/lanyuanxiaoyao/Project/IdeaProjects/project-${i + 1}`,
tags: [
{ id: 1, name: 'Vue', color: '#42b883' },
{ id: 2, name: 'TypeScript', color: '#3178c6' },
...(i % 3 === 0 ? [{ id: 3, name: 'React', color: '#61dafb' }] : []),
...(i % 4 === 0 ? [{ id: 4, name: 'Node.js', color: '#339933' }] : []),
]
}))
// 自定义配置