dcp-design-react 1.8.1 → 1.8.2
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/lib/drawer/src/drawer.d.ts +2 -0
- package/lib/drawer/style/index.less +34 -15
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modal/src/modal.d.ts +2 -0
- package/lib/modal/style/index.less +38 -17
- package/lib/style/index.css +55 -19
- package/lib/style/index.min.css +1 -1
- package/package.json +1 -1
package/lib/modal/src/modal.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ type IProps = AntModalProps & {
|
|
|
9
9
|
height?: number | string;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
draggable?: boolean;
|
|
12
|
+
showHeader?: boolean;
|
|
12
13
|
showFullScreen?: boolean;
|
|
13
14
|
stopMouseDownEvent?: boolean;
|
|
14
15
|
onClose?: (e: EventType) => void;
|
|
@@ -41,6 +42,7 @@ declare class QmModal extends Component<IProps, IState> {
|
|
|
41
42
|
private $event;
|
|
42
43
|
static defaultProps: {
|
|
43
44
|
width: string;
|
|
45
|
+
showHeader: boolean;
|
|
44
46
|
showFullScreen: boolean;
|
|
45
47
|
destroyOnClose: boolean;
|
|
46
48
|
draggable: boolean;
|
|
@@ -9,6 +9,20 @@
|
|
|
9
9
|
@prefix-modal: ~'@{qm-prefix}-modal';
|
|
10
10
|
|
|
11
11
|
.@{prefix-modal} {
|
|
12
|
+
&.no-header {
|
|
13
|
+
.ant-modal-close {
|
|
14
|
+
top: 4px;
|
|
15
|
+
right: 6px;
|
|
16
|
+
}
|
|
17
|
+
.ant-modal-header {
|
|
18
|
+
height: 0;
|
|
19
|
+
border: 0;
|
|
20
|
+
.full-screen {
|
|
21
|
+
top: 4px;
|
|
22
|
+
right: 42px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
12
26
|
.ant-modal-header {
|
|
13
27
|
display: flex;
|
|
14
28
|
align-items: center;
|
|
@@ -21,26 +35,33 @@
|
|
|
21
35
|
> div {
|
|
22
36
|
display: flex;
|
|
23
37
|
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
padding-right: 20px;
|
|
26
38
|
cursor: move;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.full-screen {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
text-align: center;
|
|
44
|
+
text-transform: none;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
background: transparent;
|
|
47
|
+
border: 0;
|
|
48
|
+
outline: 0;
|
|
49
|
+
position: absolute;
|
|
50
|
+
right: 34px;
|
|
51
|
+
padding: @--padding-md 5px @--padding-md @--padding-md;
|
|
52
|
+
color: @--text-color-secondary;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
font-size: @--font-size-lg;
|
|
55
|
+
transition: all 0.3s ease;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
&:hover {
|
|
58
|
+
color: @--text-color;
|
|
38
59
|
}
|
|
39
60
|
}
|
|
40
61
|
}
|
|
41
62
|
.ant-modal-close {
|
|
42
|
-
top:
|
|
43
|
-
font-size:
|
|
63
|
+
top: 4px;
|
|
64
|
+
font-size: @--font-size-lg;
|
|
44
65
|
padding: @--padding-md 15px @--padding-md 5px;
|
|
45
66
|
.ant-modal-close-x {
|
|
46
67
|
width: 1em;
|
|
@@ -75,7 +96,7 @@
|
|
|
75
96
|
height: 48px;
|
|
76
97
|
}
|
|
77
98
|
.ant-modal-close {
|
|
78
|
-
top:
|
|
99
|
+
top: 6px;
|
|
79
100
|
}
|
|
80
101
|
.spinning {
|
|
81
102
|
top: 48px;
|
|
@@ -86,7 +107,7 @@
|
|
|
86
107
|
height: 40px;
|
|
87
108
|
}
|
|
88
109
|
.ant-modal-close {
|
|
89
|
-
top:
|
|
110
|
+
top: 2px;
|
|
90
111
|
}
|
|
91
112
|
.spinning {
|
|
92
113
|
top: 40px;
|
package/lib/style/index.css
CHANGED
|
@@ -27658,6 +27658,18 @@ table {
|
|
|
27658
27658
|
* @Last Modified by: 焦质晔
|
|
27659
27659
|
* @Last Modified time: 2022-11-26 20:25:11
|
|
27660
27660
|
*/
|
|
27661
|
+
.qm-drawer.no-header .ant-drawer-header {
|
|
27662
|
+
height: 0;
|
|
27663
|
+
border: 0;
|
|
27664
|
+
}
|
|
27665
|
+
.qm-drawer.no-header .ant-drawer-header .ant-drawer-close {
|
|
27666
|
+
top: 4px;
|
|
27667
|
+
right: 0;
|
|
27668
|
+
}
|
|
27669
|
+
.qm-drawer.no-header .ant-drawer-header .full-screen {
|
|
27670
|
+
top: 4px;
|
|
27671
|
+
right: 42px;
|
|
27672
|
+
}
|
|
27661
27673
|
.qm-drawer .ant-drawer-header {
|
|
27662
27674
|
display: flex;
|
|
27663
27675
|
align-items: center;
|
|
@@ -27669,12 +27681,23 @@ table {
|
|
|
27669
27681
|
}
|
|
27670
27682
|
.qm-drawer .ant-drawer-header .ant-drawer-title {
|
|
27671
27683
|
display: flex;
|
|
27672
|
-
flex: 1;
|
|
27673
27684
|
align-items: center;
|
|
27674
|
-
justify-content: space-between;
|
|
27675
|
-
padding-right: 20px;
|
|
27676
27685
|
}
|
|
27677
|
-
.qm-drawer .ant-drawer-header .ant-drawer-
|
|
27686
|
+
.qm-drawer .ant-drawer-header .ant-drawer-close {
|
|
27687
|
+
position: absolute;
|
|
27688
|
+
right: -8px;
|
|
27689
|
+
padding: 10px 10px 10px 5px;
|
|
27690
|
+
}
|
|
27691
|
+
.qm-drawer .ant-drawer-header .full-screen {
|
|
27692
|
+
display: inline-block;
|
|
27693
|
+
text-align: center;
|
|
27694
|
+
text-transform: none;
|
|
27695
|
+
text-decoration: none;
|
|
27696
|
+
background: transparent;
|
|
27697
|
+
border: 0;
|
|
27698
|
+
outline: 0;
|
|
27699
|
+
position: absolute;
|
|
27700
|
+
right: 34px;
|
|
27678
27701
|
padding: 10px 5px 10px 10px;
|
|
27679
27702
|
color: rgba(0, 0, 0, 0.45);
|
|
27680
27703
|
line-height: 1;
|
|
@@ -27682,15 +27705,9 @@ table {
|
|
|
27682
27705
|
transition: all 0.3s ease;
|
|
27683
27706
|
cursor: pointer;
|
|
27684
27707
|
}
|
|
27685
|
-
.qm-drawer .ant-drawer-header .
|
|
27708
|
+
.qm-drawer .ant-drawer-header .full-screen:hover {
|
|
27686
27709
|
color: rgba(0, 0, 0, 0.85);
|
|
27687
27710
|
}
|
|
27688
|
-
.qm-drawer .ant-drawer-header .ant-drawer-close {
|
|
27689
|
-
position: absolute;
|
|
27690
|
-
right: -8px;
|
|
27691
|
-
font-size: 17px;
|
|
27692
|
-
padding: 10px 10px 10px 5px;
|
|
27693
|
-
}
|
|
27694
27711
|
.qm-drawer .ant-drawer-body {
|
|
27695
27712
|
padding: 10px;
|
|
27696
27713
|
}
|
|
@@ -27728,6 +27745,18 @@ table {
|
|
|
27728
27745
|
* @Last Modified by: 焦质晔
|
|
27729
27746
|
* @Last Modified time: 2022-11-26 20:25:21
|
|
27730
27747
|
*/
|
|
27748
|
+
.qm-modal.no-header .ant-modal-close {
|
|
27749
|
+
top: 4px;
|
|
27750
|
+
right: 6px;
|
|
27751
|
+
}
|
|
27752
|
+
.qm-modal.no-header .ant-modal-header {
|
|
27753
|
+
height: 0;
|
|
27754
|
+
border: 0;
|
|
27755
|
+
}
|
|
27756
|
+
.qm-modal.no-header .ant-modal-header .full-screen {
|
|
27757
|
+
top: 4px;
|
|
27758
|
+
right: 42px;
|
|
27759
|
+
}
|
|
27731
27760
|
.qm-modal .ant-modal-header {
|
|
27732
27761
|
display: flex;
|
|
27733
27762
|
align-items: center;
|
|
@@ -27742,11 +27771,18 @@ table {
|
|
|
27742
27771
|
.qm-modal .ant-modal-header .ant-modal-title > div {
|
|
27743
27772
|
display: flex;
|
|
27744
27773
|
align-items: center;
|
|
27745
|
-
justify-content: space-between;
|
|
27746
|
-
padding-right: 20px;
|
|
27747
27774
|
cursor: move;
|
|
27748
27775
|
}
|
|
27749
|
-
.qm-modal .ant-modal-header .
|
|
27776
|
+
.qm-modal .ant-modal-header .full-screen {
|
|
27777
|
+
display: inline-block;
|
|
27778
|
+
text-align: center;
|
|
27779
|
+
text-transform: none;
|
|
27780
|
+
text-decoration: none;
|
|
27781
|
+
background: transparent;
|
|
27782
|
+
border: 0;
|
|
27783
|
+
outline: 0;
|
|
27784
|
+
position: absolute;
|
|
27785
|
+
right: 34px;
|
|
27750
27786
|
padding: 10px 5px 10px 10px;
|
|
27751
27787
|
color: rgba(0, 0, 0, 0.45);
|
|
27752
27788
|
line-height: 1;
|
|
@@ -27754,12 +27790,12 @@ table {
|
|
|
27754
27790
|
transition: all 0.3s ease;
|
|
27755
27791
|
cursor: pointer;
|
|
27756
27792
|
}
|
|
27757
|
-
.qm-modal .ant-modal-header .
|
|
27793
|
+
.qm-modal .ant-modal-header .full-screen:hover {
|
|
27758
27794
|
color: rgba(0, 0, 0, 0.85);
|
|
27759
27795
|
}
|
|
27760
27796
|
.qm-modal .ant-modal-close {
|
|
27761
|
-
top:
|
|
27762
|
-
font-size:
|
|
27797
|
+
top: 4px;
|
|
27798
|
+
font-size: 16px;
|
|
27763
27799
|
padding: 10px 15px 10px 5px;
|
|
27764
27800
|
}
|
|
27765
27801
|
.qm-modal .ant-modal-close .ant-modal-close-x {
|
|
@@ -27791,7 +27827,7 @@ table {
|
|
|
27791
27827
|
height: 48px;
|
|
27792
27828
|
}
|
|
27793
27829
|
.qm-modal--lg .ant-modal-close {
|
|
27794
|
-
top:
|
|
27830
|
+
top: 6px;
|
|
27795
27831
|
}
|
|
27796
27832
|
.qm-modal--lg .spinning {
|
|
27797
27833
|
top: 48px;
|
|
@@ -27800,7 +27836,7 @@ table {
|
|
|
27800
27836
|
height: 40px;
|
|
27801
27837
|
}
|
|
27802
27838
|
.qm-modal--sm .ant-modal-close {
|
|
27803
|
-
top:
|
|
27839
|
+
top: 2px;
|
|
27804
27840
|
}
|
|
27805
27841
|
.qm-modal--sm .spinning {
|
|
27806
27842
|
top: 40px;
|