Commit 6f658464 authored by 皮倩雯's avatar 皮倩雯

fix: '图标库搜索栏固定'

parent cf4a4f32
Pipeline #58370 passed with stages
......@@ -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;
......
......@@ -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:'102px'}}
onChange={e => this.setState({search: e.target.value})}
allowClear/>
{/* <Search style ={{ width:'200px',margin: '10px 0 10px 100px'}} 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment