Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-platform
Commits
393080d4
Commit
393080d4
authored
Sep 02, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:样式修改
parent
ec327ef5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
14 deletions
+25
-14
MenuSlider.tsx
src/layouts/components/MenuSlider.tsx
+1
-1
MenuSlider.less
src/layouts/styles/MenuSlider.less
+16
-1
index.tsx
...Mall/components/Filter/components/CommodityType/index.tsx
+7
-5
index.tsx
...xMall/components/Filter/components/CommonlyUsed/index.tsx
+1
-7
No files found.
src/layouts/components/MenuSlider.tsx
View file @
393080d4
...
...
@@ -71,7 +71,7 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
return
<>
<
OuterSider
{
...
props
}
/>
<
Sider
theme=
"light"
collapsed=
{
props
.
collapseState
}
>
<
Sider
theme=
"light"
c
lassName=
"menu_sider"
c
ollapsed=
{
props
.
collapseState
}
>
<
div
className=
{
styles
.
logo
}
>
LOGOLOGOGOG
</
div
>
<
div
className=
{
styles
.
menuTitle
}
>
{
menuRouter
?.
name
}
...
...
src/layouts/styles/MenuSlider.less
View file @
393080d4
...
...
@@ -4,6 +4,21 @@
margin: 16px;
}
:global {
.menu_sider.ant-layout-sider-collapsed {
flex: 0 !important;
max-width: 0 !important;
min-width: 0 !important;
width: 0 !important;
}
}
.menu_sider {
position: relative;
}
.menuTitle {
height: 64px;
font-size: 14px;
...
...
@@ -25,7 +40,7 @@
}
.wrapperSilder {
background-color: #38414A!important;
background-color: #38414A
!important;
.menuBox {
padding: 0;
...
...
src/pages/lxMall/components/Filter/components/CommodityType/index.tsx
View file @
393080d4
...
...
@@ -44,11 +44,13 @@ const CommodityType: React.FC<CommodityTypePropsType> = (props) => {
result
=
checkValue
.
filter
(
item
=>
item
!==
selectKeys
[
0
])
}
setSelectKeys
(
result
)
onFilter
({
type
:
FILTER_TYPE
.
commodityType
,
key
:
result
[
0
],
title
:
getItemText
(
result
[
0
])
})
if
(
result
[
0
])
{
onFilter
({
type
:
FILTER_TYPE
.
commodityType
,
key
:
result
[
0
],
title
:
getItemText
(
result
[
0
])
})
}
}
const
getItemText
=
(
key
:
number
)
=>
{
...
...
src/pages/lxMall/components/Filter/components/CommonlyUsed/index.tsx
View file @
393080d4
...
...
@@ -6,16 +6,10 @@ import { useLocalStore, observer } from 'mobx-react'
import
{
store
}
from
'@/store'
import
isEmpty
from
'lodash/isEmpty'
import
styles
from
'./index.less'
import
{
message
}
from
'god'
interface
CommonlyUsedPropsType
{
}
const
CommonlyUsed
:
React
.
FC
<
CommonlyUsedPropsType
>
=
(
props
)
=>
{
const
CommonlyUsed
:
React
.
FC
=
()
=>
{
const
FilterStore
=
useLocalStore
(()
=>
store
.
FilterStore
)
const
{
commonlyUseFilter
,
deleteCommonlyUsedFilterItem
,
useCommonlyFilter
}
=
FilterStore
console
.
log
(
JSON
.
stringify
(
commonlyUseFilter
),
"commonlyUseFilter"
)
const
handleDeleteItem
=
(
id
:
number
)
=>
{
deleteCommonlyUsedFilterItem
(
id
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment