Skip to content

Commit 8b258de

Browse files
committed
feat: the parameter of prefixClaName supports Symbol
1 parent 8001437 commit 8b258de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/className.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { APP_PREFIX } from '@/common/const';
1+
import { APP_PREFIX } from 'mo/common/const';
22

33
/**
44
* This function help you prefix a css class name, default is molecule.
@@ -7,6 +7,6 @@ import { APP_PREFIX } from '@/common/const';
77
* @param name Default class name
88
* @param prefix The prefix of class name you want to append
99
*/
10-
export function prefixClaName(name: string, prefix: string = APP_PREFIX) {
10+
export function prefixClaName(name: string | Symbol, prefix: string | Symbol = APP_PREFIX ) {
1111
return name ? `${prefix}-${name}` : '';
1212
}

0 commit comments

Comments
 (0)