minishouyin/node_modules/@ant-design/cssinjs-utils/es/util/getCompVarPrefix.js
2025-11-12 11:35:57 +08:00

4 lines
251 B
JavaScript

var getCompVarPrefix = function getCompVarPrefix(component, prefix) {
return "".concat([prefix, component.replace(/([A-Z]+)([A-Z][a-z]+)/g, '$1-$2').replace(/([a-z])([A-Z])/g, '$1-$2')].filter(Boolean).join('-'));
};
export default getCompVarPrefix;