Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
ded44389
Commit
ded44389
authored
Nov 13, 2020
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 小程序菜单管理
parent
f9ace883
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
24 deletions
+23
-24
index.js
src/pages/mobileConfig/index.js
+1
-1
LeftPart.jsx
src/pages/mobileConfig/menuconfig/LeftPart.jsx
+0
-0
LeftPart.less
src/pages/mobileConfig/menuconfig/LeftPart.less
+20
-19
MenuConfig.jsx
src/pages/mobileConfig/menuconfig/MenuConfig.jsx
+2
-4
No files found.
src/pages/mobileConfig/index.js
View file @
ded44389
...
...
@@ -7,7 +7,7 @@ import SiteConfig from './SiteConfig';
import
MenuConfig
from
'./menuconfig/MenuConfig'
;
const
{
TabPane
}
=
Tabs
;
const
MobileConfigPage
=
props
=>
{
const
[
activeKey
,
setActiveKey
]
=
useState
(
'
0
'
);
// tabs活动页
const
[
activeKey
,
setActiveKey
]
=
useState
(
'
1
'
);
// tabs活动页
const
[
miniTitle
,
setMiniTitle
]
=
useState
(
''
);
const
[
flag
,
setFlag
]
=
useState
(
1
);
useEffect
(()
=>
{
...
...
src/pages/mobileConfig/menuconfig/LeftPart.jsx
View file @
ded44389
This diff is collapsed.
Click to expand it.
src/pages/mobileConfig/menuconfig/LeftPart.less
View file @
ded44389
.contentContainer{
min-height: calc(100vh - 300px);
max-height: calc(100vh - 300px);
overflow-x: auto;
display: flex;
.menuContainer{
min-width: 300px;
border:1px solid #abaeb1;
min-height:calc(100vh - 300px);
//
min-height:calc(100vh - 300px);
overflow-y:auto;
.ant-tree-list{
padding: 10px;
height:calc(100vh - 3
0
0px);
height:calc(100vh - 3
3
0px);
.ant-tree-switcher{
line-height: 1;
color:#1890FF;
...
...
@@ -19,11 +20,23 @@
}
}
}
.
preview
Container{
.
edit
Container{
margin-left: 12px;
flex: 1;
padding: 16px;
float: left;
// background: white;
min-width: 500px;
border:1px solid #abaeb1;
.ant-table-pagination-right{
padding-right: 12px;
}
}
.previewContainer{
margin-left: 12px;
// flex: 1;
float: left;
min-width: 400px;
border:1px solid #abaeb1;
.ant-table-pagination-right{
padding-right: 12px;
}
...
...
@@ -53,16 +66,4 @@
.redText{
color: red;
cursor: pointer;
}
// .ant-modal-root{
// .ant-tree-switcher{
// line-height: 1;
// color:#1890FF;
// }
// }
// .menuContainer{
// width: 300px;
// padding: 10px;
// background: #1890FF;
// }
\ No newline at end of file
}
\ No newline at end of file
src/pages/mobileConfig/menuconfig/MenuConfig.jsx
View file @
ded44389
...
...
@@ -7,10 +7,8 @@ const MenuConfig = props => {
const
[
flag
,
setFlag
]
=
useState
(
1
);
return
(
<
ProCard
split=
"vertical"
>
<
ProCard
colSpan=
"400px"
>
<
LeftPart
/>
</
ProCard
>
<
ProCard
>
{
/* <AddForm /> */
}
</
ProCard
>
<
LeftPart
/>
{
/* <ProCard><AddForm /></ProCard> */
}
</
ProCard
>
);
};
...
...
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