-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,389 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
|
||
- 新增 base64 文件流下载 | ||
- 优化上传组件及示例 | ||
- 新增可编辑行示例 | ||
- 新增个人页 | ||
- 新增表单页 | ||
|
||
### 🎫 Chores | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as AppFooter } from './src/index.vue'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<div class="app-footer" :style="{ width: getWidth }"> | ||
<div class="app-footer__left"> | ||
<slot name="left" /> | ||
</div> | ||
<div class="app-footer__right"> | ||
<slot name="right" /> | ||
</div> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent, computed, unref } from 'vue'; | ||
import { SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH } from '/@/enums/appEnum'; | ||
import { appStore } from '/@/store/modules/app'; | ||
import { menuStore } from '/@/store/modules/menu'; | ||
export default defineComponent({ | ||
name: 'AppFooter', | ||
setup() { | ||
const getMiniWidth = computed(() => { | ||
const { | ||
menuSetting: { collapsedShowTitle }, | ||
} = appStore.getProjectConfig; | ||
return collapsedShowTitle ? SIDE_BAR_SHOW_TIT_MINI_WIDTH : SIDE_BAR_MINI_WIDTH; | ||
}); | ||
const getWidth = computed(() => { | ||
const { getCollapsedState, getMenuWidthState } = menuStore; | ||
const width = getCollapsedState ? unref(getMiniWidth) : getMenuWidthState; | ||
return `calc(100% - ${width}px)`; | ||
}); | ||
return { getWidth }; | ||
}, | ||
}); | ||
</script> | ||
<style lang="less" scoped> | ||
.app-footer { | ||
position: fixed; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 99; | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
padding: 0 24px; | ||
line-height: 44px; | ||
background: #fff; | ||
border-top: 1px solid #f0f0f0; | ||
box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), | ||
0 -12px 48px 16px rgba(0, 0, 0, 0.03); | ||
transition: width 0.3s; | ||
&__left { | ||
flex: 1 1; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.