|
@@ -0,0 +1,54 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item in projectMenu"
|
|
|
|
|
+ :key="item.label"
|
|
|
|
|
+ class="flex flex-col justify-center items-center h-full w-60px cursor-pointer mr-10px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img :src="item.img" class="w-35px h-35px" :alt="item.label" />
|
|
|
|
|
+ <div class="text-12px">{{ item.label }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script setup lang="ts">
|
|
|
|
|
+import { reactive } from 'vue'
|
|
|
|
|
+const projectMenu = reactive([
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '新建项目',
|
|
|
|
|
+ img: new URL('@/assets/project-add.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '打开项目',
|
|
|
|
|
+ img: new URL('@/assets/open-project.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '保存',
|
|
|
|
|
+ img: new URL('@/assets/project-save.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '生成代码',
|
|
|
|
|
+ img: new URL('@/assets/generate-code.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '编译',
|
|
|
|
|
+ img: new URL('@/assets/compile.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '运行',
|
|
|
|
|
+ img: new URL('@/assets/project-run.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '预览',
|
|
|
|
|
+ img: new URL('@/assets/preview.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '链接',
|
|
|
|
|
+ img: new URL('@/assets/project-link.svg', import.meta.url).href
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '下载',
|
|
|
|
|
+ img: new URL('@/assets/down.svg', import.meta.url).href
|
|
|
|
|
+ }
|
|
|
|
|
+])
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style lang="less" scoped></style>
|