@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.
@@ -1,83 +1,83 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-02-09 09:27:46
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-11-05 13:33:02
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-split: ~'@{qm-prefix}-split';
10
- @prefix-split-pane: ~'@{qm-prefix}-split-pane';
11
-
12
- .@{prefix-split} {
13
- .reset-container();
14
- display: flex;
15
- &.vertical {
16
- flex-direction: column;
17
- }
18
- &__resize-bar {
19
- position: relative;
20
- background-color: transparent;
21
- border-radius: @--border-radius-base - 1px;
22
- transition: background-color 0.4s ease;
23
- user-select: none;
24
- box-sizing: border-box;
25
- z-index: 1;
26
- &.horizontal {
27
- width: 11px;
28
- margin: 0 -5px;
29
- cursor: col-resize;
30
- &::after {
31
- content: ' ';
32
- position: absolute;
33
- top: 0;
34
- bottom: 0;
35
- left: 50%;
36
- width: 0;
37
- pointer-events: none;
38
- border-left: 1px solid @--border-color-base;
39
- }
40
- }
41
- &.vertical {
42
- height: 11px;
43
- margin: -5px 0;
44
- cursor: row-resize;
45
- &::after {
46
- content: ' ';
47
- position: absolute;
48
- left: 0;
49
- right: 0;
50
- top: 50%;
51
- height: 0;
52
- pointer-events: none;
53
- border-top: 1px solid @--border-color-base;
54
- }
55
- }
56
- &:hover,
57
- &:active {
58
- background-color: @--background-color;
59
- }
60
- }
61
- .@{prefix-split-pane} {
62
- box-sizing: border-box;
63
- &.horizontal {
64
- &:nth-child(1) {
65
- padding-right: 5px;
66
- }
67
- &:nth-child(3) {
68
- padding-left: 5px;
69
- }
70
- }
71
- &.vertical {
72
- &:nth-of-type(1) {
73
- padding-bottom: 5px;
74
- }
75
- &:nth-of-type(3) {
76
- padding-top: 5px;
77
- }
78
- }
79
- &.isLocked {
80
- pointer-events: none;
81
- }
82
- }
83
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-02-09 09:27:46
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-11-05 13:33:02
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-split: ~'@{qm-prefix}-split';
10
+ @prefix-split-pane: ~'@{qm-prefix}-split-pane';
11
+
12
+ .@{prefix-split} {
13
+ .reset-container();
14
+ display: flex;
15
+ &.vertical {
16
+ flex-direction: column;
17
+ }
18
+ &__resize-bar {
19
+ position: relative;
20
+ background-color: transparent;
21
+ border-radius: @--border-radius-base - 1px;
22
+ transition: background-color 0.4s ease;
23
+ user-select: none;
24
+ box-sizing: border-box;
25
+ z-index: 1;
26
+ &.horizontal {
27
+ width: 11px;
28
+ margin: 0 -5px;
29
+ cursor: col-resize;
30
+ &::after {
31
+ content: ' ';
32
+ position: absolute;
33
+ top: 0;
34
+ bottom: 0;
35
+ left: 50%;
36
+ width: 0;
37
+ pointer-events: none;
38
+ border-left: 1px solid @--border-color-base;
39
+ }
40
+ }
41
+ &.vertical {
42
+ height: 11px;
43
+ margin: -5px 0;
44
+ cursor: row-resize;
45
+ &::after {
46
+ content: ' ';
47
+ position: absolute;
48
+ left: 0;
49
+ right: 0;
50
+ top: 50%;
51
+ height: 0;
52
+ pointer-events: none;
53
+ border-top: 1px solid @--border-color-base;
54
+ }
55
+ }
56
+ &:hover,
57
+ &:active {
58
+ background-color: @--background-color;
59
+ }
60
+ }
61
+ .@{prefix-split-pane} {
62
+ box-sizing: border-box;
63
+ &.horizontal {
64
+ &:nth-child(1) {
65
+ padding-right: 5px;
66
+ }
67
+ &:nth-child(3) {
68
+ padding-left: 5px;
69
+ }
70
+ }
71
+ &.vertical {
72
+ &:nth-of-type(1) {
73
+ padding-bottom: 5px;
74
+ }
75
+ &:nth-of-type(3) {
76
+ padding-top: 5px;
77
+ }
78
+ }
79
+ &.isLocked {
80
+ pointer-events: none;
81
+ }
82
+ }
83
+ }
@@ -1,10 +1,10 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-11-26 21:14:37
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2023-03-28 11:52:53
6
- */
7
- @import '../antd/compact.less';
8
- @import './themes/default.less';
9
- @import './themes/compact.less';
10
- @import './reset.less';
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-11-26 21:14:37
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-03-28 11:52:53
6
+ */
7
+ @import '../antd/compact.less';
8
+ @import './themes/default.less';
9
+ @import './themes/compact.less';
10
+ @import './reset.less';
@@ -1,34 +1,34 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 18:58:43
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-23 18:58:43
6
- */
7
- @import '../themes/index';
8
-
9
- .reset-container() {
10
- box-sizing: border-box;
11
- margin: 0;
12
- padding: 0;
13
- color: @--text-color;
14
- font-variant: @font-variant-base;
15
- line-height: @--line-height-base;
16
- list-style: none;
17
- font-feature-settings: @font-feature-settings-base;
18
- }
19
-
20
- .box-sizing-content() {
21
- box-sizing: border-box;
22
- }
23
-
24
- .text-overflow-cut() {
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- white-space: nowrap;
28
- }
29
-
30
- .user-select-none() {
31
- -moz-user-select: none;
32
- -webkit-user-select: none;
33
- -ms-user-select: none;
34
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 18:58:43
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-07-23 18:58:43
6
+ */
7
+ @import '../themes/index';
8
+
9
+ .reset-container() {
10
+ box-sizing: border-box;
11
+ margin: 0;
12
+ padding: 0;
13
+ color: @--text-color;
14
+ font-variant: @font-variant-base;
15
+ line-height: @--line-height-base;
16
+ list-style: none;
17
+ font-feature-settings: @font-feature-settings-base;
18
+ }
19
+
20
+ .box-sizing-content() {
21
+ box-sizing: border-box;
22
+ }
23
+
24
+ .text-overflow-cut() {
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+
30
+ .user-select-none() {
31
+ -moz-user-select: none;
32
+ -webkit-user-select: none;
33
+ -ms-user-select: none;
34
+ }
@@ -1,132 +1,132 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/
2
- v2.0 | 20110126
3
- License: none (public domain)
4
- */
5
- html,
6
- body,
7
- div,
8
- span,
9
- applet,
10
- object,
11
- iframe,
12
- h1,
13
- h2,
14
- h3,
15
- h4,
16
- h5,
17
- h6,
18
- p,
19
- blockquote,
20
- pre,
21
- a,
22
- abbr,
23
- acronym,
24
- address,
25
- big,
26
- cite,
27
- code,
28
- del,
29
- dfn,
30
- em,
31
- img,
32
- ins,
33
- kbd,
34
- q,
35
- s,
36
- samp,
37
- small,
38
- strike,
39
- strong,
40
- sub,
41
- sup,
42
- tt,
43
- var,
44
- b,
45
- u,
46
- i,
47
- center,
48
- dl,
49
- dt,
50
- dd,
51
- ol,
52
- ul,
53
- li,
54
- fieldset,
55
- form,
56
- label,
57
- legend,
58
- table,
59
- caption,
60
- tbody,
61
- tfoot,
62
- thead,
63
- tr,
64
- th,
65
- td,
66
- article,
67
- aside,
68
- canvas,
69
- details,
70
- embed,
71
- figure,
72
- figcaption,
73
- footer,
74
- header,
75
- hgroup,
76
- menu,
77
- nav,
78
- output,
79
- ruby,
80
- section,
81
- summary,
82
- time,
83
- mark,
84
- audio,
85
- video {
86
- margin: 0;
87
- padding: 0;
88
- }
89
- /* HTML5 display-role reset for older browsers */
90
- article,
91
- aside,
92
- details,
93
- figcaption,
94
- figure,
95
- footer,
96
- header,
97
- hgroup,
98
- menu,
99
- nav,
100
- section {
101
- display: block;
102
- }
103
- ol,
104
- ul {
105
- list-style: none;
106
- }
107
- blockquote,
108
- q {
109
- quotes: none;
110
- }
111
- blockquote:before,
112
- blockquote:after,
113
- q:before,
114
- q:after {
115
- content: '';
116
- content: none;
117
- }
118
- table {
119
- border-collapse: collapse;
120
- border-spacing: 0;
121
- }
122
- .svgicon {
123
- display: inline-block;
124
- color: inherit;
125
- font-style: normal;
126
- line-height: 0;
127
- text-align: center;
128
- text-transform: none;
129
- text-rendering: optimizeLegibility;
130
- -webkit-font-smoothing: antialiased;
131
- -moz-osx-font-smoothing: grayscale;
132
- }
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+ html,
6
+ body,
7
+ div,
8
+ span,
9
+ applet,
10
+ object,
11
+ iframe,
12
+ h1,
13
+ h2,
14
+ h3,
15
+ h4,
16
+ h5,
17
+ h6,
18
+ p,
19
+ blockquote,
20
+ pre,
21
+ a,
22
+ abbr,
23
+ acronym,
24
+ address,
25
+ big,
26
+ cite,
27
+ code,
28
+ del,
29
+ dfn,
30
+ em,
31
+ img,
32
+ ins,
33
+ kbd,
34
+ q,
35
+ s,
36
+ samp,
37
+ small,
38
+ strike,
39
+ strong,
40
+ sub,
41
+ sup,
42
+ tt,
43
+ var,
44
+ b,
45
+ u,
46
+ i,
47
+ center,
48
+ dl,
49
+ dt,
50
+ dd,
51
+ ol,
52
+ ul,
53
+ li,
54
+ fieldset,
55
+ form,
56
+ label,
57
+ legend,
58
+ table,
59
+ caption,
60
+ tbody,
61
+ tfoot,
62
+ thead,
63
+ tr,
64
+ th,
65
+ td,
66
+ article,
67
+ aside,
68
+ canvas,
69
+ details,
70
+ embed,
71
+ figure,
72
+ figcaption,
73
+ footer,
74
+ header,
75
+ hgroup,
76
+ menu,
77
+ nav,
78
+ output,
79
+ ruby,
80
+ section,
81
+ summary,
82
+ time,
83
+ mark,
84
+ audio,
85
+ video {
86
+ margin: 0;
87
+ padding: 0;
88
+ }
89
+ /* HTML5 display-role reset for older browsers */
90
+ article,
91
+ aside,
92
+ details,
93
+ figcaption,
94
+ figure,
95
+ footer,
96
+ header,
97
+ hgroup,
98
+ menu,
99
+ nav,
100
+ section {
101
+ display: block;
102
+ }
103
+ ol,
104
+ ul {
105
+ list-style: none;
106
+ }
107
+ blockquote,
108
+ q {
109
+ quotes: none;
110
+ }
111
+ blockquote:before,
112
+ blockquote:after,
113
+ q:before,
114
+ q:after {
115
+ content: '';
116
+ content: none;
117
+ }
118
+ table {
119
+ border-collapse: collapse;
120
+ border-spacing: 0;
121
+ }
122
+ .svgicon {
123
+ display: inline-block;
124
+ color: inherit;
125
+ font-style: normal;
126
+ line-height: 0;
127
+ text-align: center;
128
+ text-transform: none;
129
+ text-rendering: optimizeLegibility;
130
+ -webkit-font-smoothing: antialiased;
131
+ -moz-osx-font-smoothing: grayscale;
132
+ }
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-04-12 10:32:21
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-04-12 10:32:21
6
- */
7
- html {
8
- --qm-primary-color: @--primary-color;
9
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-04-12 10:32:21
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-04-12 10:32:21
6
+ */
7
+ html {
8
+ --qm-primary-color: @--primary-color;
9
+ }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { BuildInPlacements } from 'rc-trigger';
3
- import type { ComponentSize, CSSProperties, Nullable, IDict, IAuth, AjaxResponse } from '../../../_utils/types';
3
+ import type { ComponentSize, CSSProperties, AjaxResponse, Nullable, ValueOf, IDict, IAuth } from '../../../_utils/types';
4
4
  import type { IFormData, IFormItem } from '../../../form/src/types';
5
5
  export type { ITableContext } from '../context';
6
6
  export type IFixed = 'left' | 'right';
@@ -303,7 +303,7 @@ export type IColumn = {
303
303
  unit?: string;
304
304
  render?: () => React.ReactNode;
305
305
  };
306
- shouldCellUpdate?: (currentRow: IRecord, prevRow: IRecord) => boolean;
306
+ shouldCellUpdate?: (nextCellValue: ValueOf<IRecord>, prevCellValue: ValueOf<IRecord>, record: IRecord) => boolean;
307
307
  headRender?: (column: IColumn, tableData: IRecord[]) => React.ReactNode;
308
308
  render?: (text: string | number, row: IRecord, column: IColumn, rowIndex: number, columnIndex: number) => React.ReactNode | string | number;
309
309
  };
@@ -1,64 +1,64 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2020-03-30 16:36:41
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-12-28 19:56:04
6
- */
7
- @prefix-expand: ~'@{qm-prefix}-expand';
8
-
9
- .@{prefix-expand}--icon {
10
- position: relative;
11
- display: inline-flex;
12
- margin-right: 5px;
13
- width: 17px;
14
- height: 17px;
15
- color: @v-font-secondary-color;
16
- vertical-align: -4px;
17
- background: #fff;
18
- border: 1px solid rgba(0, 0, 0, 0.085);
19
- border-radius: @v-border-radius;
20
- transform: scale(0.94117647);
21
- outline: none;
22
- user-select: none;
23
- cursor: pointer;
24
- transition: all 0.3s ease;
25
- .box-sizing-content();
26
- &:hover {
27
- color: @v-primary-color;
28
- border-color: @v-primary-color;
29
- }
30
- &::before,
31
- &::after {
32
- position: absolute;
33
- background: currentColor;
34
- transition: transform 0.3s ease-out;
35
- content: '';
36
- }
37
- &::before {
38
- top: 7px;
39
- right: 3px;
40
- left: 3px;
41
- height: 1px;
42
- }
43
- &::after {
44
- top: 3px;
45
- bottom: 3px;
46
- left: 7px;
47
- width: 1px;
48
- transform: rotate(90deg);
49
- }
50
- &.collapsed::before {
51
- transform: rotate(-180deg);
52
- }
53
- &.collapsed::after {
54
- transform: rotate(0deg);
55
- }
56
- &.disabled {
57
- cursor: not-allowed;
58
- color: rgba(0, 0, 0, 0.1);
59
- background: @--background-color-cecondary;
60
- &:hover {
61
- border-color: currentColor;
62
- }
63
- }
64
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-30 16:36:41
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-12-28 19:56:04
6
+ */
7
+ @prefix-expand: ~'@{qm-prefix}-expand';
8
+
9
+ .@{prefix-expand}--icon {
10
+ position: relative;
11
+ display: inline-flex;
12
+ margin-right: 5px;
13
+ width: 17px;
14
+ height: 17px;
15
+ color: @v-font-secondary-color;
16
+ vertical-align: -4px;
17
+ background: #fff;
18
+ border: 1px solid rgba(0, 0, 0, 0.085);
19
+ border-radius: @v-border-radius;
20
+ transform: scale(0.94117647);
21
+ outline: none;
22
+ user-select: none;
23
+ cursor: pointer;
24
+ transition: all 0.3s ease;
25
+ .box-sizing-content();
26
+ &:hover {
27
+ color: @v-primary-color;
28
+ border-color: @v-primary-color;
29
+ }
30
+ &::before,
31
+ &::after {
32
+ position: absolute;
33
+ background: currentColor;
34
+ transition: transform 0.3s ease-out;
35
+ content: '';
36
+ }
37
+ &::before {
38
+ top: 7px;
39
+ right: 3px;
40
+ left: 3px;
41
+ height: 1px;
42
+ }
43
+ &::after {
44
+ top: 3px;
45
+ bottom: 3px;
46
+ left: 7px;
47
+ width: 1px;
48
+ transform: rotate(90deg);
49
+ }
50
+ &.collapsed::before {
51
+ transform: rotate(-180deg);
52
+ }
53
+ &.collapsed::after {
54
+ transform: rotate(0deg);
55
+ }
56
+ &.disabled {
57
+ cursor: not-allowed;
58
+ color: rgba(0, 0, 0, 0.1);
59
+ background: @--background-color-cecondary;
60
+ &:hover {
61
+ border-color: currentColor;
62
+ }
63
+ }
64
+ }