@jiaozhiye/qm-design-react 1.3.0-beta.10 → 1.3.0-beta.13
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/index.esm.js +2 -2
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/search-tree/src/search-tree.d.ts +19 -1
- package/lib/search-tree/style/index.less +8 -1
- package/lib/style/index.css +18 -3
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/hooks/useTableCore.d.ts +3 -15
- package/lib/table/src/store/index.d.ts +7 -3
- package/lib/table/src/table/props.d.ts +2 -2
- package/lib/table/src/table/types.d.ts +1 -0
- package/lib/table/style/body.less +6 -2
- package/lib/tree-helper/style/index.less +4 -4
- package/lib/tree-table-helper/style/index.less +8 -1
- package/package.json +1 -1
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentSize } from '../../_utils/types';
|
|
3
|
-
|
|
3
|
+
import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
|
|
4
|
+
import type { TreeProps } from '../../antd';
|
|
5
|
+
declare type IProps = TreeProps & {
|
|
4
6
|
size?: ComponentSize;
|
|
7
|
+
filterable?: boolean;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
draggable?: boolean;
|
|
10
|
+
dataSource?: IRecord[];
|
|
11
|
+
fetch?: IFetch;
|
|
12
|
+
fieldsDefine?: {
|
|
13
|
+
textKey?: string;
|
|
14
|
+
valueKey?: string;
|
|
15
|
+
children?: string;
|
|
16
|
+
};
|
|
17
|
+
asyncLoad?: boolean;
|
|
18
|
+
checkStrictly?: boolean;
|
|
19
|
+
checkStrategy?: ICheckStrategy;
|
|
20
|
+
onSelectChange?: (records: IRecord[] | IRecord) => void;
|
|
21
|
+
onCheckChange?: (records: IRecord[] | IRecord) => void;
|
|
22
|
+
onDragChange?: (info: any, data: IRecord) => void;
|
|
5
23
|
};
|
|
6
24
|
export declare type QmSearchTreeProps = IProps;
|
|
7
25
|
declare const SearchTree: React.FC<IProps>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: 焦质晔
|
|
3
3
|
* @Date: 2022-01-11 18:01:20
|
|
4
4
|
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-
|
|
5
|
+
* @Last Modified time: 2022-09-04 16:40:18
|
|
6
6
|
*/
|
|
7
7
|
@import '../../style/common';
|
|
8
8
|
|
|
@@ -11,4 +11,11 @@
|
|
|
11
11
|
.@{prefix-search-tree} {
|
|
12
12
|
.reset-component();
|
|
13
13
|
height: 100%;
|
|
14
|
+
.ant-tree {
|
|
15
|
+
.filter-node {
|
|
16
|
+
& > span:last-of-type {
|
|
17
|
+
color: @--primary-color;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
14
21
|
}
|
package/lib/style/index.css
CHANGED
|
@@ -29780,6 +29780,12 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
29780
29780
|
* @Last Modified by: 焦质晔
|
|
29781
29781
|
* @Last Modified time: 2022-06-23 23:49:41
|
|
29782
29782
|
*/
|
|
29783
|
+
.body--column .cell--edit {
|
|
29784
|
+
margin: 0 -9px;
|
|
29785
|
+
}
|
|
29786
|
+
.body--column .cell--edit .ant-input-search {
|
|
29787
|
+
width: calc(100% + 1px);
|
|
29788
|
+
}
|
|
29783
29789
|
.body--column .cell--edit .ant-input-search > .ant-input-group > .ant-input-group-addon {
|
|
29784
29790
|
line-height: 1;
|
|
29785
29791
|
}
|
|
@@ -30049,7 +30055,7 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
30049
30055
|
* @Author: 焦质晔
|
|
30050
30056
|
* @Date: 2022-01-11 18:01:20
|
|
30051
30057
|
* @Last Modified by: 焦质晔
|
|
30052
|
-
* @Last Modified time: 2022-
|
|
30058
|
+
* @Last Modified time: 2022-09-04 17:07:07
|
|
30053
30059
|
*/
|
|
30054
30060
|
.qm-tree-helper--wrapper {
|
|
30055
30061
|
box-sizing: border-box;
|
|
@@ -30063,11 +30069,14 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
30063
30069
|
font-feature-settings: 'tnum';
|
|
30064
30070
|
height: 100%;
|
|
30065
30071
|
}
|
|
30072
|
+
.qm-tree-helper--wrapper .ant-tree .filter-node > span:last-of-type {
|
|
30073
|
+
color: #1890ff;
|
|
30074
|
+
}
|
|
30066
30075
|
/*
|
|
30067
30076
|
* @Author: 焦质晔
|
|
30068
30077
|
* @Date: 2022-01-11 18:01:20
|
|
30069
30078
|
* @Last Modified by: 焦质晔
|
|
30070
|
-
* @Last Modified time: 2022-
|
|
30079
|
+
* @Last Modified time: 2022-09-04 17:06:49
|
|
30071
30080
|
*/
|
|
30072
30081
|
.qm-tree-table-helper--wrapper {
|
|
30073
30082
|
box-sizing: border-box;
|
|
@@ -30084,6 +30093,9 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
30084
30093
|
.qm-tree-table-helper--wrapper .split-pane {
|
|
30085
30094
|
overflow: hidden;
|
|
30086
30095
|
}
|
|
30096
|
+
.qm-tree-table-helper--wrapper .ant-tree .filter-node > span:last-of-type {
|
|
30097
|
+
color: #1890ff;
|
|
30098
|
+
}
|
|
30087
30099
|
/*
|
|
30088
30100
|
* @Author: 焦质晔
|
|
30089
30101
|
* @Date: 2022-01-11 18:01:20
|
|
@@ -30106,7 +30118,7 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
30106
30118
|
* @Author: 焦质晔
|
|
30107
30119
|
* @Date: 2022-01-11 18:01:20
|
|
30108
30120
|
* @Last Modified by: 焦质晔
|
|
30109
|
-
* @Last Modified time: 2022-
|
|
30121
|
+
* @Last Modified time: 2022-09-04 16:40:18
|
|
30110
30122
|
*/
|
|
30111
30123
|
.qm-search-tree {
|
|
30112
30124
|
box-sizing: border-box;
|
|
@@ -30120,6 +30132,9 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
30120
30132
|
font-feature-settings: 'tnum';
|
|
30121
30133
|
height: 100%;
|
|
30122
30134
|
}
|
|
30135
|
+
.qm-search-tree .ant-tree .filter-node > span:last-of-type {
|
|
30136
|
+
color: #1890ff;
|
|
30137
|
+
}
|
|
30123
30138
|
/*
|
|
30124
30139
|
* @Author: 焦质晔
|
|
30125
30140
|
* @Date: 2021-07-23 19:05:57
|