style(admin): 统一列设置按钮位置到刷新按钮右侧
将订阅管理和账号管理页面的列设置按钮移动到刷新按钮右侧, 与用户管理页面保持一致的布局。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<button @click="$emit('refresh')" :disabled="loading" class="btn btn-secondary">
|
<button @click="$emit('refresh')" :disabled="loading" class="btn btn-secondary">
|
||||||
<Icon name="refresh" size="md" :class="[loading ? 'animate-spin' : '']" />
|
<Icon name="refresh" size="md" :class="[loading ? 'animate-spin' : '']" />
|
||||||
</button>
|
</button>
|
||||||
|
<slot name="after"></slot>
|
||||||
<button @click="$emit('sync')" class="btn btn-secondary">{{ t('admin.accounts.syncFromCrs') }}</button>
|
<button @click="$emit('sync')" class="btn btn-secondary">{{ t('admin.accounts.syncFromCrs') }}</button>
|
||||||
<button @click="$emit('create')" class="btn btn-primary">{{ t('admin.accounts.createAccount') }}</button>
|
<button @click="$emit('create')" class="btn btn-primary">{{ t('admin.accounts.createAccount') }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
@sync="showSync = true"
|
@sync="showSync = true"
|
||||||
@create="showCreate = true"
|
@create="showCreate = true"
|
||||||
>
|
>
|
||||||
<template #before>
|
<template #after>
|
||||||
<!-- Column Settings Dropdown -->
|
<!-- Column Settings Dropdown -->
|
||||||
<div class="relative" ref="columnDropdownRef">
|
<div class="relative" ref="columnDropdownRef">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -85,6 +85,14 @@
|
|||||||
|
|
||||||
<!-- Right: Actions -->
|
<!-- Right: Actions -->
|
||||||
<div class="ml-auto flex flex-wrap items-center justify-end gap-3">
|
<div class="ml-auto flex flex-wrap items-center justify-end gap-3">
|
||||||
|
<button
|
||||||
|
@click="loadSubscriptions"
|
||||||
|
:disabled="loading"
|
||||||
|
class="btn btn-secondary"
|
||||||
|
:title="t('common.refresh')"
|
||||||
|
>
|
||||||
|
<Icon name="refresh" size="md" :class="loading ? 'animate-spin' : ''" />
|
||||||
|
</button>
|
||||||
<!-- Column Settings Dropdown -->
|
<!-- Column Settings Dropdown -->
|
||||||
<div class="relative" ref="columnDropdownRef">
|
<div class="relative" ref="columnDropdownRef">
|
||||||
<button
|
<button
|
||||||
@@ -136,14 +144,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
|
||||||
@click="loadSubscriptions"
|
|
||||||
:disabled="loading"
|
|
||||||
class="btn btn-secondary"
|
|
||||||
:title="t('common.refresh')"
|
|
||||||
>
|
|
||||||
<Icon name="refresh" size="md" :class="loading ? 'animate-spin' : ''" />
|
|
||||||
</button>
|
|
||||||
<button @click="showAssignModal = true" class="btn btn-primary">
|
<button @click="showAssignModal = true" class="btn btn-primary">
|
||||||
<Icon name="plus" size="md" class="mr-2" />
|
<Icon name="plus" size="md" class="mr-2" />
|
||||||
{{ t('admin.subscriptions.assignSubscription') }}
|
{{ t('admin.subscriptions.assignSubscription') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user