Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
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
web_component
submodule
Commits
c1601ee7
Commit
c1601ee7
authored
Jun 05, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update apolloTable upload
parent
8f76c90a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
6 deletions
+27
-6
index.less
components/apolloTable/component/base/detail/tag/index.less
+9
-1
index.tsx
components/apolloTable/component/base/detail/tag/index.tsx
+10
-2
index.tsx
...onents/apolloTable/component/base/detail/upload/index.tsx
+2
-1
styles.less
...ents/apolloTable/component/base/detail/upload/styles.less
+2
-0
index.less
components/apolloTable/component/base/edit/upload/index.less
+1
-0
index.tsx
components/apolloTable/component/base/edit/upload/index.tsx
+1
-1
preview.tsx
...nents/apolloTable/component/base/extra/upload/preview.tsx
+2
-1
No files found.
components/apolloTable/component/base/detail/tag/index.less
View file @
c1601ee7
...
...
@@ -42,6 +42,15 @@
}
}
}
.popContainer{
width: 200px;
:global(.ant-popover-inner-content){
padding: 0;
}
.popContent{
padding: @paddingGen;
}
}
.popItem {
border-radius: @borderRadius;
margin-bottom: @marginSm;
...
...
@@ -54,6 +63,5 @@
padding: 5px 10px;
line-height: 1;
font-size: 14px;
color: #2e67c5;
}
}
components/apolloTable/component/base/detail/tag/index.tsx
View file @
c1601ee7
...
...
@@ -56,10 +56,18 @@ export const Tags = (props: any) => {
{
dotVisible
&&
(
<
Popover
trigger=
"click"
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
}
}
placement=
"left"
overlay
Style=
{
{
width
:
'200px'
}
}
overlay
ClassName=
{
s
.
popContainer
}
content=
{
<
div
>
<
div
className=
{
s
.
popContent
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
}
}
>
{
value
.
map
((
item
,
index
)
=>
{
let
color
=
''
;
if
(
options
&&
Array
.
isArray
(
options
)
&&
options
.
length
>
0
)
{
...
...
components/apolloTable/component/base/detail/upload/index.tsx
View file @
c1601ee7
...
...
@@ -21,7 +21,8 @@ export const ApolloUploadDetail = (props: UploadProps) => {
};
});
}
const
onPreview
=
(
item
)
=>
{
const
onPreview
=
(
item
,
e
)
=>
{
e
.
stopPropagation
();
if
(
previewModel
&&
previewModel
.
current
&&
previewModel
.
current
.
onPreview
)
{
previewModel
.
current
.
onPreview
(
item
.
value
,
item
.
name
);
}
...
...
components/apolloTable/component/base/detail/upload/styles.less
View file @
c1601ee7
...
...
@@ -20,4 +20,6 @@
.img {
cursor: pointer;
width: 30px;
max-height: 30px;
}
components/apolloTable/component/base/edit/upload/index.less
View file @
c1601ee7
...
...
@@ -5,6 +5,7 @@
overflow: hidden;
display: flex;
align-items: center;
border: 1px solid @primaryColor;
.add {
cursor: pointer;
font-size: @textFontGen;
...
...
components/apolloTable/component/base/edit/upload/index.tsx
View file @
c1601ee7
...
...
@@ -71,7 +71,7 @@ export const ApolloUpload = (props: ApolloUploadProps) => {
})
}
<
Modal
visible=
{
visible
}
title=
"文件上传"
onOk=
{
onOk
}
onCancel=
{
onCancel
}
>
<
div
className=
{
s
.
uploadContainer
}
>
<
Upload
{
...
selfProps
}
value=
{
value
}
onChange=
{
changeValue
}
/>
<
Upload
{
...
selfProps
}
value=
{
props
.
value
}
onChange=
{
changeValue
}
/>
</
div
>
</
Modal
>
</
div
>
...
...
components/apolloTable/component/base/extra/upload/preview.tsx
View file @
c1601ee7
...
...
@@ -24,7 +24,8 @@ export default class uploadDetail extends React.Component {
}
};
handleCancel
=
()
=>
{
handleCancel
=
(
e
)
=>
{
e
.
stopPropagation
();
this
.
setState
({
showDialog
:
false
});
};
...
...
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