Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
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
wisdom-components
Commits
2bdb602d
Commit
2bdb602d
authored
Apr 22, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update quotaselect
parent
d5841ce2
Pipeline
#26462
failed with stages
in 14 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
index.js
packages/ImageSelect/src/index.js
+4
-2
index.less
packages/ImageSelect/src/index.less
+7
-6
index.js
packages/QuotaSelect/src/index.js
+3
-1
No files found.
packages/ImageSelect/src/index.js
View file @
2bdb602d
...
@@ -50,7 +50,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
...
@@ -50,7 +50,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
const
renderImageList
=
(
data
=
[])
=>
{
const
renderImageList
=
(
data
=
[])
=>
{
return
(
return
(
<
Row
gutter
=
{[
0
,
24
]}
>
<
Row
gutter
=
{[
0
,
12
]}
>
{
!!
data
&&
{
!!
data
&&
data
.
map
((
item
,
index
)
=>
(
data
.
map
((
item
,
index
)
=>
(
<
Col
<
Col
...
@@ -93,6 +93,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
...
@@ -93,6 +93,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
<
/div
>
<
/div
>
)}
)}
<
/div
>
<
/div
>
{
visible
&&
(
<
Modal
<
Modal
width
=
{
width
}
width
=
{
width
}
centered
centered
...
@@ -111,7 +112,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
...
@@ -111,7 +112,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
<
/div
>
<
/div
>
}
}
footer
=
{
null
}
footer
=
{
null
}
visible
=
{
visibl
e
}
visible
=
{
tru
e
}
onCancel
=
{
handleCancel
}
onCancel
=
{
handleCancel
}
className
=
{
classNames
(
`
${
prefixCls
}
-modal`
)}
className
=
{
classNames
(
`
${
prefixCls
}
-modal`
)}
>
>
...
@@ -126,6 +127,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
...
@@ -126,6 +127,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
})}
})}
{
!
imgList
.
length
&&
<
Empty
/>
}
{
!
imgList
.
length
&&
<
Empty
/>
}
<
/Modal
>
<
/Modal
>
)}
<
/div
>
<
/div
>
);
);
};
};
...
...
packages/ImageSelect/src/index.less
View file @
2bdb602d
...
@@ -80,8 +80,15 @@
...
@@ -80,8 +80,15 @@
}
}
&-item-wrap {
&-item-wrap {
padding: 10px 0;
text-align: center;
text-align: center;
border: 1px solid transparent;
border: 1px solid transparent;
&.selected {
background: linear-gradient(0deg, #f1f4fb 0%, #ffffff 100%);
border: 1px solid #b8d6fb;
border-radius: 2px;
}
}
}
&-item-wrap:hover {
&-item-wrap:hover {
...
@@ -96,12 +103,6 @@
...
@@ -96,12 +103,6 @@
height: 40px;
height: 40px;
}
}
&.selected {
background: linear-gradient(0deg, #f1f4fb 0%, #ffffff 100%);
border: 1px solid #b8d6fb;
border-radius: 2px;
}
&-item-text {
&-item-text {
font-size: 12px;
font-size: 12px;
white-space: nowrap;
white-space: nowrap;
...
...
packages/QuotaSelect/src/index.js
View file @
2bdb602d
...
@@ -221,13 +221,14 @@ const QuotaSelect = ({
...
@@ -221,13 +221,14 @@ const QuotaSelect = ({
return
(
return
(
<
div
className
=
{
classNames
(
prefixCls
)}
>
<
div
className
=
{
classNames
(
prefixCls
)}
>
<
Button
{...
buttonProps
}
onClick
=
{
showModal
}
/
>
<
Button
{...
buttonProps
}
onClick
=
{
showModal
}
/
>
{
visible
&&
(
<
Modal
<
Modal
centered
centered
width
=
{
width
}
width
=
{
width
}
title
=
{
title
}
title
=
{
title
}
cancelText
=
{
cancelText
}
cancelText
=
{
cancelText
}
okText
=
{
okText
}
okText
=
{
okText
}
visible
=
{
visibl
e
}
visible
=
{
tru
e
}
onCancel
=
{
handleCancel
}
onCancel
=
{
handleCancel
}
onOk
=
{
onOk
}
onOk
=
{
onOk
}
className
=
{
classNames
(
`
${
prefixCls
}
-modal`
)}
className
=
{
classNames
(
`
${
prefixCls
}
-modal`
)}
...
@@ -312,6 +313,7 @@ const QuotaSelect = ({
...
@@ -312,6 +313,7 @@ const QuotaSelect = ({
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Modal
>
<
/Modal
>
)}
<
/div
>
<
/div
>
);
);
};
};
...
...
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