dcp-design-react 1.8.16 → 1.8.17
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/form/src/types.d.ts +1 -0
- package/lib/guide-tracker/style/index.less +192 -192
- package/lib/hooks/useLockscreen.d.ts +1 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/style/index.css +16 -0
- package/lib/style/index.min.css +1 -1
- package/lib/tour/src/TourStep/index.d.ts +1 -0
- package/lib/tour/style/index.less +23 -0
- package/package.json +1 -1
package/lib/form/src/types.d.ts
CHANGED
|
@@ -1,192 +1,192 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2022-01-11 18:01:20
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-29 23:42:13
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
@prefix-guide-tracker: ~'@{qm-prefix}-guide-tracker';
|
|
10
|
-
|
|
11
|
-
.@{prefix-guide-tracker} {
|
|
12
|
-
.reset-container();
|
|
13
|
-
position: absolute;
|
|
14
|
-
display: block;
|
|
15
|
-
visibility: visible;
|
|
16
|
-
min-width: 450px;
|
|
17
|
-
&-hidden {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
& &-arrow {
|
|
21
|
-
display: block;
|
|
22
|
-
width: 15px;
|
|
23
|
-
height: 15px;
|
|
24
|
-
z-index: 1;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
pointer-events: none;
|
|
27
|
-
&::before {
|
|
28
|
-
content: '';
|
|
29
|
-
position: absolute;
|
|
30
|
-
bottom: 0px;
|
|
31
|
-
inset-inline-start: 0px;
|
|
32
|
-
width: 15px;
|
|
33
|
-
height: 8px;
|
|
34
|
-
clip-path: path('M 0 8 A 4 4 0 0 0 2.82843 6.82843 L 6.58579 3.07107 A 2 2 0 0 1 9.41421 3.07107 L 13.1716 6.82843 A 4 4 0 0 0 16 8 Z');
|
|
35
|
-
background-color: #fff;
|
|
36
|
-
}
|
|
37
|
-
&::after {
|
|
38
|
-
content: '';
|
|
39
|
-
position: absolute;
|
|
40
|
-
width: 8.97056px;
|
|
41
|
-
height: 8.97056px;
|
|
42
|
-
bottom: 0px;
|
|
43
|
-
transform: translateY(50%) rotate(-135deg);
|
|
44
|
-
box-shadow: rgba(0, 0, 0, 0.05) 2px 2px 5px;
|
|
45
|
-
z-index: 0;
|
|
46
|
-
inset-inline: 0px;
|
|
47
|
-
margin: auto;
|
|
48
|
-
border-radius: 0px 0px 2px;
|
|
49
|
-
background: 0px 0px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
& &-close {
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 10px;
|
|
55
|
-
inset-inline-end: 10px;
|
|
56
|
-
color: @--text-color-secondary;
|
|
57
|
-
width: 22px;
|
|
58
|
-
height: 22px;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
outline: none;
|
|
63
|
-
border-radius: 4px;
|
|
64
|
-
transition: background-color 0.2s ease 0s, color 0.2s ease 0s;
|
|
65
|
-
&:hover {
|
|
66
|
-
color: rgba(0, 0, 0, 0.88);
|
|
67
|
-
background-color: rgba(0, 0, 0, 0.06);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
& &-content {
|
|
71
|
-
position: relative;
|
|
72
|
-
}
|
|
73
|
-
& &-inner {
|
|
74
|
-
box-shadow: rgba(0, 0, 0, 0.03) 0px 1px 2px 0px, rgba(0, 0, 0, 0.02) 0px 1px 6px -1px, rgba(0, 0, 0, 0.02) 0px 2px 4px 0px;
|
|
75
|
-
background-color: #fff;
|
|
76
|
-
background-clip: padding-box;
|
|
77
|
-
text-decoration: none;
|
|
78
|
-
border-radius: 8px;
|
|
79
|
-
padding: 10px 15px 15px;
|
|
80
|
-
}
|
|
81
|
-
&-primary &-inner {
|
|
82
|
-
color: #fff;
|
|
83
|
-
background-color: rgba(@--primary-color, 0.85);
|
|
84
|
-
.panel-label {
|
|
85
|
-
margin-bottom: 5px;
|
|
86
|
-
.title {
|
|
87
|
-
font-weight: 600;
|
|
88
|
-
}
|
|
89
|
-
.step {
|
|
90
|
-
margin-left: 20px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.menu-icon {
|
|
94
|
-
right: 35px;
|
|
95
|
-
}
|
|
96
|
-
.help-icon {
|
|
97
|
-
right: 62px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
&-primary &-arrow {
|
|
101
|
-
&::before {
|
|
102
|
-
background-color: rgba(@--primary-color, 0.85);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
&-primary &-close {
|
|
106
|
-
color: #fff;
|
|
107
|
-
&:hover {
|
|
108
|
-
color: #fff;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
&-control {
|
|
112
|
-
position: fixed;
|
|
113
|
-
right: 20px;
|
|
114
|
-
bottom: 20px;
|
|
115
|
-
width: 40px;
|
|
116
|
-
height: 40px;
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
border: 2px solid #fff;
|
|
119
|
-
background: linear-gradient(to right bottom, @--primary-4, @--primary-7);
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
pointer-events: auto;
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
.anticon {
|
|
126
|
-
color: #fff;
|
|
127
|
-
font-size: 20px;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
// =======================================
|
|
131
|
-
&-placement-bottom &-arrow {
|
|
132
|
-
left: 50%;
|
|
133
|
-
transform: translateX(-50%) translateY(-100%);
|
|
134
|
-
}
|
|
135
|
-
&-placement-top &-arrow {
|
|
136
|
-
left: 50%;
|
|
137
|
-
transform: translateX(-50%) translateY(100%) rotate(180deg);
|
|
138
|
-
}
|
|
139
|
-
&-placement-right &-arrow {
|
|
140
|
-
top: 50%;
|
|
141
|
-
transform: translateY(-50%) translateX(-100%) rotate(-90deg);
|
|
142
|
-
}
|
|
143
|
-
&-placement-left &-arrow {
|
|
144
|
-
top: 50%;
|
|
145
|
-
transform: translateY(-50%) translateX(100%) rotate(90deg);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.@{prefix-guide-tracker}__popper {
|
|
150
|
-
.step-list {
|
|
151
|
-
ul {
|
|
152
|
-
margin: 0;
|
|
153
|
-
li.item {
|
|
154
|
-
line-height: 2;
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
padding: 0 @--padding-md;
|
|
158
|
-
&.actived {
|
|
159
|
-
background-color: @--primary-2;
|
|
160
|
-
}
|
|
161
|
-
.handle {
|
|
162
|
-
padding: 2px;
|
|
163
|
-
color: @--text-color-secondary;
|
|
164
|
-
cursor: s-resize;
|
|
165
|
-
transform: scale(0.9);
|
|
166
|
-
}
|
|
167
|
-
.box {
|
|
168
|
-
flex: 1 0;
|
|
169
|
-
display: inline-flex;
|
|
170
|
-
align-items: center;
|
|
171
|
-
.title {
|
|
172
|
-
flex: 1 0;
|
|
173
|
-
width: 0;
|
|
174
|
-
.text-overflow-cut();
|
|
175
|
-
}
|
|
176
|
-
.close-icon {
|
|
177
|
-
padding: 2px;
|
|
178
|
-
font-size: 12px;
|
|
179
|
-
color: @--text-color-secondary;
|
|
180
|
-
border-radius: 4px;
|
|
181
|
-
cursor: pointer;
|
|
182
|
-
display: none;
|
|
183
|
-
}
|
|
184
|
-
&:hover .close-icon {
|
|
185
|
-
display: block;
|
|
186
|
-
background-color: rgba(0, 0, 0, 0.06);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2022-01-11 18:01:20
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-29 23:42:13
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-guide-tracker: ~'@{qm-prefix}-guide-tracker';
|
|
10
|
+
|
|
11
|
+
.@{prefix-guide-tracker} {
|
|
12
|
+
.reset-container();
|
|
13
|
+
position: absolute;
|
|
14
|
+
display: block;
|
|
15
|
+
visibility: visible;
|
|
16
|
+
min-width: 450px;
|
|
17
|
+
&-hidden {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
& &-arrow {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 15px;
|
|
23
|
+
height: 15px;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
&::before {
|
|
28
|
+
content: '';
|
|
29
|
+
position: absolute;
|
|
30
|
+
bottom: 0px;
|
|
31
|
+
inset-inline-start: 0px;
|
|
32
|
+
width: 15px;
|
|
33
|
+
height: 8px;
|
|
34
|
+
clip-path: path('M 0 8 A 4 4 0 0 0 2.82843 6.82843 L 6.58579 3.07107 A 2 2 0 0 1 9.41421 3.07107 L 13.1716 6.82843 A 4 4 0 0 0 16 8 Z');
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
}
|
|
37
|
+
&::after {
|
|
38
|
+
content: '';
|
|
39
|
+
position: absolute;
|
|
40
|
+
width: 8.97056px;
|
|
41
|
+
height: 8.97056px;
|
|
42
|
+
bottom: 0px;
|
|
43
|
+
transform: translateY(50%) rotate(-135deg);
|
|
44
|
+
box-shadow: rgba(0, 0, 0, 0.05) 2px 2px 5px;
|
|
45
|
+
z-index: 0;
|
|
46
|
+
inset-inline: 0px;
|
|
47
|
+
margin: auto;
|
|
48
|
+
border-radius: 0px 0px 2px;
|
|
49
|
+
background: 0px 0px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
& &-close {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 10px;
|
|
55
|
+
inset-inline-end: 10px;
|
|
56
|
+
color: @--text-color-secondary;
|
|
57
|
+
width: 22px;
|
|
58
|
+
height: 22px;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
outline: none;
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
transition: background-color 0.2s ease 0s, color 0.2s ease 0s;
|
|
65
|
+
&:hover {
|
|
66
|
+
color: rgba(0, 0, 0, 0.88);
|
|
67
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
& &-content {
|
|
71
|
+
position: relative;
|
|
72
|
+
}
|
|
73
|
+
& &-inner {
|
|
74
|
+
box-shadow: rgba(0, 0, 0, 0.03) 0px 1px 2px 0px, rgba(0, 0, 0, 0.02) 0px 1px 6px -1px, rgba(0, 0, 0, 0.02) 0px 2px 4px 0px;
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
background-clip: padding-box;
|
|
77
|
+
text-decoration: none;
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
padding: 10px 15px 15px;
|
|
80
|
+
}
|
|
81
|
+
&-primary &-inner {
|
|
82
|
+
color: #fff;
|
|
83
|
+
background-color: rgba(@--primary-color, 0.85);
|
|
84
|
+
.panel-label {
|
|
85
|
+
margin-bottom: 5px;
|
|
86
|
+
.title {
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
}
|
|
89
|
+
.step {
|
|
90
|
+
margin-left: 20px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.menu-icon {
|
|
94
|
+
right: 35px;
|
|
95
|
+
}
|
|
96
|
+
.help-icon {
|
|
97
|
+
right: 62px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&-primary &-arrow {
|
|
101
|
+
&::before {
|
|
102
|
+
background-color: rgba(@--primary-color, 0.85);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&-primary &-close {
|
|
106
|
+
color: #fff;
|
|
107
|
+
&:hover {
|
|
108
|
+
color: #fff;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
&-control {
|
|
112
|
+
position: fixed;
|
|
113
|
+
right: 20px;
|
|
114
|
+
bottom: 20px;
|
|
115
|
+
width: 40px;
|
|
116
|
+
height: 40px;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
border: 2px solid #fff;
|
|
119
|
+
background: linear-gradient(to right bottom, @--primary-4, @--primary-7);
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
pointer-events: auto;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
.anticon {
|
|
126
|
+
color: #fff;
|
|
127
|
+
font-size: 20px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
// =======================================
|
|
131
|
+
&-placement-bottom &-arrow {
|
|
132
|
+
left: 50%;
|
|
133
|
+
transform: translateX(-50%) translateY(-100%);
|
|
134
|
+
}
|
|
135
|
+
&-placement-top &-arrow {
|
|
136
|
+
left: 50%;
|
|
137
|
+
transform: translateX(-50%) translateY(100%) rotate(180deg);
|
|
138
|
+
}
|
|
139
|
+
&-placement-right &-arrow {
|
|
140
|
+
top: 50%;
|
|
141
|
+
transform: translateY(-50%) translateX(-100%) rotate(-90deg);
|
|
142
|
+
}
|
|
143
|
+
&-placement-left &-arrow {
|
|
144
|
+
top: 50%;
|
|
145
|
+
transform: translateY(-50%) translateX(100%) rotate(90deg);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.@{prefix-guide-tracker}__popper {
|
|
150
|
+
.step-list {
|
|
151
|
+
ul {
|
|
152
|
+
margin: 0;
|
|
153
|
+
li.item {
|
|
154
|
+
line-height: 2;
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
padding: 0 @--padding-md;
|
|
158
|
+
&.actived {
|
|
159
|
+
background-color: @--primary-2;
|
|
160
|
+
}
|
|
161
|
+
.handle {
|
|
162
|
+
padding: 2px;
|
|
163
|
+
color: @--text-color-secondary;
|
|
164
|
+
cursor: s-resize;
|
|
165
|
+
transform: scale(0.9);
|
|
166
|
+
}
|
|
167
|
+
.box {
|
|
168
|
+
flex: 1 0;
|
|
169
|
+
display: inline-flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
.title {
|
|
172
|
+
flex: 1 0;
|
|
173
|
+
width: 0;
|
|
174
|
+
.text-overflow-cut();
|
|
175
|
+
}
|
|
176
|
+
.close-icon {
|
|
177
|
+
padding: 2px;
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
color: @--text-color-secondary;
|
|
180
|
+
border-radius: 4px;
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
&:hover .close-icon {
|
|
185
|
+
display: block;
|
|
186
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useLockscreen: (trigger?: boolean) => void;
|