fix: 初始化
This commit is contained in:
34
packages/icpx-log/src/settings/config.ts
Normal file
34
packages/icpx-log/src/settings/config.ts
Normal 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',
|
||||
};
|
Reference in New Issue
Block a user