mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
add store
This commit is contained in:
28
src/components/TopActions.vue
Normal file
28
src/components/TopActions.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="top-actions">
|
||||
<button class="apm-btn" @click="handleUpdate" title="启动 apm-update-tool">
|
||||
<i class="fas fa-sync-alt"></i> 软件更新
|
||||
</button>
|
||||
<button class="apm-btn" @click="handleList" title="启动 apm-installer --list">
|
||||
<i class="fas fa-download"></i> 应用管理
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineEmits } from 'vue';
|
||||
|
||||
const emit = defineEmits(['update', 'list']);
|
||||
|
||||
const handleUpdate = () => {
|
||||
emit('update');
|
||||
};
|
||||
|
||||
const handleList = () => {
|
||||
emit('list');
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 该组件样式已在全局样式中定义 */
|
||||
</style>
|
||||
Reference in New Issue
Block a user