fix: 初始化

This commit is contained in:
jiaojinfeng
2023-05-30 19:27:03 +08:00
commit 28db653900
4436 changed files with 500218 additions and 0 deletions

View File

@ -0,0 +1,34 @@
import { message, notification } from '@crami/ui';
//对左侧菜单导航的全局配置
export const proMenuSetting = {
//默认宽度
sideWidth: 200,
};
//主题配置
export const themeSetting = {
//主题列表
themeList: [{ themeColor: '#3979F9', themeName: 'default' }],
};
//配置错误提示消息提示的时间限定crami
export const initDialog = () => {
const messageConfig = { duration: 3, maxCount: 3 };
const notificationConfig = { duration: 3, maxCount: 3 };
message.config(messageConfig);
notification.config(notificationConfig);
};
// 基础表单全局配置
export const hFormGlobalConfig = {
layout: 'horizontal', // horizontal vertical
// 配置 Form.Item 的 colon 的默认值 (只有在属性 layout 为 horizontal 时有效)
// 是否需要label后的冒号
colon: true,
// 隐藏所有表单项的必选标记
hideRequiredMark: false,
// label宽度label过长可使用自己的配置
labelCol: {
style: { width: '100px' },
},
// 文本对齐方式
labelAlign: 'right',
};