Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
1d7608ee
提交
1d7608ee
authored
3月 20, 2021
作者:
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(table): ensure that the height calculation is correct close #395
上级
7c16c2fa
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
37 行增加
和
30 行删除
+37
-30
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+9
-0
index.ts
build/vite/plugin/index.ts
+2
-2
useTableScroll.ts
src/components/Table/src/hooks/useTableScroll.ts
+2
-2
index.less
src/components/Table/src/style/index.less
+1
-1
index.vue
src/layouts/page/index.vue
+23
-25
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
1d7608ee
## Wip
### ✨ Features
-
路由新增 hideChildrenInMenu 配置。用于隐藏子菜单
### ✨ Refactor
-
重构路由多层模式,解决嵌套 keepalive 执行多次问题
...
...
@@ -8,6 +12,11 @@
-
确保 CountDownInput 组件重置清空值
-
修复分割模式下在小屏幕中显示问题
-
修复表格高度计算问题
-
修复后台路由获取不到组件问题
-
修复 Modal 组件 loadingTip 配置不生效
-
修复后台权限指令不生效
-
确保 progress 进度条正确关闭
## 2.1.0 (2021-03-15)
...
...
build/vite/plugin/index.ts
浏览文件 @
1d7608ee
...
...
@@ -17,7 +17,7 @@ import { configThemePlugin } from './theme';
import
{
configImageminPlugin
}
from
'./imagemin'
;
import
{
configWindiCssPlugin
}
from
'./windicss'
;
import
{
configSvgIconsPlugin
}
from
'./svgSprite'
;
//
import { configHmrPlugin } from './hmr';
import
{
configHmrPlugin
}
from
'./hmr'
;
export
function
createVitePlugins
(
viteEnv
:
ViteEnv
,
isBuild
:
boolean
)
{
const
{
VITE_USE_IMAGEMIN
,
VITE_USE_MOCK
,
VITE_LEGACY
,
VITE_BUILD_COMPRESS
}
=
viteEnv
;
...
...
@@ -30,7 +30,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
];
// TODO
//
!isBuild && vitePlugins.push(configHmrPlugin());
!
isBuild
&&
vitePlugins
.
push
(
configHmrPlugin
());
// @vitejs/plugin-legacy
VITE_LEGACY
&&
isBuild
&&
vitePlugins
.
push
(
legacy
());
...
...
src/components/Table/src/hooks/useTableScroll.ts
浏览文件 @
1d7608ee
...
...
@@ -87,7 +87,6 @@ export function useTableScroll(
// Table height from bottom height-custom offset
const
paddingHeight
=
32
;
const
borderHeight
=
0
;
// Pager height
let
paginationHeight
=
2
;
if
(
!
isBoolean
(
pagination
))
{
...
...
@@ -99,6 +98,8 @@ export function useTableScroll(
// TODO First fix 24
paginationHeight
+=
24
;
}
}
else
{
paginationHeight
=
-
8
;
}
let
footerHeight
=
0
;
...
...
@@ -120,7 +121,6 @@ export function useTableScroll(
bottomIncludeBody
-
(
resizeHeightOffset
||
0
)
-
paddingHeight
-
borderHeight
-
paginationHeight
-
footerHeight
-
headerHeight
;
...
...
src/components/Table/src/style/index.less
浏览文件 @
1d7608ee
...
...
@@ -35,7 +35,7 @@
}
.
ant-table-wrapper
{
padding:
8
px
;
padding:
6
px
;
background:
#fff;
border-radius:
2
px
;
...
...
src/layouts/page/index.vue
浏览文件 @
1d7608ee
<
template
>
<div>
<RouterView>
<template
#
default=
"
{ Component, route }">
<transition
:name=
"
getTransitionName(
{
route,
openCache,
enableTransition: getEnableTransition,
cacheTabs: getCaches,
def: getBasicTransition,
})
"
mode="out-in"
appear
>
<keep-alive
v-if=
"openCache"
:include=
"getCaches"
>
<component
:is=
"Component"
:key=
"route.fullPath"
/>
</keep-alive>
<component
v-else
:is=
"Component"
:key=
"route.fullPath"
/>
</transition>
</
template
>
</RouterView>
<FrameLayout
v-if=
"getCanEmbedIFramePage"
/>
</div>
<RouterView>
<template
#
default=
"
{ Component, route }">
<transition
:name=
"
getTransitionName(
{
route,
openCache,
enableTransition: getEnableTransition,
cacheTabs: getCaches,
def: getBasicTransition,
})
"
mode="out-in"
appear
>
<keep-alive
v-if=
"openCache"
:include=
"getCaches"
>
<component
:is=
"Component"
:key=
"route.fullPath"
/>
</keep-alive>
<component
v-else
:is=
"Component"
:key=
"route.fullPath"
/>
</transition>
</
template
>
</RouterView>
<FrameLayout
v-if=
"getCanEmbedIFramePage"
/>
</template>
<
script
lang=
"ts"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论