@qn-pandora/pandora-component 4.0.13 → 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 +7 -7
- package/CHANGELOG.md +5 -5
- package/es/components/Descriptions/index.d.ts +13 -0
- package/es/components/Descriptions/index.js +57 -0
- package/es/components/Descriptions/style.css +337 -0
- package/es/components/Descriptions/style.less +15 -0
- package/es/components/Drawer/CloseIcon/index.d.ts +7 -0
- package/es/components/Drawer/CloseIcon/index.js +13 -0
- package/es/components/Drawer/CloseIcon/style.css +12 -0
- package/es/components/Drawer/CloseIcon/style.less +8 -0
- package/es/components/Drawer/index.d.ts +8 -4
- package/es/components/Drawer/index.js +35 -9
- package/es/components/Drawer/style.css +11 -3
- package/es/components/Drawer/style.less +12 -3
- package/es/components/Modal/index.js +3 -2
- package/es/components/Table/style.css +8 -0
- package/es/components/Table/style.less +6 -0
- package/es/constants/language/en.js +3 -1
- package/es/constants/language/modal/en.d.ts +2 -0
- package/es/constants/language/modal/en.js +3 -0
- package/es/constants/language/modal/type.d.ts +4 -0
- package/es/constants/language/modal/type.js +3 -0
- package/es/constants/language/modal/zh.d.ts +2 -0
- package/es/constants/language/modal/zh.js +3 -0
- package/es/constants/language/type.d.ts +2 -0
- package/es/constants/language/zh.js +3 -1
- package/es/hoc/modalPopupContainer.d.ts +1 -0
- package/es/hoc/modalPopupContainer.js +9 -4
- package/es/index.css +3942 -3911
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +16 -14
- package/es/style/theme.less +4 -0
- package/lib/components/Descriptions/index.d.ts +13 -0
- package/lib/components/Descriptions/index.js +69 -0
- package/lib/components/Descriptions/style.css +337 -0
- package/lib/components/Descriptions/style.less +15 -0
- package/lib/components/Drawer/CloseIcon/index.d.ts +7 -0
- package/lib/components/Drawer/CloseIcon/index.js +18 -0
- package/lib/components/Drawer/CloseIcon/style.css +12 -0
- package/lib/components/Drawer/CloseIcon/style.less +8 -0
- package/lib/components/Drawer/index.d.ts +8 -4
- package/lib/components/Drawer/index.js +35 -9
- package/lib/components/Drawer/style.css +11 -3
- package/lib/components/Drawer/style.less +12 -3
- package/lib/components/Modal/index.js +3 -2
- package/lib/components/Table/style.css +8 -0
- package/lib/components/Table/style.less +6 -0
- package/lib/constants/language/en.js +4 -2
- package/lib/constants/language/modal/en.d.ts +2 -0
- package/lib/constants/language/modal/en.js +5 -0
- package/lib/constants/language/modal/type.d.ts +4 -0
- package/lib/constants/language/modal/type.js +5 -0
- package/lib/constants/language/modal/zh.d.ts +2 -0
- package/lib/constants/language/modal/zh.js +5 -0
- package/lib/constants/language/type.d.ts +2 -0
- package/lib/constants/language/zh.js +4 -2
- package/lib/hoc/modalPopupContainer.d.ts +1 -0
- package/lib/hoc/modalPopupContainer.js +9 -4
- package/lib/index.css +2398 -2367
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/index.less +12 -10
- package/lib/style/theme.less +4 -0
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
@@ -2,21 +2,21 @@
|
|
2
2
|
"name": "@qn-pandora/pandora-component",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"version": "4.0
|
6
|
-
"tag": "@qn-pandora/pandora-component_v4.0
|
7
|
-
"date": "Tue,
|
5
|
+
"version": "4.1.0",
|
6
|
+
"tag": "@qn-pandora/pandora-component_v4.1.0",
|
7
|
+
"date": "Tue, 27 Jun 2023 06:38:00 GMT",
|
8
8
|
"comments": {
|
9
|
-
"
|
9
|
+
"minor": [
|
10
10
|
{
|
11
|
-
"comment": "2023.06.
|
11
|
+
"comment": "2023.06.27发包"
|
12
12
|
}
|
13
13
|
],
|
14
14
|
"dependency": [
|
15
15
|
{
|
16
|
-
"comment": "Updating dependency \"@qn-pandora/pandora-component-icons\" from `^3.0.15` to `^3.0
|
16
|
+
"comment": "Updating dependency \"@qn-pandora/pandora-component-icons\" from `^3.0.15` to `^3.1.0`"
|
17
17
|
},
|
18
18
|
{
|
19
|
-
"comment": "Updating dependency \"@qn-pandora/app-sdk\" from `^3.0.16` to `^3.0
|
19
|
+
"comment": "Updating dependency \"@qn-pandora/app-sdk\" from `^3.0.16` to `^3.1.0`"
|
20
20
|
}
|
21
21
|
]
|
22
22
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# Change Log - @qn-pandora/pandora-component
|
2
2
|
|
3
|
-
This log was last generated on Tue,
|
3
|
+
This log was last generated on Tue, 27 Jun 2023 06:38:00 GMT and should not be manually modified.
|
4
4
|
|
5
|
-
## 4.0
|
5
|
+
## 4.1.0
|
6
6
|
|
7
|
-
Tue,
|
7
|
+
Tue, 27 Jun 2023 06:38:00 GMT
|
8
8
|
|
9
|
-
###
|
9
|
+
### Minor changes
|
10
10
|
|
11
|
-
- 2023.06.
|
11
|
+
- 2023.06.27 发包
|
12
12
|
|
13
13
|
## 4.0.12
|
14
14
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { DescriptionsProps } from 'antd/es/descriptions';
|
3
|
+
import type { DescriptionsItemProps } from 'antd/es/descriptions/Item';
|
4
|
+
export declare type TItem = DescriptionsItemProps & {
|
5
|
+
labelCol?: number;
|
6
|
+
remark?: string;
|
7
|
+
};
|
8
|
+
interface IDescriptionsProps extends DescriptionsProps {
|
9
|
+
labelCol?: number;
|
10
|
+
items: TItem[];
|
11
|
+
}
|
12
|
+
declare const Descriptions: React.FC<IDescriptionsProps>;
|
13
|
+
export default Descriptions;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import React, { useMemo, useCallback } from 'react';
|
24
|
+
import { Descriptions as BaseDescriptions, Tooltip } from 'antd';
|
25
|
+
import classname from 'classnames';
|
26
|
+
import { QuestionCircleOutlined } from '@qn-pandora/pandora-component-icons';
|
27
|
+
import { SDK_PREFIX } from '../../constants/style';
|
28
|
+
var Item = BaseDescriptions.Item;
|
29
|
+
var DEFAYLT_MAX_COL = 24;
|
30
|
+
var Descriptions = function (props) {
|
31
|
+
var items = props.items, className = props.className, labelStyle = props.labelStyle, labelCol = props.labelCol, other = __rest(props, ["items", "className", "labelStyle", "labelCol"]);
|
32
|
+
var getRealLabelWith = useCallback(function (labelCol) {
|
33
|
+
if (!labelCol)
|
34
|
+
return;
|
35
|
+
if (labelCol <= 1)
|
36
|
+
return 1;
|
37
|
+
if (labelCol >= DEFAYLT_MAX_COL)
|
38
|
+
return DEFAYLT_MAX_COL;
|
39
|
+
return (Math.round(labelCol) / DEFAYLT_MAX_COL) * 100;
|
40
|
+
}, []);
|
41
|
+
var getLabelStyle = useCallback(function (labelStyle, labelCol) {
|
42
|
+
var col = getRealLabelWith(labelCol);
|
43
|
+
return labelCol ? __assign(__assign({}, labelStyle), { width: col + "%" }) : labelStyle;
|
44
|
+
}, [getRealLabelWith]);
|
45
|
+
var realLabelStyle = useMemo(function () {
|
46
|
+
return getLabelStyle(labelStyle, labelCol);
|
47
|
+
}, [labelStyle, labelCol, getLabelStyle]);
|
48
|
+
return (React.createElement(BaseDescriptions, __assign({ className: classname(SDK_PREFIX + "-descriptions", className), labelStyle: realLabelStyle }, other), items.map(function (item, index) {
|
49
|
+
var label = item.label, labelCol = item.labelCol, labelStyle = item.labelStyle, other = __rest(item, ["label", "labelCol", "labelStyle"]);
|
50
|
+
return (React.createElement(Item, __assign({ key: index, labelStyle: getLabelStyle(labelStyle, labelCol), label: React.createElement(React.Fragment, null,
|
51
|
+
React.createElement("span", null,
|
52
|
+
item.label,
|
53
|
+
!!item.remark && (React.createElement(Tooltip, { title: item.remark },
|
54
|
+
React.createElement(QuestionCircleOutlined, { className: SDK_PREFIX + "-remark-icon" }))))) }, other), item.children));
|
55
|
+
})));
|
56
|
+
};
|
57
|
+
export default Descriptions;
|
@@ -0,0 +1,337 @@
|
|
1
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
2
|
+
/* stylelint-disable no-duplicate-selectors */
|
3
|
+
/* stylelint-disable */
|
4
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
5
|
+
.ant-popover {
|
6
|
+
-webkit-box-sizing: border-box;
|
7
|
+
box-sizing: border-box;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
color: rgba(0, 0, 0, 0.65);
|
11
|
+
font-size: 14px;
|
12
|
+
font-variant: tabular-nums;
|
13
|
+
line-height: 1.5715;
|
14
|
+
list-style: none;
|
15
|
+
-webkit-font-feature-settings: 'tnum';
|
16
|
+
font-feature-settings: 'tnum';
|
17
|
+
position: absolute;
|
18
|
+
top: 0;
|
19
|
+
left: 0;
|
20
|
+
z-index: 1200;
|
21
|
+
font-weight: normal;
|
22
|
+
white-space: normal;
|
23
|
+
text-align: left;
|
24
|
+
cursor: auto;
|
25
|
+
-webkit-user-select: text;
|
26
|
+
-moz-user-select: text;
|
27
|
+
-ms-user-select: text;
|
28
|
+
user-select: text;
|
29
|
+
}
|
30
|
+
.ant-popover::after {
|
31
|
+
position: absolute;
|
32
|
+
background: rgba(255, 255, 255, 0.01);
|
33
|
+
content: '';
|
34
|
+
}
|
35
|
+
.ant-popover-hidden {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
.ant-popover-placement-top,
|
39
|
+
.ant-popover-placement-topLeft,
|
40
|
+
.ant-popover-placement-topRight {
|
41
|
+
padding-bottom: 10px;
|
42
|
+
}
|
43
|
+
.ant-popover-placement-right,
|
44
|
+
.ant-popover-placement-rightTop,
|
45
|
+
.ant-popover-placement-rightBottom {
|
46
|
+
padding-left: 10px;
|
47
|
+
}
|
48
|
+
.ant-popover-placement-bottom,
|
49
|
+
.ant-popover-placement-bottomLeft,
|
50
|
+
.ant-popover-placement-bottomRight {
|
51
|
+
padding-top: 10px;
|
52
|
+
}
|
53
|
+
.ant-popover-placement-left,
|
54
|
+
.ant-popover-placement-leftTop,
|
55
|
+
.ant-popover-placement-leftBottom {
|
56
|
+
padding-right: 10px;
|
57
|
+
}
|
58
|
+
.ant-popover-inner {
|
59
|
+
background-color: #ffffff;
|
60
|
+
background-clip: padding-box;
|
61
|
+
border-radius: 2px;
|
62
|
+
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
63
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
64
|
+
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \9;
|
65
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \9;
|
66
|
+
}
|
67
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
68
|
+
.ant-popover {
|
69
|
+
/* IE10+ */
|
70
|
+
}
|
71
|
+
.ant-popover-inner {
|
72
|
+
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
73
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
.ant-popover-title {
|
77
|
+
min-width: 177px;
|
78
|
+
min-height: 32px;
|
79
|
+
margin: 0;
|
80
|
+
padding: 5px 16px 4px;
|
81
|
+
color: #333;
|
82
|
+
font-weight: 500;
|
83
|
+
border-bottom: 1px solid #e5e5e5;
|
84
|
+
}
|
85
|
+
.ant-popover-inner-content {
|
86
|
+
padding: 12px 16px;
|
87
|
+
color: rgba(0, 0, 0, 0.65);
|
88
|
+
}
|
89
|
+
.ant-popover-message {
|
90
|
+
position: relative;
|
91
|
+
padding: 4px 0 12px;
|
92
|
+
color: rgba(0, 0, 0, 0.65);
|
93
|
+
font-size: 14px;
|
94
|
+
}
|
95
|
+
.ant-popover-message > .anticon {
|
96
|
+
position: absolute;
|
97
|
+
top: 8.0005px;
|
98
|
+
color: #f0a818;
|
99
|
+
font-size: 14px;
|
100
|
+
}
|
101
|
+
.ant-popover-message-title {
|
102
|
+
padding-left: 22px;
|
103
|
+
}
|
104
|
+
.ant-popover-buttons {
|
105
|
+
margin-bottom: 4px;
|
106
|
+
text-align: right;
|
107
|
+
}
|
108
|
+
.ant-popover-buttons button {
|
109
|
+
margin-left: 8px;
|
110
|
+
}
|
111
|
+
.ant-popover-arrow {
|
112
|
+
position: absolute;
|
113
|
+
display: block;
|
114
|
+
width: 8.48528137px;
|
115
|
+
height: 8.48528137px;
|
116
|
+
overflow: hidden;
|
117
|
+
background: transparent;
|
118
|
+
pointer-events: none;
|
119
|
+
}
|
120
|
+
.ant-popover-arrow-content {
|
121
|
+
position: absolute;
|
122
|
+
top: 0;
|
123
|
+
right: 0;
|
124
|
+
bottom: 0;
|
125
|
+
left: 0;
|
126
|
+
display: block;
|
127
|
+
width: 6px;
|
128
|
+
height: 6px;
|
129
|
+
margin: auto;
|
130
|
+
background-color: #ffffff;
|
131
|
+
content: '';
|
132
|
+
pointer-events: auto;
|
133
|
+
}
|
134
|
+
.ant-popover-placement-top .ant-popover-arrow,
|
135
|
+
.ant-popover-placement-topLeft .ant-popover-arrow,
|
136
|
+
.ant-popover-placement-topRight .ant-popover-arrow {
|
137
|
+
bottom: 1.51471863px;
|
138
|
+
}
|
139
|
+
.ant-popover-placement-top .ant-popover-arrow-content,
|
140
|
+
.ant-popover-placement-topLeft .ant-popover-arrow-content,
|
141
|
+
.ant-popover-placement-topRight .ant-popover-arrow-content {
|
142
|
+
-webkit-box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
143
|
+
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
144
|
+
-webkit-transform: translateY(-4.24264069px) rotate(45deg);
|
145
|
+
transform: translateY(-4.24264069px) rotate(45deg);
|
146
|
+
}
|
147
|
+
.ant-popover-placement-top .ant-popover-arrow {
|
148
|
+
left: 50%;
|
149
|
+
-webkit-transform: translateX(-50%);
|
150
|
+
transform: translateX(-50%);
|
151
|
+
}
|
152
|
+
.ant-popover-placement-topLeft .ant-popover-arrow {
|
153
|
+
left: 16px;
|
154
|
+
}
|
155
|
+
.ant-popover-placement-topRight .ant-popover-arrow {
|
156
|
+
right: 16px;
|
157
|
+
}
|
158
|
+
.ant-popover-placement-right .ant-popover-arrow,
|
159
|
+
.ant-popover-placement-rightTop .ant-popover-arrow,
|
160
|
+
.ant-popover-placement-rightBottom .ant-popover-arrow {
|
161
|
+
left: 1.51471863px;
|
162
|
+
}
|
163
|
+
.ant-popover-placement-right .ant-popover-arrow-content,
|
164
|
+
.ant-popover-placement-rightTop .ant-popover-arrow-content,
|
165
|
+
.ant-popover-placement-rightBottom .ant-popover-arrow-content {
|
166
|
+
-webkit-box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
|
167
|
+
box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
|
168
|
+
-webkit-transform: translateX(4.24264069px) rotate(45deg);
|
169
|
+
transform: translateX(4.24264069px) rotate(45deg);
|
170
|
+
}
|
171
|
+
.ant-popover-placement-right .ant-popover-arrow {
|
172
|
+
top: 50%;
|
173
|
+
-webkit-transform: translateY(-50%);
|
174
|
+
transform: translateY(-50%);
|
175
|
+
}
|
176
|
+
.ant-popover-placement-rightTop .ant-popover-arrow {
|
177
|
+
top: 12px;
|
178
|
+
}
|
179
|
+
.ant-popover-placement-rightBottom .ant-popover-arrow {
|
180
|
+
bottom: 12px;
|
181
|
+
}
|
182
|
+
.ant-popover-placement-bottom .ant-popover-arrow,
|
183
|
+
.ant-popover-placement-bottomLeft .ant-popover-arrow,
|
184
|
+
.ant-popover-placement-bottomRight .ant-popover-arrow {
|
185
|
+
top: 1.51471863px;
|
186
|
+
}
|
187
|
+
.ant-popover-placement-bottom .ant-popover-arrow-content,
|
188
|
+
.ant-popover-placement-bottomLeft .ant-popover-arrow-content,
|
189
|
+
.ant-popover-placement-bottomRight .ant-popover-arrow-content {
|
190
|
+
-webkit-box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
|
191
|
+
box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
|
192
|
+
-webkit-transform: translateY(4.24264069px) rotate(45deg);
|
193
|
+
transform: translateY(4.24264069px) rotate(45deg);
|
194
|
+
}
|
195
|
+
.ant-popover-placement-bottom .ant-popover-arrow {
|
196
|
+
left: 50%;
|
197
|
+
-webkit-transform: translateX(-50%);
|
198
|
+
transform: translateX(-50%);
|
199
|
+
}
|
200
|
+
.ant-popover-placement-bottomLeft .ant-popover-arrow {
|
201
|
+
left: 16px;
|
202
|
+
}
|
203
|
+
.ant-popover-placement-bottomRight .ant-popover-arrow {
|
204
|
+
right: 16px;
|
205
|
+
}
|
206
|
+
.ant-popover-placement-left .ant-popover-arrow,
|
207
|
+
.ant-popover-placement-leftTop .ant-popover-arrow,
|
208
|
+
.ant-popover-placement-leftBottom .ant-popover-arrow {
|
209
|
+
right: 1.51471863px;
|
210
|
+
}
|
211
|
+
.ant-popover-placement-left .ant-popover-arrow-content,
|
212
|
+
.ant-popover-placement-leftTop .ant-popover-arrow-content,
|
213
|
+
.ant-popover-placement-leftBottom .ant-popover-arrow-content {
|
214
|
+
-webkit-box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
|
215
|
+
box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
|
216
|
+
-webkit-transform: translateX(-4.24264069px) rotate(45deg);
|
217
|
+
transform: translateX(-4.24264069px) rotate(45deg);
|
218
|
+
}
|
219
|
+
.ant-popover-placement-left .ant-popover-arrow {
|
220
|
+
top: 50%;
|
221
|
+
-webkit-transform: translateY(-50%);
|
222
|
+
transform: translateY(-50%);
|
223
|
+
}
|
224
|
+
.ant-popover-placement-leftTop .ant-popover-arrow {
|
225
|
+
top: 12px;
|
226
|
+
}
|
227
|
+
.ant-popover-placement-leftBottom .ant-popover-arrow {
|
228
|
+
bottom: 12px;
|
229
|
+
}
|
230
|
+
.ant-popover-pink .ant-popover-inner {
|
231
|
+
background-color: #eb2f96;
|
232
|
+
}
|
233
|
+
.ant-popover-pink .ant-popover-arrow-content {
|
234
|
+
background-color: #eb2f96;
|
235
|
+
}
|
236
|
+
.ant-popover-magenta .ant-popover-inner {
|
237
|
+
background-color: #eb2f96;
|
238
|
+
}
|
239
|
+
.ant-popover-magenta .ant-popover-arrow-content {
|
240
|
+
background-color: #eb2f96;
|
241
|
+
}
|
242
|
+
.ant-popover-red .ant-popover-inner {
|
243
|
+
background-color: #f5222d;
|
244
|
+
}
|
245
|
+
.ant-popover-red .ant-popover-arrow-content {
|
246
|
+
background-color: #f5222d;
|
247
|
+
}
|
248
|
+
.ant-popover-volcano .ant-popover-inner {
|
249
|
+
background-color: #fa541c;
|
250
|
+
}
|
251
|
+
.ant-popover-volcano .ant-popover-arrow-content {
|
252
|
+
background-color: #fa541c;
|
253
|
+
}
|
254
|
+
.ant-popover-orange .ant-popover-inner {
|
255
|
+
background-color: #fa8c16;
|
256
|
+
}
|
257
|
+
.ant-popover-orange .ant-popover-arrow-content {
|
258
|
+
background-color: #fa8c16;
|
259
|
+
}
|
260
|
+
.ant-popover-yellow .ant-popover-inner {
|
261
|
+
background-color: #fadb14;
|
262
|
+
}
|
263
|
+
.ant-popover-yellow .ant-popover-arrow-content {
|
264
|
+
background-color: #fadb14;
|
265
|
+
}
|
266
|
+
.ant-popover-gold .ant-popover-inner {
|
267
|
+
background-color: #faad14;
|
268
|
+
}
|
269
|
+
.ant-popover-gold .ant-popover-arrow-content {
|
270
|
+
background-color: #faad14;
|
271
|
+
}
|
272
|
+
.ant-popover-cyan .ant-popover-inner {
|
273
|
+
background-color: #13c2c2;
|
274
|
+
}
|
275
|
+
.ant-popover-cyan .ant-popover-arrow-content {
|
276
|
+
background-color: #13c2c2;
|
277
|
+
}
|
278
|
+
.ant-popover-lime .ant-popover-inner {
|
279
|
+
background-color: #a0d911;
|
280
|
+
}
|
281
|
+
.ant-popover-lime .ant-popover-arrow-content {
|
282
|
+
background-color: #a0d911;
|
283
|
+
}
|
284
|
+
.ant-popover-green .ant-popover-inner {
|
285
|
+
background-color: #52c41a;
|
286
|
+
}
|
287
|
+
.ant-popover-green .ant-popover-arrow-content {
|
288
|
+
background-color: #52c41a;
|
289
|
+
}
|
290
|
+
.ant-popover-blue .ant-popover-inner {
|
291
|
+
background-color: #1890ff;
|
292
|
+
}
|
293
|
+
.ant-popover-blue .ant-popover-arrow-content {
|
294
|
+
background-color: #1890ff;
|
295
|
+
}
|
296
|
+
.ant-popover-geekblue .ant-popover-inner {
|
297
|
+
background-color: #2f54eb;
|
298
|
+
}
|
299
|
+
.ant-popover-geekblue .ant-popover-arrow-content {
|
300
|
+
background-color: #2f54eb;
|
301
|
+
}
|
302
|
+
.ant-popover-purple .ant-popover-inner {
|
303
|
+
background-color: #722ed1;
|
304
|
+
}
|
305
|
+
.ant-popover-purple .ant-popover-arrow-content {
|
306
|
+
background-color: #722ed1;
|
307
|
+
}
|
308
|
+
.ant-popover-rtl {
|
309
|
+
direction: rtl;
|
310
|
+
text-align: right;
|
311
|
+
}
|
312
|
+
.ant-popover-rtl .ant-popover-message-title {
|
313
|
+
padding-right: 22px;
|
314
|
+
padding-left: 16px;
|
315
|
+
}
|
316
|
+
.ant-popover-rtl .ant-popover-buttons {
|
317
|
+
text-align: left;
|
318
|
+
}
|
319
|
+
.ant-popover-rtl .ant-popover-buttons button {
|
320
|
+
margin-right: 8px;
|
321
|
+
margin-left: 0;
|
322
|
+
}
|
323
|
+
.ant-btn {
|
324
|
+
padding: 4px 15px;
|
325
|
+
}
|
326
|
+
.ant-btn-sm {
|
327
|
+
padding: 0 7px;
|
328
|
+
}
|
329
|
+
.pandora-sdk-descriptions .pandora-sdk-remark-icon {
|
330
|
+
margin-left: 5px;
|
331
|
+
}
|
332
|
+
.pandora-sdk-descriptions .ant-descriptions-item-label {
|
333
|
+
color: #999;
|
334
|
+
}
|
335
|
+
.pandora-sdk-descriptions .ant-descriptions-item-content {
|
336
|
+
color: #333;
|
337
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@import 'antd/lib/popover/style/index.less';
|
2
|
+
@import '../../style/theme.less';
|
3
|
+
|
4
|
+
.@{sdk-prefix}-descriptions {
|
5
|
+
.@{sdk-prefix}-remark-icon {
|
6
|
+
margin-left: 5px;
|
7
|
+
}
|
8
|
+
.@{ant-prefix}-descriptions-item-label {
|
9
|
+
color: @font-color-9;
|
10
|
+
}
|
11
|
+
|
12
|
+
.@{ant-prefix}-descriptions-item-content {
|
13
|
+
color: @font-color-7;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import classnames from 'classnames';
|
3
|
+
import { Tooltip } from 'antd';
|
4
|
+
import { Close } from '@qn-pandora/pandora-component-icons';
|
5
|
+
import { SDK_PREFIX } from '../../../constants/style';
|
6
|
+
import { formatString } from '../../../utils/language';
|
7
|
+
import { ModalLocale } from '../../../constants/language/modal/type';
|
8
|
+
export var CloseIcon = function (props) {
|
9
|
+
var className = props.className, onClick = props.onClick;
|
10
|
+
return (React.createElement(Tooltip, { title: formatString(ModalLocale.close_tooltip) },
|
11
|
+
React.createElement(Close, { className: classnames(SDK_PREFIX + "-modal-close-icon", className), onClick: onClick })));
|
12
|
+
};
|
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
|
/**
|
@@ -62,11 +62,12 @@ export declare type IDrawerProps = Overwrite<DrawerProps, {
|
|
62
62
|
* 无遮罩时点击空白处中的哪些元素不关闭
|
63
63
|
*/
|
64
64
|
nonCloseSelector?: string;
|
65
|
+
size?: 'small' | 'default' | 'large';
|
65
66
|
}>;
|
66
67
|
export declare class Drawer extends React.Component<React.PropsWithChildren<IDrawerProps>, any> {
|
67
68
|
drawerId: string;
|
68
69
|
isResizing: boolean;
|
69
|
-
realWidth:
|
70
|
+
realWidth: React.ReactText;
|
70
71
|
throttleMouseMove: import("lodash").DebouncedFunc<(e: any) => void>;
|
71
72
|
get closable(): boolean | undefined;
|
72
73
|
get extra(): {} | null | undefined;
|
@@ -76,6 +77,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
|
|
76
77
|
onMouseUp(): void;
|
77
78
|
onMouseMove(e: any): void;
|
78
79
|
onMouseClick(e: MouseEvent): void;
|
80
|
+
initWidth(width?: string | number, size?: string): React.ReactText;
|
79
81
|
componentDidMount(): void;
|
80
82
|
UNSAFE_componentWillUpdate(nextProps: Readonly<React.PropsWithChildren<IDrawerProps>>): void;
|
81
83
|
componentWillUnmount(): void;
|
@@ -84,7 +86,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
|
|
84
86
|
declare const _default: (props: {
|
85
87
|
className?: string | undefined;
|
86
88
|
/**
|
87
|
-
*
|
89
|
+
* 是否显示关闭按钮,默认true
|
88
90
|
*/
|
89
91
|
closable?: boolean | undefined;
|
90
92
|
/**
|
@@ -139,11 +141,13 @@ declare const _default: (props: {
|
|
139
141
|
* 无遮罩时点击空白处中的哪些元素不关闭
|
140
142
|
*/
|
141
143
|
nonCloseSelector?: string | undefined;
|
142
|
-
|
144
|
+
size?: "small" | "default" | "large" | undefined;
|
145
|
+
} & Pick<DrawerProps, "style" | "autoFocus" | "prefixCls" | "footer" | "extra" | "bodyStyle" | "forceRender" | "keyboard" | "destroyOnClose" | "closeIcon" | "drawerStyle" | "headerStyle" | "contentWrapperStyle" | "push" | "handler" | "footerStyle" | "level" | "levelMove"> & {
|
143
146
|
children?: React.ReactNode;
|
144
147
|
} & {
|
145
148
|
bodyStyle?: React.CSSProperties | undefined;
|
146
149
|
children: React.ReactNode;
|
147
150
|
title?: React.ReactNode;
|
151
|
+
extra?: React.ReactNode;
|
148
152
|
}) => JSX.Element;
|
149
153
|
export default _default;
|