@oceanbase/design 0.2.25 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design.min.js +1 -1
- package/es/_util/type.d.ts +4 -0
- package/es/_util/type.js +1 -0
- package/es/badge/index.d.ts +3 -4
- package/es/badge/index.js +7 -3
- package/es/button/index.d.ts +2 -4
- package/es/button/index.js +7 -5
- package/es/card/index.d.ts +2 -4
- package/es/card/index.js +7 -5
- package/es/config-provider/index.js +9 -11
- package/es/drawer/Drawer.d.ts +18 -0
- package/es/drawer/Drawer.js +69 -0
- package/es/drawer/index.d.ts +2 -0
- package/es/drawer/index.js +3 -1
- package/es/drawer/style/index.d.ts +9 -0
- package/es/drawer/style/index.js +31 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/es/modal/style/index.js +3 -2
- package/es/select/index.d.ts +8 -2
- package/es/select/index.js +6 -6
- package/es/spin/index.js +1 -0
- package/es/static-function/index.d.ts +1 -1
- package/es/static-function/index.js +2 -2
- package/es/table/index.d.ts +17 -12
- package/es/table/index.js +19 -16
- package/es/tag/index.d.ts +2 -4
- package/es/tag/index.js +7 -5
- package/es/theme/dark.d.ts +56 -0
- package/es/theme/dark.js +10 -0
- package/es/theme/default.d.ts +94 -72
- package/es/theme/default.js +95 -72
- package/es/theme/index.d.ts +8 -13
- package/es/theme/index.js +15 -20
- package/es/theme/style/compact.less +211 -186
- package/es/theme/style/dark.less +194 -169
- package/es/theme/style/default.less +208 -183
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +3 -2
- package/lib/_util/type.d.ts +4 -0
- package/lib/_util/type.js +17 -0
- package/lib/badge/index.d.ts +3 -4
- package/lib/badge/index.js +56 -51
- package/lib/button/index.d.ts +2 -4
- package/lib/button/index.js +15 -10
- package/lib/card/index.d.ts +2 -4
- package/lib/card/index.js +40 -34
- package/lib/config-provider/index.js +8 -15
- package/lib/drawer/Drawer.d.ts +18 -0
- package/lib/drawer/Drawer.js +85 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/index.js +19 -0
- package/lib/drawer/style/index.d.ts +9 -0
- package/lib/drawer/style/index.js +60 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -0
- package/lib/modal/style/index.js +3 -2
- package/lib/select/index.d.ts +8 -2
- package/lib/select/index.js +14 -10
- package/lib/spin/index.js +1 -0
- package/lib/static-function/index.d.ts +1 -1
- package/lib/static-function/index.js +1 -1
- package/lib/table/index.d.ts +17 -12
- package/lib/table/index.js +17 -14
- package/lib/tag/index.d.ts +2 -4
- package/lib/tag/index.js +25 -28
- package/lib/theme/dark.d.ts +56 -0
- package/lib/theme/dark.js +44 -0
- package/lib/theme/default.d.ts +94 -72
- package/lib/theme/default.js +94 -71
- package/lib/theme/index.d.ts +8 -13
- package/lib/theme/index.js +27 -21
- package/lib/theme/style/compact.less +211 -186
- package/lib/theme/style/dark.less +194 -169
- package/lib/theme/style/default.less +208 -183
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +83 -80
- package/package.json +6 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const darkTheme: {
|
|
2
|
+
token: {
|
|
3
|
+
colorPrimary: string;
|
|
4
|
+
colorSuccess: string;
|
|
5
|
+
colorWarning: string;
|
|
6
|
+
colorError: string;
|
|
7
|
+
colorInfo: string;
|
|
8
|
+
colorTextBase: string;
|
|
9
|
+
colorBgBase: string;
|
|
10
|
+
colorLink: string;
|
|
11
|
+
fontFamily: string;
|
|
12
|
+
fontFamilyCode: string;
|
|
13
|
+
fontSize: number;
|
|
14
|
+
lineWidth: number;
|
|
15
|
+
lineType: string;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
sizeUnit: number;
|
|
18
|
+
sizeStep: number;
|
|
19
|
+
sizePopupArrow: number;
|
|
20
|
+
controlHeight: number;
|
|
21
|
+
zIndexBase: number;
|
|
22
|
+
zIndexPopupBase: number;
|
|
23
|
+
opacityImage: number;
|
|
24
|
+
motionUnit: number;
|
|
25
|
+
motionBase: number;
|
|
26
|
+
motionEaseOutCirc: string;
|
|
27
|
+
motionEaseInOutCirc: string;
|
|
28
|
+
motionEaseInOut: string;
|
|
29
|
+
motionEaseOutBack: string;
|
|
30
|
+
motionEaseInBack: string;
|
|
31
|
+
motionEaseInQuint: string;
|
|
32
|
+
motionEaseOutQuint: string;
|
|
33
|
+
motionEaseOut: string;
|
|
34
|
+
wireframe: boolean;
|
|
35
|
+
motion: boolean;
|
|
36
|
+
blue: string;
|
|
37
|
+
purple: string;
|
|
38
|
+
cyan: string;
|
|
39
|
+
green: string;
|
|
40
|
+
magenta: string;
|
|
41
|
+
pink: string;
|
|
42
|
+
red: string;
|
|
43
|
+
orange: string;
|
|
44
|
+
yellow: string;
|
|
45
|
+
volcano: string;
|
|
46
|
+
geekblue: string;
|
|
47
|
+
lime: string;
|
|
48
|
+
gold: string;
|
|
49
|
+
};
|
|
50
|
+
components: {
|
|
51
|
+
InputNumber: {
|
|
52
|
+
handleVisible: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export default darkTheme;
|
package/es/theme/dark.js
ADDED
package/es/theme/default.d.ts
CHANGED
|
@@ -1,73 +1,95 @@
|
|
|
1
|
-
declare const
|
|
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
|
-
|
|
1
|
+
declare const defaultTheme: {
|
|
2
|
+
token: {
|
|
3
|
+
colorPrimaryBg: string;
|
|
4
|
+
colorPrimary: string;
|
|
5
|
+
colorPrimaryBgHover: string;
|
|
6
|
+
colorPrimaryBorder: string;
|
|
7
|
+
colorPrimaryBorderHover: string;
|
|
8
|
+
colorPrimaryHover: string;
|
|
9
|
+
colorPrimaryTextHover: string;
|
|
10
|
+
colorPrimaryText: string;
|
|
11
|
+
colorPrimaryTextActive: string;
|
|
12
|
+
colorSuccess: string;
|
|
13
|
+
colorSuccessBg: string;
|
|
14
|
+
colorSuccessBgHover: string;
|
|
15
|
+
colorSuccessBorder: string;
|
|
16
|
+
colorSuccessBorderHover: string;
|
|
17
|
+
colorSuccessHover: string;
|
|
18
|
+
colorSuccessActive: string;
|
|
19
|
+
colorSuccessTextHover: string;
|
|
20
|
+
colorSuccessText: string;
|
|
21
|
+
colorSuccessTextActive: string;
|
|
22
|
+
colorWarning: string;
|
|
23
|
+
colorWarningBg: string;
|
|
24
|
+
colorWarningBgHover: string;
|
|
25
|
+
colorWarningBorder: string;
|
|
26
|
+
colorWarningBorderHover: string;
|
|
27
|
+
colorWarningHover: string;
|
|
28
|
+
colorWarningActive: string;
|
|
29
|
+
colorWarningTextHover: string;
|
|
30
|
+
colorWarningText: string;
|
|
31
|
+
colorWarningTextActive: string;
|
|
32
|
+
colorErrorBg: string;
|
|
33
|
+
colorErrorBgHover: string;
|
|
34
|
+
colorErrorBorder: string;
|
|
35
|
+
colorErrorBorderHover: string;
|
|
36
|
+
colorErrorHover: string;
|
|
37
|
+
colorErrorActive: string;
|
|
38
|
+
colorErrorTextHover: string;
|
|
39
|
+
colorErrorText: string;
|
|
40
|
+
colorErrorTextActive: string;
|
|
41
|
+
colorError: string;
|
|
42
|
+
colorInfo: string;
|
|
43
|
+
colorInfoBg: string;
|
|
44
|
+
colorInfoBgHover: string;
|
|
45
|
+
colorInfoBorder: string;
|
|
46
|
+
colorInfoBorderHover: string;
|
|
47
|
+
colorInfoHover: string;
|
|
48
|
+
colorInfoActive: string;
|
|
49
|
+
colorInfoTextHover: string;
|
|
50
|
+
colorInfoText: string;
|
|
51
|
+
colorInfoTextActive: string;
|
|
52
|
+
colorTextBase: string;
|
|
53
|
+
colorBgBase: string;
|
|
54
|
+
colorText: string;
|
|
55
|
+
colorTextSecondary: string;
|
|
56
|
+
colorTextQuaternary: string;
|
|
57
|
+
colorTextTertiary: string;
|
|
58
|
+
colorBgContainer: string;
|
|
59
|
+
colorBgLayout: string;
|
|
60
|
+
colorBgSpotlight: string;
|
|
61
|
+
colorBgMask: string;
|
|
62
|
+
colorBorder: string;
|
|
63
|
+
colorBorderSecondary: string;
|
|
64
|
+
colorFillQuaternary: string;
|
|
65
|
+
colorFillTertiary: string;
|
|
66
|
+
colorFillSecondary: string;
|
|
67
|
+
colorFill: string;
|
|
68
|
+
boxShadowSecondary: string;
|
|
69
|
+
boxShadow: string;
|
|
70
|
+
borderRadius: number;
|
|
71
|
+
wireframe: boolean;
|
|
72
|
+
colorPrimaryActive: string;
|
|
73
|
+
};
|
|
74
|
+
components: {
|
|
75
|
+
Dropdown: {
|
|
76
|
+
colorError: string;
|
|
77
|
+
};
|
|
78
|
+
Button: {
|
|
79
|
+
borderRadius: number;
|
|
80
|
+
};
|
|
81
|
+
Segmented: {
|
|
82
|
+
itemColor: string;
|
|
83
|
+
itemHoverColor: string;
|
|
84
|
+
itemHoverBg: string;
|
|
85
|
+
};
|
|
86
|
+
Rate: {
|
|
87
|
+
colorFillContent: string;
|
|
88
|
+
colorText: string;
|
|
89
|
+
};
|
|
90
|
+
InputNumber: {
|
|
91
|
+
handleVisible: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
72
94
|
};
|
|
73
|
-
export default
|
|
95
|
+
export default defaultTheme;
|
package/es/theme/default.js
CHANGED
|
@@ -1,72 +1,95 @@
|
|
|
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
|
-
|
|
1
|
+
var defaultTheme = {
|
|
2
|
+
token: {
|
|
3
|
+
colorPrimaryBg: '#EAF1FF',
|
|
4
|
+
colorPrimary: '#006AFF',
|
|
5
|
+
colorPrimaryBgHover: '#EAF1FF',
|
|
6
|
+
colorPrimaryBorder: '#B3CCFF',
|
|
7
|
+
colorPrimaryBorderHover: '#5189FB',
|
|
8
|
+
colorPrimaryHover: '#5189FB',
|
|
9
|
+
colorPrimaryTextHover: '#5189FB',
|
|
10
|
+
colorPrimaryText: '#006AFF',
|
|
11
|
+
colorPrimaryTextActive: '#004CE6',
|
|
12
|
+
colorSuccess: '#0ac185',
|
|
13
|
+
colorSuccessBg: '#EEF8F5',
|
|
14
|
+
colorSuccessBgHover: '#B3E6D5',
|
|
15
|
+
colorSuccessBorder: '#B3E6D5',
|
|
16
|
+
colorSuccessBorderHover: '#4DCCA2',
|
|
17
|
+
colorSuccessHover: '#4DCCA2',
|
|
18
|
+
colorSuccessActive: '#00B378',
|
|
19
|
+
colorSuccessTextHover: '#4DCCA2',
|
|
20
|
+
colorSuccessText: '#0AC185',
|
|
21
|
+
colorSuccessTextActive: '#00B378',
|
|
22
|
+
colorWarning: '#ffac33',
|
|
23
|
+
colorWarningBg: '#FFF5E5',
|
|
24
|
+
colorWarningBgHover: '#FFD699',
|
|
25
|
+
colorWarningBorder: '#FFD699',
|
|
26
|
+
colorWarningBorderHover: '#FFC166',
|
|
27
|
+
colorWarningHover: '#FFC166',
|
|
28
|
+
colorWarningActive: '#FF9700',
|
|
29
|
+
colorWarningTextHover: '#FFC166',
|
|
30
|
+
colorWarningText: '#FFAC33',
|
|
31
|
+
colorWarningTextActive: '#FF9700',
|
|
32
|
+
colorErrorBg: '#FFEBEB',
|
|
33
|
+
colorErrorBgHover: '#FFB3B3',
|
|
34
|
+
colorErrorBorder: '#FFB3B3',
|
|
35
|
+
colorErrorBorderHover: '#FF8080',
|
|
36
|
+
colorErrorHover: '#FF8080',
|
|
37
|
+
colorErrorActive: '#EC1313',
|
|
38
|
+
colorErrorTextHover: '#FF8080',
|
|
39
|
+
colorErrorText: '#FF4B4B',
|
|
40
|
+
colorErrorTextActive: '#EC1313',
|
|
41
|
+
colorError: '#ff4b4b',
|
|
42
|
+
colorInfo: '#006aff',
|
|
43
|
+
colorInfoBg: '#EAF1FF',
|
|
44
|
+
colorInfoBgHover: '#EAF1FF',
|
|
45
|
+
colorInfoBorder: '#B3CCFF',
|
|
46
|
+
colorInfoBorderHover: '#5189FB',
|
|
47
|
+
colorInfoHover: '#5189FB',
|
|
48
|
+
colorInfoActive: '#004CE6',
|
|
49
|
+
colorInfoTextHover: '#5189FB',
|
|
50
|
+
colorInfoText: '#006AFF',
|
|
51
|
+
colorInfoTextActive: '#004CE6',
|
|
52
|
+
colorTextBase: '#132039',
|
|
53
|
+
colorBgBase: '#ffffff',
|
|
54
|
+
colorText: '#132039',
|
|
55
|
+
colorTextSecondary: '#5C6B8A',
|
|
56
|
+
colorTextQuaternary: '#ABB7CF',
|
|
57
|
+
colorTextTertiary: '#8592AD',
|
|
58
|
+
colorBgContainer: '#ffffff',
|
|
59
|
+
colorBgLayout: '#F8FAFE',
|
|
60
|
+
colorBgSpotlight: 'rgba(19, 32, 57, 0.8)',
|
|
61
|
+
colorBgMask: 'rgba(19, 32, 57, 0.6)',
|
|
62
|
+
colorBorder: '#CDD5E4',
|
|
63
|
+
colorBorderSecondary: '#E2E8F3',
|
|
64
|
+
colorFillQuaternary: '#F8FAFE',
|
|
65
|
+
colorFillTertiary: '#F8FAFE',
|
|
66
|
+
colorFillSecondary: '#F3F6FC',
|
|
67
|
+
colorFill: '#E2E8F3',
|
|
68
|
+
boxShadowSecondary: '0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)',
|
|
69
|
+
boxShadow: '0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02)',
|
|
70
|
+
borderRadius: 6,
|
|
71
|
+
wireframe: false,
|
|
72
|
+
colorPrimaryActive: '#004CE6'
|
|
73
|
+
},
|
|
74
|
+
components: {
|
|
75
|
+
Dropdown: {
|
|
76
|
+
colorError: '#FF4B4B'
|
|
77
|
+
},
|
|
78
|
+
Button: {
|
|
79
|
+
borderRadius: 6
|
|
80
|
+
},
|
|
81
|
+
Segmented: {
|
|
82
|
+
itemColor: '#5C6B8A',
|
|
83
|
+
itemHoverColor: '#132039',
|
|
84
|
+
itemHoverBg: '#ffffff'
|
|
85
|
+
},
|
|
86
|
+
Rate: {
|
|
87
|
+
colorFillContent: '#E2E8F3',
|
|
88
|
+
colorText: '#F20000'
|
|
89
|
+
},
|
|
90
|
+
InputNumber: {
|
|
91
|
+
handleVisible: true
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
export default defaultTheme;
|
package/es/theme/index.d.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
export * from 'antd/
|
|
2
|
-
export * from 'antd/
|
|
1
|
+
export * from 'antd/lib/theme/internal';
|
|
2
|
+
export * from 'antd/lib/theme';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
defaultSeed: {
|
|
5
5
|
colorPrimary: string;
|
|
6
|
-
colorInfo: string;
|
|
7
6
|
colorSuccess: string;
|
|
8
7
|
colorWarning: string;
|
|
9
8
|
colorError: string;
|
|
10
|
-
|
|
11
|
-
blue: string;
|
|
12
|
-
green: string;
|
|
13
|
-
yellow: string;
|
|
14
|
-
red: string;
|
|
9
|
+
colorInfo: string;
|
|
15
10
|
colorTextBase: string;
|
|
16
11
|
colorBgBase: string;
|
|
17
12
|
colorLink: string;
|
|
@@ -20,6 +15,7 @@ declare const _default: {
|
|
|
20
15
|
fontSize: number;
|
|
21
16
|
lineWidth: number;
|
|
22
17
|
lineType: string;
|
|
18
|
+
borderRadius: number;
|
|
23
19
|
sizeUnit: number;
|
|
24
20
|
sizeStep: number;
|
|
25
21
|
sizePopupArrow: number;
|
|
@@ -39,11 +35,15 @@ declare const _default: {
|
|
|
39
35
|
motionEaseOut: string;
|
|
40
36
|
wireframe: boolean;
|
|
41
37
|
motion: boolean;
|
|
38
|
+
blue: string;
|
|
42
39
|
purple: string;
|
|
43
40
|
cyan: string;
|
|
41
|
+
green: string;
|
|
44
42
|
magenta: string;
|
|
45
43
|
pink: string;
|
|
44
|
+
red: string;
|
|
46
45
|
orange: string;
|
|
46
|
+
yellow: string;
|
|
47
47
|
volcano: string;
|
|
48
48
|
geekblue: string;
|
|
49
49
|
lime: string;
|
|
@@ -56,11 +56,6 @@ declare const _default: {
|
|
|
56
56
|
};
|
|
57
57
|
hashed: boolean;
|
|
58
58
|
};
|
|
59
|
-
components: {
|
|
60
|
-
InputNumber: {
|
|
61
|
-
handleVisible: true;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
59
|
useToken: () => {
|
|
65
60
|
theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
|
|
66
61
|
token: import("antd").GlobalToken;
|
package/es/theme/index.js
CHANGED
|
@@ -5,31 +5,26 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { theme } from 'antd';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
red: '#ff4b4b'
|
|
8
|
+
import { pick } from 'lodash';
|
|
9
|
+
// umi 插件只能 import 支持 CommonJS 语法库和文件,因此需要使用 lib 产物
|
|
10
|
+
|
|
11
|
+
import defaultTheme from "./default";
|
|
12
|
+
export * from 'antd/lib/theme/internal';
|
|
13
|
+
export * from 'antd/lib/theme';
|
|
14
|
+
var seedTokenKeys = Object.keys(theme.defaultSeed);
|
|
15
|
+
var seedToken = _objectSpread(_objectSpread({}, pick(defaultTheme.token, seedTokenKeys)), {}, {
|
|
16
|
+
// some special seed token should set to ''
|
|
17
|
+
// ref: https://github.com/ant-design/ant-design/blob/master/components/theme/themes/seed.ts#L32
|
|
18
|
+
colorBgBase: '',
|
|
19
|
+
colorTextBase: '',
|
|
20
|
+
colorLink: ''
|
|
22
21
|
});
|
|
22
|
+
var defaultSeed = _objectSpread(_objectSpread({}, theme.defaultSeed), seedToken);
|
|
23
23
|
|
|
24
24
|
// should use reference assign instead of clone assign
|
|
25
25
|
var defaultConfig = theme.defaultConfig;
|
|
26
26
|
defaultConfig.token = defaultSeed;
|
|
27
27
|
export default _objectSpread(_objectSpread({}, theme), {}, {
|
|
28
28
|
defaultSeed: defaultSeed,
|
|
29
|
-
defaultConfig: defaultConfig
|
|
30
|
-
components: {
|
|
31
|
-
InputNumber: {
|
|
32
|
-
handleVisible: true
|
|
33
|
-
}
|
|
34
|
-
}
|
|
29
|
+
defaultConfig: defaultConfig
|
|
35
30
|
});
|