- 账号管理新增代理列显示和列设置下拉菜单 - 订阅管理新增列设置,支持用户列在邮箱/用户名间切换 - 列设置持久化到 localStorage - 统一列设置图标样式 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
724 B
Vue
21 lines
724 B
Vue
<template>
|
|
<div class="flex flex-wrap items-center gap-3">
|
|
<slot name="before"></slot>
|
|
<button @click="$emit('refresh')" :disabled="loading" class="btn btn-secondary">
|
|
<Icon name="refresh" size="md" :class="[loading ? 'animate-spin' : '']" />
|
|
</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>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useI18n } from 'vue-i18n'
|
|
import Icon from '@/components/icons/Icon.vue'
|
|
|
|
defineProps(['loading'])
|
|
defineEmits(['refresh', 'sync', 'create'])
|
|
|
|
const { t } = useI18n()
|
|
</script>
|