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
6290c082
Commit
6290c082
authored
Apr 27, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 'mobile配置图片上传交互逻辑优化'
parent
a0916f88
Pipeline
#71641
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
index.less
src/components/Upload/index.less
+7
-0
index.tsx
src/components/Upload/index.tsx
+14
-1
No files found.
src/components/Upload/index.less
View file @
6290c082
...
...
@@ -46,6 +46,13 @@
cursor: pointer;
border-bottom: 1px solid #2f54eb;
}
.picTic {
position: absolute;
left: 0;
bottom: -12px;
display: inline-block;
color: red;
}
.search {
width: 50%;
margin: 10px 20px;
...
...
src/components/Upload/index.tsx
View file @
6290c082
...
...
@@ -58,6 +58,8 @@ interface PicturesWallType {
search
:
string
,
actives
:
any
,
picType
:
any
,
picSize
:
any
,
picStr
:
any
,
}
class
PicturesWall
extends
React
.
Component
<
PicturesWallType
>
{
...
...
@@ -342,7 +344,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
actives,
curSelectedImg,
} = this.state;
console.log(imgBed,'
imgBedddddddddddddddddddddd
');
//
console.log(imgBed,'
imgBedddddddddddddddddddddd
');
const {
action = `${window.location.origin}${PUBLISH_SERVICE}/FileCenter/UploadSingleFile`,
...
...
@@ -354,6 +356,14 @@ class PicturesWall extends React.Component<PicturesWallType> {
picType,
} = this.props;
// 图片尺寸提示
const picSize = {
bootAnimation: '
1125
*
2436
',
loginPageImage: '
1132
*
1194
',
homePageImage: '
1125
*
617
'
}
const picStr = '
bootAnimation
,
loginPageImage
,
homePageImage
'
const uploadButton = (
<div>
<PlusOutlined />
...
...
@@ -445,6 +455,9 @@ class PicturesWall extends React.Component<PicturesWallType> {
<div className={styles.wallBtn} onClick={this.handleWallShow}>
从图片库选择
</div>
<div className={styles.picTic} style={{display: picStr.includes(picType) && !fileList.length?'
block
':'
none
'}}>
图片建议大小:{picSize[picType]}
</div>
<Modal
visible={previewVisible}
// title={previewTitle}
...
...
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