You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
760 B
24 lines
760 B
6 months ago
|
import { useAppProviderContext } from '@/components/Application'
|
||
|
|
||
|
// import { computed } from 'vue';
|
||
|
// import { lowerFirst } from 'lodash-es';
|
||
|
export function useDesign(scope: string) {
|
||
|
const values = useAppProviderContext()
|
||
|
// const $style = cssModule ? useCssModule() : {};
|
||
|
|
||
|
// const style: Record<string, string> = {};
|
||
|
// if (cssModule) {
|
||
|
// Object.keys($style).forEach((key) => {
|
||
|
// // const moduleCls = $style[key];
|
||
|
// const k = key.replace(new RegExp(`^${values.prefixCls}-?`, 'ig'), '');
|
||
|
// style[lowerFirst(k)] = $style[key];
|
||
|
// });
|
||
|
// }
|
||
|
return {
|
||
|
// prefixCls: computed(() => `${values.prefixCls}-${scope}`),
|
||
|
prefixCls: `${values.prefixCls}-${scope}`,
|
||
|
prefixVar: values.prefixCls,
|
||
|
// style,
|
||
|
}
|
||
|
}
|