@qn-pandora/pandora-component 2.1.2 → 3.0.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 +25 -0
- package/CHANGELOG.md +11 -0
- package/es/components/AutoComplete/style.css +17 -13
- package/es/components/Button/style.css +2 -3
- package/es/components/Button/style.less +0 -1
- package/es/components/Card/index.js +2 -1
- package/es/components/CheckTransformList/Item/index.js +1 -1
- package/es/components/CheckTransformList/style.css +25 -17
- package/es/components/CheckboxList/index.d.ts +1 -0
- package/es/components/CheckboxList/index.js +3 -2
- package/es/components/Collapse/index.js +2 -1
- package/es/components/CollapsiblePanel/index.d.ts +2 -2
- package/es/components/ConfigProvider/index.js +2 -1
- package/es/components/DateTimePicker/Base/index.js +2 -2
- package/es/components/DateTimePicker/Base/style.css +13 -13
- package/es/components/DateTimePicker/BaseMobile/index.d.ts +1 -0
- package/es/components/DateTimePicker/BaseMobile/index.js +2 -2
- package/es/components/DateTimePicker/DisplayInput/style.css +16 -16
- package/es/components/DateTimePicker/index.d.ts +6 -1
- package/es/components/DateTimePicker/index.js +2 -2
- package/es/components/Input/NumberInput/index.d.ts +29 -0
- package/es/components/Input/NumberInput/index.js +116 -0
- package/es/components/Input/index.d.ts +1 -0
- package/es/components/Input/index.js +4 -1
- package/es/components/Input/style.css +19 -16
- package/es/components/Input/style.less +4 -0
- package/es/components/InputNumber/style.css +6 -6
- package/es/components/Menu/index.d.ts +2 -2
- package/es/components/NameLimiter/index.d.ts +3 -13
- package/es/components/NameLimiter/index.js +30 -39
- package/es/components/NameLimiter/style.css +9 -1
- package/es/components/NameLimiter/style.less +10 -1
- package/es/components/OptionList/index.js +2 -1
- package/es/components/RangeInput/style.css +22 -22
- package/es/components/RemarkName/index.d.ts +0 -2
- package/es/components/RemarkName/index.js +2 -4
- package/es/components/RemarkName/style.css +9 -5
- package/es/components/RemarkName/style.less +0 -5
- package/es/components/Selector/style.css +17 -13
- package/es/components/Selector/style.less +7 -3
- package/es/components/SolidRadioGroup/index.d.ts +3 -2
- package/es/components/SolidRadioGroup/index.js +7 -4
- package/es/components/SolidRadioGroup/style.css +13 -6
- package/es/components/SolidRadioGroup/style.less +16 -3
- package/es/components/Steps/index.js +2 -1
- package/es/components/Table/index.d.ts +9 -24
- package/es/components/Table/index.js +40 -8
- package/es/components/Table/style.css +11 -8
- package/es/components/Table/style.less +6 -0
- package/es/components/TagList/Tag/style.css +3 -3
- package/es/components/TagList/Tag/style.less +3 -3
- package/es/components/TagList/index.js +3 -2
- package/es/components/TagList/style.css +3 -3
- package/es/components/TagList/style.less +8 -8
- package/es/index.css +1804 -1784
- package/es/index.d.ts +2 -2
- package/es/index.js +1 -1
- package/es/index.less +2 -2
- package/es/style/theme.less +9 -7
- package/lib/components/AutoComplete/style.css +17 -13
- package/lib/components/Button/style.css +2 -3
- package/lib/components/Button/style.less +0 -1
- package/lib/components/Card/index.js +1 -1
- package/lib/components/CheckTransformList/Item/index.js +1 -1
- package/lib/components/CheckTransformList/style.css +25 -17
- package/lib/components/CheckboxList/index.d.ts +1 -0
- package/lib/components/CheckboxList/index.js +3 -2
- package/lib/components/Collapse/index.js +1 -1
- package/lib/components/CollapsiblePanel/index.d.ts +2 -2
- package/lib/components/ConfigProvider/index.js +1 -1
- package/lib/components/DateTimePicker/Base/index.js +2 -2
- package/lib/components/DateTimePicker/Base/style.css +13 -13
- package/lib/components/DateTimePicker/BaseMobile/index.d.ts +1 -0
- package/lib/components/DateTimePicker/BaseMobile/index.js +2 -2
- package/lib/components/DateTimePicker/DisplayInput/style.css +16 -16
- package/lib/components/DateTimePicker/index.d.ts +6 -1
- package/lib/components/DateTimePicker/index.js +2 -2
- package/lib/components/Input/NumberInput/index.d.ts +29 -0
- package/lib/components/Input/NumberInput/index.js +121 -0
- package/lib/components/Input/index.d.ts +1 -0
- package/lib/components/Input/index.js +3 -1
- package/lib/components/Input/style.css +19 -16
- package/lib/components/Input/style.less +4 -0
- package/lib/components/InputNumber/style.css +6 -6
- package/lib/components/Menu/index.d.ts +2 -2
- package/lib/components/NameLimiter/index.d.ts +3 -13
- package/lib/components/NameLimiter/index.js +30 -38
- package/lib/components/NameLimiter/style.css +9 -1
- package/lib/components/NameLimiter/style.less +10 -1
- package/lib/components/OptionList/index.js +1 -1
- package/lib/components/RangeInput/style.css +22 -22
- package/lib/components/RemarkName/index.d.ts +0 -2
- package/lib/components/RemarkName/index.js +2 -4
- package/lib/components/RemarkName/style.css +9 -5
- package/lib/components/RemarkName/style.less +0 -5
- package/lib/components/Selector/style.css +17 -13
- package/lib/components/Selector/style.less +7 -3
- package/lib/components/SolidRadioGroup/index.d.ts +3 -2
- package/lib/components/SolidRadioGroup/index.js +6 -3
- package/lib/components/SolidRadioGroup/style.css +13 -6
- package/lib/components/SolidRadioGroup/style.less +16 -3
- package/lib/components/Steps/index.js +1 -1
- package/lib/components/Table/index.d.ts +9 -24
- package/lib/components/Table/index.js +39 -7
- package/lib/components/Table/style.css +11 -8
- package/lib/components/Table/style.less +6 -0
- package/lib/components/TagList/Tag/style.css +3 -3
- package/lib/components/TagList/Tag/style.less +3 -3
- package/lib/components/TagList/index.js +2 -2
- package/lib/components/TagList/style.css +3 -3
- package/lib/components/TagList/style.less +8 -8
- package/lib/index.css +116 -96
- package/lib/index.d.ts +2 -2
- package/lib/index.js +0 -1
- package/lib/index.less +2 -2
- package/lib/style/theme.less +9 -7
- package/package.json +23 -23
- package/es/components/NameLimiter/transformer.d.ts +0 -6
- package/es/components/NameLimiter/transformer.js +0 -84
- package/lib/components/NameLimiter/transformer.d.ts +0 -6
- package/lib/components/NameLimiter/transformer.js +0 -91
package/CHANGELOG.json
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"name": "@qn-pandora/pandora-component",
|
3
|
+
"entries": [
|
4
|
+
{
|
5
|
+
"version": "3.0.0",
|
6
|
+
"tag": "@qn-pandora/pandora-component_v3.0.0",
|
7
|
+
"date": "Mon, 20 Dec 2021 11:18:50 GMT",
|
8
|
+
"comments": {
|
9
|
+
"major": [
|
10
|
+
{
|
11
|
+
"comment": "仓库迁移至rush后统一发个大版本"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"dependency": [
|
15
|
+
{
|
16
|
+
"comment": "Updating dependency \"@qn-pandora/pandora-component-icons\" from `^1.2.0` to `^2.0.0`"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"comment": "Updating dependency \"@qn-pandora/pandora-tools\" from `^0.1.0` to `^1.0.0`"
|
20
|
+
}
|
21
|
+
]
|
22
|
+
}
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
package/CHANGELOG.md
ADDED
@@ -233,7 +233,7 @@
|
|
233
233
|
}
|
234
234
|
.ant-select-disabled.ant-select-multiple .ant-select-selection-item {
|
235
235
|
color: #bfbfbf;
|
236
|
-
border-color: #
|
236
|
+
border-color: #bfbfbf;
|
237
237
|
cursor: not-allowed;
|
238
238
|
}
|
239
239
|
.ant-select-multiple .ant-select-selection-item-content {
|
@@ -321,20 +321,20 @@
|
|
321
321
|
transition: all 0.3s;
|
322
322
|
}
|
323
323
|
.ant-select-multiple.ant-select-lg .ant-select-selector::after {
|
324
|
-
line-height:
|
324
|
+
line-height: 32px;
|
325
325
|
}
|
326
326
|
.ant-select-multiple.ant-select-lg .ant-select-selection-item {
|
327
|
-
height:
|
328
|
-
line-height:
|
327
|
+
height: 32px;
|
328
|
+
line-height: 30px;
|
329
329
|
}
|
330
330
|
.ant-select-multiple.ant-select-lg .ant-select-selection-search {
|
331
|
-
height:
|
332
|
-
line-height:
|
331
|
+
height: 32px;
|
332
|
+
line-height: 32px;
|
333
333
|
}
|
334
334
|
.ant-select-multiple.ant-select-lg .ant-select-selection-search-input,
|
335
335
|
.ant-select-multiple.ant-select-lg .ant-select-selection-search-mirror {
|
336
|
-
height:
|
337
|
-
line-height:
|
336
|
+
height: 32px;
|
337
|
+
line-height: 30px;
|
338
338
|
}
|
339
339
|
.ant-select-multiple.ant-select-sm .ant-select-selector::after {
|
340
340
|
line-height: 18px;
|
@@ -386,7 +386,7 @@
|
|
386
386
|
.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
387
387
|
position: relative;
|
388
388
|
background-color: #ffffff;
|
389
|
-
border: 1px solid #
|
389
|
+
border: 1px solid #bfbfbf;
|
390
390
|
border-radius: 2px;
|
391
391
|
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
392
392
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
@@ -1058,16 +1058,20 @@
|
|
1058
1058
|
.pandora-sdk-selector-dropdown .ant-select-dropdown-menu::-webkit-scrollbar-corner {
|
1059
1059
|
background: transparent;
|
1060
1060
|
}
|
1061
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
1061
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option-disabled {
|
1062
1062
|
color: #d9d9d9 !important;
|
1063
1063
|
}
|
1064
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
1064
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option-selected {
|
1065
1065
|
color: #2c6dd2;
|
1066
|
+
font-weight: 400;
|
1066
1067
|
}
|
1067
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
1068
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option-selected::after {
|
1068
1069
|
color: #2c6dd2 !important;
|
1069
1070
|
}
|
1070
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
1071
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option:hover {
|
1072
|
+
color: #2c6dd2;
|
1073
|
+
}
|
1074
|
+
.pandora-sdk-selector-dropdown .ant-select-item-group {
|
1071
1075
|
color: #d9d9d9;
|
1072
1076
|
}
|
1073
1077
|
.pandora-sdk-selector-dropdown.pandora-sdk-selector-no-ellipsis .ant-select-dropdown-menu {
|
@@ -1925,7 +1925,6 @@ a.ant-btn-sm {
|
|
1925
1925
|
.pandora-sdk-button {
|
1926
1926
|
-webkit-box-shadow: none;
|
1927
1927
|
box-shadow: none;
|
1928
|
-
border-radius: 2px;
|
1929
1928
|
}
|
1930
1929
|
.pandora-sdk-button.pandora-sdk-button-disabled {
|
1931
1930
|
background: #eee !important;
|
@@ -1937,12 +1936,12 @@ a.ant-btn-sm {
|
|
1937
1936
|
.pandora-sdk-button.pandora-sdk-type-default {
|
1938
1937
|
background: #ffffff;
|
1939
1938
|
color: rgba(0, 0, 0, 0.65);
|
1940
|
-
border: 1px solid #
|
1939
|
+
border: 1px solid #bfbfbf;
|
1941
1940
|
}
|
1942
1941
|
.pandora-sdk-button.pandora-sdk-type-default:hover,
|
1943
1942
|
.pandora-sdk-button.pandora-sdk-type-default:focus {
|
1944
1943
|
background: #fafafa;
|
1945
|
-
border-color: #
|
1944
|
+
border-color: #bfbfbf;
|
1946
1945
|
}
|
1947
1946
|
.pandora-sdk-button.pandora-sdk-type-primary {
|
1948
1947
|
background: #2c6dd2;
|
@@ -29,7 +29,7 @@ import { SDK_PREFIX } from '../../constants/style';
|
|
29
29
|
/**
|
30
30
|
* 卡片组件封装
|
31
31
|
*/
|
32
|
-
|
32
|
+
function Card(props) {
|
33
33
|
var className = props.className, otherProps = __rest(props, ["className"]);
|
34
34
|
return (React.createElement(AntdCard, __assign({ className: classnames(className, SDK_PREFIX + "-card") }, otherProps)));
|
35
35
|
}
|
@@ -37,3 +37,4 @@ Card.RowExtra = RowExtra;
|
|
37
37
|
Card.SearchInput = SearchInput;
|
38
38
|
Card.Grid = AntdCard.Grid;
|
39
39
|
Card.Meta = AntdCard.Meta;
|
40
|
+
export default Card;
|
@@ -20,6 +20,6 @@ export default function Item(props) {
|
|
20
20
|
React.createElement("div", { className: SDK_PREFIX + "-check-transform-checkbox-group" }, options.map(function (item) {
|
21
21
|
return (React.createElement("div", { key: item.value },
|
22
22
|
React.createElement(Checkbox, { value: item.value, checked: item.checked, onChange: onCheckboxChange },
|
23
|
-
React.createElement(NameLimiter, { name: item.text
|
23
|
+
React.createElement(NameLimiter, { name: item.text }))));
|
24
24
|
})))));
|
25
25
|
}
|
@@ -377,7 +377,7 @@
|
|
377
377
|
line-height: 1.5715;
|
378
378
|
background-color: transparent;
|
379
379
|
background-image: none;
|
380
|
-
border: 1px solid #
|
380
|
+
border: 1px solid #bfbfbf;
|
381
381
|
border-radius: 2px;
|
382
382
|
-webkit-transition: all 0.3s;
|
383
383
|
transition: all 0.3s;
|
@@ -428,7 +428,7 @@
|
|
428
428
|
opacity: 1;
|
429
429
|
}
|
430
430
|
.ant-input-affix-wrapper-disabled:hover {
|
431
|
-
border-color: #
|
431
|
+
border-color: #bfbfbf;
|
432
432
|
border-right-width: 1px !important;
|
433
433
|
}
|
434
434
|
.ant-input-affix-wrapper[disabled] {
|
@@ -438,7 +438,7 @@
|
|
438
438
|
opacity: 1;
|
439
439
|
}
|
440
440
|
.ant-input-affix-wrapper[disabled]:hover {
|
441
|
-
border-color: #
|
441
|
+
border-color: #bfbfbf;
|
442
442
|
border-right-width: 1px !important;
|
443
443
|
}
|
444
444
|
.ant-input-affix-wrapper-borderless,
|
@@ -462,7 +462,7 @@ textarea.ant-input-affix-wrapper {
|
|
462
462
|
transition: all 0.3s, height 0s;
|
463
463
|
}
|
464
464
|
.ant-input-affix-wrapper-lg {
|
465
|
-
padding:
|
465
|
+
padding: 6.5px 11px;
|
466
466
|
font-size: 16px;
|
467
467
|
}
|
468
468
|
.ant-input-affix-wrapper-sm {
|
@@ -573,7 +573,7 @@ textarea.ant-input-affix-wrapper {
|
|
573
573
|
line-height: 1.5715;
|
574
574
|
background-color: transparent;
|
575
575
|
background-image: none;
|
576
|
-
border: 1px solid #
|
576
|
+
border: 1px solid #bfbfbf;
|
577
577
|
border-radius: 2px;
|
578
578
|
-webkit-transition: all 0.3s;
|
579
579
|
transition: all 0.3s;
|
@@ -621,7 +621,7 @@ textarea.ant-input-affix-wrapper {
|
|
621
621
|
opacity: 1;
|
622
622
|
}
|
623
623
|
.ant-input-disabled:hover {
|
624
|
-
border-color: #
|
624
|
+
border-color: #bfbfbf;
|
625
625
|
border-right-width: 1px !important;
|
626
626
|
}
|
627
627
|
.ant-input[disabled] {
|
@@ -631,7 +631,7 @@ textarea.ant-input-affix-wrapper {
|
|
631
631
|
opacity: 1;
|
632
632
|
}
|
633
633
|
.ant-input[disabled]:hover {
|
634
|
-
border-color: #
|
634
|
+
border-color: #bfbfbf;
|
635
635
|
border-right-width: 1px !important;
|
636
636
|
}
|
637
637
|
.ant-input-borderless,
|
@@ -655,7 +655,7 @@ textarea.ant-input {
|
|
655
655
|
transition: all 0.3s, height 0s;
|
656
656
|
}
|
657
657
|
.ant-input-lg {
|
658
|
-
padding:
|
658
|
+
padding: 6.5px 11px;
|
659
659
|
font-size: 16px;
|
660
660
|
}
|
661
661
|
.ant-input-sm {
|
@@ -737,7 +737,7 @@ textarea.ant-input {
|
|
737
737
|
font-size: 14px;
|
738
738
|
text-align: center;
|
739
739
|
background-color: #fafafa;
|
740
|
-
border: 1px solid #
|
740
|
+
border: 1px solid #bfbfbf;
|
741
741
|
border-radius: 2px;
|
742
742
|
-webkit-transition: all 0.3s;
|
743
743
|
transition: all 0.3s;
|
@@ -791,7 +791,7 @@ textarea.ant-input {
|
|
791
791
|
}
|
792
792
|
.ant-input-group-lg .ant-input,
|
793
793
|
.ant-input-group-lg > .ant-input-group-addon {
|
794
|
-
padding:
|
794
|
+
padding: 6.5px 11px;
|
795
795
|
font-size: 16px;
|
796
796
|
}
|
797
797
|
.ant-input-group-sm .ant-input,
|
@@ -799,7 +799,7 @@ textarea.ant-input {
|
|
799
799
|
padding: 1px 7px;
|
800
800
|
}
|
801
801
|
.ant-input-group-lg .ant-select-single .ant-select-selector {
|
802
|
-
height:
|
802
|
+
height: 40px;
|
803
803
|
}
|
804
804
|
.ant-input-group-sm .ant-select-single .ant-select-selector {
|
805
805
|
height: 26px;
|
@@ -926,12 +926,12 @@ textarea.ant-input {
|
|
926
926
|
border-radius: 0 2px 2px 0;
|
927
927
|
}
|
928
928
|
.ant-input-group-rtl .ant-input-group-addon:first-child {
|
929
|
-
border-right: 1px solid #
|
929
|
+
border-right: 1px solid #bfbfbf;
|
930
930
|
border-left: 0;
|
931
931
|
}
|
932
932
|
.ant-input-group-rtl .ant-input-group-addon:last-child {
|
933
933
|
border-right: 0;
|
934
|
-
border-left: 1px solid #
|
934
|
+
border-left: 1px solid #bfbfbf;
|
935
935
|
}
|
936
936
|
.ant-input-group-rtl.ant-input-group > .ant-input:last-child,
|
937
937
|
.ant-input-group-rtl.ant-input-group-addon:last-child {
|
@@ -988,7 +988,7 @@ textarea.ant-input {
|
|
988
988
|
height: 32px;
|
989
989
|
}
|
990
990
|
.ant-input[type='color'].ant-input-lg {
|
991
|
-
height:
|
991
|
+
height: 40px;
|
992
992
|
}
|
993
993
|
.ant-input[type='color'].ant-input-sm {
|
994
994
|
height: 26px;
|
@@ -1043,7 +1043,7 @@ textarea.ant-input {
|
|
1043
1043
|
z-index: 1;
|
1044
1044
|
}
|
1045
1045
|
.ant-input-search-large .ant-input-search-button {
|
1046
|
-
height:
|
1046
|
+
height: 40px;
|
1047
1047
|
}
|
1048
1048
|
.ant-input-search-small .ant-input-search-button {
|
1049
1049
|
height: 26px;
|
@@ -1102,7 +1102,7 @@ textarea.ant-input {
|
|
1102
1102
|
height: 32px;
|
1103
1103
|
}
|
1104
1104
|
.ant-input-lg {
|
1105
|
-
height:
|
1105
|
+
height: 40px;
|
1106
1106
|
}
|
1107
1107
|
.ant-input-sm {
|
1108
1108
|
height: 26px;
|
@@ -1371,7 +1371,15 @@ textarea.ant-input {
|
|
1371
1371
|
.ant-tooltip-rtl .ant-tooltip-inner {
|
1372
1372
|
text-align: right;
|
1373
1373
|
}
|
1374
|
-
.pandora-sdk-name-
|
1374
|
+
.pandora-sdk-name-limit {
|
1375
|
+
max-width: 100%;
|
1376
|
+
display: inline-block;
|
1377
|
+
vertical-align: top;
|
1378
|
+
white-space: nowrap;
|
1379
|
+
text-overflow: ellipsis;
|
1380
|
+
overflow: hidden;
|
1381
|
+
}
|
1382
|
+
.pandora-sdk-name-limit-tooltip .ant-tooltip-inner {
|
1375
1383
|
max-width: 400px !important;
|
1376
1384
|
max-height: 200px !important;
|
1377
1385
|
overflow: auto;
|
@@ -9,10 +9,11 @@ export default function CheckboxList(props) {
|
|
9
9
|
options.map(function (option) {
|
10
10
|
// 将 option string的形式进行格式化
|
11
11
|
var optionItem = typeof option === 'string' ? { value: option } : option;
|
12
|
-
var key = optionItem.key, value = optionItem.value, text = optionItem.text, indeterminate = optionItem.indeterminate;
|
12
|
+
var key = optionItem.key, value = optionItem.value, text = optionItem.text, indeterminate = optionItem.indeterminate, disabled = optionItem.disabled;
|
13
13
|
var indeterminateState = typeof indeterminate === 'function'
|
14
14
|
? indeterminate(optionItem)
|
15
15
|
: indeterminate;
|
16
|
-
|
16
|
+
var disabledState = typeof disabled === 'function' ? disabled(optionItem) : disabled;
|
17
|
+
return (React.createElement(Checkbox, { className: classnames(SDK_PREFIX + "-checkbox-item", itemClassName), key: String(key || value), value: value, indeterminate: indeterminateState, disabled: disabledState }, text || value));
|
17
18
|
})));
|
18
19
|
}
|
@@ -15,7 +15,7 @@ import Panel from './Panel';
|
|
15
15
|
/**
|
16
16
|
* 折叠面板组件封装
|
17
17
|
*/
|
18
|
-
|
18
|
+
function Collapse(props) {
|
19
19
|
var children = props.children, defaultActiveKey = props.defaultActiveKey, className = props.className;
|
20
20
|
var getPanels = React.useCallback(function () {
|
21
21
|
var newChildren = [];
|
@@ -39,3 +39,4 @@ export default function Collapse(props) {
|
|
39
39
|
return React.createElement("div", { className: className }, getPanels());
|
40
40
|
}
|
41
41
|
Collapse.Panel = Panel;
|
42
|
+
export default Collapse;
|
@@ -16,7 +16,7 @@ export declare type TCollapsiblePanelProps = Omit<IPanelContentProps, 'active'>
|
|
16
16
|
disabled?: boolean;
|
17
17
|
header: string | React.ReactNode;
|
18
18
|
};
|
19
|
-
|
19
|
+
declare class CollapsiblePanel extends React.Component<TCollapsiblePanelProps, {
|
20
20
|
active: boolean;
|
21
21
|
}> {
|
22
22
|
static PanelContent: typeof PanelContent;
|
@@ -30,4 +30,4 @@ export default class CollapsiblePanel extends React.Component<TCollapsiblePanelP
|
|
30
30
|
toggle: () => void;
|
31
31
|
render(): JSX.Element;
|
32
32
|
}
|
33
|
-
export
|
33
|
+
export default CollapsiblePanel;
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
import React from 'react';
|
24
24
|
import { default as AntdConfigProvider } from 'antd/es/config-provider';
|
25
25
|
import { LocaleProvider, generateLocaleConsumer, generateUseLocale } from './context';
|
26
|
-
|
26
|
+
function ConfigProvider(props) {
|
27
27
|
var locale = props.locale, otherProps = __rest(props, ["locale"]);
|
28
28
|
var _a = locale || {}, antdLocale = _a.antd, otherLocale = __rest(_a, ["antd"]);
|
29
29
|
return (React.createElement(LocaleProvider, { locale: otherLocale },
|
@@ -31,3 +31,4 @@ export default function ConfigProvider(props) {
|
|
31
31
|
}
|
32
32
|
ConfigProvider.generateLocaleConsumer = generateLocaleConsumer;
|
33
33
|
ConfigProvider.generateUseLocale = generateUseLocale;
|
34
|
+
export default ConfigProvider;
|
@@ -44,7 +44,7 @@ import { timeFormat } from '../../../constants/time';
|
|
44
44
|
import Button from '../../Button';
|
45
45
|
import Collapse from '../../Collapse';
|
46
46
|
import Selector from '../../Selector';
|
47
|
-
import NameLimiter
|
47
|
+
import NameLimiter from '../../NameLimiter';
|
48
48
|
import RelativeTimePicker from './relativeTimePicker';
|
49
49
|
import Time from '../time';
|
50
50
|
import { defaultPresets, EPresetMode, relativeMap, RangePreset, rangePresetOptions, TimeType, RelativeUnitValue } from '../constants';
|
@@ -246,7 +246,7 @@ var Base = /** @class */ (function (_super) {
|
|
246
246
|
return (React.createElement("div", { key: preset.value, className: classnames(SDK_PREFIX + "-datetime-pick-item", (_a = {},
|
247
247
|
_a['active'] = value && preset.value === value.preset,
|
248
248
|
_a)), onClick: function () { return _this.handlePresetClick(preset); } },
|
249
|
-
React.createElement(NameLimiter, { name: preset.text
|
249
|
+
React.createElement(NameLimiter, { name: preset.text })));
|
250
250
|
});
|
251
251
|
};
|
252
252
|
Base.prototype.handlePresetClick = function (preset) {
|
@@ -19,7 +19,7 @@
|
|
19
19
|
line-height: 1.5715;
|
20
20
|
background-color: transparent;
|
21
21
|
background-image: none;
|
22
|
-
border: 1px solid #
|
22
|
+
border: 1px solid #bfbfbf;
|
23
23
|
-webkit-transition: all 0.3s;
|
24
24
|
transition: all 0.3s;
|
25
25
|
display: inline-block;
|
@@ -63,7 +63,7 @@
|
|
63
63
|
opacity: 1;
|
64
64
|
}
|
65
65
|
.ant-input-number-disabled:hover {
|
66
|
-
border-color: #
|
66
|
+
border-color: #bfbfbf;
|
67
67
|
border-right-width: 1px !important;
|
68
68
|
}
|
69
69
|
.ant-input-number[disabled] {
|
@@ -73,7 +73,7 @@
|
|
73
73
|
opacity: 1;
|
74
74
|
}
|
75
75
|
.ant-input-number[disabled]:hover {
|
76
|
-
border-color: #
|
76
|
+
border-color: #bfbfbf;
|
77
77
|
border-right-width: 1px !important;
|
78
78
|
}
|
79
79
|
.ant-input-number-borderless,
|
@@ -97,7 +97,7 @@ textarea.ant-input-number {
|
|
97
97
|
transition: all 0.3s, height 0s;
|
98
98
|
}
|
99
99
|
.ant-input-number-lg {
|
100
|
-
padding:
|
100
|
+
padding: 6.5px 11px;
|
101
101
|
font-size: 16px;
|
102
102
|
}
|
103
103
|
.ant-input-number-sm {
|
@@ -189,7 +189,7 @@ textarea.ant-input-number {
|
|
189
189
|
opacity: 1;
|
190
190
|
}
|
191
191
|
.ant-input-number-disabled:hover {
|
192
|
-
border-color: #
|
192
|
+
border-color: #bfbfbf;
|
193
193
|
border-right-width: 1px !important;
|
194
194
|
}
|
195
195
|
.ant-input-number-disabled .ant-input-number-input {
|
@@ -239,7 +239,7 @@ textarea.ant-input-number {
|
|
239
239
|
font-size: 16px;
|
240
240
|
}
|
241
241
|
.ant-input-number-lg input {
|
242
|
-
height:
|
242
|
+
height: 38px;
|
243
243
|
}
|
244
244
|
.ant-input-number-sm {
|
245
245
|
padding: 0;
|
@@ -359,7 +359,7 @@ textarea.ant-input-number {
|
|
359
359
|
-ms-flex-align: center;
|
360
360
|
align-items: center;
|
361
361
|
background: #ffffff;
|
362
|
-
border: 1px solid #
|
362
|
+
border: 1px solid #bfbfbf;
|
363
363
|
border-radius: 2px;
|
364
364
|
-webkit-transition: border 0.3s, -webkit-box-shadow 0.3s;
|
365
365
|
transition: border 0.3s, -webkit-box-shadow 0.3s;
|
@@ -380,7 +380,7 @@ textarea.ant-input-number {
|
|
380
380
|
}
|
381
381
|
.ant-picker.ant-picker-disabled {
|
382
382
|
background: #f5f5f5;
|
383
|
-
border-color: #
|
383
|
+
border-color: #bfbfbf;
|
384
384
|
cursor: not-allowed;
|
385
385
|
}
|
386
386
|
.ant-picker.ant-picker-disabled .ant-picker-suffix {
|
@@ -413,7 +413,7 @@ textarea.ant-input-number {
|
|
413
413
|
line-height: 1.5715;
|
414
414
|
background-color: transparent;
|
415
415
|
background-image: none;
|
416
|
-
border: 1px solid #
|
416
|
+
border: 1px solid #bfbfbf;
|
417
417
|
border-radius: 2px;
|
418
418
|
-webkit-transition: all 0.3s;
|
419
419
|
transition: all 0.3s;
|
@@ -460,7 +460,7 @@ textarea.ant-input-number {
|
|
460
460
|
opacity: 1;
|
461
461
|
}
|
462
462
|
.ant-picker-input > input-disabled:hover {
|
463
|
-
border-color: #
|
463
|
+
border-color: #bfbfbf;
|
464
464
|
border-right-width: 1px !important;
|
465
465
|
}
|
466
466
|
.ant-picker-input > input[disabled] {
|
@@ -470,7 +470,7 @@ textarea.ant-input-number {
|
|
470
470
|
opacity: 1;
|
471
471
|
}
|
472
472
|
.ant-picker-input > input[disabled]:hover {
|
473
|
-
border-color: #
|
473
|
+
border-color: #bfbfbf;
|
474
474
|
border-right-width: 1px !important;
|
475
475
|
}
|
476
476
|
.ant-picker-input > input-borderless,
|
@@ -494,7 +494,7 @@ textarea.ant-picker-input > input {
|
|
494
494
|
transition: all 0.3s, height 0s;
|
495
495
|
}
|
496
496
|
.ant-picker-input > input-lg {
|
497
|
-
padding:
|
497
|
+
padding: 6.5px 11px;
|
498
498
|
font-size: 16px;
|
499
499
|
}
|
500
500
|
.ant-picker-input > input-sm {
|
@@ -514,7 +514,7 @@ textarea.ant-picker-input > input {
|
|
514
514
|
color: #bfbfbf;
|
515
515
|
}
|
516
516
|
.ant-picker-large {
|
517
|
-
padding:
|
517
|
+
padding: 6.5px 11px 6.5px;
|
518
518
|
}
|
519
519
|
.ant-picker-large .ant-picker-input > input {
|
520
520
|
font-size: 16px;
|
@@ -21,6 +21,7 @@ declare type IGetData = Array<{
|
|
21
21
|
}>> | undefined;
|
22
22
|
interface IBaseMobileProps extends IBaseProps {
|
23
23
|
buttonType: EButtonType;
|
24
|
+
contentClassName?: string;
|
24
25
|
}
|
25
26
|
export default class BaseMobile extends React.Component<IBaseMobileProps, any> {
|
26
27
|
static defaultProps: {
|
@@ -151,7 +151,7 @@ var BaseMobile = /** @class */ (function (_super) {
|
|
151
151
|
return this.props.isRangePick || this.props.isRangePick === undefined;
|
152
152
|
};
|
153
153
|
BaseMobile.prototype.render = function () {
|
154
|
-
var _a = this.props, showTimeType = _a.showTimeType, buttonType = _a.buttonType;
|
154
|
+
var _a = this.props, showTimeType = _a.showTimeType, buttonType = _a.buttonType, contentClassName = _a.contentClassName;
|
155
155
|
var title = (React.createElement("div", { className: SDK_PREFIX + "-datetime-mobile-picker-title" },
|
156
156
|
React.createElement("div", { className: SDK_PREFIX + "-datetime-mobile-picker-title-div-containter" },
|
157
157
|
React.createElement(Divider, { className: SDK_PREFIX + "-datetime-mobile-picker-title-div" })),
|
@@ -162,7 +162,7 @@ var BaseMobile = /** @class */ (function (_super) {
|
|
162
162
|
var _b = this.props, onChange = _b.onChange, value = _b.value, defaultValue = _b.defaultValue;
|
163
163
|
return (React.createElement(React.Fragment, null,
|
164
164
|
showPicker && (React.createElement(Picker, { data: this.getData() || [], title: title, extra: "\u65E5\u671F\u9009\u62E9", cascade: showTimeType && showTimeType.indexOf(TimeType.Preset) > -1, cols: this.getCols(), value: this.getValue(), onOk: this.handleOk, className: SDK_PREFIX + "-datetime-mobile-picker" },
|
165
|
-
React.createElement(CustomButton, { type: buttonType }))),
|
165
|
+
React.createElement(CustomButton, { type: buttonType, className: contentClassName }))),
|
166
166
|
!showPicker && (React.createElement(React.Fragment, null,
|
167
167
|
React.createElement(CalendarOutlined, { onClick: this.handleShow }),
|
168
168
|
React.createElement(Modal, { popup: true, visible: this.showModal, onClose: this.handleClose, animationType: "slide-up" }, showTimeType && showTimeType.indexOf(TimeType.Absolute) > -1 && (React.createElement(Absolute, { onChancle: this.handleClose, onChange: onChange, value: value, defaultValue: defaultValue })))))));
|