nsc-react-component 1.0.24 → 1.1.0

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.
Files changed (120) hide show
  1. package/lib/Interface.d.ts +4 -4
  2. package/lib/button/index.d.ts +27 -27
  3. package/lib/button/index.js +5 -5
  4. package/lib/button/index.less +371 -371
  5. package/lib/cascader/index.d.ts +27 -27
  6. package/lib/cascader/index.js +8 -8
  7. package/lib/chart/index.d.ts +21 -0
  8. package/lib/chart/index.js +169 -0
  9. package/lib/checkbox/CheckboxGroup.d.ts +22 -22
  10. package/lib/checkbox/CheckboxGroup.js +8 -8
  11. package/lib/checkbox/index.d.ts +8 -8
  12. package/lib/checkbox/index.js +8 -8
  13. package/lib/common/BodyRow/index.d.ts +26 -26
  14. package/lib/common/Icon.d.ts +14 -14
  15. package/lib/common/IconFont.d.ts +4 -4
  16. package/lib/common/NoAuthority.d.ts +4 -4
  17. package/lib/common/NoAuthority.js +1 -1
  18. package/lib/common/NoData.d.ts +4 -4
  19. package/lib/common/NoData.js +1 -1
  20. package/lib/common/NoData.less +13 -13
  21. package/lib/common/NoMessage.d.ts +4 -4
  22. package/lib/common/NoMessage.js +1 -1
  23. package/lib/common/NoNetWork.d.ts +4 -4
  24. package/lib/common/NoNetWork.js +1 -1
  25. package/lib/common/Page404.d.ts +4 -4
  26. package/lib/common/Page404.js +1 -1
  27. package/lib/common/PageRequest.d.ts +45 -45
  28. package/lib/common/TreePanel.d.ts +74 -74
  29. package/lib/common/withZhLocale.d.ts +3 -3
  30. package/lib/config.d.ts +20 -20
  31. package/lib/datepick/Rangepicker.d.ts +4 -4
  32. package/lib/datepick/Rangepicker.js +11 -11
  33. package/lib/datepick/index.d.ts +3 -3
  34. package/lib/datepick/index.js +8 -8
  35. package/lib/datepick/index.less +27 -27
  36. package/lib/form/Form.d.ts +47 -47
  37. package/lib/form/Form.js +8 -8
  38. package/lib/form/filed/Cascader.d.ts +6 -6
  39. package/lib/form/filed/Cascader.js +8 -8
  40. package/lib/form/filed/Checkbox.d.ts +6 -6
  41. package/lib/form/filed/Checkbox.js +8 -8
  42. package/lib/form/filed/DatePicker.d.ts +6 -6
  43. package/lib/form/filed/DatePicker.js +8 -8
  44. package/lib/form/filed/FormItem.d.ts +11 -11
  45. package/lib/form/filed/FormItem.js +8 -8
  46. package/lib/form/filed/Input.d.ts +7 -6
  47. package/lib/form/filed/Input.js +14 -11
  48. package/lib/form/filed/InputEamil.d.ts +6 -6
  49. package/lib/form/filed/InputEamil.js +8 -8
  50. package/lib/form/filed/InputNumber.d.ts +6 -6
  51. package/lib/form/filed/InputNumber.js +8 -8
  52. package/lib/form/filed/InputPassword.d.ts +6 -6
  53. package/lib/form/filed/InputPassword.js +8 -8
  54. package/lib/form/filed/Item.d.ts +17 -21
  55. package/lib/form/filed/Item.js +43 -16
  56. package/lib/form/filed/Radio.d.ts +6 -6
  57. package/lib/form/filed/Radio.js +8 -8
  58. package/lib/form/filed/RangerPicker.d.ts +6 -6
  59. package/lib/form/filed/RangerPicker.js +8 -8
  60. package/lib/form/filed/Rate.d.ts +6 -6
  61. package/lib/form/filed/Rate.js +8 -8
  62. package/lib/form/filed/Select.d.ts +6 -6
  63. package/lib/form/filed/Select.js +8 -8
  64. package/lib/form/filed/Slider.d.ts +6 -6
  65. package/lib/form/filed/Slider.js +8 -8
  66. package/lib/form/filed/Switch.d.ts +6 -6
  67. package/lib/form/filed/Switch.js +8 -8
  68. package/lib/form/filed/TagSelect.d.ts +6 -6
  69. package/lib/form/filed/TagSelect.js +1 -1
  70. package/lib/form/filed/TextArea.d.ts +6 -6
  71. package/lib/form/filed/TextArea.js +8 -8
  72. package/lib/form/filed/Upload.d.ts +6 -6
  73. package/lib/form/filed/Upload.js +8 -8
  74. package/lib/form/index.d.ts +41 -41
  75. package/lib/form/index.js +1 -1
  76. package/lib/index.d.ts +29 -26
  77. package/lib/index.js +11 -8
  78. package/lib/input/Email.d.ts +16 -16
  79. package/lib/input/Email.js +8 -8
  80. package/lib/input/Number.d.ts +13 -13
  81. package/lib/input/Number.js +8 -8
  82. package/lib/input/Password.d.ts +16 -16
  83. package/lib/input/Password.js +8 -8
  84. package/lib/input/Search.d.ts +16 -16
  85. package/lib/input/Search.js +1 -1
  86. package/lib/input/TextArea.d.ts +16 -16
  87. package/lib/input/TextArea.js +8 -8
  88. package/lib/input/index.d.ts +33 -33
  89. package/lib/input/index.js +19 -22
  90. package/lib/input/index.less +18 -18
  91. package/lib/menu/index.d.ts +28 -28
  92. package/lib/menu/index.js +8 -8
  93. package/lib/modal/index.d.ts +31 -0
  94. package/lib/modal/index.js +186 -0
  95. package/lib/pagecomponent/index.d.ts +3 -0
  96. package/lib/pagecomponent/index.js +36 -0
  97. package/lib/radio/RadioGroup.d.ts +25 -25
  98. package/lib/radio/RadioGroup.js +8 -8
  99. package/lib/radio/index.d.ts +11 -11
  100. package/lib/radio/index.js +8 -8
  101. package/lib/select/index.d.ts +29 -29
  102. package/lib/select/index.js +1 -1
  103. package/lib/select/index.less +21 -21
  104. package/lib/table/index.d.ts +87 -87
  105. package/lib/table/index.js +17 -17
  106. package/lib/tabs/Tabpane.d.ts +13 -13
  107. package/lib/tabs/Tabpane.js +8 -8
  108. package/lib/tabs/index.d.ts +18 -18
  109. package/lib/tabs/index.js +8 -8
  110. package/lib/tagSelect/TagSelect.d.ts +51 -51
  111. package/lib/tagSelect/TagSelect.js +8 -8
  112. package/lib/tagSelect/index.d.ts +23 -23
  113. package/lib/tagSelect/index.js +1 -1
  114. package/lib/tagSelect/index.less +33 -33
  115. package/lib/tree/TreeSearch.d.ts +42 -42
  116. package/lib/tree/index.d.ts +62 -62
  117. package/lib/treeUtils.d.ts +70 -70
  118. package/lib/utils.d.ts +16 -12
  119. package/lib/utils.js +20 -9
  120. package/package.json +73 -72
