Skip to content

Commit

Permalink
refactor: 系统UI
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Mar 2, 2022
1 parent 5244b27 commit 9f5692a
Show file tree
Hide file tree
Showing 77 changed files with 192 additions and 264 deletions.
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ meta: {
roles: ['admin', 'editor']
// Set the name of the route displayed in the sidebar and breadcrumbs
title: 'title'
// Icon to set this route, Remember to import svg into @/assets/svg-icons/icons
// Icon to set this route, Remember to import svg into @/icons/svg
icon: 'svg-name'
// The default is true. If it is set to false, it will not be displayed in breadcrumbs
breadcrumb: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v3-admin",
"version": "3.0.1",
"version": "3.0.2",
"homepage": "https://github.com/un-pany/v3-admin",
"scripts": {
"dev": "vue-cli-service serve",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
Binary file removed src/assets/layout/avatar.gif
Binary file not shown.
22 changes: 0 additions & 22 deletions src/assets/layout/avatar.svg

This file was deleted.

File renamed without changes
File renamed without changes
Binary file added src/assets/layout/discard3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/layout/logo-text-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/layout/logo-text-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/layout/logo-text-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/layout/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/layout/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/login/bg.png
Binary file not shown.
40 changes: 13 additions & 27 deletions src/components/screenfull/index.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,23 @@
<template>
<div @click="state.click">
<svg-icon :name="state.isFullscreen ? 'exit-fullscreen' : 'fullscreen'" font-size="20px" />
<div @click="click">
<el-tooltip effect="dark" content="全屏" placement="bottom">
<el-icon :size="20">
<full-screen />
</el-icon>
</el-tooltip>
</div>
</template>

<script lang="ts" setup>
import { onBeforeUnmount, onMounted, reactive } from 'vue'
import { FullScreen } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import screenfull from 'screenfull'
const state = reactive({
isFullscreen: false,
click: () => {
if (!screenfull.isEnabled) {
ElMessage.warning('您的浏览器无法工作')
return
}
screenfull.toggle()
},
change: () => {
if (screenfull.isEnabled) {
state.isFullscreen = screenfull.isFullscreen
}
const click = () => {
if (!screenfull.isEnabled) {
ElMessage.warning('您的浏览器无法工作')
return
}
})
onMounted(() => {
if (screenfull.isEnabled) {
screenfull.on('change', state.change)
}
})
onBeforeUnmount(() => {
if (screenfull.isEnabled) {
screenfull.off('change', state.change)
}
})
screenfull.toggle()
}
</script>
9 changes: 7 additions & 2 deletions src/components/theme-switch/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<el-dropdown trigger="click" @command="handleSetTheme">
<svg-icon name="theme" font-size="20px" />
<el-tooltip effect="dark" content="主题模式" placement="bottom">
<el-icon :size="20">
<magic-stick />
</el-icon>
</el-tooltip>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
Expand All @@ -17,8 +21,9 @@
</template>

<script lang="ts" setup>
import { store } from '@/store'
import { MagicStick } from '@element-plus/icons-vue'
import { computed } from 'vue'
import { store } from '@/store'
const themeList = computed(() => {
return store.state.app.themeList
Expand Down
1 change: 0 additions & 1 deletion src/icons/svg/chart.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/clipboard.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/component.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/documentation.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/drag.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/edit.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/education.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/email.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/example.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/excel.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/exit-fullscreen.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/eye-open.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/eye.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/form.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/icons/svg/fullscreen.svg
Diff not rendered.
1 change: 0 additions & 1 deletion src/icons/svg/guide.svg
Diff not rendered.
10 changes: 0 additions & 10 deletions src/icons/svg/hamburger.svg
Diff not rendered.
1 change: 0 additions & 1 deletion src/icons/svg/icon.svg
Diff not rendered.
Loading

0 comments on commit 9f5692a

Please sign in to comment.