@jiaozhiye/qm-design-react 1.7.26 → 1.7.28
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/form.d.ts +1 -1
- package/lib/guide-tracker/index.d.ts +3 -0
- package/lib/guide-tracker/src/Panel.d.ts +9 -0
- package/lib/guide-tracker/src/guideTracker.d.ts +35 -0
- package/lib/guide-tracker/src/lib/Highlighter.d.ts +2 -0
- package/lib/guide-tracker/src/lib/Overlay.d.ts +36 -0
- package/lib/guide-tracker/src/lib/index.d.ts +29 -0
- package/lib/guide-tracker/src/lib/utils.d.ts +27 -0
- package/lib/guide-tracker/style/index.less +189 -0
- package/lib/hooks/useLayoutUpdateEffect.d.ts +2 -0
- package/lib/hooks/useMergedState.d.ts +8 -0
- package/lib/hooks/useSafeState.d.ts +4 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.d.ts +8 -0
- package/lib/locale/lang/en.js +13 -5
- package/lib/locale/lang/zh-cn.d.ts +8 -0
- package/lib/locale/lang/zh-cn.js +13 -5
- package/lib/style/index.css +188 -1
- package/lib/style/index.less +39 -38
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/hooks/useTableEffect.d.ts +1 -0
- package/lib/table/src/hooks/useTableRef.d.ts +3 -0
- package/lib/table/src/table/props.d.ts +1 -0
- package/lib/table/src/table/types.d.ts +1 -0
- package/lib/tour/src/Tour.d.ts +1 -0
- package/lib/tour/src/TourStep/index.d.ts +1 -1
- package/package.json +3 -2
package/lib/locale/lang/en.d.ts
CHANGED
|
@@ -131,6 +131,14 @@ declare const _default: {
|
|
|
131
131
|
nextStep: string;
|
|
132
132
|
finish: string;
|
|
133
133
|
};
|
|
134
|
+
guideTracker: {
|
|
135
|
+
addButton: string;
|
|
136
|
+
editButton: string;
|
|
137
|
+
closeButton: string;
|
|
138
|
+
finishButton: string;
|
|
139
|
+
label: string;
|
|
140
|
+
currentStep: string;
|
|
141
|
+
};
|
|
134
142
|
table: {
|
|
135
143
|
config: {
|
|
136
144
|
selectionText: string;
|
package/lib/locale/lang/en.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-06-19 08:46:00
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-25 16:48:40
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-06-19 08:46:00
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-25 16:48:40
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
name: 'en',
|
|
@@ -137,6 +137,14 @@ export default {
|
|
|
137
137
|
nextStep: 'Next',
|
|
138
138
|
finish: 'Finish'
|
|
139
139
|
},
|
|
140
|
+
guideTracker: {
|
|
141
|
+
addButton: 'Add To',
|
|
142
|
+
editButton: 'Save',
|
|
143
|
+
closeButton: 'Close',
|
|
144
|
+
finishButton: 'Finish And Save',
|
|
145
|
+
label: 'Operation guide collection',
|
|
146
|
+
currentStep: 'Current Step: '
|
|
147
|
+
},
|
|
140
148
|
table: {
|
|
141
149
|
config: {
|
|
142
150
|
selectionText: '#',
|
|
@@ -131,6 +131,14 @@ declare const _default: {
|
|
|
131
131
|
nextStep: string;
|
|
132
132
|
finish: string;
|
|
133
133
|
};
|
|
134
|
+
guideTracker: {
|
|
135
|
+
addButton: string;
|
|
136
|
+
editButton: string;
|
|
137
|
+
closeButton: string;
|
|
138
|
+
finishButton: string;
|
|
139
|
+
label: string;
|
|
140
|
+
currentStep: string;
|
|
141
|
+
};
|
|
134
142
|
table: {
|
|
135
143
|
config: {
|
|
136
144
|
selectionText: string;
|
package/lib/locale/lang/zh-cn.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-06-19 08:45:54
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-25 16:48:08
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-06-19 08:45:54
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-25 16:48:08
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
name: 'zh-cn',
|
|
@@ -137,6 +137,14 @@ export default {
|
|
|
137
137
|
nextStep: '下一步',
|
|
138
138
|
finish: '结束引导'
|
|
139
139
|
},
|
|
140
|
+
guideTracker: {
|
|
141
|
+
addButton: '添 加',
|
|
142
|
+
editButton: '保 存',
|
|
143
|
+
closeButton: '关 闭',
|
|
144
|
+
finishButton: '结束并保存',
|
|
145
|
+
label: '新手引导录入',
|
|
146
|
+
currentStep: '当前步骤:'
|
|
147
|
+
},
|
|
140
148
|
table: {
|
|
141
149
|
config: {
|
|
142
150
|
selectionText: '选择',
|
package/lib/style/index.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: 焦质晔
|
|
3
3
|
* @Date: 2021-07-23 18:23:59
|
|
4
4
|
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-
|
|
5
|
+
* @Last Modified time: 2023-07-29 23:41:31
|
|
6
6
|
*/
|
|
7
7
|
/*
|
|
8
8
|
* @Author: 焦质晔
|
|
@@ -30093,6 +30093,193 @@ table {
|
|
|
30093
30093
|
top: 50%;
|
|
30094
30094
|
transform: translateY(-50%) translateX(100%) rotate(90deg);
|
|
30095
30095
|
}
|
|
30096
|
+
/*
|
|
30097
|
+
* @Author: 焦质晔
|
|
30098
|
+
* @Date: 2022-01-11 18:01:20
|
|
30099
|
+
* @Last Modified by: 焦质晔
|
|
30100
|
+
* @Last Modified time: 2023-07-29 23:42:13
|
|
30101
|
+
*/
|
|
30102
|
+
.qm-guide-tracker {
|
|
30103
|
+
box-sizing: border-box;
|
|
30104
|
+
margin: 0;
|
|
30105
|
+
padding: 0;
|
|
30106
|
+
color: rgba(0, 0, 0, 0.85);
|
|
30107
|
+
font-variant: tabular-nums;
|
|
30108
|
+
line-height: 1.5715;
|
|
30109
|
+
list-style: none;
|
|
30110
|
+
font-feature-settings: 'tnum';
|
|
30111
|
+
position: absolute;
|
|
30112
|
+
display: block;
|
|
30113
|
+
visibility: visible;
|
|
30114
|
+
min-width: 450px;
|
|
30115
|
+
}
|
|
30116
|
+
.qm-guide-tracker-hidden {
|
|
30117
|
+
display: none;
|
|
30118
|
+
}
|
|
30119
|
+
.qm-guide-tracker .qm-guide-tracker-arrow {
|
|
30120
|
+
display: block;
|
|
30121
|
+
width: 15px;
|
|
30122
|
+
height: 15px;
|
|
30123
|
+
z-index: 1;
|
|
30124
|
+
overflow: hidden;
|
|
30125
|
+
pointer-events: none;
|
|
30126
|
+
}
|
|
30127
|
+
.qm-guide-tracker .qm-guide-tracker-arrow::before {
|
|
30128
|
+
content: '';
|
|
30129
|
+
position: absolute;
|
|
30130
|
+
bottom: 0px;
|
|
30131
|
+
inset-inline-start: 0px;
|
|
30132
|
+
width: 15px;
|
|
30133
|
+
height: 8px;
|
|
30134
|
+
-webkit-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');
|
|
30135
|
+
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');
|
|
30136
|
+
background-color: #fff;
|
|
30137
|
+
}
|
|
30138
|
+
.qm-guide-tracker .qm-guide-tracker-arrow::after {
|
|
30139
|
+
content: '';
|
|
30140
|
+
position: absolute;
|
|
30141
|
+
width: 8.97056px;
|
|
30142
|
+
height: 8.97056px;
|
|
30143
|
+
bottom: 0px;
|
|
30144
|
+
transform: translateY(50%) rotate(-135deg);
|
|
30145
|
+
box-shadow: rgba(0, 0, 0, 0.05) 2px 2px 5px;
|
|
30146
|
+
z-index: 0;
|
|
30147
|
+
inset-inline: 0px;
|
|
30148
|
+
margin: auto;
|
|
30149
|
+
border-radius: 0px 0px 2px;
|
|
30150
|
+
background: 0px 0px;
|
|
30151
|
+
}
|
|
30152
|
+
.qm-guide-tracker .qm-guide-tracker-close {
|
|
30153
|
+
position: absolute;
|
|
30154
|
+
top: 10px;
|
|
30155
|
+
inset-inline-end: 10px;
|
|
30156
|
+
color: rgba(0, 0, 0, 0.45);
|
|
30157
|
+
width: 22px;
|
|
30158
|
+
height: 22px;
|
|
30159
|
+
display: flex;
|
|
30160
|
+
align-items: center;
|
|
30161
|
+
justify-content: center;
|
|
30162
|
+
outline: none;
|
|
30163
|
+
border-radius: 4px;
|
|
30164
|
+
transition: background-color 0.2s ease 0s, color 0.2s ease 0s;
|
|
30165
|
+
}
|
|
30166
|
+
.qm-guide-tracker .qm-guide-tracker-close:hover {
|
|
30167
|
+
color: rgba(0, 0, 0, 0.88);
|
|
30168
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
30169
|
+
}
|
|
30170
|
+
.qm-guide-tracker .qm-guide-tracker-content {
|
|
30171
|
+
position: relative;
|
|
30172
|
+
}
|
|
30173
|
+
.qm-guide-tracker .qm-guide-tracker-inner {
|
|
30174
|
+
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;
|
|
30175
|
+
background-color: #fff;
|
|
30176
|
+
background-clip: padding-box;
|
|
30177
|
+
text-decoration: none;
|
|
30178
|
+
border-radius: 8px;
|
|
30179
|
+
padding: 10px 15px 15px;
|
|
30180
|
+
}
|
|
30181
|
+
.qm-guide-tracker-primary .qm-guide-tracker-inner {
|
|
30182
|
+
color: #fff;
|
|
30183
|
+
background-color: rgba(24, 144, 255, 0.85);
|
|
30184
|
+
}
|
|
30185
|
+
.qm-guide-tracker-primary .qm-guide-tracker-inner .panel-label {
|
|
30186
|
+
margin-bottom: 5px;
|
|
30187
|
+
}
|
|
30188
|
+
.qm-guide-tracker-primary .qm-guide-tracker-inner .panel-label .title {
|
|
30189
|
+
font-weight: 600;
|
|
30190
|
+
}
|
|
30191
|
+
.qm-guide-tracker-primary .qm-guide-tracker-inner .panel-label .step {
|
|
30192
|
+
margin-left: 20px;
|
|
30193
|
+
}
|
|
30194
|
+
.qm-guide-tracker-primary .qm-guide-tracker-inner .menu-icon {
|
|
30195
|
+
right: 35px;
|
|
30196
|
+
}
|
|
30197
|
+
.qm-guide-tracker-primary .qm-guide-tracker-arrow::before {
|
|
30198
|
+
background-color: rgba(24, 144, 255, 0.85);
|
|
30199
|
+
}
|
|
30200
|
+
.qm-guide-tracker-primary .qm-guide-tracker-close {
|
|
30201
|
+
color: #fff;
|
|
30202
|
+
}
|
|
30203
|
+
.qm-guide-tracker-primary .qm-guide-tracker-close:hover {
|
|
30204
|
+
color: #fff;
|
|
30205
|
+
}
|
|
30206
|
+
.qm-guide-tracker-control {
|
|
30207
|
+
position: fixed;
|
|
30208
|
+
right: 20px;
|
|
30209
|
+
bottom: 20px;
|
|
30210
|
+
width: 40px;
|
|
30211
|
+
height: 40px;
|
|
30212
|
+
border-radius: 50%;
|
|
30213
|
+
border: 2px solid #fff;
|
|
30214
|
+
background: linear-gradient(to right bottom, #69c0ff, #096dd9);
|
|
30215
|
+
display: flex;
|
|
30216
|
+
align-items: center;
|
|
30217
|
+
justify-content: center;
|
|
30218
|
+
pointer-events: auto;
|
|
30219
|
+
cursor: pointer;
|
|
30220
|
+
}
|
|
30221
|
+
.qm-guide-tracker-control .anticon {
|
|
30222
|
+
color: #fff;
|
|
30223
|
+
font-size: 20px;
|
|
30224
|
+
}
|
|
30225
|
+
.qm-guide-tracker-placement-bottom .qm-guide-tracker-arrow {
|
|
30226
|
+
left: 50%;
|
|
30227
|
+
transform: translateX(-50%) translateY(-100%);
|
|
30228
|
+
}
|
|
30229
|
+
.qm-guide-tracker-placement-top .qm-guide-tracker-arrow {
|
|
30230
|
+
left: 50%;
|
|
30231
|
+
transform: translateX(-50%) translateY(100%) rotate(180deg);
|
|
30232
|
+
}
|
|
30233
|
+
.qm-guide-tracker-placement-right .qm-guide-tracker-arrow {
|
|
30234
|
+
top: 50%;
|
|
30235
|
+
transform: translateY(-50%) translateX(-100%) rotate(-90deg);
|
|
30236
|
+
}
|
|
30237
|
+
.qm-guide-tracker-placement-left .qm-guide-tracker-arrow {
|
|
30238
|
+
top: 50%;
|
|
30239
|
+
transform: translateY(-50%) translateX(100%) rotate(90deg);
|
|
30240
|
+
}
|
|
30241
|
+
.qm-guide-tracker__popper .step-list ul {
|
|
30242
|
+
margin: 0;
|
|
30243
|
+
}
|
|
30244
|
+
.qm-guide-tracker__popper .step-list ul li.item {
|
|
30245
|
+
line-height: 2;
|
|
30246
|
+
display: flex;
|
|
30247
|
+
align-items: center;
|
|
30248
|
+
padding: 0 10px;
|
|
30249
|
+
}
|
|
30250
|
+
.qm-guide-tracker__popper .step-list ul li.item.actived {
|
|
30251
|
+
background-color: #bae7ff;
|
|
30252
|
+
}
|
|
30253
|
+
.qm-guide-tracker__popper .step-list ul li.item .handle {
|
|
30254
|
+
padding: 2px;
|
|
30255
|
+
color: rgba(0, 0, 0, 0.45);
|
|
30256
|
+
cursor: s-resize;
|
|
30257
|
+
transform: scale(0.9);
|
|
30258
|
+
}
|
|
30259
|
+
.qm-guide-tracker__popper .step-list ul li.item .box {
|
|
30260
|
+
flex: 1 0;
|
|
30261
|
+
display: inline-flex;
|
|
30262
|
+
align-items: center;
|
|
30263
|
+
}
|
|
30264
|
+
.qm-guide-tracker__popper .step-list ul li.item .box .title {
|
|
30265
|
+
flex: 1 0;
|
|
30266
|
+
width: 0;
|
|
30267
|
+
overflow: hidden;
|
|
30268
|
+
text-overflow: ellipsis;
|
|
30269
|
+
white-space: nowrap;
|
|
30270
|
+
}
|
|
30271
|
+
.qm-guide-tracker__popper .step-list ul li.item .box .close-icon {
|
|
30272
|
+
padding: 2px;
|
|
30273
|
+
font-size: 12px;
|
|
30274
|
+
color: rgba(0, 0, 0, 0.45);
|
|
30275
|
+
border-radius: 4px;
|
|
30276
|
+
cursor: pointer;
|
|
30277
|
+
display: none;
|
|
30278
|
+
}
|
|
30279
|
+
.qm-guide-tracker__popper .step-list ul li.item .box:hover .close-icon {
|
|
30280
|
+
display: block;
|
|
30281
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
30282
|
+
}
|
|
30096
30283
|
/*
|
|
30097
30284
|
* @Author: 焦质晔
|
|
30098
30285
|
* @Date: 2021-07-23 19:05:57
|
package/lib/style/index.less
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 18:23:59
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-
|
|
6
|
-
*/
|
|
7
|
-
@import '../antd/index.less';
|
|
8
|
-
@import './var.less';
|
|
9
|
-
@import './reset.less';
|
|
10
|
-
|
|
11
|
-
/* QmDesign */
|
|
12
|
-
@import '../button/style/index.less';
|
|
13
|
-
@import '../space/style/index.less';
|
|
14
|
-
@import '../divider/style/index.less';
|
|
15
|
-
@import '../split/style/index.less';
|
|
16
|
-
@import '../countup/style/index.less';
|
|
17
|
-
@import '../empty/style/index.less';
|
|
18
|
-
@import '../spin/style/index.less';
|
|
19
|
-
@import '../scrollbar/style/index.less';
|
|
20
|
-
@import '../download/style/index.less';
|
|
21
|
-
@import '../anchor/style/index.less';
|
|
22
|
-
@import '../tabs/style/index.less';
|
|
23
|
-
@import '../drawer/style/index.less';
|
|
24
|
-
@import '../modal/style/index.less';
|
|
25
|
-
@import '../form/style/index.less';
|
|
26
|
-
@import '../tinymce/style/index.less';
|
|
27
|
-
@import '../cropper/style/index.less';
|
|
28
|
-
@import '../collapse/style/index.less';
|
|
29
|
-
@import '../upload-file/style/index.less';
|
|
30
|
-
@import '../upload-img/style/index.less';
|
|
31
|
-
@import '../table/style/index.less';
|
|
32
|
-
@import '../search-helper/style/index.less';
|
|
33
|
-
@import '../tree-helper/style/index.less';
|
|
34
|
-
@import '../tree-table-helper/style/index.less';
|
|
35
|
-
@import '../range-table-helper/style/index.less';
|
|
36
|
-
@import '../search-tree/style/index.less';
|
|
37
|
-
@import '../tour/style/index.less';
|
|
38
|
-
@import '../
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 18:23:59
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-29 23:41:31
|
|
6
|
+
*/
|
|
7
|
+
@import '../antd/index.less';
|
|
8
|
+
@import './var.less';
|
|
9
|
+
@import './reset.less';
|
|
10
|
+
|
|
11
|
+
/* QmDesign */
|
|
12
|
+
@import '../button/style/index.less';
|
|
13
|
+
@import '../space/style/index.less';
|
|
14
|
+
@import '../divider/style/index.less';
|
|
15
|
+
@import '../split/style/index.less';
|
|
16
|
+
@import '../countup/style/index.less';
|
|
17
|
+
@import '../empty/style/index.less';
|
|
18
|
+
@import '../spin/style/index.less';
|
|
19
|
+
@import '../scrollbar/style/index.less';
|
|
20
|
+
@import '../download/style/index.less';
|
|
21
|
+
@import '../anchor/style/index.less';
|
|
22
|
+
@import '../tabs/style/index.less';
|
|
23
|
+
@import '../drawer/style/index.less';
|
|
24
|
+
@import '../modal/style/index.less';
|
|
25
|
+
@import '../form/style/index.less';
|
|
26
|
+
@import '../tinymce/style/index.less';
|
|
27
|
+
@import '../cropper/style/index.less';
|
|
28
|
+
@import '../collapse/style/index.less';
|
|
29
|
+
@import '../upload-file/style/index.less';
|
|
30
|
+
@import '../upload-img/style/index.less';
|
|
31
|
+
@import '../table/style/index.less';
|
|
32
|
+
@import '../search-helper/style/index.less';
|
|
33
|
+
@import '../tree-helper/style/index.less';
|
|
34
|
+
@import '../tree-table-helper/style/index.less';
|
|
35
|
+
@import '../range-table-helper/style/index.less';
|
|
36
|
+
@import '../search-tree/style/index.less';
|
|
37
|
+
@import '../tour/style/index.less';
|
|
38
|
+
@import '../guide-tracker/style/index.less';
|
|
39
|
+
@import '../print/style/index.less';
|