@qn-pandora/pandora-component 4.0.0 → 4.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.
Files changed (124) hide show
  1. package/CHANGELOG.json +37 -0
  2. package/CHANGELOG.md +17 -1
  3. package/README.md +36 -36
  4. package/es/components/AutoComplete/style.less +8 -8
  5. package/es/components/Breadcrumb/style.less +9 -9
  6. package/es/components/Button/style.less +51 -51
  7. package/es/components/Card/RowExtra/style.less +8 -8
  8. package/es/components/Card/SearchInput/style.less +8 -8
  9. package/es/components/Card/style.less +11 -11
  10. package/es/components/CheckTransformList/style.less +35 -35
  11. package/es/components/Checkbox/style.less +5 -5
  12. package/es/components/CheckboxList/style.less +11 -11
  13. package/es/components/Collapse/style.less +57 -57
  14. package/es/components/CollapsiblePanel/style.less +63 -63
  15. package/es/components/DateTimePicker/Base/style.less +160 -160
  16. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  17. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  18. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  19. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  20. package/es/components/DateTimePicker/style.less +19 -19
  21. package/es/components/Drawer/index.d.ts +55 -2
  22. package/es/components/Drawer/index.js +3 -1
  23. package/es/components/Drawer/style.less +17 -17
  24. package/es/components/Input/style.less +12 -12
  25. package/es/components/KeyValuePair/style.less +21 -21
  26. package/es/components/Menu/Option.d.ts +6 -0
  27. package/es/components/Menu/Option.js +16 -1
  28. package/es/components/Menu/index.js +3 -3
  29. package/es/components/Menu/style.less +18 -18
  30. package/es/components/Modal/style.less +30 -30
  31. package/es/components/NameExplainTooltip/style.less +10 -10
  32. package/es/components/NameLimiter/style.less +19 -19
  33. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  34. package/es/components/OptionList/OptionItem/style.less +25 -25
  35. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  36. package/es/components/OptionList/style.less +3 -3
  37. package/es/components/RadioGroup/style.less +32 -32
  38. package/es/components/RangeInput/style.less +37 -37
  39. package/es/components/RemarkName/style.less +2 -2
  40. package/es/components/Selector/style.less +99 -99
  41. package/es/components/Spin/style.less +26 -26
  42. package/es/components/Steps/ControlButton/style.less +5 -5
  43. package/es/components/Steps/style.less +48 -48
  44. package/es/components/Table/ColumnTag/style.less +40 -40
  45. package/es/components/Table/index.js +7 -4
  46. package/es/components/Table/style.css +4 -4
  47. package/es/components/Table/style.less +306 -306
  48. package/es/components/Tabs/style.less +33 -33
  49. package/es/components/TagList/Tag/style.less +72 -72
  50. package/es/components/TagList/TagSwitch/style.less +28 -28
  51. package/es/components/TagList/style.less +28 -28
  52. package/es/components/Timeline/TimelineItem/style.less +49 -49
  53. package/es/components/Timeline/style.less +23 -23
  54. package/es/components/Transfer/List/style.less +19 -19
  55. package/es/components/Transfer/ListBody/style.less +18 -18
  56. package/es/components/Transfer/style.less +14 -14
  57. package/es/components/TreeSelector/style.less +56 -56
  58. package/es/hoc/popContainer.d.ts +5 -0
  59. package/es/hoc/popContainer.js +37 -0
  60. package/es/index.css +2974 -2974
  61. package/es/index.less +49 -49
  62. package/es/style/mixin.less +45 -45
  63. package/es/style/theme.less +389 -381
  64. package/lib/components/AutoComplete/style.less +8 -8
  65. package/lib/components/Breadcrumb/style.less +9 -9
  66. package/lib/components/Button/style.less +51 -51
  67. package/lib/components/Card/RowExtra/style.less +8 -8
  68. package/lib/components/Card/SearchInput/style.less +8 -8
  69. package/lib/components/Card/style.less +11 -11
  70. package/lib/components/CheckTransformList/style.less +35 -35
  71. package/lib/components/Checkbox/style.less +5 -5
  72. package/lib/components/CheckboxList/style.less +11 -11
  73. package/lib/components/Collapse/style.less +57 -57
  74. package/lib/components/CollapsiblePanel/style.less +63 -63
  75. package/lib/components/DateTimePicker/Base/style.less +160 -160
  76. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  77. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  78. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  79. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  80. package/lib/components/DateTimePicker/style.less +19 -19
  81. package/lib/components/Drawer/index.d.ts +55 -2
  82. package/lib/components/Drawer/index.js +3 -1
  83. package/lib/components/Drawer/style.less +17 -17
  84. package/lib/components/Input/style.less +12 -12
  85. package/lib/components/KeyValuePair/style.less +21 -21
  86. package/lib/components/Menu/Option.d.ts +6 -0
  87. package/lib/components/Menu/Option.js +16 -1
  88. package/lib/components/Menu/index.js +3 -3
  89. package/lib/components/Menu/style.less +18 -18
  90. package/lib/components/Modal/style.less +30 -30
  91. package/lib/components/NameExplainTooltip/style.less +10 -10
  92. package/lib/components/NameLimiter/style.less +19 -19
  93. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  94. package/lib/components/OptionList/OptionItem/style.less +25 -25
  95. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  96. package/lib/components/OptionList/style.less +3 -3
  97. package/lib/components/RadioGroup/style.less +32 -32
  98. package/lib/components/RangeInput/style.less +37 -37
  99. package/lib/components/RemarkName/style.less +2 -2
  100. package/lib/components/Selector/style.less +99 -99
  101. package/lib/components/Spin/style.less +26 -26
  102. package/lib/components/Steps/ControlButton/style.less +5 -5
  103. package/lib/components/Steps/style.less +48 -48
  104. package/lib/components/Table/ColumnTag/style.less +40 -40
  105. package/lib/components/Table/index.js +6 -3
  106. package/lib/components/Table/style.css +4 -4
  107. package/lib/components/Table/style.less +306 -306
  108. package/lib/components/Tabs/style.less +33 -33
  109. package/lib/components/TagList/Tag/style.less +72 -72
  110. package/lib/components/TagList/TagSwitch/style.less +28 -28
  111. package/lib/components/TagList/style.less +28 -28
  112. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  113. package/lib/components/Timeline/style.less +23 -23
  114. package/lib/components/Transfer/List/style.less +19 -19
  115. package/lib/components/Transfer/ListBody/style.less +18 -18
  116. package/lib/components/Transfer/style.less +14 -14
  117. package/lib/components/TreeSelector/style.less +56 -56
  118. package/lib/hoc/popContainer.d.ts +5 -0
  119. package/lib/hoc/popContainer.js +47 -0
  120. package/lib/index.css +224 -224
  121. package/lib/index.less +49 -49
  122. package/lib/style/mixin.less +45 -45
  123. package/lib/style/theme.less +389 -381
  124. package/package.json +79 -79
