global.config.js 4.5 KB
Newer Older
wb-ct393452's avatar
wb-ct393452 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
// 全部的配置数据
const globalConfig = {
    //支持语言
    langs: [
        {key: 'zh_CN', name: '简体中文', alias: '简体'},
        {key: 'en_US', name: 'English', alias: 'English'}
    ],
    //调色板 颜色
    palettes: ["#f5222d", "#fa541c", "#fadb14", "#3eaf7c", "#13c2c2", "#1890ff", "#722ed1", "#eb2f96"],
    //tab出入动画效果
    animates: {
        preset: [
            //参考Animate.css 各种特效的css命名,default对应没有 direction的情况
            { name: "back", alias: "渐近", directions: ["Left", "Right"] },
            { name: "bounce", alias: "弹跳", directions: ["Left", "Right", "Default"] },
            {
                name: "fade",
                alias: "淡化",
                directions: ["Left", "LeftBig", "Right", "RightBig", "Default"],
            },
            { name: "lightSpeed", alias: "光速", directions: ["Left", "Right"] },
            { name: "slide", alias: "滑动", directions: ["Left", "Right"] },
        ],
    },
    //当前主色调 + 3个功能颜色 + 3个模式菜单颜色
    primary: {
        color: "#3eaf7c",
        warning: "#faad14",
        success: "#52c41a",
        error: "#f5222d",
        light: {
            menuColors: ["#000c17", "#001529", "#002140"],
        },
        dark: {
            menuColors: ["#000c17", "#001529", "#002140"],
        },
        night: {
            menuColors: ["#151515", "#1f1f1f", "#1e1e1e"],
        },
    },
    //主题
    theme: {
        mode: {
            DARK: "dark",
            LIGHT: "light",
            NIGHT: "night",
        },
        dark: {
            "layout-body-background": "#f0f2f5",
            "body-background": "#fff",
            "component-background": "#fff",
            "heading-color": "rgba(0, 0, 0, 0.85)",
            "text-color": "rgba(0, 0, 0, 0.65)",
            "text-color-inverse": "#fff",
            "text-color-secondary": "rgba(0, 0, 0, 0.45)",
            "shadow-color": "rgba(0, 0, 0, 0.15)",
            "border-color-split": "#f0f0f0",
            "background-color-light": "#fafafa",
            "background-color-base": "#f5f5f5",
            "table-selected-row-bg": "#fafafa",
            "table-expanded-row-bg": "#fbfbfb",
            "checkbox-check-color": "#fff",
            "disabled-color": "rgba(0, 0, 0, 0.25)",
            "menu-dark-color": "rgba(254, 254, 254, 0.65)",
            "menu-dark-highlight-color": "#fefefe",
            "menu-dark-arrow-color": "#fefefe",
            "btn-primary-color": "#fff",
        },
        light: {
            "layout-body-background": "#f0f2f5",
            "body-background": "#fff",
            "component-background": "#fff",
            "heading-color": "rgba(0, 0, 0, 0.85)",
            "text-color": "rgba(0, 0, 0, 0.65)",
            "text-color-inverse": "#fff",
            "text-color-secondary": "rgba(0, 0, 0, 0.45)",
            "shadow-color": "rgba(0, 0, 0, 0.15)",
            "border-color-split": "#f0f0f0",
            "background-color-light": "#fafafa",
            "background-color-base": "#f5f5f5",
            "table-selected-row-bg": "#fafafa",
            "table-expanded-row-bg": "#fbfbfb",
            "checkbox-check-color": "#fff",
            "disabled-color": "rgba(0, 0, 0, 0.25)",
            "menu-dark-color": "rgba(1, 1, 1, 0.65)",
            "menu-dark-highlight-color": "#fefefe",
            "menu-dark-arrow-color": "#fefefe",
            "btn-primary-color": "#fff",
        },
        night: {
            "layout-body-background": "#000",
            "body-background": "#141414",
            "component-background": "#141414",
            "heading-color": "rgba(255, 255, 255, 0.85)",
            "text-color": "rgba(255, 255, 255, 0.85)",
            "text-color-inverse": "#141414",
            "text-color-secondary": "rgba(255, 255, 255, 0.45)",
            "shadow-color": "rgba(255, 255, 255, 0.15)",
            "border-color-split": "#303030",
            "background-color-light": "#ffffff0a",
            "background-color-base": "#2a2a2a",
            "table-selected-row-bg": "#ffffff0a",
            "table-expanded-row-bg": "#ffffff0b",
            "checkbox-check-color": "#141414",
            "disabled-color": "rgba(255, 255, 255, 0.25)",
            "menu-dark-color": "rgba(254, 254, 254, 0.65)",
            "menu-dark-highlight-color": "#fefefe",
            "menu-dark-arrow-color": "#fefefe",
            "btn-primary-color": "#141414",
        },
    },
    layout: {
        SIDE: "side",
        HEAD: "head",
    },
};

module.exports = globalConfig;