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
6f658464
Commit
6f658464
authored
Aug 23, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '图标库搜索栏固定'
parent
cf4a4f32
Pipeline
#58370
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
index.less
src/components/Upload/index.less
+1
-2
index.tsx
src/components/Upload/index.tsx
+11
-9
No files found.
src/components/Upload/index.less
View file @
6f658464
...
...
@@ -57,12 +57,11 @@
linear-gradient(90deg, hsla(0, 0%, 100%, 0.3) 1px, transparent 0);
background-size: 75px 75px, 75px 75px, 15px 15px, 15px 15px;
}
.imgBox {
display: flex;
flex-wrap: wrap;
max-height: calc(100% - 10px);
overflow: auto
;
// overflow: scroll
;
.ant-collapse-content-box {
display: flex;
flex-wrap: wrap;
...
...
src/components/Upload/index.tsx
View file @
6f658464
...
...
@@ -456,8 +456,16 @@ class PicturesWall extends React.Component<PicturesWallType> {
onOk={this.handleModalOk}
className={styles.modal}
>
<Input
placeholder="搜索图库"
className={styles.search}
size="middle"
value={this.state.search}
style={{marginLeft:'
102
px
'}}
onChange={e => this.setState({search: e.target.value})}
allowClear/>
{/* <Search style ={{ width:'
200
px
',margin: '
10
px
0
10
px
100
px
'}} onSearch={onSearch} /> */}
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520
}}>
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520}}>
{imgBed.map((item, i) => {
if (item.moduleName == picType || item.moduleName == '
CityTemp
') {
const child = [...item.child] || [];
...
...
@@ -470,14 +478,8 @@ class PicturesWall extends React.Component<PicturesWallType> {
})
}
return (
<TabPane tab={tabNames[item.moduleName] || item.moduleName} key={item.moduleName}>
<Input
placeholder="搜索图库"
className={styles.search}
size="middle"
value={this.state.search}
onChange={e => this.setState({search: e.target.value})}
allowClear/>
<TabPane tab={tabNames[item.moduleName] || item.moduleName} key={item.moduleName} style={{overflow:'
hidden
'}}>
<div className={styles.imgBox}>
<Collapse
bordered
...
...
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