Files
yudao-ui-admin-vben/apps/web-antdv-next/src/preferences.ts

76 lines
2.3 KiB
TypeScript

import { defineOverridesPreferences } from '@vben/preferences';
/**
* @description 项目配置文件
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
* !!! 更改配置后请清空缓存,否则可能不生效
*/
export const overridesPreferences = defineOverridesPreferences({
// overrides
app: {
/** 后端路由模式 */
accessMode: 'backend',
name: import.meta.env.VITE_APP_TITLE,
enableRefreshToken: true,
},
footer: {
/** 默认关闭 footer 页脚,因为有一定遮挡 */
enable: false,
fixed: false,
},
copyright: {
companyName: import.meta.env.VITE_APP_TITLE,
companySiteLink: 'https://gitee.com/yudaocode/yudao-ui-admin-vben',
},
// copyright: appCopyrightPreferences,
});
// export const preferencesExtension =
// definePreferencesExtension<WebAntdPreferencesExtension>({
// tabLabel: 'preferences.antd.tabLabel',
// title: 'preferences.antd.title',
// fields: [
// {
// component: 'switch',
// defaultValue: true,
// key: 'enableFormFullscreen',
// label: 'preferences.antd.fields.enableFormFullscreen.label',
// tip: 'preferences.antd.fields.enableFormFullscreen.tip',
// },
// {
// component: 'select',
// defaultValue: 'single',
// key: 'tenantMode',
// label: 'preferences.antd.fields.tenantMode.label',
// options: [
// {
// label: 'preferences.antd.fields.tenantMode.options.single.label',
// value: 'single',
// },
// {
// label: 'preferences.antd.fields.tenantMode.options.multi.label',
// value: 'multi',
// },
// ],
// },
// {
// component: 'number',
// componentProps: {
// max: 200,
// min: 10,
// step: 10,
// },
// defaultValue: 20,
// key: 'defaultTableSize',
// label: 'preferences.antd.fields.defaultTableSize.label',
// },
// {
// component: 'input',
// defaultValue: '',
// key: 'reportTitle',
// label: 'preferences.antd.fields.reportTitle.label',
// placeholder: 'preferences.antd.fields.reportTitle.placeholder',
// },
// ],
// });