acud 0.0.66 → 0.0.69

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 (148) hide show
  1. package/dist/acud.css +277 -152
  2. package/dist/acud.css.map +1 -1
  3. package/dist/acud.js +1107 -910
  4. package/dist/acud.js.map +1 -1
  5. package/dist/acud.min.css +1 -1
  6. package/dist/acud.min.css.map +1 -1
  7. package/dist/acud.min.js +6 -6
  8. package/dist/acud.min.js.map +1 -1
  9. package/es/button/button.d.ts +1 -0
  10. package/es/button/button.js +1 -0
  11. package/es/cascader/Cascader.js +2 -1
  12. package/es/cascader/MenuItem.js +7 -13
  13. package/es/cascader/Menus.d.ts +3 -2
  14. package/es/cascader/Menus.js +30 -24
  15. package/es/cascader/index.js +32 -11
  16. package/es/cascader/style/index.css +17 -68
  17. package/es/cascader/style/index.less +23 -31
  18. package/es/clear/index.d.ts +12 -0
  19. package/es/clear/index.js +41 -0
  20. package/es/clear/style/css.js +2 -0
  21. package/es/clear/style/index.css +63 -0
  22. package/es/clear/style/index.d.ts +2 -0
  23. package/es/clear/style/index.js +2 -0
  24. package/es/clear/style/index.less +18 -0
  25. package/es/date-picker/generatePicker/generateRangePicker.js +2 -2
  26. package/es/date-picker/generatePicker/generateSinglePicker.js +2 -2
  27. package/es/date-picker/src/PickerPanel.js +4 -1
  28. package/es/date-picker/src/utils/uiUtil.js +4 -4
  29. package/es/date-picker/style/index.css +106 -53
  30. package/es/date-picker/style/panel.less +83 -18
  31. package/es/dropdown/dropdown.js +2 -3
  32. package/es/dropdown/rc-dropdown/Dropdown.js +1 -0
  33. package/es/form/style/horizontal.less +3 -1
  34. package/es/form/style/index.css +2 -0
  35. package/es/index.d.ts +1 -0
  36. package/es/index.js +1 -0
  37. package/es/menu/menu.d.ts +2 -1
  38. package/es/modal/DialogBox.d.ts +1 -1
  39. package/es/modal/Modal.d.ts +0 -2
  40. package/es/modal/style/index.css +27 -7
  41. package/es/modal/style/index.less +23 -7
  42. package/es/modal/style/mixin.less +2 -2
  43. package/es/progress/CircleProgress.js +2 -2
  44. package/es/progress/LineProgress.js +4 -2
  45. package/es/radio/Radio.d.ts +1 -0
  46. package/es/radio/Radio.js +3 -2
  47. package/es/radio/RadioButton.js +3 -2
  48. package/es/radio/RadioGroup.d.ts +1 -0
  49. package/es/radio/RadioGroup.js +4 -1
  50. package/es/radio/context.d.ts +1 -0
  51. package/es/style/themes/dark/components/modal.less +1 -1
  52. package/es/style/themes/default/components/cascader.less +0 -4
  53. package/es/style/themes/default/components/clear.less +2 -0
  54. package/es/style/themes/default/components/datePicker.less +1 -0
  55. package/es/style/themes/default/components/index.less +1 -0
  56. package/es/style/themes/default/components/modal.less +1 -1
  57. package/es/switch/index.d.ts +2 -3
  58. package/es/switch/index.js +11 -3
  59. package/es/switch/interface.d.ts +4 -0
  60. package/es/switch/style/index.css +31 -0
  61. package/es/switch/style/index.less +33 -1
  62. package/es/tabs/src/TabNavList/index.js +2 -2
  63. package/es/tabs/style/index.css +0 -1
  64. package/es/tabs/style/index.less +0 -1
  65. package/es/toast/index.js +7 -8
  66. package/es/toast/style/index.css +1 -1
  67. package/es/toast/style/index.less +3 -3
  68. package/es/tooltip/index.js +1 -1
  69. package/es/transfer/SourceList.js +1 -0
  70. package/es/transfer/index.js +5 -5
  71. package/es/transfer/style/index.css +3 -0
  72. package/es/transfer/style/index.less +3 -0
  73. package/es/upload/Upload.js +4 -1
  74. package/es/upload/UploadList/ListItem.js +2 -2
  75. package/es/upload/UploadList/index.js +1 -1
  76. package/es/upload/style/index.css +25 -21
  77. package/es/upload/style/index.less +28 -21
  78. package/lib/button/button.d.ts +1 -0
  79. package/lib/button/button.js +1 -0
  80. package/lib/cascader/Cascader.js +2 -1
  81. package/lib/cascader/MenuItem.js +7 -13
  82. package/lib/cascader/Menus.d.ts +3 -2
  83. package/lib/cascader/Menus.js +31 -24
  84. package/lib/cascader/index.js +34 -12
  85. package/lib/cascader/style/index.css +17 -68
  86. package/lib/cascader/style/index.less +23 -31
  87. package/lib/clear/index.d.ts +12 -0
  88. package/lib/clear/index.js +55 -0
  89. package/lib/clear/style/css.js +5 -0
  90. package/lib/clear/style/index.css +63 -0
  91. package/lib/clear/style/index.d.ts +2 -0
  92. package/lib/clear/style/index.js +5 -0
  93. package/lib/clear/style/index.less +18 -0
  94. package/lib/date-picker/generatePicker/generateRangePicker.js +3 -3
  95. package/lib/date-picker/generatePicker/generateSinglePicker.js +3 -3
  96. package/lib/date-picker/src/PickerPanel.js +4 -1
  97. package/lib/date-picker/src/utils/uiUtil.js +4 -4
  98. package/lib/date-picker/style/index.css +106 -53
  99. package/lib/date-picker/style/panel.less +83 -18
  100. package/lib/dropdown/dropdown.js +2 -3
  101. package/lib/dropdown/rc-dropdown/Dropdown.js +1 -0
  102. package/lib/form/style/horizontal.less +3 -1
  103. package/lib/form/style/index.css +2 -0
  104. package/lib/index.d.ts +1 -0
  105. package/lib/index.js +8 -0
  106. package/lib/menu/menu.d.ts +2 -1
  107. package/lib/modal/DialogBox.d.ts +1 -1
  108. package/lib/modal/Modal.d.ts +0 -2
  109. package/lib/modal/style/index.css +27 -7
  110. package/lib/modal/style/index.less +23 -7
  111. package/lib/modal/style/mixin.less +2 -2
  112. package/lib/progress/CircleProgress.js +2 -2
  113. package/lib/progress/LineProgress.js +4 -2
  114. package/lib/radio/Radio.d.ts +1 -0
  115. package/lib/radio/Radio.js +3 -2
  116. package/lib/radio/RadioButton.js +3 -2
  117. package/lib/radio/RadioGroup.d.ts +1 -0
  118. package/lib/radio/RadioGroup.js +5 -1
  119. package/lib/radio/context.d.ts +1 -0
  120. package/lib/style/components.less +1 -0
  121. package/lib/style/themes/dark/components/modal.less +1 -1
  122. package/lib/style/themes/default/components/cascader.less +0 -4
  123. package/lib/style/themes/default/components/clear.less +2 -0
  124. package/lib/style/themes/default/components/datePicker.less +1 -0
  125. package/lib/style/themes/default/components/index.less +1 -0
  126. package/lib/style/themes/default/components/modal.less +1 -1
  127. package/lib/switch/index.d.ts +2 -3
  128. package/lib/switch/index.js +12 -3
  129. package/lib/switch/interface.d.ts +4 -0
  130. package/lib/switch/style/index.css +31 -0
  131. package/lib/switch/style/index.less +33 -1
  132. package/lib/tabs/src/TabNavList/index.js +2 -2
  133. package/lib/tabs/style/index.css +0 -1
  134. package/lib/tabs/style/index.less +0 -1
  135. package/lib/toast/index.js +7 -8
  136. package/lib/toast/style/index.css +1 -1
  137. package/lib/toast/style/index.less +3 -3
  138. package/lib/tooltip/index.js +1 -1
  139. package/lib/transfer/SourceList.js +1 -0
  140. package/lib/transfer/index.js +5 -5
  141. package/lib/transfer/style/index.css +3 -0
  142. package/lib/transfer/style/index.less +3 -0
  143. package/lib/upload/Upload.js +4 -1
  144. package/lib/upload/UploadList/ListItem.js +2 -2
  145. package/lib/upload/UploadList/index.js +1 -1
  146. package/lib/upload/style/index.css +25 -21
  147. package/lib/upload/style/index.less +28 -21
  148. package/package.json +2 -2
