Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
88de82c4
提交
88de82c4
authored
10月 22, 2020
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix drawer autoHeight
上级
c0e4c9e5
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
36 行增加
和
26 行删除
+36
-26
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+7
-0
BasicDrawer.tsx
src/components/Drawer/src/BasicDrawer.tsx
+3
-3
index.less
src/components/Drawer/src/index.less
+3
-0
Logo.vue
src/layouts/Logo.vue
+2
-2
Axios.ts
src/utils/http/axios/Axios.ts
+20
-20
Drawer3.vue
src/views/demo/comp/drawer/Drawer3.vue
+1
-1
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
88de82c4
## Wip
### 🐛 Bug Fixes
-
修复抽屉组件自动高度及显示 footer 显示问题
# 2.0.0-rc.4 (2020-10-21)
# 2.0.0-rc.4 (2020-10-21)
### ✨ Features
### ✨ Features
...
@@ -24,6 +30,7 @@
...
@@ -24,6 +30,7 @@
-
修复预览命令不打包问题
-
修复预览命令不打包问题
-
修复表格 actionColOptions 参数不生效问题
-
修复表格 actionColOptions 参数不生效问题
-
修复表格刷新表单 loading 不生效问题
-
修复表格刷新表单 loading 不生效问题
-
修复带参界面刷新参数丢失问题
# 2.0.0-rc.3 (2020-10-19)
# 2.0.0-rc.3 (2020-10-19)
...
...
src/components/Drawer/src/BasicDrawer.tsx
浏览文件 @
88de82c4
...
@@ -109,7 +109,7 @@ export default defineComponent({
...
@@ -109,7 +109,7 @@ export default defineComponent({
if
(
showFooter
&&
footerHeight
)
{
if
(
showFooter
&&
footerHeight
)
{
return
isNumber
(
footerHeight
)
?
`
${
footerHeight
}
px`
:
`
${
footerHeight
.
replace
(
'px'
,
''
)}
px`
;
return
isNumber
(
footerHeight
)
?
`
${
footerHeight
}
px`
:
`
${
footerHeight
.
replace
(
'px'
,
''
)}
px`
;
}
}
return
0
;
return
`0px`
;
});
});
function
renderFooter
()
{
function
renderFooter
()
{
const
{
const
{
...
@@ -195,7 +195,6 @@ export default defineComponent({
...
@@ -195,7 +195,6 @@ export default defineComponent({
return
()
=>
{
return
()
=>
{
const
footerHeight
=
unref
(
getFooterHeight
);
const
footerHeight
=
unref
(
getFooterHeight
);
return
(
return
(
<
Drawer
<
Drawer
class=
{
prefixCls
}
class=
{
prefixCls
}
...
@@ -217,8 +216,9 @@ export default defineComponent({
...
@@ -217,8 +216,9 @@ export default defineComponent({
<
div
<
div
ref=
{
scrollRef
}
ref=
{
scrollRef
}
{
...
attrs
}
{
...
attrs
}
data
-
id=
"123"
style=
{
{
style=
{
{
height
:
`calc(100% - ${footerHeight}
px
)`
,
height
:
`calc(100% - ${footerHeight})`
,
overflow
:
'auto'
,
overflow
:
'auto'
,
padding
:
'16px'
,
padding
:
'16px'
,
paddingBottom
:
'30px'
,
paddingBottom
:
'30px'
,
...
...
src/components/Drawer/src/index.less
浏览文件 @
88de82c4
...
@@ -53,6 +53,9 @@
...
@@ -53,6 +53,9 @@
}
}
&__footer {
&__footer {
position: absolute;
bottom: 0;
width: 100%;
height: @footer-height;
height: @footer-height;
padding: 0 26px;
padding: 0 26px;
line-height: @footer-height;
line-height: @footer-height;
...
...
src/layouts/Logo.vue
浏览文件 @
88de82c4
<
template
>
<
template
>
<div
class=
"app-logo"
@
click=
"handleGoHome"
>
<div
class=
"app-logo"
@
click=
"handleGoHome"
>
<img
:src=
"logo"
/>
<img
:src=
"logo"
/>
<div
v-if=
"show"
class=
"logo-title ml-1 ellipsis"
>
{{
globSetting
.
title
}}
</div>
<div
v-if=
"show"
class=
"logo-title ml-1
mt-1
ellipsis"
>
{{
globSetting
.
title
}}
</div>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
.app-logo
{
.app-logo
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
//
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
src/utils/http/axios/Axios.ts
浏览文件 @
88de82c4
...
@@ -6,7 +6,7 @@ import { isFunction } from '/@/utils/is';
...
@@ -6,7 +6,7 @@ import { isFunction } from '/@/utils/is';
import
{
cloneDeep
}
from
'lodash-es'
;
import
{
cloneDeep
}
from
'lodash-es'
;
import
type
{
RequestOptions
,
CreateAxiosOptions
,
Result
}
from
'./types'
;
import
type
{
RequestOptions
,
CreateAxiosOptions
,
Result
}
from
'./types'
;
import
{
ContentTypeEnum
}
from
'/@/enums/httpEnum'
;
//
import { ContentTypeEnum } from '/@/enums/httpEnum';
import
{
errorResult
}
from
'./const'
;
import
{
errorResult
}
from
'./const'
;
export
*
from
'./axiosTransform'
;
export
*
from
'./axiosTransform'
;
...
@@ -107,25 +107,25 @@ export class VAxios {
...
@@ -107,25 +107,25 @@ export class VAxios {
this
.
axiosInstance
.
interceptors
.
response
.
use
(
undefined
,
responseInterceptorsCatch
);
this
.
axiosInstance
.
interceptors
.
response
.
use
(
undefined
,
responseInterceptorsCatch
);
}
}
/**
/
/ /
**
* @description: 文件上传
//
* @description: 文件上传
*/
//
*/
uploadFiles
(
config
:
AxiosRequestConfig
,
params
:
File
[])
{
//
uploadFiles(config: AxiosRequestConfig, params: File[]) {
const
formData
=
new
FormData
();
//
const formData = new FormData();
Object
.
keys
(
params
).
forEach
((
key
)
=>
{
//
Object.keys(params).forEach((key) => {
formData
.
append
(
key
,
params
[
key
as
any
]);
//
formData.append(key, params[key as any]);
});
//
});
return
this
.
request
({
//
return this.request({
...
config
,
//
...config,
method
:
'POST'
,
//
method: 'POST',
data
:
formData
,
//
data: formData,
headers
:
{
//
headers: {
'Content-type'
:
ContentTypeEnum
.
FORM_DATA
,
//
'Content-type': ContentTypeEnum.FORM_DATA,
},
//
},
});
//
});
}
//
}
/**
/**
* @description: 请求方法
* @description: 请求方法
...
...
src/views/demo/comp/drawer/Drawer3.vue
浏览文件 @
88de82c4
<
template
>
<
template
>
<BasicDrawer
v-bind=
"$attrs"
title=
"Modal Title"
width=
"50%"
showFooter
>
<BasicDrawer
v-bind=
"$attrs"
title=
"Modal Title"
width=
"50%"
showFooter
>
<p
class=
"h-20"
v-for=
"index in
2
0"
:key=
"index"
>
根据屏幕高度自适应
</p>
<p
class=
"h-20"
v-for=
"index in
4
0"
:key=
"index"
>
根据屏幕高度自适应
</p>
</BasicDrawer>
</BasicDrawer>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论