@qn-pandora/pandora-component 2.2.1 → 3.0.2
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 +4 -1
- package/es/components/Button/index.js +1 -1
- package/es/components/Button/style.css +0 -1
- package/es/components/Button/style.less +0 -1
- package/es/components/Card/index.js +2 -1
- package/es/components/Card/style.css +10 -2
- package/es/components/CheckTransformList/Item/index.js +1 -1
- package/es/components/CheckTransformList/index.js +1 -1
- package/es/components/CheckTransformList/style.css +26 -8
- package/es/components/CheckboxList/index.d.ts +1 -0
- package/es/components/CheckboxList/index.js +3 -2
- package/es/components/Collapse/Panel/index.js +2 -1
- 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 +7 -12
- package/es/components/DateTimePicker/DisplayInput/style.css +17 -7
- package/es/components/DateTimePicker/constants.js +1 -1
- package/es/components/DateTimePicker/index.d.ts +2 -1
- package/es/components/DateTimePicker/style.css +155 -57
- package/es/components/Input/index.js +2 -1
- 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/index.d.ts +2 -2
- package/es/components/Menu/style.css +4 -0
- package/es/components/NameLimiter/index.d.ts +3 -13
- package/es/components/NameLimiter/index.js +31 -39
- package/es/components/NameLimiter/style.css +9 -1
- package/es/components/NameLimiter/style.less +10 -1
- package/es/components/OptionList/PopoverOptionList/style.css +155 -57
- package/es/components/OptionList/index.js +2 -1
- package/es/components/OptionList/style.css +155 -57
- package/es/components/RangeInput/style.css +18 -8
- 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 +4 -1
- package/es/components/SolidRadioGroup/index.js +7 -4
- package/es/components/SolidRadioGroup/style.css +4 -1
- package/es/components/SolidRadioGroup/style.less +5 -0
- 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 +10 -6
- package/es/components/Tabs/style.css +10 -2
- 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 +225 -97
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.less +1 -1
- package/es/style/theme.less +4 -3
- package/lib/components/AutoComplete/style.css +4 -1
- package/lib/components/Button/index.js +1 -1
- package/lib/components/Button/style.css +0 -1
- package/lib/components/Button/style.less +0 -1
- package/lib/components/Card/index.js +1 -1
- package/lib/components/Card/style.css +10 -2
- package/lib/components/CheckTransformList/Item/index.js +1 -1
- package/lib/components/CheckTransformList/index.js +1 -1
- package/lib/components/CheckTransformList/style.css +26 -8
- package/lib/components/CheckboxList/index.d.ts +1 -0
- package/lib/components/CheckboxList/index.js +3 -2
- package/lib/components/Collapse/Panel/index.js +2 -1
- 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 +7 -12
- package/lib/components/DateTimePicker/DisplayInput/style.css +17 -7
- package/lib/components/DateTimePicker/constants.js +1 -1
- package/lib/components/DateTimePicker/index.d.ts +2 -1
- package/lib/components/DateTimePicker/style.css +155 -57
- package/lib/components/Input/index.js +1 -1
- 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/index.d.ts +2 -2
- package/lib/components/Menu/style.css +4 -0
- package/lib/components/NameLimiter/index.d.ts +3 -13
- package/lib/components/NameLimiter/index.js +31 -38
- package/lib/components/NameLimiter/style.css +9 -1
- package/lib/components/NameLimiter/style.less +10 -1
- package/lib/components/OptionList/PopoverOptionList/style.css +155 -57
- package/lib/components/OptionList/index.js +1 -1
- package/lib/components/OptionList/style.css +155 -57
- package/lib/components/RangeInput/style.css +18 -8
- 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 +4 -1
- package/lib/components/SolidRadioGroup/index.js +6 -3
- package/lib/components/SolidRadioGroup/style.css +4 -1
- package/lib/components/SolidRadioGroup/style.less +5 -0
- 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 +10 -6
- package/lib/components/Tabs/style.css +10 -2
- 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 +1985 -1857
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -1
- package/lib/index.less +4 -4
- package/lib/style/theme.less +4 -3
- package/package.json +24 -24
- 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
@@ -384,8 +384,15 @@
|
|
384
384
|
.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,
|
385
385
|
.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,
|
386
386
|
.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {
|
387
|
-
margin-right:
|
388
|
-
margin-left:
|
387
|
+
margin-right: 2px;
|
388
|
+
margin-left: 0;
|
389
|
+
}
|
390
|
+
.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-add,
|
391
|
+
.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-add,
|
392
|
+
.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-add,
|
393
|
+
.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-add {
|
394
|
+
margin-right: 2px;
|
395
|
+
margin-left: 0;
|
389
396
|
}
|
390
397
|
.ant-tabs-dropdown-rtl {
|
391
398
|
direction: rtl;
|
@@ -862,6 +869,7 @@
|
|
862
869
|
.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add,
|
863
870
|
.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add {
|
864
871
|
min-width: 40px;
|
872
|
+
margin-left: 2px;
|
865
873
|
padding: 0 8px;
|
866
874
|
background: #fafafa;
|
867
875
|
border: 1px solid #e5e5e5;
|
@@ -32,7 +32,7 @@ function Item(props) {
|
|
32
32
|
React.createElement("div", { className: style_1.SDK_PREFIX + "-check-transform-checkbox-group" }, options.map(function (item) {
|
33
33
|
return (React.createElement("div", { key: item.value },
|
34
34
|
React.createElement(antd_1.Checkbox, { value: item.value, checked: item.checked, onChange: onCheckboxChange },
|
35
|
-
React.createElement(NameLimiter_1.default, { name: item.text
|
35
|
+
React.createElement(NameLimiter_1.default, { name: item.text }))));
|
36
36
|
})))));
|
37
37
|
}
|
38
38
|
exports.default = Item;
|
@@ -90,7 +90,7 @@ function CheckTransformList(props) {
|
|
90
90
|
return !lodash_1.includes(filterLeftOptions.map(function (option) { return option.value; }), item);
|
91
91
|
}));
|
92
92
|
}
|
93
|
-
}, [filterLeftOptions, setCheckList]);
|
93
|
+
}, [filterLeftOptions, setCheckList, checkedList]);
|
94
94
|
var handOnchange = useCallback(function (e) {
|
95
95
|
var value = e.target.value;
|
96
96
|
if (e.target.checked) {
|
@@ -496,8 +496,8 @@ textarea.ant-input-affix-wrapper {
|
|
496
496
|
outline: none;
|
497
497
|
}
|
498
498
|
.ant-input-affix-wrapper > input.ant-input:focus {
|
499
|
-
-webkit-box-shadow: none;
|
500
|
-
box-shadow: none;
|
499
|
+
-webkit-box-shadow: none !important;
|
500
|
+
box-shadow: none !important;
|
501
501
|
}
|
502
502
|
.ant-input-affix-wrapper::before {
|
503
503
|
width: 0;
|
@@ -522,7 +522,7 @@ textarea.ant-input-affix-wrapper {
|
|
522
522
|
.ant-input-suffix {
|
523
523
|
margin-left: 4px;
|
524
524
|
}
|
525
|
-
.ant-input-clear-icon {
|
525
|
+
.anticon.ant-input-clear-icon {
|
526
526
|
margin: 0 4px;
|
527
527
|
color: rgba(0, 0, 0, 0.25);
|
528
528
|
font-size: 12px;
|
@@ -531,16 +531,16 @@ textarea.ant-input-affix-wrapper {
|
|
531
531
|
-webkit-transition: color 0.3s;
|
532
532
|
transition: color 0.3s;
|
533
533
|
}
|
534
|
-
.ant-input-clear-icon:hover {
|
534
|
+
.anticon.ant-input-clear-icon:hover {
|
535
535
|
color: rgba(0, 0, 0, 0.45);
|
536
536
|
}
|
537
|
-
.ant-input-clear-icon:active {
|
537
|
+
.anticon.ant-input-clear-icon:active {
|
538
538
|
color: rgba(0, 0, 0, 0.65);
|
539
539
|
}
|
540
|
-
.ant-input-clear-icon-hidden {
|
540
|
+
.anticon.ant-input-clear-icon-hidden {
|
541
541
|
visibility: hidden;
|
542
542
|
}
|
543
|
-
.ant-input-clear-icon:last-child {
|
543
|
+
.anticon.ant-input-clear-icon:last-child {
|
544
544
|
margin-right: 0;
|
545
545
|
}
|
546
546
|
.ant-input-affix-wrapper-textarea-with-clear-btn {
|
@@ -755,6 +755,16 @@ textarea.ant-input {
|
|
755
755
|
.ant-input-group-addon .ant-select-focused .ant-select-selector {
|
756
756
|
color: #7a869a;
|
757
757
|
}
|
758
|
+
.ant-input-group-addon .ant-cascader-picker {
|
759
|
+
margin: -9px -12px;
|
760
|
+
background-color: transparent;
|
761
|
+
}
|
762
|
+
.ant-input-group-addon .ant-cascader-picker .ant-cascader-input {
|
763
|
+
text-align: left;
|
764
|
+
border: 0;
|
765
|
+
-webkit-box-shadow: none;
|
766
|
+
box-shadow: none;
|
767
|
+
}
|
758
768
|
.ant-input-group > .ant-input:first-child,
|
759
769
|
.ant-input-group-addon:first-child {
|
760
770
|
border-top-right-radius: 0;
|
@@ -1371,7 +1381,15 @@ textarea.ant-input {
|
|
1371
1381
|
.ant-tooltip-rtl .ant-tooltip-inner {
|
1372
1382
|
text-align: right;
|
1373
1383
|
}
|
1374
|
-
.pandora-sdk-name-
|
1384
|
+
.pandora-sdk-name-limit {
|
1385
|
+
max-width: 100%;
|
1386
|
+
display: inline-block;
|
1387
|
+
vertical-align: top;
|
1388
|
+
white-space: nowrap;
|
1389
|
+
text-overflow: ellipsis;
|
1390
|
+
overflow: hidden;
|
1391
|
+
}
|
1392
|
+
.pandora-sdk-name-limit-tooltip .ant-tooltip-inner {
|
1375
1393
|
max-width: 400px !important;
|
1376
1394
|
max-height: 200px !important;
|
1377
1395
|
overflow: auto;
|
@@ -21,11 +21,12 @@ function CheckboxList(props) {
|
|
21
21
|
options.map(function (option) {
|
22
22
|
// 将 option string的形式进行格式化
|
23
23
|
var optionItem = typeof option === 'string' ? { value: option } : option;
|
24
|
-
var key = optionItem.key, value = optionItem.value, text = optionItem.text, indeterminate = optionItem.indeterminate;
|
24
|
+
var key = optionItem.key, value = optionItem.value, text = optionItem.text, indeterminate = optionItem.indeterminate, disabled = optionItem.disabled;
|
25
25
|
var indeterminateState = typeof indeterminate === 'function'
|
26
26
|
? indeterminate(optionItem)
|
27
27
|
: indeterminate;
|
28
|
-
|
28
|
+
var disabledState = typeof disabled === 'function' ? disabled(optionItem) : disabled;
|
29
|
+
return (React.createElement(antd_1.Checkbox, { className: classnames_1.default(style_1.SDK_PREFIX + "-checkbox-item", itemClassName), key: String(key || value), value: value, indeterminate: indeterminateState, disabled: disabledState }, text || value));
|
29
30
|
})));
|
30
31
|
}
|
31
32
|
exports.default = CheckboxList;
|
@@ -42,6 +42,7 @@ function Panel(props) {
|
|
42
42
|
if (baseIsActive !== isActive) {
|
43
43
|
setIsActive(baseIsActive || false);
|
44
44
|
}
|
45
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
45
46
|
}, [baseIsActive]);
|
46
47
|
var onTogglePanel = useCallback(function () {
|
47
48
|
if (disableToggle) {
|
@@ -51,7 +52,7 @@ function Panel(props) {
|
|
51
52
|
if (onToggle) {
|
52
53
|
onToggle(!isActive, panelKey);
|
53
54
|
}
|
54
|
-
}, [disableToggle, panelKey, isActive]);
|
55
|
+
}, [disableToggle, panelKey, isActive, onToggle]);
|
55
56
|
return (React.createElement("div", { className: classnames_1.default(style_1.SDK_PREFIX + "-panel", className), key: panelKey },
|
56
57
|
React.createElement("div", { className: classnames_1.default(titleClassName, (_a = {}, _a[style_1.SDK_PREFIX + "-panel-disable"] = disableToggle, _a), style_1.SDK_PREFIX + "-panel-title"), onClick: onTogglePanel },
|
57
58
|
React.createElement("span", null, title),
|
@@ -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;
|
@@ -34,6 +34,6 @@ function ConfigProvider(props) {
|
|
34
34
|
return (react_1.default.createElement(context_1.LocaleProvider, { locale: otherLocale },
|
35
35
|
react_1.default.createElement(config_provider_1.default, __assign({}, otherProps, { locale: antdLocale }))));
|
36
36
|
}
|
37
|
-
exports.default = ConfigProvider;
|
38
37
|
ConfigProvider.generateLocaleConsumer = context_1.generateLocaleConsumer;
|
39
38
|
ConfigProvider.generateUseLocale = context_1.generateUseLocale;
|
39
|
+
exports.default = ConfigProvider;
|
@@ -56,7 +56,7 @@ var time_1 = require("../../../constants/time");
|
|
56
56
|
var Button_1 = __importDefault(require("../../Button"));
|
57
57
|
var Collapse_1 = __importDefault(require("../../Collapse"));
|
58
58
|
var Selector_1 = __importDefault(require("../../Selector"));
|
59
|
-
var NameLimiter_1 =
|
59
|
+
var NameLimiter_1 = __importDefault(require("../../NameLimiter"));
|
60
60
|
var relativeTimePicker_1 = __importDefault(require("./relativeTimePicker"));
|
61
61
|
var time_2 = __importDefault(require("../time"));
|
62
62
|
var constants_1 = require("../constants");
|
@@ -258,7 +258,7 @@ var Base = /** @class */ (function (_super) {
|
|
258
258
|
return (React.createElement("div", { key: preset.value, className: classnames_1.default(style_1.SDK_PREFIX + "-datetime-pick-item", (_a = {},
|
259
259
|
_a['active'] = value && preset.value === value.preset,
|
260
260
|
_a)), onClick: function () { return _this.handlePresetClick(preset); } },
|
261
|
-
React.createElement(NameLimiter_1.default, { name: preset.text
|
261
|
+
React.createElement(NameLimiter_1.default, { name: preset.text })));
|
262
262
|
});
|
263
263
|
};
|
264
264
|
Base.prototype.handlePresetClick = function (preset) {
|
@@ -113,6 +113,7 @@ textarea.ant-input-number {
|
|
113
113
|
font-weight: bold;
|
114
114
|
line-height: 0;
|
115
115
|
text-align: center;
|
116
|
+
border-left: 1px solid #e5e5e5;
|
116
117
|
-webkit-transition: all 0.1s linear;
|
117
118
|
transition: all 0.1s linear;
|
118
119
|
}
|
@@ -255,7 +256,6 @@ textarea.ant-input-number {
|
|
255
256
|
width: 22px;
|
256
257
|
height: 100%;
|
257
258
|
background: #ffffff;
|
258
|
-
border-left: 1px solid #e5e5e5;
|
259
259
|
border-radius: 0 2px 2px 0;
|
260
260
|
opacity: 0;
|
261
261
|
-webkit-transition: opacity 0.24s linear 0.1s;
|
@@ -742,6 +742,10 @@ textarea.ant-picker-input > input {
|
|
742
742
|
border-width: 0 0 1px 0;
|
743
743
|
border-radius: 0;
|
744
744
|
}
|
745
|
+
.ant-picker-panel-container .ant-picker-panel .ant-picker-content,
|
746
|
+
.ant-picker-panel-container .ant-picker-panel table {
|
747
|
+
text-align: center;
|
748
|
+
}
|
745
749
|
.ant-picker-panel-container .ant-picker-panel-focused {
|
746
750
|
border-color: #e5e5e5;
|
747
751
|
}
|
@@ -894,9 +898,6 @@ textarea.ant-picker-input > input {
|
|
894
898
|
.ant-picker-cell-in-view {
|
895
899
|
color: rgba(0, 0, 0, 0.65);
|
896
900
|
}
|
897
|
-
.ant-picker-cell-disabled {
|
898
|
-
cursor: not-allowed;
|
899
|
-
}
|
900
901
|
.ant-picker-cell::before {
|
901
902
|
position: absolute;
|
902
903
|
top: 50%;
|
@@ -1038,14 +1039,14 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
|
|
1038
1039
|
border-bottom-right-radius: 2px;
|
1039
1040
|
}
|
1040
1041
|
.ant-picker-cell-disabled {
|
1042
|
+
color: rgba(0, 0, 0, 0.25);
|
1041
1043
|
pointer-events: none;
|
1042
1044
|
}
|
1043
1045
|
.ant-picker-cell-disabled .ant-picker-cell-inner {
|
1044
|
-
color: rgba(0, 0, 0, 0.25);
|
1045
1046
|
background: transparent;
|
1046
1047
|
}
|
1047
1048
|
.ant-picker-cell-disabled::before {
|
1048
|
-
background:
|
1049
|
+
background: rgba(0, 0, 0, 0.04);
|
1049
1050
|
}
|
1050
1051
|
.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner::before {
|
1051
1052
|
border-color: rgba(0, 0, 0, 0.25);
|
@@ -1062,12 +1063,6 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
|
|
1062
1063
|
.ant-picker-month-panel .ant-picker-cell-inner {
|
1063
1064
|
padding: 0 8px;
|
1064
1065
|
}
|
1065
|
-
.ant-picker-decade-panel .ant-picker-cell-disabled .ant-picker-cell-inner,
|
1066
|
-
.ant-picker-year-panel .ant-picker-cell-disabled .ant-picker-cell-inner,
|
1067
|
-
.ant-picker-quarter-panel .ant-picker-cell-disabled .ant-picker-cell-inner,
|
1068
|
-
.ant-picker-month-panel .ant-picker-cell-disabled .ant-picker-cell-inner {
|
1069
|
-
background: #f5f5f5;
|
1070
|
-
}
|
1071
1066
|
.ant-picker-quarter-panel .ant-picker-content {
|
1072
1067
|
height: 56px;
|
1073
1068
|
}
|
@@ -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;
|
@@ -289,7 +289,7 @@ exports.relativeTimeUnits = [
|
|
289
289
|
time: function (num) { return moment_1.default().subtract(num, 'weeks'); }
|
290
290
|
},
|
291
291
|
{
|
292
|
-
text: '
|
292
|
+
text: '月前',
|
293
293
|
value: RelativeUnitValue.Month,
|
294
294
|
time: function (num) { return moment_1.default().subtract(num, 'months'); }
|
295
295
|
},
|
@@ -22,7 +22,7 @@ export interface IDateTimePickerProps extends IBaseProps {
|
|
22
22
|
/**
|
23
23
|
* 弹出层时间选择组件封装
|
24
24
|
*/
|
25
|
-
|
25
|
+
declare class DateTimePicker extends React.Component<IDateTimePickerProps, any> {
|
26
26
|
static Base: typeof Base;
|
27
27
|
static BaseMobile: typeof BaseMobile;
|
28
28
|
visible: boolean;
|
@@ -31,3 +31,4 @@ export default class DateTimePicker extends React.Component<IDateTimePickerProps
|
|
31
31
|
handleChange(value: Time): void;
|
32
32
|
render(): JSX.Element;
|
33
33
|
}
|
34
|
+
export default DateTimePicker;
|
@@ -113,100 +113,198 @@
|
|
113
113
|
display: block;
|
114
114
|
width: 8.48528137px;
|
115
115
|
height: 8.48528137px;
|
116
|
+
overflow: hidden;
|
116
117
|
background: transparent;
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
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 {
|
130
142
|
-webkit-box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
131
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);
|
132
146
|
}
|
133
|
-
.ant-popover-placement-top
|
147
|
+
.ant-popover-placement-top .ant-popover-arrow {
|
134
148
|
left: 50%;
|
135
|
-
-webkit-transform: translateX(-50%)
|
136
|
-
transform: translateX(-50%)
|
149
|
+
-webkit-transform: translateX(-50%);
|
150
|
+
transform: translateX(-50%);
|
137
151
|
}
|
138
|
-
.ant-popover-placement-topLeft
|
152
|
+
.ant-popover-placement-topLeft .ant-popover-arrow {
|
139
153
|
left: 16px;
|
140
154
|
}
|
141
|
-
.ant-popover-placement-topRight
|
155
|
+
.ant-popover-placement-topRight .ant-popover-arrow {
|
142
156
|
right: 16px;
|
143
157
|
}
|
144
|
-
.ant-popover-placement-right
|
145
|
-
.ant-popover-placement-rightTop
|
146
|
-
.ant-popover-placement-rightBottom
|
147
|
-
left:
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
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 {
|
152
166
|
-webkit-box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
|
153
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);
|
154
170
|
}
|
155
|
-
.ant-popover-placement-right
|
171
|
+
.ant-popover-placement-right .ant-popover-arrow {
|
156
172
|
top: 50%;
|
157
|
-
-webkit-transform: translateY(-50%)
|
158
|
-
transform: translateY(-50%)
|
173
|
+
-webkit-transform: translateY(-50%);
|
174
|
+
transform: translateY(-50%);
|
159
175
|
}
|
160
|
-
.ant-popover-placement-rightTop
|
176
|
+
.ant-popover-placement-rightTop .ant-popover-arrow {
|
161
177
|
top: 12px;
|
162
178
|
}
|
163
|
-
.ant-popover-placement-rightBottom
|
179
|
+
.ant-popover-placement-rightBottom .ant-popover-arrow {
|
164
180
|
bottom: 12px;
|
165
181
|
}
|
166
|
-
.ant-popover-placement-bottom
|
167
|
-
.ant-popover-placement-bottomLeft
|
168
|
-
.ant-popover-placement-bottomRight
|
169
|
-
top:
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
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 {
|
174
190
|
-webkit-box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
|
175
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);
|
176
194
|
}
|
177
|
-
.ant-popover-placement-bottom
|
195
|
+
.ant-popover-placement-bottom .ant-popover-arrow {
|
178
196
|
left: 50%;
|
179
|
-
-webkit-transform: translateX(-50%)
|
180
|
-
transform: translateX(-50%)
|
197
|
+
-webkit-transform: translateX(-50%);
|
198
|
+
transform: translateX(-50%);
|
181
199
|
}
|
182
|
-
.ant-popover-placement-bottomLeft
|
200
|
+
.ant-popover-placement-bottomLeft .ant-popover-arrow {
|
183
201
|
left: 16px;
|
184
202
|
}
|
185
|
-
.ant-popover-placement-bottomRight
|
203
|
+
.ant-popover-placement-bottomRight .ant-popover-arrow {
|
186
204
|
right: 16px;
|
187
205
|
}
|
188
|
-
.ant-popover-placement-left
|
189
|
-
.ant-popover-placement-leftTop
|
190
|
-
.ant-popover-placement-leftBottom
|
191
|
-
right:
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
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 {
|
196
214
|
-webkit-box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
|
197
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);
|
198
218
|
}
|
199
|
-
.ant-popover-placement-left
|
219
|
+
.ant-popover-placement-left .ant-popover-arrow {
|
200
220
|
top: 50%;
|
201
|
-
-webkit-transform: translateY(-50%)
|
202
|
-
transform: translateY(-50%)
|
221
|
+
-webkit-transform: translateY(-50%);
|
222
|
+
transform: translateY(-50%);
|
203
223
|
}
|
204
|
-
.ant-popover-placement-leftTop
|
224
|
+
.ant-popover-placement-leftTop .ant-popover-arrow {
|
205
225
|
top: 12px;
|
206
226
|
}
|
207
|
-
.ant-popover-placement-leftBottom
|
227
|
+
.ant-popover-placement-leftBottom .ant-popover-arrow {
|
208
228
|
bottom: 12px;
|
209
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
|
+
}
|
210
308
|
.ant-popover-rtl {
|
211
309
|
direction: rtl;
|
212
310
|
text-align: right;
|
@@ -48,8 +48,8 @@ function Input(props) {
|
|
48
48
|
}, [onChange]);
|
49
49
|
return React.createElement(antd_1.Input, __assign({}, restProps, { onChange: handleChange }));
|
50
50
|
}
|
51
|
-
exports.default = Input;
|
52
51
|
Input.DebounceInput = debounce_1.default(Input);
|
53
52
|
Input.Password = Password_1.Password;
|
54
53
|
Input.TextArea = TextArea_1.TextArea;
|
55
54
|
Input.NumberInput = NumberInput_1.default;
|
55
|
+
exports.default = Input;
|