@jiaozhiye/qm-design-react 1.12.12 → 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.
- package/lib/config-provider/src/config-provider.d.ts +2 -0
- package/lib/form/src/utils.d.ts +0 -1
- package/lib/form/style/index.less +392 -391
- package/lib/index.d.ts +4 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/index.d.ts +0 -1
- package/lib/locale/index.js +5 -6
- package/lib/pivot-grid/style/grid-layout.less +503 -501
- package/lib/portal/index.d.ts +3 -0
- package/lib/style/index.css +19 -10
- package/lib/style/index.min.css +1 -1
- package/lib/style/mixins/reset.less +43 -34
- package/lib/table/src/hooks/useTableState.d.ts +2 -2
- package/lib/table/src/table/props.d.ts +1 -2
- package/lib/table/src/table/types.d.ts +3 -3
- package/lib/table/style/header.less +303 -303
- package/package.json +1 -1
|
@@ -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
|
-
.
|
|
31
|
-
-
|
|
32
|
-
-webkit-
|
|
33
|
-
-
|
|
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
|
+
}
|
|
@@ -38,9 +38,9 @@ declare const useTableState: <T extends ITableProps>(props: T) => {
|
|
|
38
38
|
tableFlatData: IRecord<any>[];
|
|
39
39
|
setTableFlatData: React.Dispatch<React.SetStateAction<IRecord<any>[]>>;
|
|
40
40
|
filters: IFilter;
|
|
41
|
-
setFilters: React.Dispatch<
|
|
41
|
+
setFilters: React.Dispatch<IFilter>;
|
|
42
42
|
sorter: ISorter;
|
|
43
|
-
setSorter: React.Dispatch<
|
|
43
|
+
setSorter: React.Dispatch<ISorter>;
|
|
44
44
|
superFilters: ISuperFilter[];
|
|
45
45
|
setSuperFilters: React.Dispatch<ISuperFilter[]>;
|
|
46
46
|
pagerFilter: IPageFilter;
|
|
@@ -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
|
-
|
|
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;
|