@@ -20,6 +20,7 @@
20
20
  line-height: 8*@P;
21
21
  color: @G2;
22
22
  > li {
23
+ .basic-tp-config(@date-picker-header-tp);
23
24
  margin-right: 6*@P;
24
25
  display: inline-block;
25
26
  cursor: pointer;
@@ -28,7 +29,7 @@
28
29
 
29
30
  &.@{picker-prefix-cls}-panel-has-range {
30
31
  .@{picker-prefix-cls}-date-panel .@{picker-prefix-cls}-content td:not(.@{picker-prefix-cls}-cell-range-hover-start):not(.@{picker-prefix-cls}-cell-range-hover-end):not(.@{picker-prefix-cls}-cell-range-start):not(.@{picker-prefix-cls}-cell-range-end):not(.@{picker-prefix-cls}-cell-today):hover {
31
- background-color: @G10 !important;
32
+ // background-color: @G10 !important;
32
33
 
33
34
  .@{picker-prefix-cls}-cell-inner {
34
35
  background-color: @G10 !important;
@@ -53,7 +54,7 @@
53
54
  width: @date-picker-panel-width;
54
55
  }
55
56
 
56
- &-month-panel {
57
+ &-month-panel, &-year-panel {
57
58
  .@{picker-prefix-cls}-cell-in-range, .@{picker-prefix-cls}-cell-range-hover {
58
59
  &:not(:first-child)::before {
59
60
  width: 3*@P;
@@ -62,17 +63,21 @@
62
63
  }
63
64
  }
64
65
  .@{picker-prefix-cls}-cell-in-view {
65
- &.@{picker-prefix-cls}-cell-in-range {
66
+ &.@{picker-prefix-cls}-cell-in-range {
66
67
  &.@{picker-prefix-cls}-cell-range-hover-end, &.@{picker-prefix-cls}-cell-range-hover-start {
67
68
  &:hover {
68
- background-color: @B2;
69
+ .@{picker-prefix-cls}-cell-inner {
70
+ background-color: @B2;
71
+ }
69
72
  }
70
73
  }
71
74
  }
72
75
 
73
76
  &.@{picker-prefix-cls}-cell-range-hover-end, &.@{picker-prefix-cls}-cell-range-hover-start {
74
- &:hover {
75
- background: @picker-basic-cell-active-with-range-color;
77
+ &:not(.@{picker-prefix-cls}-cell-in-range):not(.@{picker-prefix-cls}-cell-selected):not(.@{picker-prefix-cls}-cell-range-end):not(.@{picker-prefix-cls}-cell-range-start):hover {
78
+ .@{picker-prefix-cls}-cell-inner {
79
+ background: @picker-basic-cell-active-with-range-color;
80
+ }
76
81
  }
77
82
  }
78
83
  }
@@ -123,8 +128,10 @@
123
128
  .basic-tp-config(@date-picker-date-tp);
124
129
 
125
130
  button {
131
+ font-size: @T2;
126
132
  color: inherit;
127
- font-weight: inherit;
133
+ font-weight: 400;
134
+ .basic-tp-config(@date-picker-header-tp);
128
135
 
129
136
  &:not(:first-child) {
130
137
  margin-left: 2*@P;
@@ -227,7 +234,7 @@
227
234
  }
228
235
 
229
236
  td {
230
- .basic-p-config(@date-picker-date-p);
237
+ // .basic-p-config(@date-picker-date-p);
231
238
  }
232
239
  }
233
240
 
@@ -279,7 +286,7 @@
279
286
  }
280
287
  }
281
288
 
282
- &-today:not(&-in-range):not(&-range-hover):not(&-range-end):not(&-selected):not(&-range-start) {
289
+ &-today:not(&-in-range):not(&-range-hover):not(&-range-end):not(&-selected):not(&-range-start):not(&-disabled) {
283
290
  background-color: transparent !important;
284
291
  .@{picker-prefix-cls}-cell-inner {
285
292
  background-color: transparent !important;
@@ -344,6 +351,12 @@
344
351
  }
345
352
  }
346
353
 
354
+ &-in-view&-range-start&-range-end {
355
+ &::before {
356
+ background: transparent;
357
+ }
358
+ }
359
+
347
360
  &-in-view&-range-start&-range-end&-selected, &-in-view&-range-start&-range-hover-start&-range-hover-end {
348
361
  &::before {
349
362
  background: transparent !important;
@@ -421,6 +434,10 @@
421
434
  left: 0;
422
435
  }
423
436
 
437
+ .@{picker-prefix-cls}-date-panel &-in-view&-range-hover:not(:first-child)::before {
438
+ left: -3*@P + 3;
439
+ }
440
+
424
441
  // Hover with range start & end
425
442
  &-range-hover&-range-start::after {
426
443
  right: 50%;
@@ -529,7 +546,7 @@
529
546
 
530
547
  &-date-panel {
531
548
  .@{picker-prefix-cls}-content td:hover {
532
- border-radius: @R2;
549
+ // border-radius: @R2;
533
550
 
534
551
  // &:not(.@{picker-prefix-cls}-cell-in-range) {
535
552
  // background-color: transparent;
@@ -569,9 +586,11 @@
569
586
  }
570
587
 
571
588
  .@{picker-prefix-cls}-cell-in-view {
572
- &.@{picker-prefix-cls}-cell-range-hover-end, &.@{picker-prefix-cls}-cell-range-hover-start {
589
+ &.@{picker-prefix-cls}-cell-range-hover-end:not(.@{picker-prefix-cls}-cell-range-end), &.@{picker-prefix-cls}-cell-range-hover-start:not(.@{picker-prefix-cls}-cell-range-start) {
573
590
  &:hover {
574
- background-color: @picker-basic-cell-active-with-range-color;
591
+ .@{picker-prefix-cls}-cell-inner {
592
+ background-color: @picker-basic-cell-active-with-range-color;
593
+ }
575
594
  }
576
595
  }
577
596
  }
@@ -584,6 +603,9 @@
584
603
  // line-height: @picker-text-height - 2 * @border-width-base;
585
604
  text-align: center;
586
605
  border-top: 1px solid @G8;
606
+ font-size: @T2;
607
+ line-height: 24px;
608
+ cursor: pointer;
587
609
  // border-bottom: @border-width-base @border-style-base transparent;
588
610
 
589
611
  .@{picker-prefix-cls}-panel & {
@@ -628,8 +650,23 @@
628
650
 
629
651
  // ===================== Decade Panel =====================
630
652
  &-decade-panel {
631
- .@{picker-cell-inner-cls} {
632
- padding: 0 (@padding-xs / 2);
653
+ tr {
654
+ display: block;
655
+ margin: 3*@P 0;
656
+
657
+ td {
658
+ display: inline-block;
659
+ margin-right: 3*@P;
660
+ width: 79px;
661
+
662
+ &:last-child {
663
+ margin-right: 0;
664
+ }
665
+ }
666
+
667
+ .@{picker-cell-inner-cls} {
668
+ width: 100%;
669
+ }
633
670
  }
634
671
 
635
672
  .@{picker-prefix-cls}-cell::before {
@@ -650,7 +687,7 @@
650
687
  td {
651
688
  display: inline-block;
652
689
  margin-right: 3*@P;
653
- border-radius: @R2;
690
+ // border-radius: @R2;
654
691
 
655
692
  &:last-child {
656
693
  margin-right: 0;
@@ -695,6 +732,14 @@
695
732
  .@{picker-prefix-cls}-date-panel {
696
733
  width: 234px;
697
734
  }
735
+
736
+ .@{picker-prefix-cls}-decade-panel {
737
+ width: 285px;
738
+
739
+ .@{picker-prefix-cls}-header, .@{picker-prefix-cls}-body {
740
+ padding-right: 12px !important;
741
+ }
742
+ }
698
743
  }
699
744
 
700
745
  // ====================== Week Panel ======================
@@ -741,7 +786,7 @@
741
786
  }
742
787
  }
743
788
 
744
- &-date-panel, &-month-panel {
789
+ &-date-panel, &-month-panel, &-year-panel {
745
790
  tr {
746
791
  td.@{picker-prefix-cls}-cell-in-view.@{picker-prefix-cls}-cell-in-range, td.@{picker-prefix-cls}-cell-range-hover {
747
792
  &:first-child {
@@ -753,8 +798,28 @@
753
798
  }
754
799
  }
755
800
 
756
- td.@{picker-prefix-cls}-cell-range-hover-end {
757
- border-radius: 0 @R2 @R2 0;
801
+ td.@{picker-prefix-cls}-cell-range-hover-end:not(.@{picker-prefix-cls}-cell-range-end):not(.@{picker-prefix-cls}-cell-in-range) {
802
+ .@{picker-prefix-cls}-cell-inner {
803
+ border-radius: 0 @R2 @R2 0;
804
+ }
805
+
806
+ &:first-child, &.@{picker-prefix-cls}-cell-selected {
807
+ .@{picker-prefix-cls}-cell-inner {
808
+ border-radius: @R2;
809
+ }
810
+ }
811
+ }
812
+
813
+ td.@{picker-prefix-cls}-cell-range-hover-start:not(.@{picker-prefix-cls}-cell-selected):not(.@{picker-prefix-cls}-cell-range-start):not(.@{picker-prefix-cls}-cell-in-range) {
814
+ .@{picker-prefix-cls}-cell-inner {
815
+ border-radius: @R2 0 0 @R2;
816
+ }
817
+
818
+ &:last-child, &.@{picker-prefix-cls}-cell-selected {
819
+ .@{picker-prefix-cls}-cell-inner {
820
+ border-radius: @R2;
821
+ }
822
+ }
758
823
  }
759
824
  }
760
825
  }
@@ -140,12 +140,11 @@ var Dropdown = function Dropdown(props) {
140
140
  return fixedModeOverlay;
141
141
  };
142
142
 
143
- return /*#__PURE__*/_react["default"].createElement(_rcDropdown.RcDropdown, (0, _extends2["default"])({
143
+ return /*#__PURE__*/_react["default"].createElement(_rcDropdown.RcDropdown, (0, _extends2["default"])({}, rest, {
144
144
  prefixCls: prefixCls,
145
145
  trigger: triggerActions,
146
146
  onVisibleChange: onVisibleChange,
147
- visible: mergedVisible
148
- }, rest, {
147
+ visible: mergedVisible,
149
148
  overlay: function overlay() {
150
149
  return renderOverlay();
151
150
  },
@@ -94,6 +94,7 @@ function Dropdown(props, ref) {
94
94
  var onOverlayClick = props.onOverlayClick;
95
95
  var overlayProps = getOverlayElement().props;
96
96
  setTriggerVisible(false);
97
+ onVisibleChange(false);
97
98
 
98
99
  if (onOverlayClick) {
99
100
  onOverlayClick(e);
@@ -9,6 +9,8 @@
9
9
  .@{form-item-prefix-cls}-label {
10
10
  flex-grow: 0;
11
11
  line-height: @form-line-height-base;
12
+ padding-left: ~"calc(.5em + @{P})";
13
+ box-sizing: content-box;
12
14
 
13
15
  &:not([class*=~"' @{acud-prefix}-col-'"]) {
14
16
  margin-right: 4 * @P;
@@ -17,7 +19,7 @@
17
19
  > label {
18
20
  &.@{form-item-prefix-cls}-required:not(.@{form-item-prefix-cls}-required-mark-optional)::before {
19
21
  text-indent: -.5em;
20
- margin-left: -4px;
22
+ margin-left: -@P;
21
23
  }
22
24
  }
23
25
  }
@@ -111,6 +111,8 @@
111
111
  .acud-form-horizontal .acud-form-item-label {
112
112
  flex-grow: 0;
113
113
  line-height: 1.6667;
114
+ padding-left: calc(.5em + 4px);
115
+ box-sizing: content-box;
114
116
  }
115
117
  .acud-form-horizontal .acud-form-item-label:not([class*=' acud-col-']) {
116
118
  margin-right: 16px;
package/lib/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { default as Button } from './button';
7
7
  export { default as Carousel } from './carousel';
8
8
  export { default as Cascader } from './cascader';
9
9
  export { default as Checkbox } from './checkbox';
10
+ export { default as Clear } from './clear';
10
11
  export { default as Col } from './col';
11
12
  export { default as Collapse } from './collapse';
12
13
  export { default as ConfigProvider } from './config-provider';
package/lib/index.js CHANGED
@@ -71,6 +71,12 @@ Object.defineProperty(exports, "Checkbox", {
71
71
  return _checkbox["default"];
72
72
  }
73
73
  });
74
+ Object.defineProperty(exports, "Clear", {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return _clear["default"];
78
+ }
79
+ });
74
80
  Object.defineProperty(exports, "Col", {
75
81
  enumerable: true,
76
82
  get: function get() {
@@ -324,6 +330,8 @@ var _cascader = _interopRequireDefault(require("./cascader"));
324
330
 
325
331
  var _checkbox = _interopRequireDefault(require("./checkbox"));
326
332
 
333
+ var _clear = _interopRequireDefault(require("./clear"));
334
+
327
335
  var _col = _interopRequireDefault(require("./col"));
328
336
 
329
337
  var _collapse = _interopRequireDefault(require("./collapse"));
@@ -8,8 +8,9 @@ import { MenuItemInterface } from './MenuItem';
8
8
  import { SubMenuInterface } from './SubMenu';
9
9
  import { MenuHeadInterface } from './MenuHead';
10
10
  import { HeaderMenuProps } from './header';
11
+ import { GlobalSiderBarProps } from './globalSilderBar';
11
12
  import { BaseMenuProps } from './baseMenu';
12
- export interface MenuProps extends RcMenuProps, HeaderMenuProps, BaseMenuProps {
13
+ export interface MenuProps extends RcMenuProps, HeaderMenuProps, BaseMenuProps, GlobalSiderBarProps {
13
14
  iconList?: React.ReactNode[];
14
15
  scope?: 'global' | 'local';
15
16
  mode?: 'inline' | 'horizontal' | 'inline';
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface ModalFuncProps {
3
3
  /** 对话框标题 */
4
- title?: string;
4
+ title?: React.ReactNode;
5
5
  /** 对话框内容 */
6
6
  content?: React.ReactNode;
7
7
  /** 点击确定回调 */
@@ -26,8 +26,6 @@ export interface ModalProps {
26
26
  afterClose?: () => void;
27
27
  /** 弹框宽度 */
28
28
  width?: number;
29
- /** 弹框高度 */
30
- height?: number;
31
29
  /** 底部内容 */
32
30
  footer?: React.ReactNode;
33
31
  /** 确认按钮文字 */
@@ -55,26 +55,46 @@
55
55
  -webkit-overflow-scrolling: touch;
56
56
  z-index: 1000;
57
57
  }
58
- .acud-modal-sm > .acud-modal-content {
58
+ .acud-modal-sm {
59
59
  width: 520px;
60
60
  min-height: 240px;
61
61
  max-height: 560px;
62
62
  }
63
- .acud-modal-md > .acud-modal-content {
63
+ .acud-modal-sm > .acud-modal-content {
64
+ width: 100%;
65
+ min-height: 240px;
66
+ max-height: 560px;
67
+ }
68
+ .acud-modal-md {
64
69
  width: 800px;
65
70
  min-height: 400px;
66
71
  max-height: 560px;
67
72
  }
68
- .acud-modal-lg > .acud-modal-content {
73
+ .acud-modal-md > .acud-modal-content {
74
+ width: 100%;
75
+ min-height: 400px;
76
+ max-height: 560px;
77
+ }
78
+ .acud-modal-lg {
69
79
  width: 1120px;
70
80
  min-height: 480px;
71
81
  max-height: 560px;
72
82
  }
73
- .acud-modal-xl > .acud-modal-content {
83
+ .acud-modal-lg > .acud-modal-content {
84
+ width: 100%;
85
+ min-height: 480px;
86
+ max-height: 560px;
87
+ }
88
+ .acud-modal-xl {
74
89
  width: 1200px;
75
90
  min-height: 480px;
76
91
  max-height: 560px;
77
92
  }
93
+ .acud-modal-xl > .acud-modal-content {
94
+ width: 100%;
95
+ min-height: 480px;
96
+ max-height: 560px;
97
+ }
78
98
  .acud-modal-content {
79
99
  position: relative;
80
100
  background-color: #FFFFFF;
@@ -130,13 +150,14 @@
130
150
  word-wrap: break-word;
131
151
  }
132
152
  .acud-modal-body {
133
- padding: 16px 24px 24px;
153
+ margin: 16px 24px 24px;
134
154
  font-size: 12px;
135
155
  font-weight: 400;
136
156
  line-height: 20px;
137
157
  word-wrap: break-word;
138
158
  color: #151B26;
139
159
  flex: 1;
160
+ overflow-y: auto;
140
161
  }
141
162
  .acud-modal-footer {
142
163
  padding: 0 24px 24px;
@@ -171,14 +192,13 @@
171
192
  padding-right: 12px;
172
193
  }
173
194
  .acud-modal-dialogbox-content {
174
- width: 400px;
195
+ width: 100%;
175
196
  padding-left: 32px;
176
197
  }
177
198
  .acud-modal-dialogbox .acud-modal-title .acudicon {
178
199
  font-size: 20px;
179
200
  }
180
201
  .acud-modal-dialogbox > .acud-modal-content {
181
- width: 400px;
182
202
  min-height: 184px;
183
203
  }
184
204
  .acud-modal-dialogbox-warning .acud-modal-dialogbox-icon {
@@ -18,20 +18,36 @@
18
18
  width: auto;
19
19
  max-width: calc(100vw - 32px);
20
20
 
21
+ &-sm {
22
+ .modal-size-config(sm, false);
23
+ }
24
+
21
25
  &-sm > &-content {
22
- .modal-size-config(sm);
26
+ .modal-size-config(sm, true);
27
+ }
28
+
29
+ &-md {
30
+ .modal-size-config(md, false);
23
31
  }
24
32
 
25
33
  &-md > &-content {
26
- .modal-size-config(md);
34
+ .modal-size-config(md, true);
35
+ }
36
+
37
+ &-lg {
38
+ .modal-size-config(lg, false);
27
39
  }
28
40
 
29
41
  &-lg > &-content {
30
- .modal-size-config(lg);
42
+ .modal-size-config(lg, true);
43
+ }
44
+
45
+ &-xl {
46
+ .modal-size-config(xl, false);
31
47
  }
32
48
 
33
49
  &-xl > &-content {
34
- .modal-size-config(xl);
50
+ .modal-size-config(xl, true);
35
51
  }
36
52
 
37
53
  // 弹框内容
@@ -100,13 +116,14 @@
100
116
 
101
117
  // 内容body部分
102
118
  &-body {
103
- padding: @modal-body-padding;
119
+ margin: @modal-body-margin;
104
120
  font-size: @modal-body-font-size;
105
121
  font-weight: @modal-body-font-weight;
106
122
  line-height: @modal-body-line-height;
107
123
  word-wrap: break-word;
108
124
  color: @modal-body-font-color;
109
125
  flex: 1;
126
+ overflow-y: auto;
110
127
  }
111
128
 
112
129
  // 内容footer部分
@@ -150,7 +167,7 @@
150
167
  }
151
168
 
152
169
  &-content {
153
- width: @P * 100;
170
+ width: 100%;
154
171
  padding-left: @P * 3 + @T6;
155
172
  }
156
173
 
@@ -161,7 +178,6 @@
161
178
  }
162
179
 
163
180
  & > .@{modal-prefix-cls}-content {
164
- width: @P * 100;
165
181
  min-height: @P * 46;
166
182
  }
167
183
  }
@@ -37,11 +37,11 @@
37
37
  }
38
38
  }
39
39
 
40
- .modal-size-config(@type) {
40
+ .modal-size-config(@type, @content) {
41
41
  @width: ~'modal-width-@{type}';
42
42
  @min-height: ~'modal-height-@{type}';
43
43
  @max-height: ~'modal-max-height-@{type}';
44
- width: @@width;
44
+ width: if(@content, 100%, @@width);
45
45
  min-height: @@min-height;
46
46
  max-height: @@max-height;
47
47
  }
@@ -89,7 +89,7 @@ var CircleProgress = function CircleProgress(_ref) {
89
89
  style: labelStyles
90
90
  }, labelText);
91
91
 
92
- var iconWidth = _common.sizeRatioMap[size] * 10; // 若信息类型为图标,在成功和异常时,显示图标
92
+ var iconWidth = _common.sizeRatioMap[size] * 12; // 若信息类型为图标,在成功和异常时,显示图标
93
93
 
94
94
  if (infoType === 'icon') {
95
95
  if (status === 'success') {
@@ -126,7 +126,7 @@ var CircleProgress = function CircleProgress(_ref) {
126
126
  }, /*#__PURE__*/_react["default"].createElement("path", {
127
127
  d: circlePath,
128
128
  stroke: strokeColor || 'currentColor',
129
- strokeWidth: strokeWidth,
129
+ strokeWidth: percent ? strokeWidth : 0,
130
130
  strokeLinecap: strokeLinecap,
131
131
  fill: "none",
132
132
  style: progressStyles
@@ -84,12 +84,14 @@ var LineProgress = function LineProgress(_ref) {
84
84
  if (status === 'success') {
85
85
  ProgressLabel = /*#__PURE__*/_react["default"].createElement(_acudIcon.MultiToneSuccess, {
86
86
  className: labelClassNames,
87
- color: strokeColor
87
+ color: strokeColor,
88
+ width: "16px"
88
89
  });
89
90
  } else if (status === 'error') {
90
91
  ProgressLabel = /*#__PURE__*/_react["default"].createElement(_acudIcon.MultiToneError, {
91
92
  className: labelClassNames,
92
- color: strokeColor
93
+ color: strokeColor,
94
+ width: "16px"
93
95
  });
94
96
  }
95
97
  }
@@ -7,6 +7,7 @@ export interface RadioProps {
7
7
  disabled?: boolean | undefined;
8
8
  children?: React.ReactNode;
9
9
  label?: string;
10
+ className?: string;
10
11
  onChange?: (e: Event) => {} | void;
11
12
  value?: any;
12
13
  }
@@ -46,9 +46,10 @@ var InternalRadio = function InternalRadio(props, ref) {
46
46
  var _props$prefixCls = props.prefixCls,
47
47
  prefixCls = _props$prefixCls === void 0 ? 'acud-radio' : _props$prefixCls,
48
48
  children = props.children,
49
+ className = props.className,
49
50
  onChange = props.onChange,
50
51
  label = props.label,
51
- restProps = __rest(props, ["prefixCls", "children", "onChange", "label"]);
52
+ restProps = __rest(props, ["prefixCls", "children", "className", "onChange", "label"]);
52
53
 
53
54
  var radioRef = /*#__PURE__*/_react["default"].createRef();
54
55
 
@@ -64,7 +65,7 @@ var InternalRadio = function InternalRadio(props, ref) {
64
65
  radioProps.disabled = props.disabled || (context === null || context === void 0 ? void 0 : context.disabled);
65
66
  }
66
67
 
67
- var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames));
68
+ var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames), className);
68
69
  var handleClick = (0, _react.useCallback)(function (e) {
69
70
  var _a;
70
71
 
@@ -44,9 +44,10 @@ var _default = function _default(props) {
44
44
  var _props$prefixCls = props.prefixCls,
45
45
  prefixCls = _props$prefixCls === void 0 ? 'acud-radio-button' : _props$prefixCls,
46
46
  children = props.children,
47
+ className = props.className,
47
48
  onChange = props.onChange,
48
49
  label = props.label,
49
- restProps = __rest(props, ["prefixCls", "children", "onChange", "label"]);
50
+ restProps = __rest(props, ["prefixCls", "children", "className", "onChange", "label"]);
50
51
 
51
52
  var context = (0, _react.useContext)(_context["default"]);
52
53
  var radioProps = (0, _extends2["default"])({}, restProps);
@@ -56,7 +57,7 @@ var _default = function _default(props) {
56
57
  radioProps.disabled = props.disabled || (context === null || context === void 0 ? void 0 : context.disabled);
57
58
  }
58
59
 
59
- var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames));
60
+ var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames), className);
60
61
  var handleClick = (0, _react.useCallback)(function (e) {
61
62
  var _a;
62
63
 
@@ -8,6 +8,7 @@ export interface BaseRadioGourpProps {
8
8
  optionType?: string;
9
9
  options?: RadioProps[];
10
10
  children?: React.ReactNode;
11
+ className?: string;
11
12
  onChange?: (e: Event) => {} | void;
12
13
  }
13
14
  declare const _default: (props: BaseRadioGourpProps) => JSX.Element;
@@ -15,6 +15,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
15
15
 
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
 
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
18
20
  var _useMergedState3 = _interopRequireDefault(require("../_util/hooks/useMergedState"));
19
21
 
20
22
  var _Radio = _interopRequireDefault(require("./Radio"));
@@ -34,6 +36,7 @@ var _default = function _default(props) {
34
36
  optionType = _props$optionType === void 0 ? 'default' : _props$optionType,
35
37
  options = props.options,
36
38
  children = props.children,
39
+ className = props.className,
37
40
  onChange = props.onChange;
38
41
 
39
42
  var _useMergedState = (0, _useMergedState3["default"])(props.defaultValue, {
@@ -57,8 +60,9 @@ var _default = function _default(props) {
57
60
  }
58
61
  }, [value, disabled, onChange]);
59
62
  var Compo = optionType === 'default' ? _Radio["default"] : _Radio["default"].Button;
63
+ var classNames = (0, _classnames["default"])(prefixCls, className);
60
64
  return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
61
- className: prefixCls
65
+ className: classNames
62
66
  }, /*#__PURE__*/_react["default"].createElement(_context["default"].Provider, {
63
67
  value: {
64
68
  value: value,
@@ -4,6 +4,7 @@ export interface ContextProps {
4
4
  value: any;
5
5
  disabled?: boolean;
6
6
  name?: string;
7
+ className?: string;
7
8
  }
8
9
  declare const RadioGroupContext: import("react").Context<ContextProps>;
9
10
  export default RadioGroupContext;
@@ -9,6 +9,7 @@
9
9
  @import "../carousel/style/index.less";
10
10
  @import "../cascader/style/index.less";
11
11
  @import "../checkbox/style/index.less";
12
+ @import "../clear/style/index.less";
12
13
  @import "../collapse/style/index.less";
13
14
  @import "../config-provider/style/index.less";
14
15
  @import "../date-picker/style/index.less";
@@ -41,7 +41,7 @@
41
41
  @modal-close-font-size: @T4;
42
42
 
43
43
  // Body
44
- @modal-body-padding: 6*@P 8*@P;
44
+ @modal-body-margin: 4*@P 6*@P 6*@P;
45
45
  @modal-body-bg-color: @G11;
46
46
  @modal-body-font-size: @T2;
47
47
  @modal-body-line-height: 5*@P;