Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
efb27aff
提交
efb27aff
authored
2月 26, 2021
作者:
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style(table): remove unless style
上级
fcee7d4e
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
96 行增加
和
93 行删除
+96
-93
imagemin.ts
build/vite/plugin/imagemin.ts
+2
-2
TableFooter.vue
src/components/Table/src/components/TableFooter.vue
+3
-0
useTableScroll.ts
src/components/Table/src/hooks/useTableScroll.ts
+1
-1
index.less
src/components/Table/src/style/index.less
+88
-88
public.less
src/design/public.less
+2
-2
没有找到文件。
build/vite/plugin/imagemin.ts
浏览文件 @
efb27aff
...
...
@@ -16,10 +16,10 @@ export function configImageminPlugin() {
quality
:
75
,
},
mozjpeg
:
{
quality
:
65
,
quality
:
8
,
},
pngquant
:
{
quality
:
[
0.
65
,
0.9
],
quality
:
[
0.
8
,
0.9
],
speed
:
4
,
},
svgo
:
{
...
...
src/components/Table/src/components/TableFooter.vue
浏览文件 @
efb27aff
...
...
@@ -75,12 +75,15 @@
Reflect
.
deleteProperty
(
columns
[
index
],
'customRender'
);
}
}
if
(
table
.
getRowSelection
()
&&
hasRowSummary
)
{
const
isFixed
=
columns
.
some
((
col
)
=>
col
.
fixed
===
'left'
);
columns
.
unshift
({
width
:
60
,
title
:
'selection'
,
key
:
'selectionKey'
,
align
:
'center'
,
...(
isFixed
?
{
fixed
:
'left'
}
:
{}),
customRender
:
({
record
})
=>
record
[
SUMMARY_ROW_KEY
],
});
}
...
...
src/components/Table/src/hooks/useTableScroll.ts
浏览文件 @
efb27aff
...
...
@@ -75,7 +75,7 @@ export function useTableScroll(
// Table height from bottom height-custom offset
const
paddingHeight
=
32
;
const
borderHeight
=
2
*
2
;
const
borderHeight
=
0
;
// Pager height
let
paginationHeight
=
2
;
if
(
!
isBoolean
(
pagination
))
{
...
...
src/components/Table/src/style/index.less
浏览文件 @
efb27aff
...
...
@@ -13,9 +13,9 @@
border-radius:
4
px
;
}
.
ant-table-wrapper
{
border-radius:
2
px
;
}
//
.
ant-table-wrapper
{
//
border-radius:
2
px
;
//
}
}
&-row__striped
{
...
...
@@ -37,7 +37,7 @@
.
ant-table-wrapper
{
padding:
8
px
;
background:
#fff;
border-radius:
4
px
;
border-radius:
2
px
;
.
ant-table-title
{
padding:
0
0
8
px
0
!important
;
...
...
@@ -50,9 +50,9 @@
//
.
ant-table
{
width:
100
%
;
overflow-x:
hidden
;
border:
none
;
//
width:
100
%
;
//
overflow-x:
hidden
;
//
border:
none
;
&-title
{
display:
flex
;
...
...
@@ -62,50 +62,50 @@
align-items:
center
;
}
.
ant-table-thead
>
tr
>
th,
.
ant-table-header
{
background:
#f1f3f4;
background-color:
#f1f3f4 !important;
}
//
.
ant-table-thead
>
tr
>
th,
//
.
ant-table-header
{
//
background:
#f1f3f4;
//
background-color:
#f1f3f4 !important;
//
}
.
ant-table-tbody
>
tr
.
ant-table-row-selected
td
{
background:
fade
(
@primary-color
,
8
%
)
!important
;
}
}
.
ant-table-bordered
.
ant-table-header
>
table,
.
ant-table-bordered
.
ant-table-body
>
table,
.
ant-table-bordered
.
ant-table-fixed-left
table,
.
ant-table-bordered
.
ant-table-fixed-right
table
{
border:
1
px
solid
@border-color
!important
;
}
//
.
ant-table-bordered
.
ant-table-header
>
table,
//
.
ant-table-bordered
.
ant-table-body
>
table,
//
.
ant-table-bordered
.
ant-table-fixed-left
table,
//
.
ant-table-bordered
.
ant-table-fixed-right
table
{
//
border:
1
px
solid
@border-color
!important
;
//
}
.
ant-table-thead
{
tr
{
border:
none
;
}
//
.
ant-table-thead
{
//
tr
{
//
border:
none
;
//
}
th
{
border:
none
;
}
}
//
th
{
//
border:
none
;
//
}
//
}
.
ant-table-bordered
.
ant-table-tbody
>
tr
>
td
{
border-bottom:
1
px
solid
@border-color
!important
;
//
.
ant-table-bordered
.
ant-table-tbody
>
tr
>
td
{
//
border-bottom:
1
px
solid
@border-color
!important
;
&:
last-child
{
border-right:
none
!important
;
}
}
//
&:
last-child
{
//
border-right:
none
!important
;
//
}
//
}
.
ant-table
.
ant-table-bordered
.
ant-table-footer,
.
ant-table
.
ant-table-bordered
.
ant-table-title
{
border:
1
px
solid
@border-color
!important
;
}
//
.
ant-table
.
ant-table-bordered
.
ant-table-footer,
//
.
ant-table
.
ant-table-bordered
.
ant-table-title
{
//
border:
1
px
solid
@border-color
!important
;
//
}
.
ant-table-bordered
.
ant-table-empty
.
ant-table-placeholder
{
border:
1
px
solid
@border-color
!important
;
}
//
.
ant-table-bordered
.
ant-table-empty
.
ant-table-placeholder
{
//
border:
1
px
solid
@border-color
!important
;
//
}
.
ant-table-tbody
>
tr
>
td,
.
ant-table-tbody
>
tr
>
th,
...
...
@@ -114,61 +114,61 @@
white-space:
pre
;
}
.
ant-table-row-cell-last
{
border-right:
none
!important
;
}
//
.
ant-table-row-cell-last
{
//
border-right:
none
!important
;
//
}
.
ant-table-bordered
.
ant-table-thead
>
tr
>
th,
.
ant-table-bordered
.
ant-table-tbody
>
tr
>
td
{
border-right:
1
px
solid
@border-color
!important
;
}
//
.
ant-table-bordered
.
ant-table-thead
>
tr
>
th,
//
.
ant-table-bordered
.
ant-table-tbody
>
tr
>
td
{
//
border-right:
1
px
solid
@border-color
!important
;
//
}
.
ant-pagination
{
margin:
10
px
0
0
0
;
}
.
ant-table-body
{
overflow-x:
auto
!important
;
overflow-y:
scroll
!important
;
}
.
ant-table-header
{
margin-bottom:
0
!important
;
overflow-x:
hidden
!important
;
overflow-y:
scroll
!important
;
}
.
ant-table-fixed-right
{
right:
-1
px
;
.
ant-table-header
{
border-left:
1
px
solid
@border-color
!important
;
.
ant-table-fixed
{
border-bottom:
none
;
.
ant-table-thead
th
{
background:
rgb
(
241
,
243
,
244
);
}
}
}
}
.
ant-table-fixed-left
{
.
ant-table-header
{
overflow-y:
hidden
!important
;
}
.
ant-table-fixed
{
border-bottom:
none
;
}
}
.
ant-table-bordered
.
ant-table-thead
>
tr:
not
(
:
last-child
)
>
th,
.
ant-table-tbody
>
tr
>
td
{
word-break:
break-word
;
border-color:
@border-color
!important
;
}
//
.
ant-table-body
{
//
overflow-x:
auto
!important
;
//
overflow-y:
scroll
!important
;
//
}
//
.
ant-table-header
{
//
margin-bottom:
0
!important
;
//
overflow-x:
hidden
!important
;
//
overflow-y:
scroll
!important
;
//
}
//
.
ant-table-fixed-right
{
//
right:
-1
px
;
//
.
ant-table-header
{
//
border-left:
1
px
solid
@border-color
!important
;
//
.
ant-table-fixed
{
//
border-bottom:
none
;
//
.
ant-table-thead
th
{
//
background:
rgb
(
241
,
243
,
244
);
//
}
//
}
//
}
//
}
//
.
ant-table-fixed-left
{
//
.
ant-table-header
{
//
overflow-y:
hidden
!important
;
//
}
//
.
ant-table-fixed
{
//
border-bottom:
none
;
//
}
//
}
//
.
ant-table-bordered
.
ant-table-thead
>
tr:
not
(
:
last-child
)
>
th,
//
.
ant-table-tbody
>
tr
>
td
{
//
word-break:
break-word
;
//
border-color:
@border-color
!important
;
//
}
.
ant-table-footer
{
padding:
0
;
...
...
src/design/public.less
浏览文件 @
efb27aff
...
...
@@ -8,8 +8,8 @@
// =================================
::-webkit-scrollbar {
width:
8
px;
height:
10
px;
width:
7
px;
height:
8
px;
}
// ::-webkit-scrollbar-track {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论