@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
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:46:43 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
@@ -479,7 +479,7 @@
|
|
479
479
|
-webkit-font-smoothing: antialiased;
|
480
480
|
-moz-osx-font-smoothing: grayscale;
|
481
481
|
position: absolute;
|
482
|
-
top:
|
482
|
+
top: 50%;
|
483
483
|
right: 11px;
|
484
484
|
width: 12px;
|
485
485
|
height: 12px;
|
@@ -660,6 +660,9 @@
|
|
660
660
|
color: rgba(0, 0, 0, 0.25);
|
661
661
|
cursor: not-allowed;
|
662
662
|
}
|
663
|
+
.ant-select-item-option-disabled.ant-select-item-option-selected {
|
664
|
+
background-color: #f5f5f5;
|
665
|
+
}
|
663
666
|
.ant-select-item-option-grouped {
|
664
667
|
padding-left: 24px;
|
665
668
|
}
|
@@ -42,7 +42,7 @@ export default function Button(props) {
|
|
42
42
|
return classnames(className, SDK_PREFIX + "-button", SDK_PREFIX + "-size-" + size, (_a = {},
|
43
43
|
_a[SDK_PREFIX + "-button-disabled"] = disabled,
|
44
44
|
_a));
|
45
|
-
}, [size, disabled]);
|
45
|
+
}, [size, disabled, className]);
|
46
46
|
var btn = (React.createElement(BaseButton, __assign({}, otherProps, { icon: typeof icon === 'string' ? React.createElement(Icon, { type: icon }) : icon, className: rootCls, onClick: handleClick })));
|
47
47
|
if (title) {
|
48
48
|
return (React.createElement(Tooltip, { title: title, getPopupContainer: getPopupContainer }, btn));
|
@@ -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;
|
@@ -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;
|
@@ -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
|
}
|
@@ -78,7 +78,7 @@ export default function CheckTransformList(props) {
|
|
78
78
|
return !includes(filterLeftOptions.map(function (option) { return option.value; }), item);
|
79
79
|
}));
|
80
80
|
}
|
81
|
-
}, [filterLeftOptions, setCheckList]);
|
81
|
+
}, [filterLeftOptions, setCheckList, checkedList]);
|
82
82
|
var handOnchange = useCallback(function (e) {
|
83
83
|
var value = e.target.value;
|
84
84
|
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;
|
@@ -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
|
}
|
@@ -30,6 +30,7 @@ export default function Panel(props) {
|
|
30
30
|
if (baseIsActive !== isActive) {
|
31
31
|
setIsActive(baseIsActive || false);
|
32
32
|
}
|
33
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
33
34
|
}, [baseIsActive]);
|
34
35
|
var onTogglePanel = useCallback(function () {
|
35
36
|
if (disableToggle) {
|
@@ -39,7 +40,7 @@ export default function Panel(props) {
|
|
39
40
|
if (onToggle) {
|
40
41
|
onToggle(!isActive, panelKey);
|
41
42
|
}
|
42
|
-
}, [disableToggle, panelKey, isActive]);
|
43
|
+
}, [disableToggle, panelKey, isActive, onToggle]);
|
43
44
|
return (React.createElement("div", { className: classnames(SDK_PREFIX + "-panel", className), key: panelKey },
|
44
45
|
React.createElement("div", { className: classnames(titleClassName, (_a = {}, _a[SDK_PREFIX + "-panel-disable"] = disableToggle, _a), SDK_PREFIX + "-panel-title"), onClick: onTogglePanel },
|
45
46
|
React.createElement("span", null, title),
|
@@ -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) {
|
@@ -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;
|
@@ -284,7 +284,7 @@ export var relativeTimeUnits = [
|
|
284
284
|
time: function (num) { return moment().subtract(num, 'weeks'); }
|
285
285
|
},
|
286
286
|
{
|
287
|
-
text: '
|
287
|
+
text: '月前',
|
288
288
|
value: RelativeUnitValue.Month,
|
289
289
|
time: function (num) { return moment().subtract(num, 'months'); }
|
290
290
|
},
|
@@ -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;
|