Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
820aa04a
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
820aa04a
编写于
10月 07, 2020
作者:
R
Rain120
提交者:
GitHub
10月 07, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: words spell error at the file of wave.tsx (#27013)
上级
f1c75c5e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
components/_util/wave.tsx
components/_util/wave.tsx
+9
-9
未找到文件。
components/_util/wave.tsx
浏览文件 @
820aa04a
...
...
@@ -4,7 +4,7 @@ import TransitionEvents from '@ant-design/css-animation/lib/Event';
import
raf
from
'
./raf
'
;
import
{
ConfigConsumer
,
ConfigConsumerProps
,
CSPConfig
,
ConfigContext
}
from
'
../config-provider
'
;
let
styleForP
es
udo
:
HTMLStyleElement
|
null
;
let
styleForP
se
udo
:
HTMLStyleElement
|
null
;
// Where el is the DOM element you'd like to test for visibility
function
isHidden
(
element
:
HTMLElement
)
{
...
...
@@ -74,8 +74,8 @@ export default class Wave extends React.Component<{ insertExtraNode?: boolean }>
extraNode
.
className
=
`
${
getPrefixCls
(
''
)}
-click-animating-node`
;
const
attributeName
=
this
.
getAttributeName
();
node
.
setAttribute
(
attributeName
,
'
true
'
);
// Not white or transparnt or grey
styleForP
esudo
=
styleForPes
udo
||
document
.
createElement
(
'
style
'
);
// Not white or transpar
e
nt or grey
styleForP
seudo
=
styleForPse
udo
||
document
.
createElement
(
'
style
'
);
if
(
waveColor
&&
waveColor
!==
'
#ffffff
'
&&
...
...
@@ -86,18 +86,18 @@ export default class Wave extends React.Component<{ insertExtraNode?: boolean }>
)
{
// Add nonce if CSP exist
if
(
this
.
csp
&&
this
.
csp
.
nonce
)
{
styleForP
es
udo
.
nonce
=
this
.
csp
.
nonce
;
styleForP
se
udo
.
nonce
=
this
.
csp
.
nonce
;
}
extraNode
.
style
.
borderColor
=
waveColor
;
styleForP
es
udo
.
innerHTML
=
`
styleForP
se
udo
.
innerHTML
=
`
[
${
getPrefixCls
(
''
)}
-click-animating-without-extra-node='true']::after, .
${
getPrefixCls
(
''
,
)}
-click-animating-node {
--antd-wave-shadow-color:
${
waveColor
}
;
}`
;
if
(
!
document
.
body
.
contains
(
styleForP
es
udo
))
{
document
.
body
.
appendChild
(
styleForP
es
udo
);
if
(
!
document
.
body
.
contains
(
styleForP
se
udo
))
{
document
.
body
.
appendChild
(
styleForP
se
udo
);
}
}
if
(
insertExtraNode
)
{
...
...
@@ -180,8 +180,8 @@ export default class Wave extends React.Component<{ insertExtraNode?: boolean }>
const
attributeName
=
this
.
getAttributeName
();
node
.
setAttribute
(
attributeName
,
'
false
'
);
// edge has bug on `removeAttribute` #14466
if
(
styleForP
es
udo
)
{
styleForP
es
udo
.
innerHTML
=
''
;
if
(
styleForP
se
udo
)
{
styleForP
se
udo
.
innerHTML
=
''
;
}
if
(
insertExtraNode
&&
this
.
extraNode
&&
node
.
contains
(
this
.
extraNode
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录