@jiaozhiye/qm-design-react 1.7.24 → 1.7.26
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/hooks/useEvent.d.ts +2 -0
- package/lib/index.d.ts +2 -0
- 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 +5 -0
- package/lib/locale/lang/en.js +10 -5
- package/lib/locale/lang/zh-cn.d.ts +5 -0
- package/lib/locale/lang/zh-cn.js +10 -5
- package/lib/style/index.css +163 -1
- package/lib/style/index.less +38 -37
- package/lib/style/index.min.css +1 -1
- package/lib/tour/index.d.ts +4 -0
- package/lib/tour/src/Mask.d.ts +17 -0
- package/lib/tour/src/Pause.d.ts +10 -0
- package/lib/tour/src/Tour.d.ts +39 -0
- package/lib/tour/src/TourStep/DefaultPanel.d.ts +4 -0
- package/lib/tour/src/TourStep/index.d.ts +34 -0
- package/lib/tour/src/hooks/useTarget.d.ts +13 -0
- package/lib/tour/src/placements.d.ts +29 -0
- package/lib/tour/src/util.d.ts +5 -0
- package/lib/tour/style/index.less +157 -0
- package/package.json +2 -1
package/lib/locale/lang/en.d.ts
CHANGED
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:
|
|
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',
|
|
@@ -132,6 +132,11 @@ export default {
|
|
|
132
132
|
rangeStartTip: 'Start position cannot be greater than end position',
|
|
133
133
|
rangeEndTip: 'End position cannot be less than start position'
|
|
134
134
|
},
|
|
135
|
+
tour: {
|
|
136
|
+
prevStep: 'Prev',
|
|
137
|
+
nextStep: 'Next',
|
|
138
|
+
finish: 'Finish'
|
|
139
|
+
},
|
|
135
140
|
table: {
|
|
136
141
|
config: {
|
|
137
142
|
selectionText: '#',
|
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:
|
|
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',
|
|
@@ -132,6 +132,11 @@ export default {
|
|
|
132
132
|
rangeStartTip: '起始位置不能大于结束位置',
|
|
133
133
|
rangeEndTip: '结束位置不能小于起始位置'
|
|
134
134
|
},
|
|
135
|
+
tour: {
|
|
136
|
+
prevStep: '上一步',
|
|
137
|
+
nextStep: '下一步',
|
|
138
|
+
finish: '结束引导'
|
|
139
|
+
},
|
|
135
140
|
table: {
|
|
136
141
|
config: {
|
|
137
142
|
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-
|
|
5
|
+
* @Last Modified time: 2023-07-25 10:25:49
|
|
6
6
|
*/
|
|
7
7
|
/*
|
|
8
8
|
* @Author: 焦质晔
|
|
@@ -29931,6 +29931,168 @@ table {
|
|
|
29931
29931
|
.qm-search-tree .ant-tree .filter-node > span:last-of-type {
|
|
29932
29932
|
color: #1890ff;
|
|
29933
29933
|
}
|
|
29934
|
+
/*
|
|
29935
|
+
* @Author: 焦质晔
|
|
29936
|
+
* @Date: 2022-01-11 18:01:20
|
|
29937
|
+
* @Last Modified by: 焦质晔
|
|
29938
|
+
* @Last Modified time: 2023-07-26 17:22:16
|
|
29939
|
+
*/
|
|
29940
|
+
.qm-tour {
|
|
29941
|
+
box-sizing: border-box;
|
|
29942
|
+
margin: 0;
|
|
29943
|
+
padding: 0;
|
|
29944
|
+
color: rgba(0, 0, 0, 0.85);
|
|
29945
|
+
font-variant: tabular-nums;
|
|
29946
|
+
line-height: 1.5715;
|
|
29947
|
+
list-style: none;
|
|
29948
|
+
font-feature-settings: 'tnum';
|
|
29949
|
+
position: absolute;
|
|
29950
|
+
display: block;
|
|
29951
|
+
visibility: visible;
|
|
29952
|
+
min-width: 500px;
|
|
29953
|
+
}
|
|
29954
|
+
.qm-tour-hidden {
|
|
29955
|
+
display: none;
|
|
29956
|
+
}
|
|
29957
|
+
.qm-tour .qm-tour-arrow {
|
|
29958
|
+
display: block;
|
|
29959
|
+
width: 15px;
|
|
29960
|
+
height: 15px;
|
|
29961
|
+
z-index: 1;
|
|
29962
|
+
overflow: hidden;
|
|
29963
|
+
pointer-events: none;
|
|
29964
|
+
}
|
|
29965
|
+
.qm-tour .qm-tour-arrow::before {
|
|
29966
|
+
content: '';
|
|
29967
|
+
position: absolute;
|
|
29968
|
+
bottom: 0px;
|
|
29969
|
+
inset-inline-start: 0px;
|
|
29970
|
+
width: 15px;
|
|
29971
|
+
height: 8px;
|
|
29972
|
+
-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');
|
|
29973
|
+
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');
|
|
29974
|
+
background-color: #fff;
|
|
29975
|
+
}
|
|
29976
|
+
.qm-tour .qm-tour-arrow::after {
|
|
29977
|
+
content: '';
|
|
29978
|
+
position: absolute;
|
|
29979
|
+
width: 8.97056px;
|
|
29980
|
+
height: 8.97056px;
|
|
29981
|
+
bottom: 0px;
|
|
29982
|
+
transform: translateY(50%) rotate(-135deg);
|
|
29983
|
+
box-shadow: rgba(0, 0, 0, 0.05) 2px 2px 5px;
|
|
29984
|
+
z-index: 0;
|
|
29985
|
+
inset-inline: 0px;
|
|
29986
|
+
margin: auto;
|
|
29987
|
+
border-radius: 0px 0px 2px;
|
|
29988
|
+
background: 0px 0px;
|
|
29989
|
+
}
|
|
29990
|
+
.qm-tour .qm-tour-content {
|
|
29991
|
+
position: relative;
|
|
29992
|
+
}
|
|
29993
|
+
.qm-tour .qm-tour-inner {
|
|
29994
|
+
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;
|
|
29995
|
+
background-color: #fff;
|
|
29996
|
+
background-clip: padding-box;
|
|
29997
|
+
text-decoration: none;
|
|
29998
|
+
border-radius: 8px;
|
|
29999
|
+
}
|
|
30000
|
+
.qm-tour .qm-tour-close {
|
|
30001
|
+
position: absolute;
|
|
30002
|
+
top: 10px;
|
|
30003
|
+
inset-inline-end: 10px;
|
|
30004
|
+
color: rgba(0, 0, 0, 0.45);
|
|
30005
|
+
width: 22px;
|
|
30006
|
+
height: 22px;
|
|
30007
|
+
display: flex;
|
|
30008
|
+
align-items: center;
|
|
30009
|
+
justify-content: center;
|
|
30010
|
+
outline: none;
|
|
30011
|
+
border-radius: 4px;
|
|
30012
|
+
transition: background-color 0.2s ease 0s, color 0.2s ease 0s;
|
|
30013
|
+
}
|
|
30014
|
+
.qm-tour .qm-tour-close:hover {
|
|
30015
|
+
color: rgba(0, 0, 0, 0.88);
|
|
30016
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
30017
|
+
}
|
|
30018
|
+
.qm-tour .qm-tour-cover {
|
|
30019
|
+
text-align: center;
|
|
30020
|
+
padding: 45px 15px 0px;
|
|
30021
|
+
}
|
|
30022
|
+
.qm-tour .qm-tour-header {
|
|
30023
|
+
padding: 15px 15px 8px;
|
|
30024
|
+
}
|
|
30025
|
+
.qm-tour .qm-tour-title {
|
|
30026
|
+
font-weight: 600;
|
|
30027
|
+
}
|
|
30028
|
+
.qm-tour .qm-tour-description {
|
|
30029
|
+
overflow-wrap: break-word;
|
|
30030
|
+
padding: 0px 15px;
|
|
30031
|
+
}
|
|
30032
|
+
.qm-tour .qm-tour-footer {
|
|
30033
|
+
text-align: end;
|
|
30034
|
+
display: flex;
|
|
30035
|
+
padding: 8px 15px 15px;
|
|
30036
|
+
}
|
|
30037
|
+
.qm-tour .qm-tour-indicators {
|
|
30038
|
+
display: inline-block;
|
|
30039
|
+
}
|
|
30040
|
+
.qm-tour .qm-tour-indicators .qm-tour-indicator {
|
|
30041
|
+
width: 6px;
|
|
30042
|
+
height: 6px;
|
|
30043
|
+
display: inline-block;
|
|
30044
|
+
border-radius: 50%;
|
|
30045
|
+
background: rgba(0, 0, 0, 0.15);
|
|
30046
|
+
}
|
|
30047
|
+
.qm-tour .qm-tour-indicators .qm-tour-indicator-active {
|
|
30048
|
+
background: #1890ff;
|
|
30049
|
+
}
|
|
30050
|
+
.qm-tour .qm-tour-indicators .qm-tour-indicator:not(:last-child) {
|
|
30051
|
+
-webkit-margin-end: 6px;
|
|
30052
|
+
margin-inline-end: 6px;
|
|
30053
|
+
}
|
|
30054
|
+
.qm-tour .qm-tour-buttons {
|
|
30055
|
+
-webkit-margin-start: auto;
|
|
30056
|
+
margin-inline-start: auto;
|
|
30057
|
+
}
|
|
30058
|
+
.qm-tour-control {
|
|
30059
|
+
position: fixed;
|
|
30060
|
+
right: 20px;
|
|
30061
|
+
bottom: 20px;
|
|
30062
|
+
width: 40px;
|
|
30063
|
+
height: 40px;
|
|
30064
|
+
border-radius: 50%;
|
|
30065
|
+
border: 2px solid #fff;
|
|
30066
|
+
background: linear-gradient(to right bottom, #69c0ff, #096dd9);
|
|
30067
|
+
display: flex;
|
|
30068
|
+
align-items: center;
|
|
30069
|
+
justify-content: center;
|
|
30070
|
+
pointer-events: auto;
|
|
30071
|
+
cursor: pointer;
|
|
30072
|
+
}
|
|
30073
|
+
.qm-tour-control .anticon {
|
|
30074
|
+
color: #fff;
|
|
30075
|
+
font-size: 20px;
|
|
30076
|
+
}
|
|
30077
|
+
.qm-tour-mask .qm-tour-placeholder-animated {
|
|
30078
|
+
transition: all 0.2s ease;
|
|
30079
|
+
}
|
|
30080
|
+
.qm-tour-placement-bottom .qm-tour-arrow {
|
|
30081
|
+
left: 50%;
|
|
30082
|
+
transform: translateX(-50%) translateY(-100%);
|
|
30083
|
+
}
|
|
30084
|
+
.qm-tour-placement-top .qm-tour-arrow {
|
|
30085
|
+
left: 50%;
|
|
30086
|
+
transform: translateX(-50%) translateY(100%) rotate(180deg);
|
|
30087
|
+
}
|
|
30088
|
+
.qm-tour-placement-right .qm-tour-arrow {
|
|
30089
|
+
top: 50%;
|
|
30090
|
+
transform: translateY(-50%) translateX(-100%) rotate(-90deg);
|
|
30091
|
+
}
|
|
30092
|
+
.qm-tour-placement-left .qm-tour-arrow {
|
|
30093
|
+
top: 50%;
|
|
30094
|
+
transform: translateY(-50%) translateX(100%) rotate(90deg);
|
|
30095
|
+
}
|
|
29934
30096
|
/*
|
|
29935
30097
|
* @Author: 焦质晔
|
|
29936
30098
|
* @Date: 2021-07-23 19:05:57
|
package/lib/style/index.less
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 18:23:59
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-
|
|
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 '../
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 18:23:59
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-25 10:25:49
|
|
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 '../print/style/index.less';
|