Skip to content

Commit

Permalink
chore: README
Browse files Browse the repository at this point in the history
  • Loading branch information
cole committed Jul 28, 2024
1 parent 8c44116 commit 8975cf6
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 简介

基于 Vue3、Vite、Antd 的后台管理模版
开箱即用的 Vue3/Ant Design Vue 中后台管理解决方案

- 🏠 预览 [vue3-admin-pro](https://colewang.github.io/vue3-admin-pro/)
- 🔥 文档 [docs](https://colewang.github.io/admin-docs/)
Expand Down Expand Up @@ -65,4 +65,6 @@ npm run build

### 感谢

欢迎留言讨论,支持一个 star!这是作者持续维护的唯一动力
欢迎留言讨论,支持一个 star!

QQ交流群:779593934
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue3-admin-pro",
"version": "0.2.1",
"description": "基于 Vue3、Vite、Antd 的后台管理模版",
"description": "开箱即用的 Vue3/Ant Design Vue 中后台管理解决方案",
"repository": {
"type": "git",
"url": "https://github.com/ColeWang/vue3-admin-pro.git"
Expand Down
Binary file modified public/demo-table_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 modified public/demo-table_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 modified public/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/layout/compatible/sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export default defineComponent({
onOpenChange: onOpenChange
}

const logoDom = getPropsSlot(slots, props, 'logo')
const slotScope = { collapsed: collapsed }
const logoDom = getPropsSlot(slots, props, 'logo', slotScope)
const children = menus.map((item) => {
return createMenuItem(item, showTitle)
})
Expand Down
2 changes: 1 addition & 1 deletion src/layout/compatible/sidebar/style/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function genBaseStyle (token) {
height: sidebarLogoHeight,
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-start',
justifyContent: 'center',
},
[`${antCls}-menu-light`]: {
borderInlineEnd: 'none'
Expand Down
7 changes: 7 additions & 0 deletions src/layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,16 @@ export default defineComponent({
return () => {
const layoutSlots = {
sider: ({ collapsed }) => {
const logo = () => {
const style = { width: '32px', height: '32px' }
return (
<img src={'/logo.svg'} style={style} alt={'logo'}/>
)
}
return (
<Sidebar
theme={unref(sidebarTheme)}
logo={logo}
route={route}
menus={menus}
collapsed={collapsed}
Expand Down

0 comments on commit 8975cf6

Please sign in to comment.