@@ -1,371 +1,371 @@
1
- @title-font-size: 24px; //标题字体大小
2
-
3
- @page-title-font-size: 20px; //页面标题字体大小
4
-
5
- @model-title-font-size: 18px; //模块标题大小
6
-
7
- @base-font-size: 16px; //主要字体大小
8
-
9
- @tip-font-size: 14px; //副文本大小
10
-
11
- @font-title-color: #333333; //一级标题字体颜色
12
-
13
- @font-base-color: #666666; //主要字体颜色
14
-
15
- @font-sub-color: #999999; //辅助文字颜色
16
-
17
- @line-color: #e1e1e1; //分割线颜色
18
-
19
- @table-color: #ededed; //表头背景颜色
20
-
21
- @theme-color-default: #4286ed; //默认颜色
22
-
23
- @theme-color-default-hover: #3372d2; //默认hover颜色
24
-
25
- @theme-color-default-press: #1c54a8; //默认press颜色
26
-
27
- @theme-color-danger: #ff4d4f; //危险颜色
28
-
29
- @theme-color-danger-hover: #e63e40; //危险hover颜色 主要用于按钮
30
-
31
- @theme-color-danger-press: #cd2f31; //危险press颜色
32
-
33
- @theme-color-success: #28b452; //成功颜色
34
-
35
- @theme-color-success-hover: #229b46; //成功hover颜色
36
-
37
- @theme-color-success-press: #197033; //成功press颜色
38
-
39
- @theme-color-stress: #667ff6; //成功颜色
40
-
41
- @theme-color-stress-hover: #5068db; //成功hover颜色
42
-
43
- @theme-color-stress-press: #394eb6; //成功press颜色
44
-
45
- @theme-color-warning: #faad14; //警告颜色
46
-
47
- @buttonHeight: 40px; //按钮高度--固定高度
48
-
49
- @buttonRadius: 4px; //按钮圆角
50
-
51
- @baseFontFamily: "PingFang SC"; //基本字体
52
-
53
- @disabled-font-color: #ffffff80;
54
- @font-color: #ffffff;
55
-
56
- .button_base {
57
- display: inline-flex;
58
- :global  {
59
- .ant-btn  {
60
- font-family: @baseFontFamily;
61
- border-radius: @buttonRadius;
62
- outline: none;
63
- cursor: pointer;
64
- height: @buttonHeight;
65
- font-size: 16px;
66
- height: 40px;
67
- min-width: 112px;
68
- }
69
- }
70
- }
71
- .button_base[disabled] {
72
- cursor: not-allowed;
73
- }
74
-
75
- .button_base[ant-click-animating-without-extra-node]:after {
76
- border: 0 none;
77
- opacity: 0;
78
- animation: none 0 ease 0 1 normal;
79
- }
80
- //主题色
81
- .normal_primary {
82
- :global  {
83
- .ant-btn  {
84
- color: @font-color;
85
- background: @theme-color-default;
86
- border: 1px solid @theme-color-default;
87
- }
88
- .ant-btn:hover {
89
- color: @font-color;
90
- background: @theme-color-default-hover;
91
- border: 1px solid @theme-color-default-hover;
92
- }
93
-
94
- .ant-btn[disabled],
95
- .ant-btn:hover[disabled],
96
- .ant-btn:focus[disabled],
97
- .ant-btn:active[disabled] {
98
- color: @disabled-font-color;
99
- background: @theme-color-default;
100
- border: 1px solid @theme-color-default;
101
- }
102
-
103
- .ant-btn:active,
104
- .ant-btn:focus {
105
- color: @font-color;
106
- background-color: @theme-color-default-press;
107
- border: 1px solid @theme-color-default-press;
108
- }
109
- }
110
- }
111
-
112
- //边框按钮,主题色
113
- .normal_border {
114
- :global  {
115
- .ant-btn  {
116
- color: @theme-color-default;
117
- background: @font-color;
118
- border: 1px solid @theme-color-default;
119
- }
120
- .ant-btn:hover {
121
- color: @theme-color-default;
122
- background: rgba(229, 239, 255, 1);
123
- border: 1px solid @theme-color-default;
124
- }
125
-
126
- .ant-btn[disabled],
127
- .ant-btn:hover[disabled],
128
- .ant-btn:focus[disabled],
129
- .ant-btn:active[disabled] {
130
- color: rgba(66, 134, 237, 0.5);
131
- background: @font-color;
132
- border: 1px solid @theme-color-default;
133
- }
134
-
135
- .ant-btn:active,
136
- .ant-btn:focus {
137
- color: @theme-color-default;
138
- background-color: rgba(207, 226, 255, 1);
139
- border: 1px solid @theme-color-default;
140
- }
141
- }
142
- }
143
-
144
- //危险
145
- .danger_primary {
146
- :global  {
147
- .ant-btn  {
148
- color: @font-color;
149
- background: @theme-color-danger;
150
- border: 1px solid @theme-color-danger;
151
- }
152
- .ant-btn:hover {
153
- color: @font-color;
154
- background: @theme-color-danger-hover;
155
- border: 1px solid @theme-color-danger-hover;
156
- }
157
-
158
- .ant-btn:active,
159
- .ant-btn:focus {
160
- color: @font-color;
161
- background-color: @theme-color-danger-press;
162
- border: 1px solid @theme-color-danger-press;
163
- }
164
- .ant-btn:active::before {
165
- background: rgba(0, 0, 0, 5%);
166
- }
167
-
168
- .ant-btn[disabled],
169
- .ant-btn:hover[disabled],
170
- .ant-btn:focus[disabled],
171
- .ant-btn:active[disabled] {
172
- color: @disabled-font-color;
173
- background: @theme-color-danger;
174
- border: 1px solid @theme-color-danger;
175
- }
176
- }
177
- }
178
- .danger_border {
179
- :global  {
180
- .ant-btn  {
181
- color: @theme-color-danger;
182
- background: @font-color;
183
- border: 1px solid @theme-color-danger;
184
- }
185
- .ant-btn[disabled],
186
- .ant-btn:hover[disabled],
187
- .ant-btn:focus[disabled],
188
- .ant-btn:active[disabled] {
189
- color: rgba(255, 63, 63, 0.5);
190
- background: @font-color;
191
- border: 1px solid @theme-color-danger;
192
- }
193
-
194
- .ant-btn:hover {
195
- color: @theme-color-danger;
196
- background: rgba(255, 244, 244, 1);
197
- border: 1px solid @theme-color-danger;
198
- }
199
-
200
- .ant-btn:active,
201
- .ant-btn:focus {
202
- color: @theme-color-danger-press;
203
- background: rgba(255, 231, 231, 1);
204
- border: 1px solid @theme-color-danger-press;
205
- }
206
- }
207
- }
208
-
209
- //成功色
210
- .success_primary {
211
- :global  {
212
- .ant-btn  {
213
- color: @font-color;
214
- background: @theme-color-success;
215
- border: 1px solid @theme-color-success;
216
- }
217
- .ant-btn:hover {
218
- color: @font-color;
219
- background: @theme-color-success-hover;
220
- border: 1px solid @theme-color-success-hover;
221
- }
222
-
223
- .ant-btn[disabled],
224
- .ant-btn:hover[disabled],
225
- .ant-btn:focus[disabled],
226
- .ant-btn:active[disabled] {
227
- color: @disabled-font-color;
228
- background: @theme-color-success;
229
- border: 1px solid @theme-color-success;
230
- }
231
-
232
- .ant-btn:active,
233
- .ant-btn:focus {
234
- color: @font-color;
235
- background-color: @theme-color-success-press;
236
- border: 1px solid @theme-color-success-press;
237
- }
238
- }
239
- }
240
-
241
- //边框按钮,成功色
242
- .success_border {
243
- :global  {
244
- .ant-btn  {
245
- color: @theme-color-success;
246
- background: @font-color;
247
- border: 1px solid @theme-color-success;
248
- }
249
- .ant-btn:hover {
250
- color: @theme-color-success;
251
- background: rgba(237, 255, 243, 1);
252
- border: 1px solid @theme-color-success;
253
- }
254
-
255
- .ant-btn[disabled],
256
- .ant-btn:hover[disabled],
257
- .ant-btn:focus[disabled],
258
- .ant-btn:active[disabled] {
259
- color: rgba(40, 180, 82, 0.5);
260
- background: @font-color;
261
- border: 1px solid @theme-color-success;
262
- }
263
-
264
- .ant-btn:active,
265
- .ant-btn:focus {
266
- color: @theme-color-success;
267
- background-color: rgba(212, 255, 225, 1);
268
- border: 1px solid @theme-color-success;
269
- }
270
- }
271
- }
272
-
273
- //强调颜色
274
- .stress_primary {
275
- :global  {
276
- .ant-btn  {
277
- color: @font-color;
278
- background: @theme-color-stress;
279
- border: 1px solid @theme-color-stress;
280
- }
281
- .ant-btn:hover {
282
- color: @font-color;
283
- background: @theme-color-stress-hover;
284
- border: 1px solid @theme-color-stress-hover;
285
- }
286
-
287
- .ant-btn[disabled],
288
- .ant-btn:hover[disabled],
289
- .ant-btn:focus[disabled],
290
- .ant-btn:active[disabled] {
291
- color: @disabled-font-color;
292
- background: @theme-color-stress;
293
- border: 1px solid @theme-color-stress;
294
- }
295
-
296
- .ant-btn:active,
297
- .ant-btn:focus {
298
- color: @font-color;
299
- background-color: @theme-color-stress-press;
300
- border: 1px solid @theme-color-stress-press;
301
- }
302
- }
303
- }
304
-
305
- //边框按钮
306
- .stress_border {
307
- :global  {
308
- .ant-btn  {
309
- color: @theme-color-stress;
310
- background: @font-color;
311
- border: 1px solid @theme-color-stress;
312
- }
313
- .ant-btn:hover {
314
- color: @theme-color-stress;
315
- background: rgba(232, 236, 255, 1);
316
- border: 1px solid @theme-color-stress;
317
- }
318
-
319
- .ant-btn[disabled],
320
- .ant-btn:hover[disabled],
321
- .ant-btn:focus[disabled],
322
- .ant-btn:active[disabled] {
323
- color: rgba(102, 127, 246, 0.5);
324
- background: @font-color;
325
- border: 1px solid @theme-color-stress;
326
- }
327
-
328
- .ant-btn:active,
329
- .ant-btn:focus {
330
- color: @theme-color-stress;
331
- background-color: rgba(191, 202, 255, 1);
332
- border: 1px solid @theme-color-stress;
333
- }
334
- }
335
- }
336
-
337
- //白色
338
- .white_primary,
339
- .white_border {
340
- :global  {
341
- .ant-btn  {
342
- color: @font-base-color;
343
- background: @font-color;
344
- border: 1px solid #cccccc;
345
- }
346
- .ant-btn:hover {
347
- color: @font-base-color;
348
- background: #f0f0f0;
349
- border: 1px solid #cccccc;
350
- }
351
-
352
- .ant-btn[disabled],
353
- .ant-btn:hover[disabled],
354
- .ant-btn:focus[disabled],
355
- .ant-btn:active[disabled] {
356
- color: rgba(102, 102, 102, 0.5);
357
- background: #ffffff;
358
- border: 1px solid #cccccc;
359
- }
360
- .ant-btn:active,
361
- .ant-btn:focus {
362
- color: @font-base-color;
363
- background-color: rgba(233, 233, 233, 1);
364
- border: 1px solid #cccccc;
365
- }
366
- }
367
- }
368
-
369
- .icon {
370
- font-size: @tip-font-size;
371
- }
1
+ @title-font-size: 24px; //标题字体大小
2
+
3
+ @page-title-font-size: 20px; //页面标题字体大小
4
+
5
+ @model-title-font-size: 18px; //模块标题大小
6
+
7
+ @base-font-size: 16px; //主要字体大小
8
+
9
+ @tip-font-size: 14px; //副文本大小
10
+
11
+ @font-title-color: #333333; //一级标题字体颜色
12
+
13
+ @font-base-color: #666666; //主要字体颜色
14
+
15
+ @font-sub-color: #999999; //辅助文字颜色
16
+
17
+ @line-color: #e1e1e1; //分割线颜色
18
+
19
+ @table-color: #ededed; //表头背景颜色
20
+
21
+ @theme-color-default: #4286ed; //默认颜色
22
+
23
+ @theme-color-default-hover: #3372d2; //默认hover颜色
24
+
25
+ @theme-color-default-press: #1c54a8; //默认press颜色
26
+
27
+ @theme-color-danger: #ff4d4f; //危险颜色
28
+
29
+ @theme-color-danger-hover: #e63e40; //危险hover颜色 主要用于按钮
30
+
31
+ @theme-color-danger-press: #cd2f31; //危险press颜色
32
+
33
+ @theme-color-success: #28b452; //成功颜色
34
+
35
+ @theme-color-success-hover: #229b46; //成功hover颜色
36
+
37
+ @theme-color-success-press: #197033; //成功press颜色
38
+
39
+ @theme-color-stress: #667ff6; //成功颜色
40
+
41
+ @theme-color-stress-hover: #5068db; //成功hover颜色
42
+
43
+ @theme-color-stress-press: #394eb6; //成功press颜色
44
+
45
+ @theme-color-warning: #faad14; //警告颜色
46
+
47
+ @buttonHeight: 40px; //按钮高度--固定高度
48
+
49
+ @buttonRadius: 4px; //按钮圆角
50
+
51
+ @baseFontFamily: "PingFang SC"; //基本字体
52
+
53
+ @disabled-font-color: #ffffff80;
54
+ @font-color: #ffffff;
55
+
56
+ .button_base {
57
+ display: inline-flex;
58
+ :global  {
59
+ .ant-btn  {
60
+ font-family: @baseFontFamily;
61
+ border-radius: @buttonRadius;
62
+ outline: none;
63
+ cursor: pointer;
64
+ height: @buttonHeight;
65
+ font-size: 16px;
66
+ height: 40px;
67
+ min-width: 112px;
68
+ }
69
+ }
70
+ }
71
+ .button_base[disabled] {
72
+ cursor: not-allowed;
73
+ }
74
+
75
+ .button_base[ant-click-animating-without-extra-node]:after {
76
+ border: 0 none;
77
+ opacity: 0;
78
+ animation: none 0 ease 0 1 normal;
79
+ }
80
+ //主题色
81
+ .normal_primary {
82
+ :global  {
83
+ .ant-btn  {
84
+ color: @font-color;
85
+ background: @theme-color-default;
86
+ border: 1px solid @theme-color-default;
87
+ }
88
+ .ant-btn:hover {
89
+ color: @font-color;
90
+ background: @theme-color-default-hover;
91
+ border: 1px solid @theme-color-default-hover;
92
+ }
93
+
94
+ .ant-btn[disabled],
95
+ .ant-btn:hover[disabled],
96
+ .ant-btn:focus[disabled],
97
+ .ant-btn:active[disabled] {
98
+ color: @disabled-font-color;
99
+ background: @theme-color-default;
100
+ border: 1px solid @theme-color-default;
101
+ }
102
+
103
+ .ant-btn:active,
104
+ .ant-btn:focus {
105
+ color: @font-color;
106
+ background-color: @theme-color-default-press;
107
+ border: 1px solid @theme-color-default-press;
108
+ }
109
+ }
110
+ }
111
+
112
+ //边框按钮,主题色
113
+ .normal_border {
114
+ :global  {
115
+ .ant-btn  {
116
+ color: @theme-color-default;
117
+ background: @font-color;
118
+ border: 1px solid @theme-color-default;
119
+ }
120
+ .ant-btn:hover {
121
+ color: @theme-color-default;
122
+ background: rgba(229, 239, 255, 1);
123
+ border: 1px solid @theme-color-default;
124
+ }
125
+
126
+ .ant-btn[disabled],
127
+ .ant-btn:hover[disabled],
128
+ .ant-btn:focus[disabled],
129
+ .ant-btn:active[disabled] {
130
+ color: rgba(66, 134, 237, 0.5);
131
+ background: @font-color;
132
+ border: 1px solid @theme-color-default;
133
+ }
134
+
135
+ .ant-btn:active,
136
+ .ant-btn:focus {
137
+ color: @theme-color-default;
138
+ background-color: rgba(207, 226, 255, 1);
139
+ border: 1px solid @theme-color-default;
140
+ }
141
+ }
142
+ }
143
+
144
+ //危险
145
+ .danger_primary {
146
+ :global  {
147
+ .ant-btn  {
148
+ color: @font-color;
149
+ background: @theme-color-danger;
150
+ border: 1px solid @theme-color-danger;
151
+ }
152
+ .ant-btn:hover {
153
+ color: @font-color;
154
+ background: @theme-color-danger-hover;
155
+ border: 1px solid @theme-color-danger-hover;
156
+ }
157
+
158
+ .ant-btn:active,
159
+ .ant-btn:focus {
160
+ color: @font-color;
161
+ background-color: @theme-color-danger-press;
162
+ border: 1px solid @theme-color-danger-press;
163
+ }
164
+ .ant-btn:active::before {
165
+ background: rgba(0, 0, 0, 5%);
166
+ }
167
+
168
+ .ant-btn[disabled],
169
+ .ant-btn:hover[disabled],
170
+ .ant-btn:focus[disabled],
171
+ .ant-btn:active[disabled] {
172
+ color: @disabled-font-color;
173
+ background: @theme-color-danger;
174
+ border: 1px solid @theme-color-danger;
175
+ }
176
+ }
177
+ }
178
+ .danger_border {
179
+ :global  {
180
+ .ant-btn  {
181
+ color: @theme-color-danger;
182
+ background: @font-color;
183
+ border: 1px solid @theme-color-danger;
184
+ }
185
+ .ant-btn[disabled],
186
+ .ant-btn:hover[disabled],
187
+ .ant-btn:focus[disabled],
188
+ .ant-btn:active[disabled] {
189
+ color: rgba(255, 63, 63, 0.5);
190
+ background: @font-color;
191
+ border: 1px solid @theme-color-danger;
192
+ }
193
+
194
+ .ant-btn:hover {
195
+ color: @theme-color-danger;
196
+ background: rgba(255, 244, 244, 1);
197
+ border: 1px solid @theme-color-danger;
198
+ }
199
+
200
+ .ant-btn:active,
201
+ .ant-btn:focus {
202
+ color: @theme-color-danger-press;
203
+ background: rgba(255, 231, 231, 1);
204
+ border: 1px solid @theme-color-danger-press;
205
+ }
206
+ }
207
+ }
208
+
209
+ //成功色
210
+ .success_primary {
211
+ :global  {
212
+ .ant-btn  {
213
+ color: @font-color;
214
+ background: @theme-color-success;
215
+ border: 1px solid @theme-color-success;
216
+ }
217
+ .ant-btn:hover {
218
+ color: @font-color;
219
+ background: @theme-color-success-hover;
220
+ border: 1px solid @theme-color-success-hover;
221
+ }
222
+
223
+ .ant-btn[disabled],
224
+ .ant-btn:hover[disabled],
225
+ .ant-btn:focus[disabled],
226
+ .ant-btn:active[disabled] {
227
+ color: @disabled-font-color;
228
+ background: @theme-color-success;
229
+ border: 1px solid @theme-color-success;
230
+ }
231
+
232
+ .ant-btn:active,
233
+ .ant-btn:focus {
234
+ color: @font-color;
235
+ background-color: @theme-color-success-press;
236
+ border: 1px solid @theme-color-success-press;
237
+ }
238
+ }
239
+ }
240
+
241
+ //边框按钮,成功色
242
+ .success_border {
243
+ :global  {
244
+ .ant-btn  {
245
+ color: @theme-color-success;
246
+ background: @font-color;
247
+ border: 1px solid @theme-color-success;
248
+ }
249
+ .ant-btn:hover {
250
+ color: @theme-color-success;
251
+ background: rgba(237, 255, 243, 1);
252
+ border: 1px solid @theme-color-success;
253
+ }
254
+
255
+ .ant-btn[disabled],
256
+ .ant-btn:hover[disabled],
257
+ .ant-btn:focus[disabled],
258
+ .ant-btn:active[disabled] {
259
+ color: rgba(40, 180, 82, 0.5);
260
+ background: @font-color;
261
+ border: 1px solid @theme-color-success;
262
+ }
263
+
264
+ .ant-btn:active,
265
+ .ant-btn:focus {
266
+ color: @theme-color-success;
267
+ background-color: rgba(212, 255, 225, 1);
268
+ border: 1px solid @theme-color-success;
269
+ }
270
+ }
271
+ }
272
+
273
+ //强调颜色
274
+ .stress_primary {
275
+ :global  {
276
+ .ant-btn  {
277
+ color: @font-color;
278
+ background: @theme-color-stress;
279
+ border: 1px solid @theme-color-stress;
280
+ }
281
+ .ant-btn:hover {
282
+ color: @font-color;
283
+ background: @theme-color-stress-hover;
284
+ border: 1px solid @theme-color-stress-hover;
285
+ }
286
+
287
+ .ant-btn[disabled],
288
+ .ant-btn:hover[disabled],
289
+ .ant-btn:focus[disabled],
290
+ .ant-btn:active[disabled] {
291
+ color: @disabled-font-color;
292
+ background: @theme-color-stress;
293
+ border: 1px solid @theme-color-stress;
294
+ }
295
+
296
+ .ant-btn:active,
297
+ .ant-btn:focus {
298
+ color: @font-color;
299
+ background-color: @theme-color-stress-press;
300
+ border: 1px solid @theme-color-stress-press;
301
+ }
302
+ }
303
+ }
304
+
305
+ //边框按钮
306
+ .stress_border {
307
+ :global  {
308
+ .ant-btn  {
309
+ color: @theme-color-stress;
310
+ background: @font-color;
311
+ border: 1px solid @theme-color-stress;
312
+ }
313
+ .ant-btn:hover {
314
+ color: @theme-color-stress;
315
+ background: rgba(232, 236, 255, 1);
316
+ border: 1px solid @theme-color-stress;
317
+ }
318
+
319
+ .ant-btn[disabled],
320
+ .ant-btn:hover[disabled],
321
+ .ant-btn:focus[disabled],
322
+ .ant-btn:active[disabled] {
323
+ color: rgba(102, 127, 246, 0.5);
324
+ background: @font-color;
325
+ border: 1px solid @theme-color-stress;
326
+ }
327
+
328
+ .ant-btn:active,
329
+ .ant-btn:focus {
330
+ color: @theme-color-stress;
331
+ background-color: rgba(191, 202, 255, 1);
332
+ border: 1px solid @theme-color-stress;
333
+ }
334
+ }
335
+ }
336
+
337
+ //白色
338
+ .white_primary,
339
+ .white_border {
340
+ :global  {
341
+ .ant-btn  {
342
+ color: @font-base-color;
343
+ background: @font-color;
344
+ border: 1px solid #cccccc;
345
+ }
346
+ .ant-btn:hover {
347
+ color: @font-base-color;
348
+ background: #f0f0f0;
349
+ border: 1px solid #cccccc;
350
+ }
351
+
352
+ .ant-btn[disabled],
353
+ .ant-btn:hover[disabled],
354
+ .ant-btn:focus[disabled],
355
+ .ant-btn:active[disabled] {
356
+ color: rgba(102, 102, 102, 0.5);
357
+ background: #ffffff;
358
+ border: 1px solid #cccccc;
359
+ }
360
+ .ant-btn:active,
361
+ .ant-btn:focus {
362
+ color: @font-base-color;
363
+ background-color: rgba(233, 233, 233, 1);
364
+ border: 1px solid #cccccc;
365
+ }
366
+ }
367
+ }
368
+
369
+ .icon {
370
+ font-size: @tip-font-size;
371
+ }