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
135ca0d7
Commit
135ca0d7
authored
Jun 29, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update icon
parent
492e4bb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
IconFont.js
components/CustomIcon/IconFont.js
+1
-1
IconFont.ts
components/IconFont/IconFont.ts
+1
-1
Cell.tsx
components/apolloTable/component/Cell.tsx
+8
-3
index.tsx
...nts/apolloTable/component/base/detail/text-link/index.tsx
+2
-2
No files found.
components/CustomIcon/IconFont.js
View file @
135ca0d7
import
{
createFromIconfontCN
}
from
'@ant-design/icons'
;
const
IconFont
=
createFromIconfontCN
({
scriptUrl
:
'https://influencer-attachment.mttop.cn/influencer/v2/website/20200
524
/iconFont.js'
,
scriptUrl
:
'https://influencer-attachment.mttop.cn/influencer/v2/website/20200
629
/iconFont.js'
,
});
export
default
IconFont
;
components/IconFont/IconFont.ts
View file @
135ca0d7
import
{
createFromIconfontCN
}
from
'@ant-design/icons'
;
const
IconFont
=
createFromIconfontCN
({
scriptUrl
:
'https://influencer-attachment.mttop.cn/
/influencer/v2/website/20200613
/iconFont.js'
,
scriptUrl
:
'https://influencer-attachment.mttop.cn/
influencer/v2/website/20200629
/iconFont.js'
,
});
export
default
IconFont
;
components/apolloTable/component/Cell.tsx
View file @
135ca0d7
...
...
@@ -160,10 +160,15 @@ const Cell = (props: CellProps) => {
return
(
current
-
1
)
*
pageSize
+
rowIndex
+
1
;
};
const
getCheckedIndex
=
()
=>
{
if
(
!
rowSelection
)
{
return
-
1
;
}
const
{
selectedRows
}
=
rowSelection
;
const
index
=
selectedRows
.
findIndex
((
item
:
any
)
=>
{
return
item
.
id
===
record
.
id
;
});
const
index
=
selectedRows
&&
selectedRows
.
findIndex
((
item
:
any
)
=>
{
return
item
.
id
===
record
.
id
;
});
return
index
;
};
const
getCheckbox
=
()
=>
{
...
...
components/apolloTable/component/base/detail/text-link/index.tsx
View file @
135ca0d7
...
...
@@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from 'react';
import
{
Popover
}
from
'antd'
;
import
classNames
from
'classnames'
;
import
s
from
'./index.less'
;
import
extendIcon
from
'../../../../assets/extend.png
'
;
import
IconFont
from
'@/submodule/components/IconFont
'
;
export
const
ApolloTextLinkDetail
=
(
props
:
any
)
=>
{
const
{
value
,
origin
,
formatter
}
=
props
;
...
...
@@ -86,7 +86,7 @@ export const ApolloTextLinkDetail = (props: any) => {
}
>
<
div
className=
{
s
.
moreBtn
}
>
<
img
alt=
""
className=
{
s
.
extend
}
src=
{
extendIcon
}
/>
<
IconFont
type=
"iconzhankai1"
/>
</
div
>
</
Popover
>
)
}
...
...
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