UNPKG
@kisstar/rc-ui
Version:
latest (0.2.0)
0.2.0
UI component library built with React Hooks.
dongwanhong.gitee.io/rc-ui
kisstar/rc-ui
@kisstar/rc-ui
/
dist
/
components
/
config-provider
/
context.js
10 lines
(9 loc)
•
324 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
'react'
;
export
var
ConfigContext
=
React
.
createContext
({
getPrefixCls
:
function
(
suffixCls, customizePrefixCls
) {
if
(customizePrefixCls)
return
customizePrefixCls;
return
suffixCls ?
"ks-"
+ suffixCls :
'ks'
; }, });
export
var
ConfigConsumer
=
ConfigContext
.
Consumer
;