@qn-pandora/pandora-component 4.0.14 → 4.1.0
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 +323 -323
- package/CHANGELOG.md +123 -123
- package/es/components/Drawer/CloseIcon/index.js +1 -1
- package/es/components/Drawer/CloseIcon/style.css +2 -2
- package/es/components/Drawer/CloseIcon/style.less +1 -1
- package/es/components/Drawer/index.d.ts +5 -4
- package/es/components/Drawer/index.js +4 -6
- package/es/components/Table/style.css +8 -0
- package/es/components/Table/style.less +6 -0
- package/es/hoc/modalPopupContainer.d.ts +1 -0
- package/es/hoc/modalPopupContainer.js +8 -3
- package/es/index.css +3755 -3747
- package/es/index.less +13 -13
- package/lib/components/Drawer/CloseIcon/index.js +1 -1
- package/lib/components/Drawer/CloseIcon/style.css +2 -2
- package/lib/components/Drawer/CloseIcon/style.less +1 -1
- package/lib/components/Drawer/index.d.ts +5 -4
- package/lib/components/Drawer/index.js +4 -6
- package/lib/components/Table/style.css +8 -0
- package/lib/components/Table/style.less +6 -0
- package/lib/hoc/modalPopupContainer.d.ts +1 -0
- package/lib/hoc/modalPopupContainer.js +8 -3
- package/lib/index.css +9705 -9697
- package/lib/index.less +16 -16
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,123 +1,123 @@
|
|
1
|
-
# Change Log - @qn-pandora/pandora-component
|
2
|
-
|
3
|
-
This log was last generated on
|
4
|
-
|
5
|
-
## 4.0
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
###
|
10
|
-
|
11
|
-
- 2023.06.
|
12
|
-
|
13
|
-
## 4.0.12
|
14
|
-
|
15
|
-
Mon, 29 May 2023 10:29:42 GMT
|
16
|
-
|
17
|
-
### Patches
|
18
|
-
|
19
|
-
- 2023.05.29 发包
|
20
|
-
|
21
|
-
## 4.0.11
|
22
|
-
|
23
|
-
Wed, 24 May 2023 07:19:25 GMT
|
24
|
-
|
25
|
-
### Patches
|
26
|
-
|
27
|
-
- 2023.05.24 发包
|
28
|
-
|
29
|
-
## 4.0.10
|
30
|
-
|
31
|
-
Tue, 23 May 2023 03:12:29 GMT
|
32
|
-
|
33
|
-
### Patches
|
34
|
-
|
35
|
-
- 2023.05.23 发布
|
36
|
-
|
37
|
-
## 4.0.9
|
38
|
-
|
39
|
-
Wed, 19 Apr 2023 03:15:25 GMT
|
40
|
-
|
41
|
-
### Patches
|
42
|
-
|
43
|
-
- 2023.04.19 发包
|
44
|
-
|
45
|
-
## 4.0.8
|
46
|
-
|
47
|
-
Tue, 04 Apr 2023 08:26:02 GMT
|
48
|
-
|
49
|
-
### Patches
|
50
|
-
|
51
|
-
- 2023.04.04
|
52
|
-
|
53
|
-
## 4.0.7
|
54
|
-
|
55
|
-
Thu, 23 Mar 2023 07:12:05 GMT
|
56
|
-
|
57
|
-
### Patches
|
58
|
-
|
59
|
-
- 2023.03.23 发布
|
60
|
-
|
61
|
-
## 4.0.6
|
62
|
-
|
63
|
-
Mon, 13 Mar 2023 11:30:17 GMT
|
64
|
-
|
65
|
-
### Patches
|
66
|
-
|
67
|
-
- 2023.03.13 发布
|
68
|
-
|
69
|
-
## 4.0.5
|
70
|
-
|
71
|
-
Wed, 15 Feb 2023 09:26:50 GMT
|
72
|
-
|
73
|
-
### Patches
|
74
|
-
|
75
|
-
- 2023.02.15 发布
|
76
|
-
|
77
|
-
## 4.0.4
|
78
|
-
|
79
|
-
Wed, 11 Jan 2023 08:25:05 GMT
|
80
|
-
|
81
|
-
### Patches
|
82
|
-
|
83
|
-
- 2023-01-11 发布
|
84
|
-
|
85
|
-
## 4.0.3
|
86
|
-
|
87
|
-
Tue, 10 Jan 2023 03:03:58 GMT
|
88
|
-
|
89
|
-
### Patches
|
90
|
-
|
91
|
-
- 2023-01-10 发布
|
92
|
-
|
93
|
-
## 4.0.2
|
94
|
-
|
95
|
-
Tue, 29 Nov 2022 03:37:07 GMT
|
96
|
-
|
97
|
-
### Patches
|
98
|
-
|
99
|
-
- 2022.11.29 发布
|
100
|
-
|
101
|
-
## 4.0.1
|
102
|
-
|
103
|
-
Mon, 17 Oct 2022 06:49:55 GMT
|
104
|
-
|
105
|
-
### Patches
|
106
|
-
|
107
|
-
- 22 年 10 月 16 日发布
|
108
|
-
|
109
|
-
## 4.0.0
|
110
|
-
|
111
|
-
Tue, 14 Jun 2022 09:21:39 GMT
|
112
|
-
|
113
|
-
### Breaking changes
|
114
|
-
|
115
|
-
- 很久没发版了,统一发个大版本
|
116
|
-
|
117
|
-
## 3.0.0
|
118
|
-
|
119
|
-
Mon, 20 Dec 2021 11:46:43 GMT
|
120
|
-
|
121
|
-
### Breaking changes
|
122
|
-
|
123
|
-
- 仓库迁移至 rush 后统一发个大版本
|
1
|
+
# Change Log - @qn-pandora/pandora-component
|
2
|
+
|
3
|
+
This log was last generated on Tue, 27 Jun 2023 06:38:00 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 4.1.0
|
6
|
+
|
7
|
+
Tue, 27 Jun 2023 06:38:00 GMT
|
8
|
+
|
9
|
+
### Minor changes
|
10
|
+
|
11
|
+
- 2023.06.27 发包
|
12
|
+
|
13
|
+
## 4.0.12
|
14
|
+
|
15
|
+
Mon, 29 May 2023 10:29:42 GMT
|
16
|
+
|
17
|
+
### Patches
|
18
|
+
|
19
|
+
- 2023.05.29 发包
|
20
|
+
|
21
|
+
## 4.0.11
|
22
|
+
|
23
|
+
Wed, 24 May 2023 07:19:25 GMT
|
24
|
+
|
25
|
+
### Patches
|
26
|
+
|
27
|
+
- 2023.05.24 发包
|
28
|
+
|
29
|
+
## 4.0.10
|
30
|
+
|
31
|
+
Tue, 23 May 2023 03:12:29 GMT
|
32
|
+
|
33
|
+
### Patches
|
34
|
+
|
35
|
+
- 2023.05.23 发布
|
36
|
+
|
37
|
+
## 4.0.9
|
38
|
+
|
39
|
+
Wed, 19 Apr 2023 03:15:25 GMT
|
40
|
+
|
41
|
+
### Patches
|
42
|
+
|
43
|
+
- 2023.04.19 发包
|
44
|
+
|
45
|
+
## 4.0.8
|
46
|
+
|
47
|
+
Tue, 04 Apr 2023 08:26:02 GMT
|
48
|
+
|
49
|
+
### Patches
|
50
|
+
|
51
|
+
- 2023.04.04
|
52
|
+
|
53
|
+
## 4.0.7
|
54
|
+
|
55
|
+
Thu, 23 Mar 2023 07:12:05 GMT
|
56
|
+
|
57
|
+
### Patches
|
58
|
+
|
59
|
+
- 2023.03.23 发布
|
60
|
+
|
61
|
+
## 4.0.6
|
62
|
+
|
63
|
+
Mon, 13 Mar 2023 11:30:17 GMT
|
64
|
+
|
65
|
+
### Patches
|
66
|
+
|
67
|
+
- 2023.03.13 发布
|
68
|
+
|
69
|
+
## 4.0.5
|
70
|
+
|
71
|
+
Wed, 15 Feb 2023 09:26:50 GMT
|
72
|
+
|
73
|
+
### Patches
|
74
|
+
|
75
|
+
- 2023.02.15 发布
|
76
|
+
|
77
|
+
## 4.0.4
|
78
|
+
|
79
|
+
Wed, 11 Jan 2023 08:25:05 GMT
|
80
|
+
|
81
|
+
### Patches
|
82
|
+
|
83
|
+
- 2023-01-11 发布
|
84
|
+
|
85
|
+
## 4.0.3
|
86
|
+
|
87
|
+
Tue, 10 Jan 2023 03:03:58 GMT
|
88
|
+
|
89
|
+
### Patches
|
90
|
+
|
91
|
+
- 2023-01-10 发布
|
92
|
+
|
93
|
+
## 4.0.2
|
94
|
+
|
95
|
+
Tue, 29 Nov 2022 03:37:07 GMT
|
96
|
+
|
97
|
+
### Patches
|
98
|
+
|
99
|
+
- 2022.11.29 发布
|
100
|
+
|
101
|
+
## 4.0.1
|
102
|
+
|
103
|
+
Mon, 17 Oct 2022 06:49:55 GMT
|
104
|
+
|
105
|
+
### Patches
|
106
|
+
|
107
|
+
- 22 年 10 月 16 日发布
|
108
|
+
|
109
|
+
## 4.0.0
|
110
|
+
|
111
|
+
Tue, 14 Jun 2022 09:21:39 GMT
|
112
|
+
|
113
|
+
### Breaking changes
|
114
|
+
|
115
|
+
- 很久没发版了,统一发个大版本
|
116
|
+
|
117
|
+
## 3.0.0
|
118
|
+
|
119
|
+
Mon, 20 Dec 2021 11:46:43 GMT
|
120
|
+
|
121
|
+
### Breaking changes
|
122
|
+
|
123
|
+
- 仓库迁移至 rush 后统一发个大版本
|
@@ -8,6 +8,6 @@ import { ModalLocale } from '../../../constants/language/modal/type';
|
|
8
8
|
export var CloseIcon = function (props) {
|
9
9
|
var className = props.className, onClick = props.onClick;
|
10
10
|
return (React.createElement(Tooltip, { title: formatString(ModalLocale.close_tooltip) },
|
11
|
-
React.createElement(Close, { className: classnames(SDK_PREFIX + "-close-icon", className), onClick: onClick })));
|
11
|
+
React.createElement(Close, { className: classnames(SDK_PREFIX + "-modal-close-icon", className), onClick: onClick })));
|
12
12
|
};
|
13
13
|
export default CloseIcon;
|
@@ -7,7 +7,7 @@ declare type getContainerFunc = () => HTMLElement;
|
|
7
7
|
export declare type IDrawerProps = Overwrite<DrawerProps, {
|
8
8
|
className?: string;
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* 是否显示关闭按钮,默认true
|
11
11
|
*/
|
12
12
|
closable?: boolean;
|
13
13
|
/**
|
@@ -67,7 +67,7 @@ export declare type IDrawerProps = Overwrite<DrawerProps, {
|
|
67
67
|
export declare class Drawer extends React.Component<React.PropsWithChildren<IDrawerProps>, any> {
|
68
68
|
drawerId: string;
|
69
69
|
isResizing: boolean;
|
70
|
-
realWidth:
|
70
|
+
realWidth: React.ReactText;
|
71
71
|
throttleMouseMove: import("lodash").DebouncedFunc<(e: any) => void>;
|
72
72
|
get closable(): boolean | undefined;
|
73
73
|
get extra(): {} | null | undefined;
|
@@ -77,7 +77,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
|
|
77
77
|
onMouseUp(): void;
|
78
78
|
onMouseMove(e: any): void;
|
79
79
|
onMouseClick(e: MouseEvent): void;
|
80
|
-
initWidth(width?: string | number, size?: string):
|
80
|
+
initWidth(width?: string | number, size?: string): React.ReactText;
|
81
81
|
componentDidMount(): void;
|
82
82
|
UNSAFE_componentWillUpdate(nextProps: Readonly<React.PropsWithChildren<IDrawerProps>>): void;
|
83
83
|
componentWillUnmount(): void;
|
@@ -86,7 +86,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
|
|
86
86
|
declare const _default: (props: {
|
87
87
|
className?: string | undefined;
|
88
88
|
/**
|
89
|
-
*
|
89
|
+
* 是否显示关闭按钮,默认true
|
90
90
|
*/
|
91
91
|
closable?: boolean | undefined;
|
92
92
|
/**
|
@@ -148,5 +148,6 @@ declare const _default: (props: {
|
|
148
148
|
bodyStyle?: React.CSSProperties | undefined;
|
149
149
|
children: React.ReactNode;
|
150
150
|
title?: React.ReactNode;
|
151
|
+
extra?: React.ReactNode;
|
151
152
|
}) => JSX.Element;
|
152
153
|
export default _default;
|
@@ -70,7 +70,7 @@ var Drawer = /** @class */ (function (_super) {
|
|
70
70
|
}
|
71
71
|
Object.defineProperty(Drawer.prototype, "closable", {
|
72
72
|
get: function () {
|
73
|
-
if (this.props.closable &&
|
73
|
+
if (this.props.closable !== false &&
|
74
74
|
this.props.closeIconPlacement &&
|
75
75
|
this.props.closeIconPlacement === 'right') {
|
76
76
|
return false;
|
@@ -83,7 +83,7 @@ var Drawer = /** @class */ (function (_super) {
|
|
83
83
|
Object.defineProperty(Drawer.prototype, "extra", {
|
84
84
|
get: function () {
|
85
85
|
var _a = this.props, closable = _a.closable, closeIconPlacement = _a.closeIconPlacement, onClose = _a.onClose;
|
86
|
-
if (closable && closeIconPlacement === 'right') {
|
86
|
+
if (closable !== false && closeIconPlacement === 'right') {
|
87
87
|
return (React.createElement(React.Fragment, null,
|
88
88
|
this.props.extra,
|
89
89
|
React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: onClose })));
|
@@ -147,11 +147,9 @@ var Drawer = /** @class */ (function (_super) {
|
|
147
147
|
}
|
148
148
|
if (size && size === 'small')
|
149
149
|
return SMALL_WIDTH;
|
150
|
-
if (size && size === 'default')
|
151
|
-
return DEFAULT_WIDTH;
|
152
150
|
if (size && size === 'large')
|
153
151
|
return LARGE_WIDTH;
|
154
|
-
return
|
152
|
+
return DEFAULT_WIDTH;
|
155
153
|
};
|
156
154
|
Drawer.prototype.componentDidMount = function () {
|
157
155
|
if (this.props.canDrag) {
|
@@ -179,7 +177,7 @@ var Drawer = /** @class */ (function (_super) {
|
|
179
177
|
_a[SDK_PREFIX + "-drawer-size-small"] = size === 'small',
|
180
178
|
_a[SDK_PREFIX + "-drawer-size-default"] = size === 'default',
|
181
179
|
_a[SDK_PREFIX + "-drawer-size-large"] = size === 'large',
|
182
|
-
_a)), width: this.realWidth ||
|
180
|
+
_a)), width: this.realWidth || 800, zIndex: 1200, visible: visible, closable: this.closable, extra: this.extra, closeIcon: React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: onClose }), onClose: onClose }, other),
|
183
181
|
canDrag && (React.createElement("div", { className: SDK_PREFIX + "-scroll-handler", onMouseDown: this.onMouseDown })),
|
184
182
|
children));
|
185
183
|
};
|
@@ -1572,10 +1572,18 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1572
1572
|
.pandora-sdk-table-wrapper .pandora-sdk-odd-table-row + .ant-table-expanded-row {
|
1573
1573
|
background: #fafafa;
|
1574
1574
|
}
|
1575
|
+
.pandora-sdk-table-wrapper .pandora-sdk-odd-table-row td,
|
1576
|
+
.pandora-sdk-table-wrapper .pandora-sdk-odd-table-row + .ant-table-expanded-row td {
|
1577
|
+
background-color: inherit;
|
1578
|
+
}
|
1575
1579
|
.pandora-sdk-table-wrapper .pandora-sdk-even-table-row,
|
1576
1580
|
.pandora-sdk-table-wrapper .pandora-sdk-even-table-row + .ant-table-expanded-row {
|
1577
1581
|
background: #ffffff;
|
1578
1582
|
}
|
1583
|
+
.pandora-sdk-table-wrapper .pandora-sdk-even-table-row td,
|
1584
|
+
.pandora-sdk-table-wrapper .pandora-sdk-even-table-row + .ant-table-expanded-row td {
|
1585
|
+
background-color: inherit;
|
1586
|
+
}
|
1579
1587
|
.pandora-sdk-table-wrapper .ant-table-row:hover {
|
1580
1588
|
background: #f3f7fd;
|
1581
1589
|
}
|
@@ -139,10 +139,16 @@
|
|
139
139
|
.@{sdk-prefix}-odd-table-row,
|
140
140
|
.@{sdk-prefix}-odd-table-row + .@{ant-prefix}-table-expanded-row {
|
141
141
|
background: @table-row-even-bg;
|
142
|
+
td {
|
143
|
+
background-color: inherit;
|
144
|
+
}
|
142
145
|
}
|
143
146
|
.@{sdk-prefix}-even-table-row,
|
144
147
|
.@{sdk-prefix}-even-table-row + .@{ant-prefix}-table-expanded-row {
|
145
148
|
background: @table-row-odd-bg;
|
149
|
+
td {
|
150
|
+
background-color: inherit;
|
151
|
+
}
|
146
152
|
}
|
147
153
|
|
148
154
|
.@{ant-prefix}-table-row {
|
@@ -27,15 +27,20 @@ export default function modalPopupContainerWrapper(Comp) {
|
|
27
27
|
return function (props) {
|
28
28
|
var containerRef = useRef(null);
|
29
29
|
var titleRef = useRef(null);
|
30
|
-
var
|
30
|
+
var extraRef = useRef(null);
|
31
|
+
var _a = props.bodyStyle, bodyStyle = _a === void 0 ? {} : _a, children = props.children, title = props.title, extra = props.extra, rest = __rest(props, ["bodyStyle", "children", "title", "extra"]);
|
31
32
|
var childrenGetPopupContainer = useCallback(function () {
|
32
33
|
return (containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || document.body;
|
33
34
|
}, []);
|
34
35
|
var titleGetPopupContainer = useCallback(function () {
|
35
|
-
return (
|
36
|
+
return (titleRef === null || titleRef === void 0 ? void 0 : titleRef.current) || document.body;
|
37
|
+
}, []);
|
38
|
+
var extraGetPopupContainer = useCallback(function () {
|
39
|
+
return (extraRef === null || extraRef === void 0 ? void 0 : extraRef.current) || document.body;
|
36
40
|
}, []);
|
37
41
|
return (React.createElement(Comp, __assign({}, rest, { title: title ? (React.createElement("div", { ref: titleRef },
|
38
|
-
React.createElement(ConfigConsumer, null, function (config) { return (React.createElement(ConfigProvider, __assign({}, config, { getPopupContainer: titleGetPopupContainer }), title)); }))) : undefined }
|
42
|
+
React.createElement(ConfigConsumer, null, function (config) { return (React.createElement(ConfigProvider, __assign({}, config, { getPopupContainer: titleGetPopupContainer }), title)); }))) : undefined, extra: extra ? (React.createElement("div", { ref: extraRef },
|
43
|
+
React.createElement(ConfigConsumer, null, function (config) { return (React.createElement(ConfigProvider, __assign({}, config, { getPopupContainer: extraGetPopupContainer }), extra)); }))) : undefined }),
|
39
44
|
React.createElement("div", { className: SDK_PREFIX + "-drawer-container", ref: containerRef, style: bodyStyle },
|
40
45
|
React.createElement(ConfigConsumer, null, function (config) { return (React.createElement(ConfigProvider, __assign({}, config, { getPopupContainer: childrenGetPopupContainer }), children)); }))));
|
41
46
|
};
|