19 lines
360 B
TypeScript
Raw Normal View History

2022-07-18 19:06:37 +08:00
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
}
}