@@ -28,7 +28,7 @@ export default defineComponent({
28
28
} ,
29
29
setup ( props , { slots, expose } ) {
30
30
const instance = getCurrentInstance ( ) ;
31
- const { csp } = useConfigInject ( '' , props ) ;
31
+ const { csp, prefixCls } = useConfigInject ( '' , props ) ;
32
32
expose ( {
33
33
csp,
34
34
} ) ;
@@ -58,7 +58,7 @@ export default defineComponent({
58
58
} ;
59
59
const getAttributeName = ( ) => {
60
60
const { insertExtraNode } = props ;
61
- return insertExtraNode ? 'ant -click-animating' : 'ant -click-animating-without-extra-node' ;
61
+ return insertExtraNode ? ` ${ prefixCls . value } -click-animating` : ` ${ prefixCls . value } -click-animating-without-extra-node` ;
62
62
} ;
63
63
const onClick = ( node : HTMLElement , waveColor : string ) => {
64
64
const { insertExtraNode, disabled } = props ;
@@ -67,7 +67,7 @@ export default defineComponent({
67
67
}
68
68
69
69
extraNode = document . createElement ( 'div' ) ;
70
- extraNode . className = 'ant -click-animating-node' ;
70
+ extraNode . className = ` ${ prefixCls . value } -click-animating-node` ;
71
71
const attributeName = getAttributeName ( ) ;
72
72
node . removeAttribute ( attributeName ) ;
73
73
node . setAttribute ( attributeName , 'true' ) ;
@@ -87,7 +87,7 @@ export default defineComponent({
87
87
}
88
88
extraNode . style . borderColor = waveColor ;
89
89
styleForPesudo . innerHTML = `
90
- [ant -click-animating-without-extra-node='true']::after, .ant -click-animating-node {
90
+ [${ prefixCls . value } -click-animating-without-extra-node='true']::after, .${ prefixCls . value } -click-animating-node {
91
91
--antd-wave-shadow-color: ${ waveColor } ;
92
92
}` ;
93
93
if ( ! document . body . contains ( styleForPesudo ) ) {
0 commit comments