@jiaozhiye/qm-design-react 1.9.17 → 1.9.19

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.
@@ -73,3 +73,4 @@ export declare const contains: (el: Element | HTMLElement | null, container: HTM
73
73
  * @returns
74
74
  */
75
75
  export declare const scrollToY: (el: HTMLElement, t: number) => void;
76
+ export declare const scrollToX: (el: HTMLElement, l: number) => void;
@@ -1,101 +1,101 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-31 22:38:07
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-anchor: ~'@{qm-prefix}-anchor';
10
-
11
- .@{prefix-anchor} {
12
- .reset-container;
13
- display: flex;
14
- .anchor-nav {
15
- display: flex;
16
- flex: none;
17
- .item {
18
- display: flex;
19
- align-items: center;
20
- height: @--height-md;
21
- position: relative;
22
- cursor: pointer;
23
- &.actived {
24
- color: @--primary-color;
25
- &::after {
26
- content: '';
27
- position: absolute;
28
- background-color: @--primary-color;
29
- }
30
- }
31
- span {
32
- .text-overflow-cut();
33
- display: block;
34
- }
35
- }
36
- }
37
- &-left {
38
- flex-direction: row;
39
- .anchor-nav {
40
- flex-direction: column;
41
- margin-right: @--margin-md;
42
- border-right: 1px solid @--border-color-base;
43
- .item {
44
- justify-content: flex-end;
45
- padding: 0 @--padding-md;
46
- &.actived {
47
- &::after {
48
- width: 2px;
49
- right: -2px;
50
- top: 0;
51
- bottom: 0;
52
- }
53
- }
54
- }
55
- }
56
- }
57
- &-top {
58
- flex-direction: column;
59
- .anchor-nav {
60
- flex-direction: row;
61
- margin-bottom: @--margin-md;
62
- border-bottom: 1px solid @--border-color-base;
63
- .item {
64
- justify-content: center;
65
- padding: 0 @--padding-md + 2px;
66
- &.actived {
67
- &::after {
68
- height: 2px;
69
- bottom: -2px;
70
- left: @--padding-md;
71
- right: @--padding-md;
72
- }
73
- }
74
- }
75
- }
76
- }
77
- .anchor-container {
78
- flex: auto;
79
- min-width: 0;
80
- min-height: 0;
81
- overflow-y: auto;
82
- overflow-x: hidden;
83
- }
84
- // ------ size ------
85
- // 40 32 24
86
- &--lg {
87
- .anchor-nav {
88
- .item {
89
- height: @--height-lg;
90
- }
91
- }
92
- }
93
- &--sm {
94
- .anchor-nav {
95
- .item {
96
- height: @--height-sm + 2px;
97
- font-size: 13px;
98
- }
99
- }
100
- }
101
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-07-31 22:38:07
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-anchor: ~'@{qm-prefix}-anchor';
10
+
11
+ .@{prefix-anchor} {
12
+ .reset-container;
13
+ display: flex;
14
+ .anchor-nav {
15
+ display: flex;
16
+ flex: none;
17
+ .item {
18
+ display: flex;
19
+ align-items: center;
20
+ height: @--height-md;
21
+ position: relative;
22
+ cursor: pointer;
23
+ &.actived {
24
+ color: @--primary-color;
25
+ &::after {
26
+ content: '';
27
+ position: absolute;
28
+ background-color: @--primary-color;
29
+ }
30
+ }
31
+ span {
32
+ .text-overflow-cut();
33
+ display: block;
34
+ }
35
+ }
36
+ }
37
+ &-left {
38
+ flex-direction: row;
39
+ .anchor-nav {
40
+ flex-direction: column;
41
+ margin-right: @--margin-md;
42
+ border-right: 1px solid @--border-color-base;
43
+ .item {
44
+ justify-content: flex-end;
45
+ padding: 0 @--padding-md;
46
+ &.actived {
47
+ &::after {
48
+ width: 2px;
49
+ right: -2px;
50
+ top: 0;
51
+ bottom: 0;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ &-top {
58
+ flex-direction: column;
59
+ .anchor-nav {
60
+ flex-direction: row;
61
+ margin-bottom: @--margin-md;
62
+ border-bottom: 1px solid @--border-color-base;
63
+ .item {
64
+ justify-content: center;
65
+ padding: 0 @--padding-md + 2px;
66
+ &.actived {
67
+ &::after {
68
+ height: 2px;
69
+ bottom: -2px;
70
+ left: @--padding-md;
71
+ right: @--padding-md;
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ .anchor-container {
78
+ flex: auto;
79
+ min-width: 0;
80
+ min-height: 0;
81
+ overflow-y: auto;
82
+ overflow-x: hidden;
83
+ }
84
+ // ------ size ------
85
+ // 40 32 24
86
+ &--lg {
87
+ .anchor-nav {
88
+ .item {
89
+ height: @--height-lg;
90
+ }
91
+ }
92
+ }
93
+ &--sm {
94
+ .anchor-nav {
95
+ .item {
96
+ height: @--height-sm + 2px;
97
+ font-size: 13px;
98
+ }
99
+ }
100
+ }
101
+ }
@@ -1,19 +1,19 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:41:37
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2023-03-28 11:50:55
6
- */
7
- @import 'antd/dist/antd.variable.less';
8
-
9
- @root-entry-name: variable;
10
-
11
- // Antd Reset
12
- .ant-select {
13
- &-disabled {
14
- .ant-select-selection-item,
15
- .ant-select-selection-item-content {
16
- color: @--text-color-secondary-dark;
17
- }
18
- }
19
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:41:37
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-03-28 11:50:55
6
+ */
7
+ @import 'antd/dist/antd.variable.less';
8
+
9
+ @root-entry-name: variable;
10
+
11
+ // Antd Reset
12
+ .ant-select {
13
+ &-disabled {
14
+ .ant-select-selection-item,
15
+ .ant-select-selection-item-content {
16
+ color: @--text-color-secondary-dark;
17
+ }
18
+ }
19
+ }
@@ -1,13 +1,13 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-06-01 20:17:51
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-06-01 20:17:51
6
- */
7
- @prefixCls: rc-collapse;
8
-
9
- .@{prefixCls} {
10
- &-motion {
11
- transition: height 0.3s, opacity 0.3s;
12
- }
13
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-06-01 20:17:51
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-06-01 20:17:51
6
+ */
7
+ @prefixCls: rc-collapse;
8
+
9
+ .@{prefixCls} {
10
+ &-motion {
11
+ transition: height 0.3s, opacity 0.3s;
12
+ }
13
+ }
@@ -1,24 +1,24 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-06-01 20:04:55
6
- */
7
- @import '../../style/common';
8
- @import '../src/_util/motion.less';
9
-
10
- @prefix-collapse: ~'@{qm-prefix}-collapse';
11
-
12
- .@{prefix-collapse} {
13
- &-content {
14
- padding: 0 2px;
15
- overflow: hidden;
16
- background-color: #fff;
17
- & > &-box {
18
- margin-top: 8px;
19
- }
20
- &-hidden {
21
- display: none;
22
- }
23
- }
24
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-06-01 20:04:55
6
+ */
7
+ @import '../../style/common';
8
+ @import '../src/_util/motion.less';
9
+
10
+ @prefix-collapse: ~'@{qm-prefix}-collapse';
11
+
12
+ .@{prefix-collapse} {
13
+ &-content {
14
+ padding: 0 2px;
15
+ overflow: hidden;
16
+ background-color: #fff;
17
+ & > &-box {
18
+ margin-top: 8px;
19
+ }
20
+ &-hidden {
21
+ display: none;
22
+ }
23
+ }
24
+ }
@@ -1,12 +1,12 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-31 22:38:07
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-clipboard: ~'@{qm-prefix}-clipboard';
10
-
11
- .@{prefix-clipboard} {
12
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-07-31 22:38:07
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-clipboard: ~'@{qm-prefix}-clipboard';
10
+
11
+ .@{prefix-clipboard} {
12
+ }
@@ -1,22 +1,22 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-08-01 21:58:46
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-countup: ~'@{qm-prefix}-countup';
10
-
11
- .@{prefix-countup} {
12
- .reset-container;
13
- font-size: @--font-size-base;
14
- // ------ size ------
15
- // 40 32 24
16
- &--lg {
17
- font-size: @--font-size-base;
18
- }
19
- &--sm {
20
- font-size: @--font-size-sm;
21
- }
22
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-08-01 21:58:46
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-countup: ~'@{qm-prefix}-countup';
10
+
11
+ .@{prefix-countup} {
12
+ .reset-container;
13
+ font-size: @--font-size-base;
14
+ // ------ size ------
15
+ // 40 32 24
16
+ &--lg {
17
+ font-size: @--font-size-base;
18
+ }
19
+ &--sm {
20
+ font-size: @--font-size-sm;
21
+ }
22
+ }
@@ -1,13 +1,13 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-04-16 09:25:12
6
- */
7
- @import (less) 'cropperjs/dist/cropper.css';
8
- @import '../../style/common';
9
-
10
- @prefix-cropper: ~'@{qm-prefix}-cropper';
11
-
12
- .@{prefix-cropper} {
13
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-04-16 09:25:12
6
+ */
7
+ @import (less) 'cropperjs/dist/cropper.css';
8
+ @import '../../style/common';
9
+
10
+ @prefix-cropper: ~'@{qm-prefix}-cropper';
11
+
12
+ .@{prefix-cropper} {
13
+ }