@qn-pandora/pandora-component 4.0.9 → 4.0.11
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/CHANGELOG.json +283 -240
- package/CHANGELOG.md +107 -91
- package/es/components/Collapse/Panel/index.d.ts +1 -0
- package/es/components/Collapse/Panel/index.js +1 -1
- package/es/components/Collapse/index.js +4 -2
- package/es/index.css +4624 -4624
- package/es/index.less +10 -10
- package/es/style/theme.less +2 -0
- package/lib/components/Collapse/Panel/index.d.ts +1 -0
- package/lib/components/Collapse/Panel/index.js +1 -1
- package/lib/components/Collapse/index.js +4 -2
- package/lib/index.css +7453 -7453
- package/lib/index.less +12 -12
- package/lib/style/theme.less +2 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,91 +1,107 @@
|
|
1
|
-
# Change Log - @qn-pandora/pandora-component
|
2
|
-
|
3
|
-
This log was last generated on Wed,
|
4
|
-
|
5
|
-
## 4.0.
|
6
|
-
|
7
|
-
Wed,
|
8
|
-
|
9
|
-
### Patches
|
10
|
-
|
11
|
-
- 2023.
|
12
|
-
|
13
|
-
## 4.0.
|
14
|
-
|
15
|
-
Tue,
|
16
|
-
|
17
|
-
### Patches
|
18
|
-
|
19
|
-
- 2023.
|
20
|
-
|
21
|
-
## 4.0.
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
### Patches
|
26
|
-
|
27
|
-
- 2023.
|
28
|
-
|
29
|
-
## 4.0.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
### Patches
|
34
|
-
|
35
|
-
- 2023.
|
36
|
-
|
37
|
-
## 4.0.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
### Patches
|
42
|
-
|
43
|
-
- 2023.
|
44
|
-
|
45
|
-
## 4.0.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
### Patches
|
50
|
-
|
51
|
-
- 2023
|
52
|
-
|
53
|
-
## 4.0.
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
### Patches
|
58
|
-
|
59
|
-
- 2023
|
60
|
-
|
61
|
-
## 4.0.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
### Patches
|
66
|
-
|
67
|
-
-
|
68
|
-
|
69
|
-
## 4.0.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
### Patches
|
74
|
-
|
75
|
-
-
|
76
|
-
|
77
|
-
## 4.0.
|
78
|
-
|
79
|
-
Tue,
|
80
|
-
|
81
|
-
###
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
##
|
86
|
-
|
87
|
-
Mon,
|
88
|
-
|
89
|
-
###
|
90
|
-
|
91
|
-
-
|
1
|
+
# Change Log - @qn-pandora/pandora-component
|
2
|
+
|
3
|
+
This log was last generated on Wed, 24 May 2023 07:19:25 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 4.0.11
|
6
|
+
|
7
|
+
Wed, 24 May 2023 07:19:25 GMT
|
8
|
+
|
9
|
+
### Patches
|
10
|
+
|
11
|
+
- 2023.05.24 发包
|
12
|
+
|
13
|
+
## 4.0.10
|
14
|
+
|
15
|
+
Tue, 23 May 2023 03:12:29 GMT
|
16
|
+
|
17
|
+
### Patches
|
18
|
+
|
19
|
+
- 2023.05.23 发布
|
20
|
+
|
21
|
+
## 4.0.9
|
22
|
+
|
23
|
+
Wed, 19 Apr 2023 03:15:25 GMT
|
24
|
+
|
25
|
+
### Patches
|
26
|
+
|
27
|
+
- 2023.04.19 发包
|
28
|
+
|
29
|
+
## 4.0.8
|
30
|
+
|
31
|
+
Tue, 04 Apr 2023 08:26:02 GMT
|
32
|
+
|
33
|
+
### Patches
|
34
|
+
|
35
|
+
- 2023.04.04
|
36
|
+
|
37
|
+
## 4.0.7
|
38
|
+
|
39
|
+
Thu, 23 Mar 2023 07:12:05 GMT
|
40
|
+
|
41
|
+
### Patches
|
42
|
+
|
43
|
+
- 2023.03.23 发布
|
44
|
+
|
45
|
+
## 4.0.6
|
46
|
+
|
47
|
+
Mon, 13 Mar 2023 11:30:17 GMT
|
48
|
+
|
49
|
+
### Patches
|
50
|
+
|
51
|
+
- 2023.03.13 发布
|
52
|
+
|
53
|
+
## 4.0.5
|
54
|
+
|
55
|
+
Wed, 15 Feb 2023 09:26:50 GMT
|
56
|
+
|
57
|
+
### Patches
|
58
|
+
|
59
|
+
- 2023.02.15 发布
|
60
|
+
|
61
|
+
## 4.0.4
|
62
|
+
|
63
|
+
Wed, 11 Jan 2023 08:25:05 GMT
|
64
|
+
|
65
|
+
### Patches
|
66
|
+
|
67
|
+
- 2023-01-11 发布
|
68
|
+
|
69
|
+
## 4.0.3
|
70
|
+
|
71
|
+
Tue, 10 Jan 2023 03:03:58 GMT
|
72
|
+
|
73
|
+
### Patches
|
74
|
+
|
75
|
+
- 2023-01-10 发布
|
76
|
+
|
77
|
+
## 4.0.2
|
78
|
+
|
79
|
+
Tue, 29 Nov 2022 03:37:07 GMT
|
80
|
+
|
81
|
+
### Patches
|
82
|
+
|
83
|
+
- 2022.11.29 发布
|
84
|
+
|
85
|
+
## 4.0.1
|
86
|
+
|
87
|
+
Mon, 17 Oct 2022 06:49:55 GMT
|
88
|
+
|
89
|
+
### Patches
|
90
|
+
|
91
|
+
- 22 年 10 月 16 日发布
|
92
|
+
|
93
|
+
## 4.0.0
|
94
|
+
|
95
|
+
Tue, 14 Jun 2022 09:21:39 GMT
|
96
|
+
|
97
|
+
### Breaking changes
|
98
|
+
|
99
|
+
- 很久没发版了,统一发个大版本
|
100
|
+
|
101
|
+
## 3.0.0
|
102
|
+
|
103
|
+
Mon, 20 Dec 2021 11:46:43 GMT
|
104
|
+
|
105
|
+
### Breaking changes
|
106
|
+
|
107
|
+
- 仓库迁移至 rush 后统一发个大版本
|
@@ -4,6 +4,7 @@ import { ECollapseType } from '../index';
|
|
4
4
|
export interface ICollapsePanelProps extends CollapsePanelProps {
|
5
5
|
children?: any;
|
6
6
|
type?: ECollapseType;
|
7
|
+
onItemClick?: (key: number | string) => void;
|
7
8
|
}
|
8
9
|
export declare function CollapsePanel(props: ICollapsePanelProps): JSX.Element;
|
9
10
|
export default CollapsePanel;
|
@@ -29,7 +29,7 @@ export function CollapsePanel(props) {
|
|
29
29
|
var type = props.type, header = props.header, key = props.key, children = props.children, className = props.className, others = __rest(props, ["type", "header", "key", "children", "className"]);
|
30
30
|
var newHeader = useMemo(function () {
|
31
31
|
if (type === ECollapseType.Primary) {
|
32
|
-
return (React.createElement("span",
|
32
|
+
return (React.createElement("span", { className: SDK_PREFIX + "-header-container" },
|
33
33
|
React.createElement("div", { className: SDK_PREFIX + "-header-line" }),
|
34
34
|
React.createElement("span", null, header)));
|
35
35
|
}
|
@@ -34,9 +34,11 @@ export var ECollapseType;
|
|
34
34
|
ECollapseType["Dashed"] = "dashed";
|
35
35
|
})(ECollapseType || (ECollapseType = {}));
|
36
36
|
export function Collapse(props) {
|
37
|
-
var children = props.children, className = props.className, _a = props.type, type = _a === void 0 ? ECollapseType.Simple : _a,
|
37
|
+
var children = props.children, className = props.className, _a = props.type, type = _a === void 0 ? ECollapseType.Simple : _a, expandIconPosition = props.expandIconPosition, onDelete = props.onDelete, others = __rest(props, ["children", "className", "type", "expandIconPosition", "onDelete"]);
|
38
38
|
var position = useMemo(function () {
|
39
|
-
return type === ECollapseType.Primary
|
39
|
+
return type === ECollapseType.Primary && !expandIconPosition
|
40
|
+
? 'right'
|
41
|
+
: expandIconPosition || 'left';
|
40
42
|
}, [expandIconPosition, type]);
|
41
43
|
var showArrow = useMemo(function () {
|
42
44
|
return type !== ECollapseType.Dashed;
|