68 lines
1.2 KiB
Vue
Raw Normal View History

2024-04-29 17:11:33 +08:00
<template>
2024-05-17 13:05:17 +08:00
<div class="home">
<!-- 常用功能 -->
<div>
<div class="shortcut">
<div>常用功能</div>
<div>
<span><icon-unordered-list /></span>
<span>自定义</span>
</div>
</div>
<a-divider :margin="10" />
<div>
<div v-for="item in shortcut" :key="item.id">{{ item.name }}</div>
</div>
</div>
</div>
2024-04-29 17:11:33 +08:00
</template>
2024-05-17 13:05:17 +08:00
<script setup lang="ts">
const shortcut = ref([
{
id: 1,
name: "数据查询",
icon: "home",
path: "/home"
},
{
id: 2,
name: "新增凭证",
icon: "dashboard",
path: "/home"
},
{
id: 3,
name: "余额查询",
icon: "component",
path: "/home"
},
{
id: 4,
name: "财务报表",
icon: "component",
path: "/home"
},
{
id: 5,
name: "更多",
icon: "form",
path: "/home"
}
]);
</script>
2024-04-29 17:11:33 +08:00
2024-05-03 18:05:14 +08:00
<style lang="scss" scoped>
.home {
2024-05-17 13:05:17 +08:00
height: 700px;
border-radius: $radius-box;
padding: $padding;
background: #fff;
}
.shortcut {
display: flex;
justify-content: space-between;
align-items: center;
2024-05-03 18:05:14 +08:00
}
</style>