first commit
This commit is contained in:
17
frontend/node_modules/antd/lib/config-provider/hooks/useCSSVarCls.js
generated
vendored
Normal file
17
frontend/node_modules/antd/lib/config-provider/hooks/useCSSVarCls.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _internal = require("../../theme/internal");
|
||||
/**
|
||||
* This hook is only for cssVar to add root className for components.
|
||||
* If root ClassName is needed, this hook could be refactored with `-root`
|
||||
* @param prefixCls
|
||||
*/
|
||||
const useCSSVarCls = prefixCls => {
|
||||
const [,,,, cssVar] = (0, _internal.useToken)();
|
||||
return cssVar ? `${prefixCls}-css-var` : '';
|
||||
};
|
||||
var _default = exports.default = useCSSVarCls;
|
||||
Reference in New Issue
Block a user