@@ -1,37 +1,37 @@
1
- @import 'antd/lib/input/style/index.less';
2
- @import 'antd/lib/input-number/style/index.less';
3
- @import '../../style/theme.less';
4
-
5
- .@{sdk-prefix}-range-input {
6
- position: relative;
7
- .@{sdk-prefix}-range-input-symbol {
8
- display: inline-block;
9
- width: 40px;
10
- line-height: 40px;
11
- text-align: center;
12
- }
13
-
14
- .@{sdk-prefix}-range-input-input {
15
- width: calc(~'50% - 20px');
16
- text-align: center;
17
- display: inline-block;
18
- }
19
-
20
- .@{sdk-prefix}-range-input-error {
21
- color: @error-color;
22
- line-height: 24px;
23
- font-size: 12px;
24
- }
25
-
26
- .@{ant-prefix}-input-number {
27
- width: 100%;
28
- }
29
-
30
- input::-webkit-outer-spin-button,
31
- input::-webkit-inner-spin-button {
32
- -webkit-appearance: none;
33
- }
34
- input[type='number'] {
35
- -moz-appearance: textfield;
36
- }
37
- }
1
+ @import 'antd/lib/input/style/index.less';
2
+ @import 'antd/lib/input-number/style/index.less';
3
+ @import '../../style/theme.less';
4
+
5
+ .@{sdk-prefix}-range-input {
6
+ position: relative;
7
+ .@{sdk-prefix}-range-input-symbol {
8
+ display: inline-block;
9
+ width: 40px;
10
+ line-height: 40px;
11
+ text-align: center;
12
+ }
13
+
14
+ .@{sdk-prefix}-range-input-input {
15
+ width: calc(~'50% - 20px');
16
+ text-align: center;
17
+ display: inline-block;
18
+ }
19
+
20
+ .@{sdk-prefix}-range-input-error {
21
+ color: @error-color;
22
+ line-height: 24px;
23
+ font-size: 12px;
24
+ }
25
+
26
+ .@{ant-prefix}-input-number {
27
+ width: 100%;
28
+ }
29
+
30
+ input::-webkit-outer-spin-button,
31
+ input::-webkit-inner-spin-button {
32
+ -webkit-appearance: none;
33
+ }
34
+ input[type='number'] {
35
+ -moz-appearance: textfield;
36
+ }
37
+ }
@@ -1,2 +1,2 @@
1
- @import '../NameLimiter/style.less';
2
- @import '../../style/theme.less';
1
+ @import '../NameLimiter/style.less';
2
+ @import '../../style/theme.less';
@@ -1,99 +1,99 @@
1
- @import 'antd/lib/select/style/index.less';
2
- @import 'antd/lib/checkbox/style/index.less';
3
- @import '../../style/theme.less';
4
- @import '../../style/mixin.less';
5
-
6
- .@{sdk-prefix}-selector {
7
- width: 100%;
8
- color: @font-color-7;
9
- .@{ant-prefix}-select-selection {
10
- background: @select-bg;
11
- &:hover {
12
- .@{ant-prefix}-select-selection__clear + .@{ant-prefix}-select-arrow {
13
- opacity: 0;
14
- }
15
- }
16
- }
17
- &.@{ant-prefix}-select-multiple {
18
- .@{ant-prefix}-select-selection-item {
19
- color: @font-color-6;
20
- background: @select-selection-bg;
21
- border: none;
22
- }
23
- }
24
- .@{ant-prefix}-select-selection-item-remove {
25
- color: @font-disable-color;
26
- }
27
- .@{ant-prefix}-select-selection--single {
28
- height: 32px;
29
- }
30
- .@{ant-prefix}-select-selection__rendered {
31
- line-height: 30px;
32
- }
33
- .@{ant-prefix}-select-selection__clear {
34
- background: @select-bg;
35
- color: @font-color-6;
36
- i {
37
- color: inherit;
38
- }
39
- }
40
- }
41
-
42
- .@{sdk-prefix}-selector-dropdown {
43
- .@{ant-prefix}-select-dropdown-menu {
44
- margin: 0;
45
- .scrollbar();
46
- }
47
- .@{ant-prefix}-select-item-option-disabled {
48
- color: @font-disable-color;
49
- }
50
- .@{ant-prefix}-select-item-option-selected {
51
- color: @theme-color;
52
- font-weight: 400;
53
- }
54
- .@{ant-prefix}-select-item-option:hover {
55
- color: @theme-color;
56
- }
57
-
58
- .@{ant-prefix}-select-item-group {
59
- color: @font-disable-color;
60
- }
61
- &.@{sdk-prefix}-selector-no-ellipsis {
62
- .@{ant-prefix}-select-dropdown-menu {
63
- display: inline-block;
64
- min-width: 100%;
65
- }
66
- .@{ant-prefix}-select-dropdown-menu-item {
67
- overflow: unset;
68
- text-overflow: unset;
69
- }
70
- }
71
-
72
- .@{sdk-prefix}-selector-create-option {
73
- color: @theme-color;
74
- cursor: default;
75
- &::before,
76
- &::after {
77
- content: none;
78
- }
79
- a {
80
- color: @theme-color;
81
- }
82
- }
83
- .@{ant-prefix}-select-item-option-selected:not(.@{ant-prefix}-select-item-option-disabled)
84
- .@{ant-prefix}-select-item-option-state {
85
- .anticon-check {
86
- &.anticon {
87
- color: @theme-color;
88
- }
89
- }
90
- }
91
- }
92
-
93
- .@{sdk-prefix}-selector-create-lint {
94
- display: block;
95
- }
96
-
97
- .@{sdk-prefix}-close-icon {
98
- color: @border-color-1;
99
- }
1
+ @import 'antd/lib/select/style/index.less';
2
+ @import 'antd/lib/checkbox/style/index.less';
3
+ @import '../../style/theme.less';
4
+ @import '../../style/mixin.less';
5
+
6
+ .@{sdk-prefix}-selector {
7
+ width: 100%;
8
+ color: @font-color-7;
9
+ .@{ant-prefix}-select-selection {
10
+ background: @select-bg;
11
+ &:hover {
12
+ .@{ant-prefix}-select-selection__clear + .@{ant-prefix}-select-arrow {
13
+ opacity: 0;
14
+ }
15
+ }
16
+ }
17
+ &.@{ant-prefix}-select-multiple {
18
+ .@{ant-prefix}-select-selection-item {
19
+ color: @font-color-6;
20
+ background: @select-selection-bg;
21
+ border: none;
22
+ }
23
+ }
24
+ .@{ant-prefix}-select-selection-item-remove {
25
+ color: @font-disable-color;
26
+ }
27
+ .@{ant-prefix}-select-selection--single {
28
+ height: 32px;
29
+ }
30
+ .@{ant-prefix}-select-selection__rendered {
31
+ line-height: 30px;
32
+ }
33
+ .@{ant-prefix}-select-selection__clear {
34
+ background: @select-bg;
35
+ color: @font-color-6;
36
+ i {
37
+ color: inherit;
38
+ }
39
+ }
40
+ }
41
+
42
+ .@{sdk-prefix}-selector-dropdown {
43
+ .@{ant-prefix}-select-dropdown-menu {
44
+ margin: 0;
45
+ .scrollbar();
46
+ }
47
+ .@{ant-prefix}-select-item-option-disabled {
48
+ color: @font-disable-color;
49
+ }
50
+ .@{ant-prefix}-select-item-option-selected {
51
+ color: @theme-color;
52
+ font-weight: 400;
53
+ }
54
+ .@{ant-prefix}-select-item-option:hover {
55
+ color: @theme-color;
56
+ }
57
+
58
+ .@{ant-prefix}-select-item-group {
59
+ color: @font-disable-color;
60
+ }
61
+ &.@{sdk-prefix}-selector-no-ellipsis {
62
+ .@{ant-prefix}-select-dropdown-menu {
63
+ display: inline-block;
64
+ min-width: 100%;
65
+ }
66
+ .@{ant-prefix}-select-dropdown-menu-item {
67
+ overflow: unset;
68
+ text-overflow: unset;
69
+ }
70
+ }
71
+
72
+ .@{sdk-prefix}-selector-create-option {
73
+ color: @theme-color;
74
+ cursor: default;
75
+ &::before,
76
+ &::after {
77
+ content: none;
78
+ }
79
+ a {
80
+ color: @theme-color;
81
+ }
82
+ }
83
+ .@{ant-prefix}-select-item-option-selected:not(.@{ant-prefix}-select-item-option-disabled)
84
+ .@{ant-prefix}-select-item-option-state {
85
+ .anticon-check {
86
+ &.anticon {
87
+ color: @theme-color;
88
+ }
89
+ }
90
+ }
91
+ }
92
+
93
+ .@{sdk-prefix}-selector-create-lint {
94
+ display: block;
95
+ }
96
+
97
+ .@{sdk-prefix}-close-icon {
98
+ color: @border-color-1;
99
+ }
@@ -1,26 +1,26 @@
1
- @import 'antd/lib/spin/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-spin-container {
5
- position: relative;
6
- width: 100%;
7
- height: 100%;
8
- .@{sdk-prefix}-spin-loading {
9
- position: absolute;
10
- width: 60px;
11
- height: 60px;
12
- top: 50%;
13
- left: 50%;
14
- transform: translate(-50%, -50%);
15
- }
16
- .@{ant-prefix}-spin-container {
17
- height: 100%;
18
- > div {
19
- height: 100%;
20
- }
21
- }
22
- }
23
-
24
- .@{sdk-prefix}-spin-hide {
25
- visibility: hidden;
26
- }
1
+ @import 'antd/lib/spin/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-spin-container {
5
+ position: relative;
6
+ width: 100%;
7
+ height: 100%;
8
+ .@{sdk-prefix}-spin-loading {
9
+ position: absolute;
10
+ width: 60px;
11
+ height: 60px;
12
+ top: 50%;
13
+ left: 50%;
14
+ transform: translate(-50%, -50%);
15
+ }
16
+ .@{ant-prefix}-spin-container {
17
+ height: 100%;
18
+ > div {
19
+ height: 100%;
20
+ }
21
+ }
22
+ }
23
+
24
+ .@{sdk-prefix}-spin-hide {
25
+ visibility: hidden;
26
+ }
@@ -1,5 +1,5 @@
1
- @import '../../../style/theme.less';
2
-
3
- .@{sdk-prefix}-prev-button {
4
- margin-right: 10px;
5
- }
1
+ @import '../../../style/theme.less';
2
+
3
+ .@{sdk-prefix}-prev-button {
4
+ margin-right: 10px;
5
+ }
@@ -1,48 +1,48 @@
1
- @import 'antd/lib/steps/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-steps {
5
- .@{ant-prefix}-steps-item-icon {
6
- width: 24px;
7
- height: 24px;
8
- font-size: 12px;
9
- line-height: 24px;
10
- .@{ant-prefix}-steps-icon {
11
- font-size: 10px;
12
- }
13
- }
14
- .@{ant-prefix}-steps-item:last-of-type {
15
- .@{ant-prefix}-steps-item-title::after {
16
- display: none;
17
- }
18
- }
19
-
20
- .@{ant-prefix}-steps-item-process .@{ant-prefix}-steps-item-title {
21
- font-weight: 400;
22
- }
23
-
24
- .@{ant-prefix}-steps-item {
25
- .@{ant-prefix}-steps-item-icon {
26
- border-radius: 2px;
27
- background: @theme-color;
28
- border: none;
29
- }
30
- &.@{ant-prefix}-steps-item-finish {
31
- .@{ant-prefix}-steps-item-icon {
32
- .@{ant-prefix}-steps-icon {
33
- color: @normal-color;
34
- span.anticon.anticon-check.@{ant-prefix}-steps-finish-icon {
35
- color: @normal-color;
36
- }
37
- }
38
- }
39
- }
40
-
41
- &.@{ant-prefix}-steps-item-wait .@{ant-prefix}-steps-item-icon {
42
- background: @button-disabled-bg;
43
- .@{ant-prefix}-steps-icon {
44
- color: @icon-color;
45
- }
46
- }
47
- }
48
- }
1
+ @import 'antd/lib/steps/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-steps {
5
+ .@{ant-prefix}-steps-item-icon {
6
+ width: 24px;
7
+ height: 24px;
8
+ font-size: 12px;
9
+ line-height: 24px;
10
+ .@{ant-prefix}-steps-icon {
11
+ font-size: 10px;
12
+ }
13
+ }
14
+ .@{ant-prefix}-steps-item:last-of-type {
15
+ .@{ant-prefix}-steps-item-title::after {
16
+ display: none;
17
+ }
18
+ }
19
+
20
+ .@{ant-prefix}-steps-item-process .@{ant-prefix}-steps-item-title {
21
+ font-weight: 400;
22
+ }
23
+
24
+ .@{ant-prefix}-steps-item {
25
+ .@{ant-prefix}-steps-item-icon {
26
+ border-radius: 2px;
27
+ background: @theme-color;
28
+ border: none;
29
+ }
30
+ &.@{ant-prefix}-steps-item-finish {
31
+ .@{ant-prefix}-steps-item-icon {
32
+ .@{ant-prefix}-steps-icon {
33
+ color: @normal-color;
34
+ span.anticon.anticon-check.@{ant-prefix}-steps-finish-icon {
35
+ color: @normal-color;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ &.@{ant-prefix}-steps-item-wait .@{ant-prefix}-steps-item-icon {
42
+ background: @button-disabled-bg;
43
+ .@{ant-prefix}-steps-icon {
44
+ color: @icon-color;
45
+ }
46
+ }
47
+ }
48
+ }
@@ -1,40 +1,40 @@
1
- @import '../../../style/theme.less';
2
- .@{sdk-prefix}-table-columnTag-groupTag {
3
- padding: 4px;
4
- height: 24px;
5
- background: @theme-color-010;
6
- margin-right: 4px;
7
- color: @primary-color;
8
- white-space: nowrap;
9
- font-size: 12px;
10
- margin-top: 4px;
11
- }
12
-
13
- .@{sdk-prefix}-table-columnTag-moreTagsIcon {
14
- margin-left: 4px;
15
- vertical-align: middle;
16
- width: 14px;
17
- height: 13px;
18
- line-height: 6px;
19
- border: 1px solid @icon-color;
20
- padding: 0 1px;
21
- text-align: center;
22
- border-radius: 48%;
23
- display: inline-block;
24
- font-size: 12px;
25
- font-weight: 400;
26
- color: @icon-color;
27
- cursor: pointer;
28
-
29
- &:hover {
30
- color: @theme-color;
31
- border-color: @theme-color;
32
- }
33
- }
34
-
35
- .@{sdk-prefix}-table-columnTag-tagPopoverContainer {
36
- padding: 6px 10px 10px 10px;
37
- display: flex;
38
- flex-wrap: wrap;
39
- width: 400px;
40
- }
1
+ @import '../../../style/theme.less';
2
+ .@{sdk-prefix}-table-columnTag-groupTag {
3
+ padding: 4px;
4
+ height: 24px;
5
+ background: @theme-color-010;
6
+ margin-right: 4px;
7
+ color: @primary-color;
8
+ white-space: nowrap;
9
+ font-size: 12px;
10
+ margin-top: 4px;
11
+ }
12
+
13
+ .@{sdk-prefix}-table-columnTag-moreTagsIcon {
14
+ margin-left: 4px;
15
+ vertical-align: middle;
16
+ width: 14px;
17
+ height: 13px;
18
+ line-height: 6px;
19
+ border: 1px solid @icon-color;
20
+ padding: 0 1px;
21
+ text-align: center;
22
+ border-radius: 48%;
23
+ display: inline-block;
24
+ font-size: 12px;
25
+ font-weight: 400;
26
+ color: @icon-color;
27
+ cursor: pointer;
28
+
29
+ &:hover {
30
+ color: @theme-color;
31
+ border-color: @theme-color;
32
+ }
33
+ }
34
+
35
+ .@{sdk-prefix}-table-columnTag-tagPopoverContainer {
36
+ padding: 6px 10px 10px 10px;
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ width: 400px;
40
+ }
@@ -66,7 +66,7 @@ import * as React from 'react';
66
66
  import classnames from 'classnames';
67
67
  import { observer } from 'mobx-react';
68
68
  import { observable, action, computed } from 'mobx';
69
- import { size, xor, union, unionBy, differenceBy, get } from 'lodash';
69
+ import { size, xor, union, unionBy, differenceBy, get, isEqual } from 'lodash';
70
70
  import { Table as AntTable, Checkbox } from 'antd';
71
71
  import { ConfigContext } from 'antd/es/config-provider';
72
72
  import { EmptyIcon } from '@qn-pandora/pandora-component-icons';
@@ -89,10 +89,13 @@ var Table = /** @class */ (function (_super) {
89
89
  Table.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
90
90
  var _this = this;
91
91
  var rowSelection = nextProps.rowSelection, batchOptions = nextProps.batchOptions, selectedRows = nextProps.selectedRows, rowKey = nextProps.rowKey;
92
+ var lastRowSelection = this.props.rowSelection;
92
93
  // 当数据源变化时, 更新当前页的状态
93
- if (nextProps.dataSource !== this.props.dataSource &&
94
- rowSelection &&
95
- batchOptions) {
94
+ if (rowSelection &&
95
+ batchOptions &&
96
+ (nextProps.dataSource !== this.props.dataSource ||
97
+ (lastRowSelection &&
98
+ !isEqual(lastRowSelection.selectedRowKeys, rowSelection.selectedRowKeys)))) {
96
99
  var selectedRowKeys_1 = rowSelection.selectedRowKeys || [];
97
100
  var dataSource = nextProps.dataSource;
98
101
  var selectedRowKeysOfCurrentPage_1 = (dataSource || [])
@@ -267,7 +267,7 @@
267
267
  }
268
268
  .ant-table-tbody > tr.ant-table-row:hover > td,
269
269
  .ant-table-tbody > tr > td.ant-table-cell-row-hover {
270
- background: #e9f0fa;
270
+ background: #f3f7fd;
271
271
  }
272
272
  .ant-table-tbody > tr.ant-table-row-selected > td {
273
273
  background: #2c6dd2;
@@ -1574,10 +1574,10 @@ textarea.ant-pagination-options-quick-jumper input {
1574
1574
  background: #ffffff;
1575
1575
  }
1576
1576
  .pandora-sdk-table-wrapper .ant-table-row:hover {
1577
- background: #e9f0fa;
1577
+ background: #f3f7fd;
1578
1578
  }
1579
1579
  .pandora-sdk-table-wrapper .ant-table-row-hover {
1580
- background: #e9f0fa;
1580
+ background: #f3f7fd;
1581
1581
  }
1582
1582
  .pandora-sdk-table-wrapper .ant-table-placeholder {
1583
1583
  border: none;
@@ -1670,7 +1670,7 @@ textarea.ant-pagination-options-quick-jumper input {
1670
1670
  max-height: 200px;
1671
1671
  }
1672
1672
  .pandora-sdk-table-wrapper .ant-table-tbody > tr.ant-table-row:hover > td {
1673
- background-color: #e9f0fa;
1673
+ background-color: #f3f7fd;
1674
1674
  }
1675
1675
  .pandora-sdk-table-wrapper .ant-table-filter-trigger {
1676
1676
  display: block;