@qn-pandora/pandora-component 3.0.1 → 3.1.1
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 +7 -8
- package/es/components/AutoComplete/style.css +4 -1
- package/es/components/Button/index.js +1 -1
- package/es/components/Card/style.css +10 -2
- package/es/components/CheckTransformList/Item/index.js +7 -3
- package/es/components/CheckTransformList/index.js +1 -1
- package/es/components/CheckTransformList/style.css +17 -7
- package/es/components/Collapse/Panel/index.d.ts +8 -40
- package/es/components/Collapse/Panel/index.js +34 -44
- package/es/components/Collapse/index.d.ts +15 -20
- package/es/components/Collapse/index.js +44 -18
- package/es/components/Collapse/style.css +210 -0
- package/es/components/Collapse/style.less +57 -0
- package/es/components/DateTimePicker/Base/index.d.ts +1 -0
- package/es/components/DateTimePicker/Base/index.js +29 -13
- package/es/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -0
- package/es/components/DateTimePicker/Base/relativeTimePicker.js +16 -3
- package/es/components/DateTimePicker/Base/style.css +7 -12
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -0
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.js +8 -3
- package/es/components/DateTimePicker/BaseMobile/index.d.ts +2 -0
- package/es/components/DateTimePicker/BaseMobile/index.js +7 -2
- package/es/components/DateTimePicker/Collapse/Panel/index.d.ts +41 -0
- package/es/components/DateTimePicker/Collapse/Panel/index.js +51 -0
- package/es/components/{Collapse → DateTimePicker/Collapse}/Panel/style.css +0 -0
- package/es/components/{Collapse → DateTimePicker/Collapse}/Panel/style.less +1 -1
- package/es/components/DateTimePicker/Collapse/index.d.ts +24 -0
- package/es/components/DateTimePicker/Collapse/index.js +42 -0
- package/es/components/DateTimePicker/DisplayInput/index.d.ts +1 -0
- package/es/components/DateTimePicker/DisplayInput/index.js +4 -1
- package/es/components/DateTimePicker/DisplayInput/style.css +17 -7
- package/es/components/DateTimePicker/constants.d.ts +4 -5
- package/es/components/DateTimePicker/constants.js +39 -44
- package/es/components/DateTimePicker/style.css +155 -57
- package/es/components/DateTimePicker/time.d.ts +2 -2
- package/es/components/DateTimePicker/time.js +17 -11
- package/es/components/Input/style.css +17 -7
- package/es/components/InputNumber/style.css +1 -1
- package/es/components/Menu/Option.d.ts +1 -1
- package/es/components/Menu/style.css +4 -0
- package/es/components/NameLimiter/index.js +1 -0
- package/es/components/OptionList/PopoverOptionList/style.css +155 -57
- package/es/components/OptionList/style.css +155 -57
- package/es/components/RadioGroup/index.d.ts +53 -0
- package/es/components/RadioGroup/index.js +31 -0
- package/es/components/{SolidRadioGroup → RadioGroup}/style.css +43 -50
- package/es/components/RadioGroup/style.less +32 -0
- package/es/components/RangeInput/index.js +13 -7
- package/es/components/RangeInput/style.css +18 -8
- package/es/components/Selector/index.js +2 -2
- package/es/components/Selector/style.css +4 -1
- package/es/components/SolidRadioGroup/index.d.ts +3 -45
- package/es/components/SolidRadioGroup/index.js +13 -25
- package/es/components/Steps/ControlButton/index.js +8 -2
- package/es/components/Steps/style.css +0 -5
- package/es/components/Steps/style.less +0 -5
- package/es/components/Table/index.d.ts +1 -0
- package/es/components/Table/index.js +14 -5
- package/es/components/Table/style.css +20 -8
- package/es/components/Table/style.less +10 -3
- package/es/components/Tabs/style.css +10 -2
- package/es/components/Timeline/TimelineItem/index.js +6 -4
- package/es/components/Timeline/TimelineItem/style.css +1 -2
- package/es/components/Timeline/TimelineItem/style.less +1 -2
- package/es/components/Transfer/List/index.js +9 -4
- package/es/constants/language/check_transform_list/en.d.ts +2 -0
- package/es/constants/language/check_transform_list/en.js +5 -0
- package/es/constants/language/check_transform_list/type.d.ts +6 -0
- package/es/constants/language/check_transform_list/type.js +3 -0
- package/es/constants/language/check_transform_list/zh.d.ts +2 -0
- package/es/constants/language/check_transform_list/zh.js +5 -0
- package/es/constants/language/datetime/en.d.ts +2 -0
- package/es/constants/language/datetime/en.js +79 -0
- package/es/constants/language/datetime/type.d.ts +80 -0
- package/es/constants/language/datetime/type.js +3 -0
- package/es/constants/language/datetime/zh.d.ts +2 -0
- package/es/constants/language/datetime/zh.js +79 -0
- package/es/constants/language/en.d.ts +2 -0
- package/es/constants/language/en.js +14 -0
- package/es/constants/language/range_input/en.d.ts +2 -0
- package/es/constants/language/range_input/en.js +7 -0
- package/es/constants/language/range_input/type.d.ts +8 -0
- package/es/constants/language/range_input/type.js +3 -0
- package/es/constants/language/range_input/zh.d.ts +2 -0
- package/es/constants/language/range_input/zh.js +7 -0
- package/es/constants/language/steps/en.d.ts +2 -0
- package/es/constants/language/steps/en.js +4 -0
- package/es/constants/language/steps/type.d.ts +5 -0
- package/es/constants/language/steps/type.js +3 -0
- package/es/constants/language/steps/zh.d.ts +2 -0
- package/es/constants/language/steps/zh.js +4 -0
- package/es/constants/language/table/en.d.ts +2 -0
- package/es/constants/language/table/en.js +4 -0
- package/es/constants/language/table/type.d.ts +5 -0
- package/es/constants/language/table/type.js +3 -0
- package/es/constants/language/table/zh.d.ts +2 -0
- package/es/constants/language/table/zh.js +4 -0
- package/es/constants/language/transfer/en.d.ts +2 -0
- package/es/constants/language/transfer/en.js +4 -0
- package/es/constants/language/transfer/type.d.ts +5 -0
- package/es/constants/language/transfer/type.js +3 -0
- package/es/constants/language/transfer/zh.d.ts +2 -0
- package/es/constants/language/transfer/zh.js +4 -0
- package/es/constants/language/type.d.ts +15 -0
- package/es/constants/language/type.js +3 -0
- package/es/constants/language/zh.d.ts +2 -0
- package/es/constants/language/zh.js +14 -0
- package/es/index.css +1464 -1153
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/index.less +7 -7
- package/es/style/theme.less +9 -2
- package/es/utils/language.d.ts +1 -0
- package/es/utils/language.js +15 -0
- package/es/utils/languageLocale.d.ts +1 -0
- package/es/utils/languageLocale.js +9 -0
- package/lib/components/AutoComplete/style.css +4 -1
- package/lib/components/Button/index.js +1 -1
- package/lib/components/Card/style.css +10 -2
- package/lib/components/CheckTransformList/Item/index.js +7 -3
- package/lib/components/CheckTransformList/index.js +1 -1
- package/lib/components/CheckTransformList/style.css +17 -7
- package/lib/components/Collapse/Panel/index.d.ts +8 -40
- package/lib/components/Collapse/Panel/index.js +35 -45
- package/lib/components/Collapse/index.d.ts +15 -20
- package/lib/components/Collapse/index.js +47 -20
- package/lib/components/Collapse/style.css +210 -0
- package/lib/components/Collapse/style.less +57 -0
- package/lib/components/DateTimePicker/Base/index.d.ts +1 -0
- package/lib/components/DateTimePicker/Base/index.js +29 -13
- package/lib/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -0
- package/lib/components/DateTimePicker/Base/relativeTimePicker.js +16 -3
- package/lib/components/DateTimePicker/Base/style.css +7 -12
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -0
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.js +8 -3
- package/lib/components/DateTimePicker/BaseMobile/index.d.ts +2 -0
- package/lib/components/DateTimePicker/BaseMobile/index.js +7 -2
- package/lib/components/DateTimePicker/Collapse/Panel/index.d.ts +41 -0
- package/lib/components/DateTimePicker/Collapse/Panel/index.js +64 -0
- package/lib/components/{Collapse → DateTimePicker/Collapse}/Panel/style.css +0 -0
- package/lib/components/{Collapse → DateTimePicker/Collapse}/Panel/style.less +1 -1
- package/lib/components/DateTimePicker/Collapse/index.d.ts +24 -0
- package/lib/components/DateTimePicker/Collapse/index.js +54 -0
- package/lib/components/DateTimePicker/DisplayInput/index.d.ts +1 -0
- package/lib/components/DateTimePicker/DisplayInput/index.js +4 -1
- package/lib/components/DateTimePicker/DisplayInput/style.css +17 -7
- package/lib/components/DateTimePicker/constants.d.ts +4 -5
- package/lib/components/DateTimePicker/constants.js +39 -44
- package/lib/components/DateTimePicker/style.css +155 -57
- package/lib/components/DateTimePicker/time.d.ts +2 -2
- package/lib/components/DateTimePicker/time.js +16 -10
- package/lib/components/Input/style.css +17 -7
- package/lib/components/InputNumber/style.css +1 -1
- package/lib/components/Menu/Option.d.ts +1 -1
- package/lib/components/Menu/style.css +4 -0
- package/lib/components/NameLimiter/index.js +1 -0
- package/lib/components/OptionList/PopoverOptionList/style.css +155 -57
- package/lib/components/OptionList/style.css +155 -57
- package/lib/components/RadioGroup/index.d.ts +53 -0
- package/lib/components/RadioGroup/index.js +44 -0
- package/lib/components/{SolidRadioGroup → RadioGroup}/style.css +43 -50
- package/lib/components/RadioGroup/style.less +32 -0
- package/lib/components/RangeInput/index.js +13 -7
- package/lib/components/RangeInput/style.css +18 -8
- package/lib/components/Selector/index.js +1 -1
- package/lib/components/Selector/style.css +4 -1
- package/lib/components/SolidRadioGroup/index.d.ts +3 -45
- package/lib/components/SolidRadioGroup/index.js +13 -25
- package/lib/components/Steps/ControlButton/index.js +8 -2
- package/lib/components/Steps/style.css +0 -5
- package/lib/components/Steps/style.less +0 -5
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/Table/index.js +14 -5
- package/lib/components/Table/style.css +20 -8
- package/lib/components/Table/style.less +10 -3
- package/lib/components/Tabs/style.css +10 -2
- package/lib/components/Timeline/TimelineItem/index.js +6 -4
- package/lib/components/Timeline/TimelineItem/style.css +1 -2
- package/lib/components/Timeline/TimelineItem/style.less +1 -2
- package/lib/components/Transfer/List/index.js +8 -3
- package/lib/constants/language/check_transform_list/en.d.ts +2 -0
- package/lib/constants/language/check_transform_list/en.js +7 -0
- package/lib/constants/language/check_transform_list/type.d.ts +6 -0
- package/lib/constants/language/check_transform_list/type.js +5 -0
- package/lib/constants/language/check_transform_list/zh.d.ts +2 -0
- package/lib/constants/language/check_transform_list/zh.js +7 -0
- package/lib/constants/language/datetime/en.d.ts +2 -0
- package/lib/constants/language/datetime/en.js +81 -0
- package/lib/constants/language/datetime/type.d.ts +80 -0
- package/lib/constants/language/datetime/type.js +5 -0
- package/lib/constants/language/datetime/zh.d.ts +2 -0
- package/lib/constants/language/datetime/zh.js +81 -0
- package/lib/constants/language/en.d.ts +2 -0
- package/lib/constants/language/en.js +16 -0
- package/lib/constants/language/range_input/en.d.ts +2 -0
- package/lib/constants/language/range_input/en.js +9 -0
- package/lib/constants/language/range_input/type.d.ts +8 -0
- package/lib/constants/language/range_input/type.js +5 -0
- package/lib/constants/language/range_input/zh.d.ts +2 -0
- package/lib/constants/language/range_input/zh.js +9 -0
- package/lib/constants/language/steps/en.d.ts +2 -0
- package/lib/constants/language/steps/en.js +6 -0
- package/lib/constants/language/steps/type.d.ts +5 -0
- package/lib/constants/language/steps/type.js +5 -0
- package/lib/constants/language/steps/zh.d.ts +2 -0
- package/lib/constants/language/steps/zh.js +6 -0
- package/lib/constants/language/table/en.d.ts +2 -0
- package/lib/constants/language/table/en.js +6 -0
- package/lib/constants/language/table/type.d.ts +5 -0
- package/lib/constants/language/table/type.js +5 -0
- package/lib/constants/language/table/zh.d.ts +2 -0
- package/lib/constants/language/table/zh.js +6 -0
- package/lib/constants/language/transfer/en.d.ts +2 -0
- package/lib/constants/language/transfer/en.js +6 -0
- package/lib/constants/language/transfer/type.d.ts +5 -0
- package/lib/constants/language/transfer/type.js +5 -0
- package/lib/constants/language/transfer/zh.d.ts +2 -0
- package/lib/constants/language/transfer/zh.js +6 -0
- package/lib/constants/language/type.d.ts +15 -0
- package/lib/constants/language/type.js +5 -0
- package/lib/constants/language/zh.d.ts +2 -0
- package/lib/constants/language/zh.js +16 -0
- package/lib/index.css +3909 -3598
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -0
- package/lib/index.less +7 -7
- package/lib/style/theme.less +9 -2
- package/lib/utils/language.d.ts +1 -0
- package/lib/utils/language.js +21 -0
- package/lib/utils/languageLocale.d.ts +1 -0
- package/lib/utils/languageLocale.js +12 -0
- package/package.json +11 -8
- package/es/components/Collapse/stories/style.stories.css +0 -12
- package/es/components/Collapse/stories/style.stories.less +0 -7
- package/es/components/SolidRadioGroup/style.less +0 -39
- package/lib/components/Collapse/stories/style.stories.css +0 -12
- package/lib/components/Collapse/stories/style.stories.less +0 -7
- package/lib/components/SolidRadioGroup/style.less +0 -39
@@ -16,7 +16,6 @@
|
|
16
16
|
font-feature-settings: 'tnum';
|
17
17
|
display: inline-block;
|
18
18
|
font-size: 0;
|
19
|
-
line-height: unset;
|
20
19
|
}
|
21
20
|
.ant-radio-group .ant-badge-count {
|
22
21
|
z-index: 1;
|
@@ -73,11 +72,11 @@
|
|
73
72
|
.ant-radio-wrapper:hover .ant-radio,
|
74
73
|
.ant-radio:hover .ant-radio-inner,
|
75
74
|
.ant-radio-input:focus + .ant-radio-inner {
|
76
|
-
border-color: #
|
75
|
+
border-color: #2c6dd2;
|
77
76
|
}
|
78
77
|
.ant-radio-input:focus + .ant-radio-inner {
|
79
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
80
|
-
box-shadow: 0 0 0 3px rgba(
|
78
|
+
-webkit-box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
79
|
+
box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
81
80
|
}
|
82
81
|
.ant-radio-checked::after {
|
83
82
|
position: absolute;
|
@@ -85,7 +84,7 @@
|
|
85
84
|
left: 0;
|
86
85
|
width: 100%;
|
87
86
|
height: 100%;
|
88
|
-
border: 1px solid #
|
87
|
+
border: 1px solid #2c6dd2;
|
89
88
|
border-radius: 50%;
|
90
89
|
visibility: hidden;
|
91
90
|
-webkit-animation: antRadioEffect 0.36s ease-in-out;
|
@@ -120,7 +119,7 @@
|
|
120
119
|
display: block;
|
121
120
|
width: 8px;
|
122
121
|
height: 8px;
|
123
|
-
background-color: #
|
122
|
+
background-color: #2c6dd2;
|
124
123
|
border-top: 0;
|
125
124
|
border-left: 0;
|
126
125
|
border-radius: 8px;
|
@@ -142,7 +141,7 @@
|
|
142
141
|
opacity: 0;
|
143
142
|
}
|
144
143
|
.ant-radio-checked .ant-radio-inner {
|
145
|
-
border-color: #
|
144
|
+
border-color: #2c6dd2;
|
146
145
|
}
|
147
146
|
.ant-radio-checked .ant-radio-inner::after {
|
148
147
|
-webkit-transform: scale(1);
|
@@ -179,7 +178,7 @@ span.ant-radio + * {
|
|
179
178
|
height: 32px;
|
180
179
|
margin: 0;
|
181
180
|
padding: 0 15px;
|
182
|
-
color:
|
181
|
+
color: #333;
|
183
182
|
font-size: 14px;
|
184
183
|
line-height: 30px;
|
185
184
|
background: #ffffff;
|
@@ -193,7 +192,7 @@ span.ant-radio + * {
|
|
193
192
|
transition: color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
194
193
|
}
|
195
194
|
.ant-radio-button-wrapper a {
|
196
|
-
color:
|
195
|
+
color: #333;
|
197
196
|
}
|
198
197
|
.ant-radio-button-wrapper > .ant-radio-button {
|
199
198
|
position: absolute;
|
@@ -240,11 +239,11 @@ span.ant-radio + * {
|
|
240
239
|
}
|
241
240
|
.ant-radio-button-wrapper:hover {
|
242
241
|
position: relative;
|
243
|
-
color: #
|
242
|
+
color: #2c6dd2;
|
244
243
|
}
|
245
244
|
.ant-radio-button-wrapper:focus-within {
|
246
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
247
|
-
box-shadow: 0 0 0 3px rgba(
|
245
|
+
-webkit-box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
246
|
+
box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
248
247
|
}
|
249
248
|
.ant-radio-button-wrapper .ant-radio-inner,
|
250
249
|
.ant-radio-button-wrapper input[type='checkbox'],
|
@@ -256,52 +255,52 @@ span.ant-radio + * {
|
|
256
255
|
}
|
257
256
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
258
257
|
z-index: 1;
|
259
|
-
color: #
|
258
|
+
color: #2c6dd2;
|
260
259
|
background: #ffffff;
|
261
|
-
border-color: #
|
260
|
+
border-color: #2c6dd2;
|
262
261
|
}
|
263
262
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
|
264
|
-
background-color: #
|
263
|
+
background-color: #2c6dd2;
|
265
264
|
}
|
266
265
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {
|
267
|
-
border-color: #
|
266
|
+
border-color: #2c6dd2;
|
268
267
|
}
|
269
268
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
|
270
|
-
color: #
|
271
|
-
border-color: #
|
269
|
+
color: #2c6dd2;
|
270
|
+
border-color: #2c6dd2;
|
272
271
|
}
|
273
272
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {
|
274
|
-
background-color: #
|
273
|
+
background-color: #2c6dd2;
|
275
274
|
}
|
276
275
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {
|
277
|
-
color: #
|
278
|
-
border-color: #
|
276
|
+
color: #2c6dd2;
|
277
|
+
border-color: #2c6dd2;
|
279
278
|
}
|
280
279
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {
|
281
|
-
background-color: #
|
280
|
+
background-color: #2c6dd2;
|
282
281
|
}
|
283
282
|
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {
|
284
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
285
|
-
box-shadow: 0 0 0 3px rgba(
|
283
|
+
-webkit-box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
284
|
+
box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
286
285
|
}
|
287
286
|
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
288
287
|
color: #ffffff;
|
289
|
-
background: #
|
290
|
-
border-color: #
|
288
|
+
background: #2c6dd2;
|
289
|
+
border-color: #2c6dd2;
|
291
290
|
}
|
292
291
|
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
|
293
292
|
color: #ffffff;
|
294
|
-
background: #
|
295
|
-
border-color: #
|
293
|
+
background: #2c6dd2;
|
294
|
+
border-color: #2c6dd2;
|
296
295
|
}
|
297
296
|
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {
|
298
297
|
color: #ffffff;
|
299
|
-
background: #
|
300
|
-
border-color: #
|
298
|
+
background: #2c6dd2;
|
299
|
+
border-color: #2c6dd2;
|
301
300
|
}
|
302
301
|
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {
|
303
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
304
|
-
box-shadow: 0 0 0 3px rgba(
|
302
|
+
-webkit-box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
303
|
+
box-shadow: 0 0 0 3px rgba(44, 109, 210, 0.08);
|
305
304
|
}
|
306
305
|
.ant-radio-button-wrapper-disabled {
|
307
306
|
color: rgba(0, 0, 0, 0.25);
|
@@ -370,7 +369,7 @@ span.ant-radio + * {
|
|
370
369
|
border-radius: 0 2px 2px 0;
|
371
370
|
}
|
372
371
|
.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {
|
373
|
-
border-right-color: #
|
372
|
+
border-right-color: #2c6dd2;
|
374
373
|
}
|
375
374
|
.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child {
|
376
375
|
border-radius: 2px 0 0 2px;
|
@@ -384,28 +383,22 @@ span.ant-radio + * {
|
|
384
383
|
.ant-btn-sm {
|
385
384
|
padding: 0 7px;
|
386
385
|
}
|
387
|
-
.pandora-sdk-solid-radio-group .
|
386
|
+
.pandora-sdk-solid-radio-group .ant-radio-button-wrapper {
|
388
387
|
padding: 0 12px;
|
389
|
-
border-color: #bfbfbf !important;
|
390
|
-
color: #333;
|
391
|
-
text-align: center;
|
392
388
|
}
|
393
|
-
.pandora-sdk-solid-radio-group .pandora-sdk-solid-radio-
|
394
|
-
background: #fafafa;
|
389
|
+
.pandora-sdk-solid-radio-group .ant-radio-button-wrapper:not(.pandora-sdk-solid-radio-group .ant-radio-button-wrapper-checked) {
|
395
390
|
border-color: #bfbfbf;
|
396
391
|
}
|
397
|
-
.pandora-sdk-solid-radio-group .ant-radio-
|
398
|
-
|
399
|
-
border-color: #2c6dd2 !important;
|
400
|
-
color: #2c6dd2 !important;
|
392
|
+
.pandora-sdk-solid-radio-group .ant-radio:not(.pandora-sdk-solid-radio-group .ant-radio-checked) .ant-radio-inner {
|
393
|
+
border-color: #bfbfbf;
|
401
394
|
}
|
402
|
-
.pandora-sdk-solid-radio-group .ant-radio
|
403
|
-
|
404
|
-
|
395
|
+
.pandora-sdk-solid-radio-group .ant-radio .ant-radio-inner {
|
396
|
+
-webkit-box-sizing: border-box;
|
397
|
+
box-sizing: border-box;
|
405
398
|
}
|
406
|
-
.pandora-sdk-solid-radio-group .ant-radio-
|
407
|
-
|
399
|
+
.pandora-sdk-solid-radio-group .ant-radio .ant-radio-checked .ant-radio-inner {
|
400
|
+
border-color: #2c6dd2;
|
408
401
|
}
|
409
|
-
.ant-radio-
|
410
|
-
background-color: #2c6dd2
|
402
|
+
.pandora-sdk-solid-radio-group .ant-radio .ant-radio-checked .ant-radio-inner::after {
|
403
|
+
background-color: #2c6dd2;
|
411
404
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@import 'antd/lib/radio/style/index.less';
|
2
|
+
@import '../../style/theme.less';
|
3
|
+
|
4
|
+
.@{sdk-prefix}-solid-radio-group {
|
5
|
+
.@{ant-prefix}-radio-button-wrapper {
|
6
|
+
padding: 0 12px;
|
7
|
+
&:not(&-checked) {
|
8
|
+
border-color: @input-border-color;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.@{ant-prefix}-radio {
|
13
|
+
&:not(&-checked) {
|
14
|
+
.@{ant-prefix}-radio-inner {
|
15
|
+
border-color: @input-border-color;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.@{ant-prefix}-radio-inner {
|
20
|
+
box-sizing: border-box;
|
21
|
+
}
|
22
|
+
|
23
|
+
.@{ant-prefix}-radio-checked {
|
24
|
+
.@{ant-prefix}-radio-inner {
|
25
|
+
border-color: @theme-color;
|
26
|
+
&::after {
|
27
|
+
background-color: @theme-color;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -17,14 +17,18 @@ var __read = (this && this.__read) || function (o, n) {
|
|
17
17
|
import * as React from 'react';
|
18
18
|
import { get, isNil } from 'lodash';
|
19
19
|
import { InputNumber, Input } from 'antd';
|
20
|
+
import { ConfigContext } from 'antd/es/config-provider';
|
20
21
|
import { SDK_PREFIX } from '../../constants/style';
|
22
|
+
import { formatString } from '../../utils/language';
|
23
|
+
import { RangeInputLocale } from '../../constants/language/range_input/type';
|
21
24
|
import { formatValue } from './utils';
|
22
|
-
var useCallback = React.useCallback, useState = React.useState;
|
25
|
+
var useCallback = React.useCallback, useState = React.useState, useContext = React.useContext;
|
23
26
|
var InputGroup = Input.Group;
|
24
27
|
export default function RangeInput(props) {
|
25
|
-
var _a = props.size, size = _a === void 0 ? 'middle' : _a,
|
26
|
-
var
|
27
|
-
var
|
28
|
+
var _a = props.size, size = _a === void 0 ? 'middle' : _a, placeholders = props.placeholders, _b = props.symbol, symbol = _b === void 0 ? '-' : _b, showError = props.showError, value = props.value, onChange = props.onChange, error = props.error;
|
29
|
+
var locale = useContext(ConfigContext).locale;
|
30
|
+
var _c = __read(useState(get(value, 'from')), 2), from = _c[0], setFrom = _c[1];
|
31
|
+
var _d = __read(useState(get(value, 'to')), 2), to = _d[0], setTo = _d[1];
|
28
32
|
var handleFromInputChange = useCallback(function (value) {
|
29
33
|
setFrom(value);
|
30
34
|
}, []);
|
@@ -43,9 +47,11 @@ export default function RangeInput(props) {
|
|
43
47
|
return (React.createElement("div", { className: SDK_PREFIX + "-range-input" },
|
44
48
|
React.createElement(InputGroup, { compact: true },
|
45
49
|
React.createElement("div", { className: SDK_PREFIX + "-range-input-input" },
|
46
|
-
React.createElement(InputNumber, { size: size, value: from, onChange: handleFromInputChange, onBlur: handleInputBlur, placeholder: placeholders.from
|
50
|
+
React.createElement(InputNumber, { size: size, value: from, onChange: handleFromInputChange, onBlur: handleInputBlur, placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.from) ||
|
51
|
+
formatString(RangeInputLocale.placeholder.from, locale) })),
|
47
52
|
React.createElement("span", { className: SDK_PREFIX + "-range-input-symbol" }, symbol),
|
48
53
|
React.createElement("div", { className: SDK_PREFIX + "-range-input-input" },
|
49
|
-
React.createElement(InputNumber, { size: size, value: to, onChange: handleToInputChange, onBlur: handleInputBlur, placeholder: placeholders.to
|
50
|
-
|
54
|
+
React.createElement(InputNumber, { size: size, value: to, onChange: handleToInputChange, onBlur: handleInputBlur, placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.to) ||
|
55
|
+
formatString(RangeInputLocale.placeholder.to, locale) }))),
|
56
|
+
get(value, 'isInvalid') && showError && (React.createElement("div", { className: SDK_PREFIX + "-range-input-error" }, error || formatString(RangeInputLocale.error, locale)))));
|
51
57
|
}
|
@@ -132,8 +132,8 @@ textarea.ant-input-affix-wrapper {
|
|
132
132
|
outline: none;
|
133
133
|
}
|
134
134
|
.ant-input-affix-wrapper > input.ant-input:focus {
|
135
|
-
-webkit-box-shadow: none;
|
136
|
-
box-shadow: none;
|
135
|
+
-webkit-box-shadow: none !important;
|
136
|
+
box-shadow: none !important;
|
137
137
|
}
|
138
138
|
.ant-input-affix-wrapper::before {
|
139
139
|
width: 0;
|
@@ -158,7 +158,7 @@ textarea.ant-input-affix-wrapper {
|
|
158
158
|
.ant-input-suffix {
|
159
159
|
margin-left: 4px;
|
160
160
|
}
|
161
|
-
.ant-input-clear-icon {
|
161
|
+
.anticon.ant-input-clear-icon {
|
162
162
|
margin: 0 4px;
|
163
163
|
color: rgba(0, 0, 0, 0.25);
|
164
164
|
font-size: 12px;
|
@@ -167,16 +167,16 @@ textarea.ant-input-affix-wrapper {
|
|
167
167
|
-webkit-transition: color 0.3s;
|
168
168
|
transition: color 0.3s;
|
169
169
|
}
|
170
|
-
.ant-input-clear-icon:hover {
|
170
|
+
.anticon.ant-input-clear-icon:hover {
|
171
171
|
color: rgba(0, 0, 0, 0.45);
|
172
172
|
}
|
173
|
-
.ant-input-clear-icon:active {
|
173
|
+
.anticon.ant-input-clear-icon:active {
|
174
174
|
color: rgba(0, 0, 0, 0.65);
|
175
175
|
}
|
176
|
-
.ant-input-clear-icon-hidden {
|
176
|
+
.anticon.ant-input-clear-icon-hidden {
|
177
177
|
visibility: hidden;
|
178
178
|
}
|
179
|
-
.ant-input-clear-icon:last-child {
|
179
|
+
.anticon.ant-input-clear-icon:last-child {
|
180
180
|
margin-right: 0;
|
181
181
|
}
|
182
182
|
.ant-input-affix-wrapper-textarea-with-clear-btn {
|
@@ -391,6 +391,16 @@ textarea.ant-input {
|
|
391
391
|
.ant-input-group-addon .ant-select-focused .ant-select-selector {
|
392
392
|
color: #7a869a;
|
393
393
|
}
|
394
|
+
.ant-input-group-addon .ant-cascader-picker {
|
395
|
+
margin: -9px -12px;
|
396
|
+
background-color: transparent;
|
397
|
+
}
|
398
|
+
.ant-input-group-addon .ant-cascader-picker .ant-cascader-input {
|
399
|
+
text-align: left;
|
400
|
+
border: 0;
|
401
|
+
-webkit-box-shadow: none;
|
402
|
+
box-shadow: none;
|
403
|
+
}
|
394
404
|
.ant-input-group > .ant-input:first-child,
|
395
405
|
.ant-input-group-addon:first-child {
|
396
406
|
border-top-right-radius: 0;
|
@@ -870,6 +880,7 @@ textarea.ant-input-number {
|
|
870
880
|
font-weight: bold;
|
871
881
|
line-height: 0;
|
872
882
|
text-align: center;
|
883
|
+
border-left: 1px solid #e5e5e5;
|
873
884
|
-webkit-transition: all 0.1s linear;
|
874
885
|
transition: all 0.1s linear;
|
875
886
|
}
|
@@ -1016,7 +1027,6 @@ textarea.ant-input-number {
|
|
1016
1027
|
width: 22px;
|
1017
1028
|
height: 100%;
|
1018
1029
|
background: #ffffff;
|
1019
|
-
border-left: 1px solid #e5e5e5;
|
1020
1030
|
border-radius: 0 2px 2px 0;
|
1021
1031
|
opacity: 0;
|
1022
1032
|
-webkit-transition: opacity 0.24s linear 0.1s;
|
@@ -43,7 +43,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
43
43
|
return t;
|
44
44
|
};
|
45
45
|
import * as React from 'react';
|
46
|
-
import { isArray, concat } from 'lodash';
|
46
|
+
import { isArray, concat, isNumber, toString } from 'lodash';
|
47
47
|
import classnames from 'classnames';
|
48
48
|
import { Checkbox, Select } from 'antd';
|
49
49
|
import PropTypes from 'prop-types';
|
@@ -74,7 +74,7 @@ var formatOptions = function (options) {
|
|
74
74
|
var getOptionComponent = function (options) {
|
75
75
|
return options.map(function (option) {
|
76
76
|
var key = option.key, value = option.value, disabled = option.disabled, text = option.text;
|
77
|
-
return (React.createElement(Select.Option, { key: key || value, value: value, disabled: disabled }, text));
|
77
|
+
return (React.createElement(Select.Option, { key: key || value, value: value, disabled: disabled }, isNumber(text) ? toString(text) : text));
|
78
78
|
});
|
79
79
|
};
|
80
80
|
var getGroupComponent = function (options, groupOptions) {
|
@@ -457,7 +457,7 @@
|
|
457
457
|
-webkit-font-smoothing: antialiased;
|
458
458
|
-moz-osx-font-smoothing: grayscale;
|
459
459
|
position: absolute;
|
460
|
-
top:
|
460
|
+
top: 50%;
|
461
461
|
right: 11px;
|
462
462
|
width: 12px;
|
463
463
|
height: 12px;
|
@@ -638,6 +638,9 @@
|
|
638
638
|
color: rgba(0, 0, 0, 0.25);
|
639
639
|
cursor: not-allowed;
|
640
640
|
}
|
641
|
+
.ant-select-item-option-disabled.ant-select-item-option-selected {
|
642
|
+
background-color: #f5f5f5;
|
643
|
+
}
|
641
644
|
.ant-select-item-option-grouped {
|
642
645
|
padding-left: 24px;
|
643
646
|
}
|
@@ -1,49 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
3
|
-
export
|
4
|
-
|
5
|
-
* 选项的值
|
6
|
-
*/
|
7
|
-
value: T;
|
8
|
-
/**
|
9
|
-
* 选项的展示形式:string类型或者React组件
|
10
|
-
*/
|
11
|
-
item: string | React.ReactNode;
|
12
|
-
/**
|
13
|
-
* 禁用选项
|
14
|
-
*/
|
15
|
-
disabled?: boolean;
|
16
|
-
}
|
17
|
-
export interface ISolidRadioGroupProps<T = BasicType> {
|
18
|
-
/**
|
19
|
-
* 当前值
|
20
|
-
*/
|
21
|
-
value?: T;
|
22
|
-
/**
|
23
|
-
* 选中变化回调
|
24
|
-
*/
|
25
|
-
onChange?: (value: any) => void;
|
26
|
-
/**
|
27
|
-
* 容器样式
|
28
|
-
*/
|
29
|
-
className?: string;
|
30
|
-
/**
|
31
|
-
* 按钮样式
|
32
|
-
*/
|
33
|
-
buttonClassName?: string;
|
34
|
-
/**
|
35
|
-
* 按钮大小
|
36
|
-
*/
|
37
|
-
size?: 'small' | 'middle' | 'large';
|
38
|
-
/**
|
39
|
-
* 禁用
|
40
|
-
*/
|
41
|
-
disabled?: boolean;
|
42
|
-
/**
|
43
|
-
* 可选线列表
|
44
|
-
*/
|
45
|
-
options?: Array<IOption<T>> | IKeyValues<string | React.ReactNode>;
|
46
|
-
children?: any;
|
2
|
+
import { IRadioGroupProps, IOption } from '../RadioGroup';
|
3
|
+
export { IOption };
|
4
|
+
export interface ISolidRadioGroupProps<T = any> extends Omit<IRadioGroupProps<T>, 'optionType'> {
|
47
5
|
}
|
48
6
|
declare function SolidRadioGroup(props: ISolidRadioGroupProps): JSX.Element;
|
49
7
|
declare namespace SolidRadioGroup {
|
@@ -1,30 +1,18 @@
|
|
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
|
+
};
|
1
12
|
import * as React from 'react';
|
2
|
-
import { isArray, isUndefined } from 'lodash';
|
3
13
|
import Radio from 'antd/es/radio';
|
4
|
-
import
|
5
|
-
import { SDK_PREFIX } from '../../constants/style';
|
6
|
-
var useCallback = React.useCallback, useMemo = React.useMemo;
|
14
|
+
import { default as RadioGroup } from '../RadioGroup';
|
7
15
|
export default function SolidRadioGroup(props) {
|
8
|
-
|
9
|
-
var handleChange = useCallback(function (e) {
|
10
|
-
if (onChange) {
|
11
|
-
onChange(e.target.value);
|
12
|
-
}
|
13
|
-
}, [onChange]);
|
14
|
-
var radioOptions = useMemo(function () {
|
15
|
-
return isArray(options)
|
16
|
-
? options
|
17
|
-
: Object.keys(options).map(function (key) { return ({ value: key, item: options[key] }); });
|
18
|
-
}, [options]);
|
19
|
-
return (React.createElement(Radio.Group, { className: classnames(SDK_PREFIX + "-solid-radio-group", className), value: value, onChange: handleChange, size: size },
|
20
|
-
radioOptions.map(function (option) {
|
21
|
-
var _a;
|
22
|
-
var value = option.value, item = option.item;
|
23
|
-
var disableRealVal = isUndefined(option.disabled)
|
24
|
-
? disabled
|
25
|
-
: option.disabled;
|
26
|
-
return (React.createElement(Radio.Button, { key: value.toString(), value: value, disabled: disableRealVal, className: classnames((_a = {}, _a[SDK_PREFIX + "-solid-radio-item"] = !disableRealVal, _a), buttonClassName) }, item));
|
27
|
-
}),
|
28
|
-
children));
|
16
|
+
return React.createElement(RadioGroup, __assign({ optionType: "button" }, props));
|
29
17
|
}
|
30
18
|
SolidRadioGroup.Button = Radio.Button;
|
@@ -1,10 +1,14 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
+
import { ConfigContext } from 'antd/es/config-provider';
|
2
3
|
import Button from '../../Button';
|
4
|
+
import { formatString } from '../../../utils/language';
|
3
5
|
import { SDK_PREFIX } from '../../../constants/style';
|
6
|
+
import { StepsLocale } from '../../../constants/language/steps/type';
|
4
7
|
import { StepsContext } from '../context';
|
5
8
|
function ControlButton(props) {
|
6
9
|
var lastStepText = props.lastStepText, nextDisabled = props.nextDisabled, onStepChange = props.onStepChange, onStepLast = props.onStepLast;
|
7
10
|
var _a = React.useContext(StepsContext), stepCount = _a.count, current = _a.current;
|
11
|
+
var locale = React.useContext(ConfigContext).locale;
|
8
12
|
var isLastStep = current === stepCount - 1;
|
9
13
|
var handlePreStep = function () {
|
10
14
|
if (current > 0 && onStepChange) {
|
@@ -20,7 +24,9 @@ function ControlButton(props) {
|
|
20
24
|
}
|
21
25
|
};
|
22
26
|
return (React.createElement(React.Fragment, null,
|
23
|
-
React.createElement(Button, { className: SDK_PREFIX + "-prev-button", onClick: handlePreStep, disabled: current === 0 },
|
24
|
-
React.createElement(Button, { className: SDK_PREFIX + "-next-button", type: "primary", onClick: handleNextStep, disabled: nextDisabled || (isLastStep && !lastStepText) }, isLastStep && lastStepText
|
27
|
+
React.createElement(Button, { className: SDK_PREFIX + "-prev-button", onClick: handlePreStep, disabled: current === 0 }, formatString(StepsLocale.previous_step, locale)),
|
28
|
+
React.createElement(Button, { className: SDK_PREFIX + "-next-button", type: "primary", onClick: handleNextStep, disabled: nextDisabled || (isLastStep && !lastStepText) }, isLastStep && lastStepText
|
29
|
+
? lastStepText
|
30
|
+
: formatString(StepsLocale.next_step, locale))));
|
25
31
|
}
|
26
32
|
export default React.memo(ControlButton);
|
@@ -767,8 +767,6 @@
|
|
767
767
|
.pandora-sdk-steps .ant-steps-item-icon {
|
768
768
|
width: 24px;
|
769
769
|
height: 24px;
|
770
|
-
line-height: 28px;
|
771
|
-
margin-top: 2px;
|
772
770
|
font-size: 12px;
|
773
771
|
}
|
774
772
|
.pandora-sdk-steps .ant-steps-item-icon .ant-steps-icon {
|
@@ -785,9 +783,6 @@
|
|
785
783
|
background: #2c6dd2;
|
786
784
|
border: none;
|
787
785
|
}
|
788
|
-
.pandora-sdk-steps .ant-steps-item .ant-steps-item-icon .ant-steps-icon {
|
789
|
-
top: -1px;
|
790
|
-
}
|
791
786
|
.pandora-sdk-steps .ant-steps-item.ant-steps-item-finish .ant-steps-item-icon .ant-steps-icon {
|
792
787
|
color: #ffffff;
|
793
788
|
}
|
@@ -5,8 +5,6 @@
|
|
5
5
|
.@{ant-prefix}-steps-item-icon {
|
6
6
|
width: 24px;
|
7
7
|
height: 24px;
|
8
|
-
line-height: 28px;
|
9
|
-
margin-top: 2px;
|
10
8
|
font-size: 12px;
|
11
9
|
.@{ant-prefix}-steps-icon {
|
12
10
|
font-size: 10px;
|
@@ -27,9 +25,6 @@
|
|
27
25
|
border-radius: 2px;
|
28
26
|
background: @theme-color;
|
29
27
|
border: none;
|
30
|
-
.@{ant-prefix}-steps-icon {
|
31
|
-
top: -1px;
|
32
|
-
}
|
33
28
|
}
|
34
29
|
|
35
30
|
&.@{ant-prefix}-steps-item-finish .@{ant-prefix}-steps-item-icon {
|
@@ -40,6 +40,7 @@ declare class Table<T = any> extends React.Component<ITableProps<T>, any> {
|
|
40
40
|
title?: string | undefined;
|
41
41
|
tagClassName?: string | undefined;
|
42
42
|
}) => JSX.Element;
|
43
|
+
static contextType: React.Context<import("antd/es/config-provider").ConfigConsumerProps>;
|
43
44
|
indeterminate: boolean;
|
44
45
|
checkAll: boolean;
|
45
46
|
UNSAFE_componentWillReceiveProps(nextProps: ITableProps<T>): void;
|
@@ -63,13 +63,17 @@ var __spread = (this && this.__spread) || function () {
|
|
63
63
|
return ar;
|
64
64
|
};
|
65
65
|
import * as React from 'react';
|
66
|
-
import { Table as AntTable, Checkbox } from 'antd';
|
67
66
|
import classnames from 'classnames';
|
67
|
+
import { observer } from 'mobx-react';
|
68
68
|
import { observable, action, computed } from 'mobx';
|
69
69
|
import { size, xor, union, unionBy, differenceBy, get } from 'lodash';
|
70
|
-
import {
|
70
|
+
import { Table as AntTable, Checkbox } from 'antd';
|
71
|
+
import { ConfigContext } from 'antd/es/config-provider';
|
72
|
+
import { EmptyIcon } from '@qn-pandora/pandora-component-icons';
|
71
73
|
import bind from '../../utils/bind';
|
74
|
+
import { formatString } from '../../utils/language';
|
72
75
|
import { SDK_PREFIX } from '../../constants/style';
|
76
|
+
import { TableLocale } from '../../constants/language/table/type';
|
73
77
|
import { ColumnTag } from './ColumnTag/ColumnTag';
|
74
78
|
/**
|
75
79
|
* pandora2.0风格的表格
|
@@ -228,9 +232,12 @@ var Table = /** @class */ (function (_super) {
|
|
228
232
|
Table.prototype.render = function () {
|
229
233
|
var _a, _b;
|
230
234
|
var _this = this;
|
231
|
-
var _c = this.props, className = _c.className, batchOptions = _c.batchOptions, scroll = _c.scroll, restProps = __rest(_c, ["className", "batchOptions", "scroll"]);
|
235
|
+
var _c = this.props, className = _c.className, batchOptions = _c.batchOptions, scroll = _c.scroll, locale = _c.locale, restProps = __rest(_c, ["className", "batchOptions", "scroll", "locale"]);
|
232
236
|
return (React.createElement("div", null,
|
233
|
-
React.createElement(AntTable, __assign({ scroll: scroll
|
237
|
+
React.createElement(AntTable, __assign({ scroll: scroll, locale: __assign({ emptyText: (React.createElement("div", { className: SDK_PREFIX + "-table-empty" },
|
238
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-empty-icon" },
|
239
|
+
React.createElement(EmptyIcon, null)),
|
240
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-empty-text" }, formatString(TableLocale.empty, this.context.locale)))) }, locale) }, restProps, { className: classnames(SDK_PREFIX + "-table-wrapper", (_a = {}, _a[SDK_PREFIX + "-table-scrollX"] = get(scroll, 'x'), _a), (_b = {}, _b[SDK_PREFIX + "-table-scrollY"] = get(scroll, 'y'), _b), className),
|
234
241
|
// 涉及到权限
|
235
242
|
// getCheckboxProps只能放到tableBatchWrapper里,因为selectedRowKeys在那个组件计算
|
236
243
|
rowSelection: batchOptions && this.props.rowSelection
|
@@ -242,7 +249,8 @@ var Table = /** @class */ (function (_super) {
|
|
242
249
|
this.props.dataSource.length > 0 ? (React.createElement("div", { className: SDK_PREFIX + "-table-batch-opt" },
|
243
250
|
React.createElement(Checkbox, { indeterminate: this.indeterminate, onChange: this.handleCheckAllChange, checked: this.checkAll, disabled: size(this.undisabledData) === 0 }),
|
244
251
|
React.createElement("span", { className: SDK_PREFIX + "-table-batch-opt-label" },
|
245
|
-
|
252
|
+
formatString(TableLocale.selected, this.context.locale),
|
253
|
+
' ',
|
246
254
|
this.selectedRowKeys.length),
|
247
255
|
React.createElement("span", null, (batchOptions || []).map(function (option, index) {
|
248
256
|
var _a;
|
@@ -254,6 +262,7 @@ var Table = /** @class */ (function (_super) {
|
|
254
262
|
};
|
255
263
|
Table.Column = AntTable.Column;
|
256
264
|
Table.ColumnTag = ColumnTag;
|
265
|
+
Table.contextType = ConfigContext;
|
257
266
|
__decorate([
|
258
267
|
observable,
|
259
268
|
__metadata("design:type", Object)
|