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.
- package/dist/acud.css +277 -152
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +1107 -910
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +6 -6
- package/dist/acud.min.js.map +1 -1
- package/es/button/button.d.ts +1 -0
- package/es/button/button.js +1 -0
- package/es/cascader/Cascader.js +2 -1
- package/es/cascader/MenuItem.js +7 -13
- package/es/cascader/Menus.d.ts +3 -2
- package/es/cascader/Menus.js +30 -24
- package/es/cascader/index.js +32 -11
- package/es/cascader/style/index.css +17 -68
- package/es/cascader/style/index.less +23 -31
- package/es/clear/index.d.ts +12 -0
- package/es/clear/index.js +41 -0
- package/es/clear/style/css.js +2 -0
- package/es/clear/style/index.css +63 -0
- package/es/clear/style/index.d.ts +2 -0
- package/es/clear/style/index.js +2 -0
- package/es/clear/style/index.less +18 -0
- package/es/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/es/date-picker/generatePicker/generateSinglePicker.js +2 -2
- package/es/date-picker/src/PickerPanel.js +4 -1
- package/es/date-picker/src/utils/uiUtil.js +4 -4
- package/es/date-picker/style/index.css +106 -53
- package/es/date-picker/style/panel.less +83 -18
- package/es/dropdown/dropdown.js +2 -3
- package/es/dropdown/rc-dropdown/Dropdown.js +1 -0
- package/es/form/style/horizontal.less +3 -1
- package/es/form/style/index.css +2 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/menu/menu.d.ts +2 -1
- package/es/modal/DialogBox.d.ts +1 -1
- package/es/modal/Modal.d.ts +0 -2
- package/es/modal/style/index.css +27 -7
- package/es/modal/style/index.less +23 -7
- package/es/modal/style/mixin.less +2 -2
- package/es/progress/CircleProgress.js +2 -2
- package/es/progress/LineProgress.js +4 -2
- package/es/radio/Radio.d.ts +1 -0
- package/es/radio/Radio.js +3 -2
- package/es/radio/RadioButton.js +3 -2
- package/es/radio/RadioGroup.d.ts +1 -0
- package/es/radio/RadioGroup.js +4 -1
- package/es/radio/context.d.ts +1 -0
- package/es/style/themes/dark/components/modal.less +1 -1
- package/es/style/themes/default/components/cascader.less +0 -4
- package/es/style/themes/default/components/clear.less +2 -0
- package/es/style/themes/default/components/datePicker.less +1 -0
- package/es/style/themes/default/components/index.less +1 -0
- package/es/style/themes/default/components/modal.less +1 -1
- package/es/switch/index.d.ts +2 -3
- package/es/switch/index.js +11 -3
- package/es/switch/interface.d.ts +4 -0
- package/es/switch/style/index.css +31 -0
- package/es/switch/style/index.less +33 -1
- package/es/tabs/src/TabNavList/index.js +2 -2
- package/es/tabs/style/index.css +0 -1
- package/es/tabs/style/index.less +0 -1
- package/es/toast/index.js +7 -8
- package/es/toast/style/index.css +1 -1
- package/es/toast/style/index.less +3 -3
- package/es/tooltip/index.js +1 -1
- package/es/transfer/SourceList.js +1 -0
- package/es/transfer/index.js +5 -5
- package/es/transfer/style/index.css +3 -0
- package/es/transfer/style/index.less +3 -0
- package/es/upload/Upload.js +4 -1
- package/es/upload/UploadList/ListItem.js +2 -2
- package/es/upload/UploadList/index.js +1 -1
- package/es/upload/style/index.css +25 -21
- package/es/upload/style/index.less +28 -21
- package/lib/button/button.d.ts +1 -0
- package/lib/button/button.js +1 -0
- package/lib/cascader/Cascader.js +2 -1
- package/lib/cascader/MenuItem.js +7 -13
- package/lib/cascader/Menus.d.ts +3 -2
- package/lib/cascader/Menus.js +31 -24
- package/lib/cascader/index.js +34 -12
- package/lib/cascader/style/index.css +17 -68
- package/lib/cascader/style/index.less +23 -31
- package/lib/clear/index.d.ts +12 -0
- package/lib/clear/index.js +55 -0
- package/lib/clear/style/css.js +5 -0
- package/lib/clear/style/index.css +63 -0
- package/lib/clear/style/index.d.ts +2 -0
- package/lib/clear/style/index.js +5 -0
- package/lib/clear/style/index.less +18 -0
- package/lib/date-picker/generatePicker/generateRangePicker.js +3 -3
- package/lib/date-picker/generatePicker/generateSinglePicker.js +3 -3
- package/lib/date-picker/src/PickerPanel.js +4 -1
- package/lib/date-picker/src/utils/uiUtil.js +4 -4
- package/lib/date-picker/style/index.css +106 -53
- package/lib/date-picker/style/panel.less +83 -18
- package/lib/dropdown/dropdown.js +2 -3
- package/lib/dropdown/rc-dropdown/Dropdown.js +1 -0
- package/lib/form/style/horizontal.less +3 -1
- package/lib/form/style/index.css +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/lib/menu/menu.d.ts +2 -1
- package/lib/modal/DialogBox.d.ts +1 -1
- package/lib/modal/Modal.d.ts +0 -2
- package/lib/modal/style/index.css +27 -7
- package/lib/modal/style/index.less +23 -7
- package/lib/modal/style/mixin.less +2 -2
- package/lib/progress/CircleProgress.js +2 -2
- package/lib/progress/LineProgress.js +4 -2
- package/lib/radio/Radio.d.ts +1 -0
- package/lib/radio/Radio.js +3 -2
- package/lib/radio/RadioButton.js +3 -2
- package/lib/radio/RadioGroup.d.ts +1 -0
- package/lib/radio/RadioGroup.js +5 -1
- package/lib/radio/context.d.ts +1 -0
- package/lib/style/components.less +1 -0
- package/lib/style/themes/dark/components/modal.less +1 -1
- package/lib/style/themes/default/components/cascader.less +0 -4
- package/lib/style/themes/default/components/clear.less +2 -0
- package/lib/style/themes/default/components/datePicker.less +1 -0
- package/lib/style/themes/default/components/index.less +1 -0
- package/lib/style/themes/default/components/modal.less +1 -1
- package/lib/switch/index.d.ts +2 -3
- package/lib/switch/index.js +12 -3
- package/lib/switch/interface.d.ts +4 -0
- package/lib/switch/style/index.css +31 -0
- package/lib/switch/style/index.less +33 -1
- package/lib/tabs/src/TabNavList/index.js +2 -2
- package/lib/tabs/style/index.css +0 -1
- package/lib/tabs/style/index.less +0 -1
- package/lib/toast/index.js +7 -8
- package/lib/toast/style/index.css +1 -1
- package/lib/toast/style/index.less +3 -3
- package/lib/tooltip/index.js +1 -1
- package/lib/transfer/SourceList.js +1 -0
- package/lib/transfer/index.js +5 -5
- package/lib/transfer/style/index.css +3 -0
- package/lib/transfer/style/index.less +3 -0
- package/lib/upload/Upload.js +4 -1
- package/lib/upload/UploadList/ListItem.js +2 -2
- package/lib/upload/UploadList/index.js +1 -1
- package/lib/upload/style/index.css +25 -21
- package/lib/upload/style/index.less +28 -21
- 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
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
632
|
-
|
|
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
|
-
|
|
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
|
}
|
package/es/dropdown/dropdown.js
CHANGED
|
@@ -111,12 +111,11 @@ var Dropdown = function Dropdown(props) {
|
|
|
111
111
|
return fixedModeOverlay;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
return /*#__PURE__*/React.createElement(RcDropdown, _extends({
|
|
114
|
+
return /*#__PURE__*/React.createElement(RcDropdown, _extends({}, rest, {
|
|
115
115
|
prefixCls: prefixCls,
|
|
116
116
|
trigger: triggerActions,
|
|
117
117
|
onVisibleChange: onVisibleChange,
|
|
118
|
-
visible: mergedVisible
|
|
119
|
-
}, rest, {
|
|
118
|
+
visible: mergedVisible,
|
|
120
119
|
overlay: function overlay() {
|
|
121
120
|
return renderOverlay();
|
|
122
121
|
},
|
|
@@ -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:
|
|
22
|
+
margin-left: -@P;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
}
|
package/es/form/style/index.css
CHANGED
|
@@ -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/es/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/es/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { default as Button } from './button';
|
|
|
11
11
|
export { default as Carousel } from './carousel';
|
|
12
12
|
export { default as Cascader } from './cascader';
|
|
13
13
|
export { default as Checkbox } from './checkbox';
|
|
14
|
+
export { default as Clear } from './clear';
|
|
14
15
|
export { default as Col } from './col';
|
|
15
16
|
export { default as Collapse } from './collapse';
|
|
16
17
|
export { default as ConfigProvider } from './config-provider';
|
package/es/menu/menu.d.ts
CHANGED
|
@@ -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';
|
package/es/modal/DialogBox.d.ts
CHANGED
package/es/modal/Modal.d.ts
CHANGED
package/es/modal/style/index.css
CHANGED
|
@@ -55,26 +55,46 @@
|
|
|
55
55
|
-webkit-overflow-scrolling: touch;
|
|
56
56
|
z-index: 1000;
|
|
57
57
|
}
|
|
58
|
-
.acud-modal-sm
|
|
58
|
+
.acud-modal-sm {
|
|
59
59
|
width: 520px;
|
|
60
60
|
min-height: 240px;
|
|
61
61
|
max-height: 560px;
|
|
62
62
|
}
|
|
63
|
-
.acud-modal-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
}
|
|
@@ -75,7 +75,7 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
75
75
|
className: labelClassNames,
|
|
76
76
|
style: labelStyles
|
|
77
77
|
}, labelText);
|
|
78
|
-
var iconWidth = sizeRatioMap[size] *
|
|
78
|
+
var iconWidth = sizeRatioMap[size] * 12; // 若信息类型为图标,在成功和异常时,显示图标
|
|
79
79
|
|
|
80
80
|
if (infoType === 'icon') {
|
|
81
81
|
if (status === 'success') {
|
|
@@ -112,7 +112,7 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
112
112
|
}, /*#__PURE__*/React.createElement("path", {
|
|
113
113
|
d: circlePath,
|
|
114
114
|
stroke: strokeColor || 'currentColor',
|
|
115
|
-
strokeWidth: strokeWidth,
|
|
115
|
+
strokeWidth: percent ? strokeWidth : 0,
|
|
116
116
|
strokeLinecap: strokeLinecap,
|
|
117
117
|
fill: "none",
|
|
118
118
|
style: progressStyles
|
|
@@ -70,12 +70,14 @@ var LineProgress = function LineProgress(_ref) {
|
|
|
70
70
|
if (status === 'success') {
|
|
71
71
|
ProgressLabel = /*#__PURE__*/React.createElement(MultiToneSuccess, {
|
|
72
72
|
className: labelClassNames,
|
|
73
|
-
color: strokeColor
|
|
73
|
+
color: strokeColor,
|
|
74
|
+
width: "16px"
|
|
74
75
|
});
|
|
75
76
|
} else if (status === 'error') {
|
|
76
77
|
ProgressLabel = /*#__PURE__*/React.createElement(MultiToneError, {
|
|
77
78
|
className: labelClassNames,
|
|
78
|
-
color: strokeColor
|
|
79
|
+
color: strokeColor,
|
|
80
|
+
width: "16px"
|
|
79
81
|
});
|
|
80
82
|
}
|
|
81
83
|
}
|
package/es/radio/Radio.d.ts
CHANGED
package/es/radio/Radio.js
CHANGED
|
@@ -26,9 +26,10 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
26
26
|
var _props$prefixCls = props.prefixCls,
|
|
27
27
|
prefixCls = _props$prefixCls === void 0 ? 'acud-radio' : _props$prefixCls,
|
|
28
28
|
children = props.children,
|
|
29
|
+
className = props.className,
|
|
29
30
|
onChange = props.onChange,
|
|
30
31
|
label = props.label,
|
|
31
|
-
restProps = __rest(props, ["prefixCls", "children", "onChange", "label"]);
|
|
32
|
+
restProps = __rest(props, ["prefixCls", "children", "className", "onChange", "label"]);
|
|
32
33
|
|
|
33
34
|
var radioRef = /*#__PURE__*/React.createRef();
|
|
34
35
|
React.useImperativeHandle(ref, function () {
|
|
@@ -43,7 +44,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
43
44
|
radioProps.disabled = props.disabled || (context === null || context === void 0 ? void 0 : context.disabled);
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
var classes = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), _defineProperty(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames));
|
|
47
|
+
var classes = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), _defineProperty(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames), className);
|
|
47
48
|
var handleClick = useCallback(function (e) {
|
|
48
49
|
var _a;
|
|
49
50
|
|
package/es/radio/RadioButton.js
CHANGED
|
@@ -24,9 +24,10 @@ export default (function (props) {
|
|
|
24
24
|
var _props$prefixCls = props.prefixCls,
|
|
25
25
|
prefixCls = _props$prefixCls === void 0 ? 'acud-radio-button' : _props$prefixCls,
|
|
26
26
|
children = props.children,
|
|
27
|
+
className = props.className,
|
|
27
28
|
onChange = props.onChange,
|
|
28
29
|
label = props.label,
|
|
29
|
-
restProps = __rest(props, ["prefixCls", "children", "onChange", "label"]);
|
|
30
|
+
restProps = __rest(props, ["prefixCls", "children", "className", "onChange", "label"]);
|
|
30
31
|
|
|
31
32
|
var context = useContext(RadioGroupContext);
|
|
32
33
|
|
|
@@ -37,7 +38,7 @@ export default (function (props) {
|
|
|
37
38
|
radioProps.disabled = props.disabled || (context === null || context === void 0 ? void 0 : context.disabled);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
var classes = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), _defineProperty(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames));
|
|
41
|
+
var classes = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), _defineProperty(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames), className);
|
|
41
42
|
var handleClick = useCallback(function (e) {
|
|
42
43
|
var _a;
|
|
43
44
|
|
package/es/radio/RadioGroup.d.ts
CHANGED
package/es/radio/RadioGroup.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import React, { Fragment, useCallback } from 'react';
|
|
4
|
+
import classnames from 'classnames';
|
|
4
5
|
import useMergedState from '../_util/hooks/useMergedState';
|
|
5
6
|
import Radio from './Radio';
|
|
6
7
|
import Context from './context';
|
|
@@ -12,6 +13,7 @@ export default (function (props) {
|
|
|
12
13
|
optionType = _props$optionType === void 0 ? 'default' : _props$optionType,
|
|
13
14
|
options = props.options,
|
|
14
15
|
children = props.children,
|
|
16
|
+
className = props.className,
|
|
15
17
|
onChange = props.onChange;
|
|
16
18
|
|
|
17
19
|
var _useMergedState = useMergedState(props.defaultValue, {
|
|
@@ -35,8 +37,9 @@ export default (function (props) {
|
|
|
35
37
|
}
|
|
36
38
|
}, [value, disabled, onChange]);
|
|
37
39
|
var Compo = optionType === 'default' ? Radio : Radio.Button;
|
|
40
|
+
var classNames = classnames(prefixCls, className);
|
|
38
41
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className:
|
|
42
|
+
className: classNames
|
|
40
43
|
}, /*#__PURE__*/React.createElement(Context.Provider, {
|
|
41
44
|
value: {
|
|
42
45
|
value: value,
|
package/es/radio/context.d.ts
CHANGED
|
@@ -34,10 +34,6 @@
|
|
|
34
34
|
@cascader-picker-font-size-md: @T2;
|
|
35
35
|
@cascader-picker-font-size-lg: @T3;
|
|
36
36
|
|
|
37
|
-
// clear
|
|
38
|
-
@cascader-picker-clear-tp: tp9;
|
|
39
|
-
@cascader-picker-clear-p: p9;
|
|
40
|
-
|
|
41
37
|
// 级联menus cascader-menus
|
|
42
38
|
@cascader-menus-z-index: 1050;
|
|
43
39
|
@cascader-menus-font-size: @T2;
|