Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
feat: add control button group
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Dec 9, 2021
1 parent a25e914 commit 7a09078
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/views/interface/ThemeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</a-menu-item>
<a-menu-item :key="3" @click="handleOpenLocalUpdateModal(item)">
<a-icon style="margin-right:3px" type="file" />
从主题包更新
本地更新
</a-menu-item>
</a-menu>
</a-dropdown>
Expand Down
28 changes: 23 additions & 5 deletions src/views/interface/ThemeSetting.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
<template>
<page-view
:sub-title="theme.current ? theme.current.version : ''"
:title="theme.current ? theme.current.name : '无'"
affix
>
<page-view :sub-title="theme.current.version || '-'" :title="theme.current.name || '-'" affix>
<template slot="extra">
<a-dropdown>
<a-menu slot="overlay">
<a-menu-item key="1">
<a-icon type="cloud" />
在线更新
</a-menu-item>
<a-menu-item key="2">
<a-icon type="file" />
本地更新
</a-menu-item>
</a-menu>
<a-button icon="upload">
更新
<a-icon type="down" />
</a-button>
</a-dropdown>
<a-button :disabled="theme.current.activated" icon="delete" type="danger">
删除
</a-button>
</template>
<a-spin :spinning="theme.loading">
<div v-if="theme.configurations.length > 0" class="card-container">
<a-tabs defaultActiveKey="0" type="card">
Expand Down Expand Up @@ -109,6 +126,7 @@ import 'verte/dist/verte.css'
import { PageView } from '@/layouts'
// utils
import apiClient from '@/utils/api-client'
export default {
name: 'ThemeSetting',
components: {
Expand Down

0 comments on commit 7a09078

Please sign in to comment.