@jiaozhiye/qm-design-react 1.9.21 → 1.9.23

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.
@@ -1,76 +1,76 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2023-06-04 09:42:40
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2023-06-05 16:47:52
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-scrollbar: ~'@{qm-prefix}-scrollbar';
10
-
11
- .@{prefix-scrollbar} {
12
- position: relative;
13
- &__wrap {
14
- display: grid;
15
- height: 100%;
16
- overflow: auto;
17
- &--hidden {
18
- scrollbar-width: none;
19
- &::-webkit-scrollbar {
20
- display: none;
21
- }
22
- }
23
- }
24
- &__view {
25
- display: block;
26
- }
27
- &__bar {
28
- position: absolute;
29
- right: 2px;
30
- bottom: 2px;
31
- z-index: 2;
32
- border-radius: 4px;
33
- &.is-vertical {
34
- width: 6px;
35
- top: 2px;
36
- & > div {
37
- width: 100%;
38
- }
39
- }
40
- &.is-horizontal {
41
- height: 6px;
42
- left: 2px;
43
- &.top {
44
- top: 2px;
45
- bottom: auto;
46
- }
47
- & > div {
48
- height: 100%;
49
- }
50
- }
51
- // fade-transition
52
- &.fade {
53
- transition: all 0.3s ease;
54
- }
55
- &.fade.preEnter,
56
- &.fade.exiting {
57
- opacity: 0;
58
- }
59
- &.fade.exited {
60
- display: none;
61
- }
62
- }
63
- &__thumb {
64
- position: relative;
65
- display: block;
66
- width: 0;
67
- height: 0;
68
- cursor: pointer;
69
- border-radius: inherit;
70
- background-color: #909090;
71
- opacity: 0.3;
72
- &:hover {
73
- opacity: 0.5;
74
- }
75
- }
76
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2023-06-04 09:42:40
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-06-05 16:47:52
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-scrollbar: ~'@{qm-prefix}-scrollbar';
10
+
11
+ .@{prefix-scrollbar} {
12
+ position: relative;
13
+ &__wrap {
14
+ display: grid;
15
+ height: 100%;
16
+ overflow: auto;
17
+ &--hidden {
18
+ scrollbar-width: none;
19
+ &::-webkit-scrollbar {
20
+ display: none;
21
+ }
22
+ }
23
+ }
24
+ &__view {
25
+ display: block;
26
+ }
27
+ &__bar {
28
+ position: absolute;
29
+ right: 2px;
30
+ bottom: 2px;
31
+ z-index: 2;
32
+ border-radius: 4px;
33
+ &.is-vertical {
34
+ width: 6px;
35
+ top: 2px;
36
+ & > div {
37
+ width: 100%;
38
+ }
39
+ }
40
+ &.is-horizontal {
41
+ height: 6px;
42
+ left: 2px;
43
+ &.top {
44
+ top: 2px;
45
+ bottom: auto;
46
+ }
47
+ & > div {
48
+ height: 100%;
49
+ }
50
+ }
51
+ // fade-transition
52
+ &.fade {
53
+ transition: all 0.3s ease;
54
+ }
55
+ &.fade.preEnter,
56
+ &.fade.exiting {
57
+ opacity: 0;
58
+ }
59
+ &.fade.exited {
60
+ display: none;
61
+ }
62
+ }
63
+ &__thumb {
64
+ position: relative;
65
+ display: block;
66
+ width: 0;
67
+ height: 0;
68
+ cursor: pointer;
69
+ border-radius: inherit;
70
+ background-color: #909090;
71
+ opacity: 0.3;
72
+ &:hover {
73
+ opacity: 0.5;
74
+ }
75
+ }
76
+ }
@@ -56,7 +56,6 @@ declare class Signature {
56
56
  lineHeight: number;
57
57
  degreeOfBlur: number;
58
58
  textInputPos: Pick<Point, 'x' | 'y'>;
59
- isMobile: boolean;
60
59
  onStart: IOptions[`onStart`];
61
60
  onEnd: IOptions[`onEnd`];
62
61
  private _drawingStroke;
@@ -71,10 +70,11 @@ declare class Signature {
71
70
  update(): void;
72
71
  setCanvasSize: () => void;
73
72
  setTextInput: () => void;
73
+ isTouchEvent: (ev: MouseEvent | TouchEvent) => boolean;
74
74
  addListener: () => void;
75
75
  removeListener: () => void;
76
- _isLeftButtonPressed: (ev: MouseEvent | TouchEvent, only?: boolean) => boolean;
77
- _pointerEventToSignatureEvent: (ev: MouseEvent | TouchEvent) => SignatureEvent;
76
+ _isLeftButtonPressed: (ev: any, only?: boolean) => boolean;
77
+ _pointerEventToSignatureEvent: (ev: any) => SignatureEvent;
78
78
  _getPointGroupOptions: (group?: PointGroup) => PointGroupOptions;
79
79
  _strokeBegin: (ev: SignatureEvent) => void;
80
80
  _strokeUpdate: (ev: SignatureEvent, shouldUpdate?: boolean) => void;
@@ -130,7 +130,7 @@ declare class Signature {
130
130
  drawEraser: (ev: any) => void;
131
131
  drawLine: (ev: any) => void;
132
132
  createTextInput: (ev: any) => void;
133
- setInputStyle: (ev: any) => void;
133
+ setInputStyle: () => void;
134
134
  drawBgColor: () => void;
135
135
  clearWorkSpace: () => void;
136
136
  addHistory: () => void;
@@ -28550,7 +28550,7 @@ table {
28550
28550
  * @Author: 焦质晔
28551
28551
  * @Date: 2021-07-23 19:05:57
28552
28552
  * @Last Modified by: 焦质晔
28553
- * @Last Modified time: 2022-03-16 19:06:00
28553
+ * @Last Modified time: 2024-07-23 09:28:50
28554
28554
  */
28555
28555
  /*
28556
28556
  * @Author: 焦质晔
@@ -29200,7 +29200,7 @@ table {
29200
29200
  * @Author: 焦质晔
29201
29201
  * @Date: 2021-07-23 19:05:57
29202
29202
  * @Last Modified by: 焦质晔
29203
- * @Last Modified time: 2024-07-02 09:33:48
29203
+ * @Last Modified time: 2024-07-24 10:41:26
29204
29204
  */
29205
29205
  .qm-table--wrapper {
29206
29206
  box-sizing: border-box;
@@ -29270,22 +29270,6 @@ table {
29270
29270
  overflow-y: auto;
29271
29271
  overflow-x: auto;
29272
29272
  }
29273
- .qm-table--merge-cell {
29274
- position: absolute;
29275
- display: none;
29276
- border: 2px solid #1890ff;
29277
- border-radius: 2px;
29278
- background-color: rgba(255, 255, 255, 0.3);
29279
- z-index: 9;
29280
- }
29281
- .qm-table--merge-cell .btn {
29282
- position: absolute;
29283
- right: -54px;
29284
- bottom: 0;
29285
- }
29286
- .qm-table--merge-cell .cancel {
29287
- bottom: 30px;
29288
- }
29289
29273
  .qm-table.c--resize {
29290
29274
  cursor: col-resize;
29291
29275
  }
@@ -29466,8 +29450,13 @@ table {
29466
29450
  .qm-table:not(.is--border) .body--column {
29467
29451
  border-bottom: 1px solid #e8e8e8;
29468
29452
  }
29469
- .qm-table.is--merge-cell .qm-table--body-wrapper > table > tbody {
29470
- pointer-events: none;
29453
+ .qm-table.is--area-select .qm-table--body-wrapper > div {
29454
+ position: relative;
29455
+ }
29456
+ .qm-table.is--area-select .qm-table--body-wrapper table td {
29457
+ -webkit-user-select: none;
29458
+ -moz-user-select: none;
29459
+ user-select: none;
29471
29460
  }
29472
29461
  .qm-table .body--x-space {
29473
29462
  height: 0;
@@ -29792,6 +29781,35 @@ table {
29792
29781
  .qm-table--footer-wrapper .qm-table--footer .footer--row:last-of-type .footer--column {
29793
29782
  border-bottom: 0;
29794
29783
  }
29784
+ /*
29785
+ * @Author: 焦质晔
29786
+ * @Date: 2024-07-23 09:27:27
29787
+ * @Last Modified by: 焦质晔
29788
+ * @Last Modified time: 2024-07-24 13:32:48
29789
+ */
29790
+ .qm-table--area-select {
29791
+ position: static;
29792
+ height: 0;
29793
+ font-size: 0;
29794
+ }
29795
+ .qm-table--area-select .checked-area {
29796
+ border: 1px solid #40a9ff;
29797
+ background-color: rgba(186, 231, 255, 0.35);
29798
+ position: absolute;
29799
+ z-index: 2;
29800
+ pointer-events: none;
29801
+ }
29802
+ .qm-table--area-select .active-area {
29803
+ border: 2px solid #40a9ff;
29804
+ position: absolute;
29805
+ z-index: 2;
29806
+ pointer-events: none;
29807
+ }
29808
+ .qm-table--area-select .context-menu {
29809
+ position: absolute;
29810
+ z-index: 3;
29811
+ background-color: #fff;
29812
+ }
29795
29813
  /*
29796
29814
  * @Author: 焦质晔
29797
29815
  * @Date: 2020-03-26 11:45:02