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
f1b67a30
Commit
f1b67a30
authored
Nov 25, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: webconfig
parent
95eacae1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
index.js
src/pages/webConfig/index.js
+7
-4
index.less
src/pages/webConfig/index.less
+8
-1
No files found.
src/pages/webConfig/index.js
View file @
f1b67a30
...
@@ -39,12 +39,15 @@ const WebConfigPage = props => {
...
@@ -39,12 +39,15 @@ const WebConfigPage = props => {
},
[]);
},
[]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
curWeb
)
return
;
const
title
=
curWeb
.
text
;
// eslint-disable-next-line no-unused-expressions
// eslint-disable-next-line no-unused-expressions
curWeb
&&
getWebconfig
(
curWeb
.
text
).
then
(
res
=>
{
getWebconfig
(
curWeb
.
text
).
then
(
res
=>
{
setConfigObj
(
res
);
setConfigObj
(
res
);
if
(
title
===
curWeb
.
text
)
{
setToEdit
(
res
);
setToEdit
(
res
);
});
}
});
},
[
curWeb
]);
},
[
curWeb
]);
const
renderTabPane
=
tabPaneItem
=>
(
const
renderTabPane
=
tabPaneItem
=>
(
...
...
src/pages/webConfig/index.less
View file @
f1b67a30
.webConfigContainer{
.webConfigContainer{
position: absolute;
width: 100%;
height: 100%;
.ant-tabs-content-holder>.ant-tabs-content.ant-tabs-content-top{
position: absolute;
width: 100%;
height: calc(100% - 40px);
}
}
}
.webConfigContainer > .ant-tabs-card .ant-tabs-content {
.webConfigContainer > .ant-tabs-card .ant-tabs-content {
...
...
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