@jiaozhiye/qm-design-react 1.12.13 → 1.12.14

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,34 +1,43 @@
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
+ .text-ellipsis-2 () {
31
+ display: -webkit-box;
32
+ -webkit-box-orient: vertical;
33
+ -webkit-line-clamp: 2;
34
+ line-clamp: 2;
35
+ overflow: hidden;
36
+ text-overflow: ellipsis;
37
+ }
38
+
39
+ .user-select-none() {
40
+ -moz-user-select: none;
41
+ -webkit-user-select: none;
42
+ -ms-user-select: none;
43
+ }
@@ -71,6 +71,7 @@ export declare const propTypes: {
71
71
  fixed: PropTypes.Requireable<string>;
72
72
  align: PropTypes.Requireable<string>;
73
73
  theadAlign: PropTypes.Requireable<string>;
74
+ theadWrap: PropTypes.Requireable<boolean>;
74
75
  printFixed: PropTypes.Requireable<boolean>;
75
76
  hidden: PropTypes.Requireable<boolean>;
76
77
  noAuth: PropTypes.Requireable<boolean>;
@@ -187,8 +188,6 @@ export declare const propTypes: {
187
188
  virtual: PropTypes.Requireable<boolean>;
188
189
  overscan: PropTypes.Requireable<number>;
189
190
  doubleXScrollbar: PropTypes.Requireable<boolean>;
190
- }>>;
191
- treeConfig: PropTypes.Requireable<PropTypes.InferProps<{
192
191
  expandIconColumn: PropTypes.Requireable<string>;
193
192
  }>>;
194
193
  expandable: PropTypes.Requireable<PropTypes.InferProps<{
@@ -221,8 +221,6 @@ export type ITableConfig = {
221
221
  virtual?: boolean;
222
222
  overscan?: number;
223
223
  doubleXScrollbar?: boolean;
224
- };
225
- export type ITreeConfig = {
226
224
  expandIconColumn?: string;
227
225
  };
228
226
  export type IExpandable = {
@@ -296,6 +294,7 @@ export type IColumn = {
296
294
  fixed?: IFixed;
297
295
  align?: IAlign;
298
296
  theadAlign?: IAlign;
297
+ theadWrap?: boolean;
299
298
  printFixed?: boolean;
300
299
  hidden?: boolean;
301
300
  noAuth?: boolean;
@@ -379,7 +378,8 @@ export type ITableProps = {
379
378
  rowSelection?: IRowSelection;
380
379
  rowHighlight?: IRowHighlight;
381
380
  tableConfig?: ITableConfig;
382
- treeConfig?: ITreeConfig;
381
+ /** @deprecated use `tableConfig` instead, and it will be deprecated in the next major version */
382
+ treeConfig?: ITableConfig;
383
383
  expandable?: IExpandable;
384
384
  areaSelection?: IAreaSelection;
385
385
  summation?: ISummation;