refactor(servers): 行操作移除删除按钮
删除改由批量栏「批量删除」执行,降低误删风险。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,3 +40,4 @@
|
||||
|
||||
- 行按钮改 `small` + `tonal` + 字重 600,恢复「一键登录」全文
|
||||
- 批量栏改 `flat` 实色按钮、分组标题加深,底卡用 surface 实底
|
||||
- 行操作移除「删除」;删除请用批量栏「批量删除」
|
||||
|
||||
@@ -48,16 +48,6 @@
|
||||
>
|
||||
编辑
|
||||
</v-btn>
|
||||
<v-btn
|
||||
size="small"
|
||||
variant="tonal"
|
||||
color="error"
|
||||
density="comfortable"
|
||||
class="server-row-actions__btn server-row-actions__btn--icon"
|
||||
icon="mdi-delete-outline"
|
||||
title="删除服务器"
|
||||
@click.stop="$emit('delete')"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -71,7 +61,6 @@ defineEmits<{
|
||||
'bt-login': []
|
||||
files: []
|
||||
edit: []
|
||||
delete: []
|
||||
}>()
|
||||
</script>
|
||||
|
||||
@@ -82,8 +71,4 @@ defineEmits<{
|
||||
letter-spacing: 0.01em;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.server-row-actions__btn--icon {
|
||||
min-width: 36px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -174,7 +174,6 @@
|
||||
@bt-login="$emit('bt-login', item)"
|
||||
@files="$emit('files', item)"
|
||||
@edit="$emit('edit', item)"
|
||||
@delete="$emit('delete', item)"
|
||||
/>
|
||||
</template>
|
||||
|
||||
@@ -241,7 +240,6 @@ const emit = defineEmits<{
|
||||
'bt-login': [item: ServerApiItem]
|
||||
files: [item: ServerApiItem]
|
||||
edit: [item: ServerApiItem]
|
||||
delete: [item: ServerApiItem]
|
||||
'edit-path': [item: ServerApiItem]
|
||||
'save-path': [serverId: number]
|
||||
'cancel-edit-path': []
|
||||
|
||||
@@ -7,5 +7,5 @@ export const SERVER_DATA_TABLE_HEADERS = [
|
||||
{ title: '目标路径', key: 'target_path', width: 200 },
|
||||
{ title: 'Agent', key: 'agent_version', width: 100 },
|
||||
{ title: '心跳', key: 'last_heartbeat', width: 120 },
|
||||
{ title: '操作', key: 'actions', width: 360, align: 'end' as const, sortable: false },
|
||||
{ title: '操作', key: 'actions', width: 330, align: 'end' as const, sortable: false },
|
||||
]
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
@bt-login="openBtLogin($event.id)"
|
||||
@files="openFiles"
|
||||
@edit="editServer"
|
||||
@delete="confirmDelete"
|
||||
@edit-path="startEditPath"
|
||||
@save-path="saveTargetPath"
|
||||
@cancel-edit-path="cancelEditPath"
|
||||
@@ -330,7 +329,6 @@
|
||||
@bt-login="openBtLogin(item.id)"
|
||||
@files="openFiles(item)"
|
||||
@edit="editServer(item)"
|
||||
@delete="confirmDelete(item)"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user