Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
f555136a
提交
f555136a
authored
5月 13, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
筛选区域样式开发
上级
6116b70a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
176 行增加
和
15 行删除
+176
-15
index.tsx
src/pages/mall/index.tsx
+144
-15
index.scss
src/style/index.scss
+32
-0
没有找到文件。
src/pages/mall/index.tsx
浏览文件 @
f555136a
import
React
,
{
useState
}
from
'react'
;
import
{
Button
,
Form
,
Input
,
Select
,
Cascader
}
from
'antd'
;
import
{
Button
,
Form
,
Input
,
Select
,
Cascader
,
Space
,
Tag
}
from
'antd'
;
const
{
Option
}
=
Select
;
...
...
@@ -45,45 +44,176 @@ const options: AddrOption[] = [
},
];
export
default
function
Mall
(){
const
onAddrChange
=
(
value
:
string
[])
=>
{
console
.
log
(
value
);
export
default
function
Mall
()
{
const
onProvinceChange
=
(
value
:
string
)
=>
{
console
.
log
(
'省'
,
value
);
};
const
onCityChange
=
(
value
:
string
)
=>
{
console
.
log
(
'市'
,
value
);
};
const
onMoreChange
=
(
value
:
string
)
=>
{
console
.
log
(
'更多'
,
value
);
};
const
onCloseTag
=
(
e
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
console
.
log
(
'删除'
,
e
);
};
return
(
<
div
className=
'page'
style=
{
{
paddingTop
:
'29px'
}
}
>
<
div
className=
'filter-wrap'
style=
{
{
marginBottom
:
'11px'
}
}
>
<
div
className=
'filter-wrap'
style=
{
{
marginBottom
:
'11px'
}
}
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
地域:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
40
}
>
<
Select
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
'选择省'
onChange=
{
onProvinceChange
}
options=
{
[
{
value
:
'jack'
,
label
:
'Jack'
},
{
value
:
'lucy'
,
label
:
'Lucy'
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
},
{
value
:
'disabled'
,
label
:
'Disabled'
,
disabled
:
true
},
]
}
/>
<
Select
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
'选择市'
onChange=
{
onCityChange
}
options=
{
[
{
value
:
'jack'
,
label
:
'Jack'
},
{
value
:
'lucy'
,
label
:
'Lucy'
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
},
{
value
:
'disabled'
,
label
:
'Disabled'
,
disabled
:
true
},
]
}
/>
</
Space
>
</
div
>
</
div
>
</
div
>
<
div
className=
'filter-wrap'
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
类目:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
40
}
>
<
Button
type=
'link'
>
不限
</
Button
>
<
Button
type=
'link'
>
无人机
</
Button
>
<
Button
type=
'link'
>
挂载
</
Button
>
<
Button
type=
'link'
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
'更多'
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
'jack'
,
label
:
'Jack'
},
{
value
:
'lucy'
,
label
:
'Lucy'
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
},
{
value
:
'disabled'
,
label
:
'Disabled'
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
品牌:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
40
}
>
<
Button
type=
'link'
>
不限
</
Button
>
<
Button
type=
'link'
>
无人机
</
Button
>
<
Button
type=
'link'
>
挂载
</
Button
>
<
Button
type=
'link'
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
'更多'
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
'jack'
,
label
:
'Jack'
},
{
value
:
'lucy'
,
label
:
'Lucy'
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
},
{
value
:
'disabled'
,
label
:
'Disabled'
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
部件:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
40
}
>
<
Button
type=
'link'
>
不限
</
Button
>
<
Button
type=
'link'
>
无人机
</
Button
>
<
Button
type=
'link'
>
挂载
</
Button
>
<
Button
type=
'link'
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
'更多'
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
'jack'
,
label
:
'Jack'
},
{
value
:
'lucy'
,
label
:
'Lucy'
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
},
{
value
:
'disabled'
,
label
:
'Disabled'
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
型号:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
40
}
>
<
Button
type=
'link'
>
不限
</
Button
>
<
Button
type=
'link'
>
无人机
</
Button
>
<
Button
type=
'link'
>
挂载
</
Button
>
<
Button
type=
'link'
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
'更多'
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
'jack'
,
label
:
'Jack'
},
{
value
:
'lucy'
,
label
:
'Lucy'
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
},
{
value
:
'disabled'
,
label
:
'Disabled'
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
成色:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
40
}
>
<
Button
type=
'link'
>
不限
</
Button
>
<
Button
type=
'link'
>
无人机
</
Button
>
<
Button
type=
'link'
>
挂载
</
Button
>
<
Button
type=
'link'
>
地面站
</
Button
>
</
Space
>
</
div
>
</
div
>
<
div
className=
'filter-item'
>
<
div
className=
'filter-item__title'
>
已选:
</
div
>
<
div
></
div
>
<
div
className=
'filter-item-main'
>
<
Space
size=
{
10
}
>
<
Tag
closable
onClose=
{
onCloseTag
}
>
无人机
</
Tag
>
<
Tag
closable
onClose=
{
onCloseTag
}
>
无人机
</
Tag
>
</
Space
>
</
div
>
</
div
>
</
div
>
</
div
>
);
}
\ No newline at end of file
}
src/style/index.scss
浏览文件 @
f555136a
...
...
@@ -38,5 +38,37 @@ body::-webkit-scrollbar {
color
:
#999999
;
line-height
:
20px
;
}
.filter-item-main
{
flex
:
1
;
display
:
flex
;
justify-content
:
space-between
;
}
.ant-select-selector
{
padding
:
0
6px
0
0
;
.ant-select-selection-item
,
.ant-select-selection-placeholder
{
font-size
:
16px
;
font-family
:
MicrosoftYaHei
;
color
:
#3e4149
;
}
}
.ant-select-arrow
{
color
:
#3e4149
;
}
.ant-btn-link
{
font-size
:
16px
;
font-family
:
MicrosoftYaHei
;
color
:
#3e4149
;
padding
:
0
;
}
}
}
.ant-tag-close-icon
{
font-size
:
10px
!
important
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论