ruoyi-plus-vben5/packages/preference/src/index.ts
2024-05-19 21:20:42 +08:00

20 lines
438 B
TypeScript

import type { Preference } from '@vben-core/typings';
import { readonly } from 'vue';
import {
currentPreference,
resetPreference,
updatePreference,
} from './preference';
export { staticPreference } from './config';
// 只读偏好设置
const preference: Readonly<Preference> = readonly(currentPreference);
export * from './setup';
export { preference, resetPreference, updatePreference };
export * from './use-preference';