mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-06-24 17:32:01 +08:00
19 lines
360 B
TypeScript
19 lines
360 B
TypeScript
![]() |
import variables from '@/styles/variables.module.less'
|
||
|
|
||
|
export const useDesign = () => {
|
||
|
const lessVariables = variables
|
||
|
|
||
|
/**
|
||
|
* @param scope 类名
|
||
|
* @returns 返回空间名-类名
|
||
|
*/
|
||
|
const getPrefixCls = (scope: string) => {
|
||
|
return `${lessVariables.namespace}-${scope}`
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
variables: lessVariables,
|
||
|
getPrefixCls
|
||
|
}
|
||
|
}
|