Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
849f15b2
提交
849f15b2
authored
6月 11, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正筛选组件样式
上级
5b4c06f4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
8 行删除
+16
-8
index.tsx
components/filter/compoents/typeInfo/index.tsx
+15
-8
index.module.scss
components/filter/index.module.scss
+1
-0
没有找到文件。
components/filter/compoents/typeInfo/index.tsx
浏览文件 @
849f15b2
...
@@ -23,19 +23,26 @@ export default function CategoryItem(props: Props) {
...
@@ -23,19 +23,26 @@ export default function CategoryItem(props: Props) {
})
})
}
}
const
showCount
=
14
;
//展示数量
return
(
return
(
<
div
className=
{
styles
.
filterItem
}
>
<
div
className=
{
styles
.
filterItem
}
>
<
div
className=
{
styles
.
filterItemTitle
}
>
{
props
.
typeName
}
:
</
div
>
<
div
className=
{
styles
.
filterItemTitle
}
>
{
props
.
typeName
}
:
</
div
>
<
div
<
div
className=
{
`${styles.filterItemMain} ${
className=
{
`${styles.filterItemMain} ${
data.length <=
10
&& styles.disabled
data.length <=
showCount
&& styles.disabled
}`
}
}`
}
>
>
<
Collapse
ghost
collapsible=
"icon"
expandIconPosition=
"end"
>
<
Collapse
ghost
collapsible=
"icon"
expandIconPosition=
"end"
style=
{
{
width
:
"100%"
}
}
>
<
Collapse
.
Panel
<
Collapse
.
Panel
header=
{
header=
{
<
Space
size=
{
40
}
>
<
Space
size=
{
[
40
,
0
]
}
>
{
data
.
slice
(
0
,
10
).
map
((
item
)
=>
{
{
data
.
slice
(
0
,
showCount
).
map
((
item
)
=>
{
return
(
return
(
<
Button
<
Button
type=
"link"
type=
"link"
...
@@ -44,14 +51,14 @@ export default function CategoryItem(props: Props) {
...
@@ -44,14 +51,14 @@ export default function CategoryItem(props: Props) {
>
>
{
item
.
name
}
{
item
.
name
}
</
Button
>
</
Button
>
)
)
;
})
}
})
}
</
Space
>
</
Space
>
}
}
key=
"1"
key=
"1"
>
>
<
Space
size=
{
40
}
>
<
Space
size=
{
40
}
>
{
data
.
slice
(
10
).
map
((
item
)
=>
{
{
data
.
slice
(
showCount
).
map
((
item
)
=>
{
return
(
return
(
<
Button
<
Button
type=
"link"
type=
"link"
...
@@ -60,12 +67,12 @@ export default function CategoryItem(props: Props) {
...
@@ -60,12 +67,12 @@ export default function CategoryItem(props: Props) {
>
>
{
item
.
name
}
{
item
.
name
}
</
Button
>
</
Button
>
)
)
;
})
}
})
}
</
Space
>
</
Space
>
</
Collapse
.
Panel
>
</
Collapse
.
Panel
>
</
Collapse
>
</
Collapse
>
</
div
>
</
div
>
</
div
>
</
div
>
)
)
;
}
}
components/filter/index.module.scss
浏览文件 @
849f15b2
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
overflow
:
hidden
;
&
.disabled
{
&
.disabled
{
:global
.ant-collapse-expand-icon
{
:global
.ant-collapse-expand-icon
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论