We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8001437 commit 8b258deCopy full SHA for 8b258de
src/common/className.ts
@@ -1,4 +1,4 @@
1
-import { APP_PREFIX } from '@/common/const';
+import { APP_PREFIX } from 'mo/common/const';
2
3
/**
4
* This function help you prefix a css class name, default is molecule.
@@ -7,6 +7,6 @@ import { APP_PREFIX } from '@/common/const';
7
* @param name Default class name
8
* @param prefix The prefix of class name you want to append
9
*/
10
-export function prefixClaName(name: string, prefix: string = APP_PREFIX) {
+export function prefixClaName(name: string | Symbol, prefix: string | Symbol = APP_PREFIX ) {
11
return name ? `${prefix}-${name}` : '';
12
}
0 commit comments