@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.
Files changed (123) hide show
  1. package/CHANGELOG.json +25 -0
  2. package/CHANGELOG.md +11 -0
  3. package/es/components/AutoComplete/style.css +4 -1
  4. package/es/components/Button/index.js +1 -1
  5. package/es/components/Button/style.css +0 -1
  6. package/es/components/Button/style.less +0 -1
  7. package/es/components/Card/index.js +2 -1
  8. package/es/components/Card/style.css +10 -2
  9. package/es/components/CheckTransformList/Item/index.js +1 -1
  10. package/es/components/CheckTransformList/index.js +1 -1
  11. package/es/components/CheckTransformList/style.css +26 -8
  12. package/es/components/CheckboxList/index.d.ts +1 -0
  13. package/es/components/CheckboxList/index.js +3 -2
  14. package/es/components/Collapse/Panel/index.js +2 -1
  15. package/es/components/Collapse/index.js +2 -1
  16. package/es/components/CollapsiblePanel/index.d.ts +2 -2
  17. package/es/components/ConfigProvider/index.js +2 -1
  18. package/es/components/DateTimePicker/Base/index.js +2 -2
  19. package/es/components/DateTimePicker/Base/style.css +7 -12
  20. package/es/components/DateTimePicker/DisplayInput/style.css +17 -7
  21. package/es/components/DateTimePicker/constants.js +1 -1
  22. package/es/components/DateTimePicker/index.d.ts +2 -1
  23. package/es/components/DateTimePicker/style.css +155 -57
  24. package/es/components/Input/index.js +2 -1
  25. package/es/components/Input/style.css +17 -7
  26. package/es/components/InputNumber/style.css +1 -1
  27. package/es/components/Menu/Option.d.ts +1 -1
  28. package/es/components/Menu/index.d.ts +2 -2
  29. package/es/components/Menu/style.css +4 -0
  30. package/es/components/NameLimiter/index.d.ts +3 -13
  31. package/es/components/NameLimiter/index.js +31 -39
  32. package/es/components/NameLimiter/style.css +9 -1
  33. package/es/components/NameLimiter/style.less +10 -1
  34. package/es/components/OptionList/PopoverOptionList/style.css +155 -57
  35. package/es/components/OptionList/index.js +2 -1
  36. package/es/components/OptionList/style.css +155 -57
  37. package/es/components/RangeInput/style.css +18 -8
  38. package/es/components/RemarkName/index.d.ts +0 -2
  39. package/es/components/RemarkName/index.js +2 -4
  40. package/es/components/RemarkName/style.css +9 -5
  41. package/es/components/RemarkName/style.less +0 -5
  42. package/es/components/Selector/style.css +4 -1
  43. package/es/components/SolidRadioGroup/index.js +7 -4
  44. package/es/components/SolidRadioGroup/style.css +4 -1
  45. package/es/components/SolidRadioGroup/style.less +5 -0
  46. package/es/components/Steps/index.js +2 -1
  47. package/es/components/Table/index.d.ts +9 -24
  48. package/es/components/Table/index.js +40 -8
  49. package/es/components/Table/style.css +10 -6
  50. package/es/components/Tabs/style.css +10 -2
  51. package/es/components/TagList/Tag/style.css +3 -3
  52. package/es/components/TagList/Tag/style.less +3 -3
  53. package/es/components/TagList/index.js +3 -2
  54. package/es/components/TagList/style.css +3 -3
  55. package/es/components/TagList/style.less +8 -8
  56. package/es/index.css +225 -97
  57. package/es/index.d.ts +1 -1
  58. package/es/index.js +1 -1
  59. package/es/index.less +1 -1
  60. package/es/style/theme.less +4 -3
  61. package/lib/components/AutoComplete/style.css +4 -1
  62. package/lib/components/Button/index.js +1 -1
  63. package/lib/components/Button/style.css +0 -1
  64. package/lib/components/Button/style.less +0 -1
  65. package/lib/components/Card/index.js +1 -1
  66. package/lib/components/Card/style.css +10 -2
  67. package/lib/components/CheckTransformList/Item/index.js +1 -1
  68. package/lib/components/CheckTransformList/index.js +1 -1
  69. package/lib/components/CheckTransformList/style.css +26 -8
  70. package/lib/components/CheckboxList/index.d.ts +1 -0
  71. package/lib/components/CheckboxList/index.js +3 -2
  72. package/lib/components/Collapse/Panel/index.js +2 -1
  73. package/lib/components/Collapse/index.js +1 -1
  74. package/lib/components/CollapsiblePanel/index.d.ts +2 -2
  75. package/lib/components/ConfigProvider/index.js +1 -1
  76. package/lib/components/DateTimePicker/Base/index.js +2 -2
  77. package/lib/components/DateTimePicker/Base/style.css +7 -12
  78. package/lib/components/DateTimePicker/DisplayInput/style.css +17 -7
  79. package/lib/components/DateTimePicker/constants.js +1 -1
  80. package/lib/components/DateTimePicker/index.d.ts +2 -1
  81. package/lib/components/DateTimePicker/style.css +155 -57
  82. package/lib/components/Input/index.js +1 -1
  83. package/lib/components/Input/style.css +17 -7
  84. package/lib/components/InputNumber/style.css +1 -1
  85. package/lib/components/Menu/Option.d.ts +1 -1
  86. package/lib/components/Menu/index.d.ts +2 -2
  87. package/lib/components/Menu/style.css +4 -0
  88. package/lib/components/NameLimiter/index.d.ts +3 -13
  89. package/lib/components/NameLimiter/index.js +31 -38
  90. package/lib/components/NameLimiter/style.css +9 -1
  91. package/lib/components/NameLimiter/style.less +10 -1
  92. package/lib/components/OptionList/PopoverOptionList/style.css +155 -57
  93. package/lib/components/OptionList/index.js +1 -1
  94. package/lib/components/OptionList/style.css +155 -57
  95. package/lib/components/RangeInput/style.css +18 -8
  96. package/lib/components/RemarkName/index.d.ts +0 -2
  97. package/lib/components/RemarkName/index.js +2 -4
  98. package/lib/components/RemarkName/style.css +9 -5
  99. package/lib/components/RemarkName/style.less +0 -5
  100. package/lib/components/Selector/style.css +4 -1
  101. package/lib/components/SolidRadioGroup/index.js +6 -3
  102. package/lib/components/SolidRadioGroup/style.css +4 -1
  103. package/lib/components/SolidRadioGroup/style.less +5 -0
  104. package/lib/components/Steps/index.js +1 -1
  105. package/lib/components/Table/index.d.ts +9 -24
  106. package/lib/components/Table/index.js +39 -7
  107. package/lib/components/Table/style.css +10 -6
  108. package/lib/components/Tabs/style.css +10 -2
  109. package/lib/components/TagList/Tag/style.css +3 -3
  110. package/lib/components/TagList/Tag/style.less +3 -3
  111. package/lib/components/TagList/index.js +2 -2
  112. package/lib/components/TagList/style.css +3 -3
  113. package/lib/components/TagList/style.less +8 -8
  114. package/lib/index.css +1985 -1857
  115. package/lib/index.d.ts +1 -1
  116. package/lib/index.js +0 -1
  117. package/lib/index.less +4 -4
  118. package/lib/style/theme.less +4 -3
  119. package/package.json +24 -24
  120. package/es/components/NameLimiter/transformer.d.ts +0 -6
  121. package/es/components/NameLimiter/transformer.js +0 -84
  122. package/lib/components/NameLimiter/transformer.d.ts +0 -6
  123. package/lib/components/NameLimiter/transformer.js +0 -91
@@ -457,7 +457,7 @@
457
457
  -webkit-font-smoothing: antialiased;
458
458
  -moz-osx-font-smoothing: grayscale;
459
459
  position: absolute;
460
- top: 53%;
460
+ top: 50%;
461
461
  right: 11px;
462
462
  width: 12px;
463
463
  height: 12px;
@@ -638,6 +638,9 @@
638
638
  color: rgba(0, 0, 0, 0.25);
639
639
  cursor: not-allowed;
640
640
  }
641
+ .ant-select-item-option-disabled.ant-select-item-option-selected {
642
+ background-color: #f5f5f5;
643
+ }
641
644
  .ant-select-item-option-grouped {
642
645
  padding-left: 24px;
643
646
  }
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- import { isArray } from 'lodash';
2
+ import { isArray, isUndefined } from 'lodash';
3
3
  import Radio from 'antd/es/radio';
4
4
  import classnames from 'classnames';
5
5
  import { SDK_PREFIX } from '../../constants/style';
6
6
  var useCallback = React.useCallback, useMemo = React.useMemo;
7
7
  export default function SolidRadioGroup(props) {
8
- var className = props.className, buttonClassName = props.buttonClassName, value = props.value, size = props.size, onChange = props.onChange, children = props.children, _a = props.options, options = _a === void 0 ? {} : _a;
8
+ var className = props.className, buttonClassName = props.buttonClassName, value = props.value, size = props.size, onChange = props.onChange, children = props.children, disabled = props.disabled, _a = props.options, options = _a === void 0 ? {} : _a;
9
9
  var handleChange = useCallback(function (e) {
10
10
  if (onChange) {
11
11
  onChange(e.target.value);
@@ -19,8 +19,11 @@ export default function SolidRadioGroup(props) {
19
19
  return (React.createElement(Radio.Group, { className: classnames(SDK_PREFIX + "-solid-radio-group", className), value: value, onChange: handleChange, size: size },
20
20
  radioOptions.map(function (option) {
21
21
  var _a;
22
- var value = option.value, item = option.item, disabled = option.disabled;
23
- return (React.createElement(Radio.Button, { key: value.toString(), value: value, disabled: disabled, className: classnames((_a = {}, _a[SDK_PREFIX + "-solid-radio-item"] = !disabled, _a), buttonClassName) }, item));
22
+ var value = option.value, item = option.item;
23
+ var disableRealVal = isUndefined(option.disabled)
24
+ ? disabled
25
+ : option.disabled;
26
+ return (React.createElement(Radio.Button, { key: value.toString(), value: value, disabled: disableRealVal, className: classnames((_a = {}, _a[SDK_PREFIX + "-solid-radio-item"] = !disableRealVal, _a), buttonClassName) }, item));
24
27
  }),
25
28
  children));
26
29
  }
@@ -16,7 +16,6 @@
16
16
  font-feature-settings: 'tnum';
17
17
  display: inline-block;
18
18
  font-size: 0;
19
- line-height: unset;
20
19
  }
21
20
  .ant-radio-group .ant-badge-count {
22
21
  z-index: 1;
@@ -399,6 +398,10 @@ span.ant-radio + * {
399
398
  border-color: #2c6dd2 !important;
400
399
  color: #2c6dd2 !important;
401
400
  }
401
+ .pandora-sdk-solid-radio-group .ant-radio-button-wrapper-checked.ant-radio-button-wrapper-disabled {
402
+ border-color: #bfbfbf !important;
403
+ color: #333 !important;
404
+ }
402
405
  .pandora-sdk-solid-radio-group .ant-radio-button-wrapper:not(:first-child)::before {
403
406
  background-color: #bfbfbf;
404
407
  }
@@ -18,6 +18,11 @@
18
18
  color: @theme-color !important;
19
19
  }
20
20
 
21
+ .@{ant-prefix}-radio-button-wrapper-checked.@{ant-prefix}-radio-button-wrapper-disabled {
22
+ border-color: @input-border-color !important;
23
+ color: @heading-color!important;
24
+ }
25
+
21
26
  .@{ant-prefix}-radio-button-wrapper {
22
27
  &:not(:first-child) {
23
28
  &::before {
@@ -44,7 +44,7 @@ import Step from './Step';
44
44
  import ControlButton from './ControlButton';
45
45
  import { Provider } from './context';
46
46
  var useMemo = React.useMemo, useState = React.useState, useCallback = React.useCallback;
47
- export default function Steps(props) {
47
+ function Steps(props) {
48
48
  var _a = __read(useState(0), 2), stepLength = _a[0], setStepLength = _a[1];
49
49
  var current = props.current, _b = props.steps, steps = _b === void 0 ? [] : _b, className = props.className, children = props.children, otherProps = __rest(props, ["current", "steps", "className", "children"]);
50
50
  var handleAddSteps = useCallback(function () {
@@ -70,3 +70,4 @@ export default function Steps(props) {
70
70
  }
71
71
  Steps.Step = Step;
72
72
  Steps.ControlButton = ControlButton;
73
+ export default Steps;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { TableProps } from 'antd/es/table';
3
+ import { TableRowSelection } from 'antd/es/table/interface';
3
4
  /**
4
5
  * 表格提供自定义多选, 通过 rowSelection对象的selectedRowKeys和onChange来控制多选的状态
5
6
  * 需要注意的是, 当在外部进行增删改或者外部需要控制选择状态时, 例如删除之后清空全选状态, 需要受控
@@ -17,7 +18,7 @@ export interface IOptionItem {
17
18
  /**
18
19
  * 禁用当前操作
19
20
  */
20
- disabled?: boolean;
21
+ disabled?: boolean | ((selectItems: any[]) => boolean);
21
22
  }
22
23
  export interface ITableProps<T> extends TableProps<T> {
23
24
  /**
@@ -32,7 +33,7 @@ export interface ITableProps<T> extends TableProps<T> {
32
33
  /**
33
34
  * pandora2.0风格的表格
34
35
  */
35
- export default class Table<T = any> extends React.Component<ITableProps<T>, any> {
36
+ declare class Table<T = any> extends React.Component<ITableProps<T>, any> {
36
37
  static Column: typeof import("antd/lib/table/Column").default;
37
38
  static ColumnTag: (props: {
38
39
  tags: any[];
@@ -43,35 +44,19 @@ export default class Table<T = any> extends React.Component<ITableProps<T>, any>
43
44
  checkAll: boolean;
44
45
  UNSAFE_componentWillReceiveProps(nextProps: ITableProps<T>): void;
45
46
  get selectedRowKeys(): React.ReactText[];
46
- get rowSelection(): {
47
- selectedRowKeys: React.ReactText[];
48
- onChange: (selectedRowKeys: string[] | number[], selectedRowsOfCurrentPage: any[]) => void;
49
- preserveSelectedRowKeys?: boolean | undefined;
50
- type?: "checkbox" | "radio" | undefined;
51
- defaultSelectedRowKeys?: React.ReactText[] | undefined;
52
- getCheckboxProps?: ((record: T) => Partial<Pick<import("antd/es/checkbox").CheckboxProps, "type" | "onClick" | "className" | "id" | "style" | "tabIndex" | "children" | "onChange" | "onKeyDown" | "onKeyPress" | "onMouseEnter" | "onMouseLeave" | "autoFocus" | "disabled" | "name" | "value" | "prefixCls" | "indeterminate" | "skipGroup">>) | undefined;
53
- onSelect?: import("antd/es/table/interface").SelectionSelectFn<T> | undefined;
54
- onSelectMultiple?: ((selected: boolean, selectedRows: T[], changeRows: T[]) => void) | undefined;
55
- onSelectAll?: ((selected: boolean, selectedRows: T[], changeRows: T[]) => void) | undefined;
56
- onSelectInvert?: ((selectedRowKeys: React.ReactText[]) => void) | undefined;
57
- onSelectNone?: (() => void) | undefined;
58
- selections?: boolean | import("antd/es/table/hooks/useSelection").INTERNAL_SELECTION_ITEM[] | undefined;
59
- hideSelectAll?: boolean | undefined;
60
- fixed?: boolean | undefined;
61
- columnWidth?: string | number | undefined;
62
- columnTitle?: React.ReactNode;
63
- checkStrictly?: boolean | undefined;
64
- renderCell?: ((value: boolean, record: T, index: number, originNode: React.ReactNode) => string | number | boolean | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactNodeArray | React.ReactPortal | import("rc-table/lib/interface").RenderedCell<T> | null | undefined) | undefined;
65
- } | undefined;
47
+ get rowSelection(): TableRowSelection<T> | undefined;
48
+ get undisabledData(): readonly T[];
66
49
  get keysOfCurrentPage(): any[];
67
50
  getRowKey(row: any, index: number): any;
68
51
  setIndeterminate(indeterminate: boolean): void;
69
52
  setCheckAll(checkAll: boolean): void;
70
53
  setCheckboxStatus(selectedRowsOfCurrentPage?: T[], dataSource?: T[]): void;
71
- handleSelectionChange(selectedRowKeys: string[] | number[], selectedRowsOfCurrentPage: any[]): void;
72
- onRowSelectionChange(selectedRowKeys: string[] | number[], selectedRowsOfCurrentPage: any[]): void;
54
+ handleSelectionChange(selectedRowKeys: React.Key[], selectedRowsOfCurrentPage: any[]): void;
55
+ onRowSelectionChange(selectedRowKeys: React.Key[], selectedRowsOfCurrentPage: any[]): void;
73
56
  handleCheckAllChange(e: any): void;
74
57
  handleBatchOptionClick(option: IOptionItem): void;
75
58
  getRowClassName(record: any, index: number, indent: number): string;
59
+ getDisabledStatus(option: IOptionItem): boolean | undefined;
76
60
  render(): JSX.Element;
77
61
  }
62
+ export default Table;
@@ -66,7 +66,7 @@ import * as React from 'react';
66
66
  import { Table as AntTable, Checkbox } from 'antd';
67
67
  import classnames from 'classnames';
68
68
  import { observable, action, computed } from 'mobx';
69
- import { size, xor, union, unionBy, differenceBy, get, isUndefined } from 'lodash';
69
+ import { size, xor, union, unionBy, differenceBy, get } from 'lodash';
70
70
  import { observer } from 'mobx-react';
71
71
  import bind from '../../utils/bind';
72
72
  import { SDK_PREFIX } from '../../constants/style';
@@ -126,10 +126,23 @@ var Table = /** @class */ (function (_super) {
126
126
  enumerable: true,
127
127
  configurable: true
128
128
  });
129
+ Object.defineProperty(Table.prototype, "undisabledData", {
130
+ get: function () {
131
+ var _a = this.props, dataSource = _a.dataSource, rowSelection = _a.rowSelection;
132
+ var getCheckboxProps = (rowSelection || {}).getCheckboxProps;
133
+ var undisabledData = dataSource || [];
134
+ if (getCheckboxProps) {
135
+ // 如果checkbox有disabled的,要去掉这些rowItem
136
+ undisabledData = undisabledData.filter(function (data) { return !getCheckboxProps(data).disabled; });
137
+ }
138
+ return undisabledData;
139
+ },
140
+ enumerable: true,
141
+ configurable: true
142
+ });
129
143
  Object.defineProperty(Table.prototype, "keysOfCurrentPage", {
130
144
  get: function () {
131
- var dataSource = this.props.dataSource;
132
- return (dataSource || []).map(this.getRowKey);
145
+ return this.undisabledData.map(this.getRowKey);
133
146
  },
134
147
  enumerable: true,
135
148
  configurable: true
@@ -205,19 +218,29 @@ var Table = /** @class */ (function (_super) {
205
218
  ? rowClassName
206
219
  : rowClassName(record, index, indent));
207
220
  };
221
+ Table.prototype.getDisabledStatus = function (option) {
222
+ var noneSelected = this.selectedRowKeys.length === 0;
223
+ var disabled = typeof option.disabled === 'function'
224
+ ? option.disabled(__spread(this.undisabledData))
225
+ : option.disabled;
226
+ return noneSelected || disabled;
227
+ };
208
228
  Table.prototype.render = function () {
209
229
  var _a, _b;
210
230
  var _this = this;
211
231
  var _c = this.props, className = _c.className, batchOptions = _c.batchOptions, scroll = _c.scroll, restProps = __rest(_c, ["className", "batchOptions", "scroll"]);
212
232
  return (React.createElement("div", null,
213
- React.createElement(AntTable, __assign({ scroll: scroll }, restProps, { className: classnames(SDK_PREFIX + "-table-wrapper", (_a = {}, _a[SDK_PREFIX + "-table-scrollX"] = get(scroll, 'x'), _a), (_b = {}, _b[SDK_PREFIX + "-table-scrollY"] = get(scroll, 'y'), _b), className), rowSelection: batchOptions && this.props.rowSelection
233
+ React.createElement(AntTable, __assign({ scroll: scroll }, restProps, { className: classnames(SDK_PREFIX + "-table-wrapper", (_a = {}, _a[SDK_PREFIX + "-table-scrollX"] = get(scroll, 'x'), _a), (_b = {}, _b[SDK_PREFIX + "-table-scrollY"] = get(scroll, 'y'), _b), className),
234
+ // 涉及到权限
235
+ // getCheckboxProps只能放到tableBatchWrapper里,因为selectedRowKeys在那个组件计算
236
+ rowSelection: batchOptions && this.props.rowSelection
214
237
  ? this.rowSelection
215
238
  : this.props.rowSelection, rowClassName: this.getRowClassName })),
216
239
  this.props.batchOptions &&
217
240
  this.props.rowSelection &&
218
241
  this.props.dataSource &&
219
242
  this.props.dataSource.length > 0 ? (React.createElement("div", { className: SDK_PREFIX + "-table-batch-opt" },
220
- React.createElement(Checkbox, { indeterminate: this.indeterminate, onChange: this.handleCheckAllChange, checked: this.checkAll, disabled: size(this.props.dataSource) === 0 }),
243
+ React.createElement(Checkbox, { indeterminate: this.indeterminate, onChange: this.handleCheckAllChange, checked: this.checkAll, disabled: size(this.undisabledData) === 0 }),
221
244
  React.createElement("span", { className: SDK_PREFIX + "-table-batch-opt-label" },
222
245
  "\u5DF2\u9009 ",
223
246
  this.selectedRowKeys.length),
@@ -225,9 +248,7 @@ var Table = /** @class */ (function (_super) {
225
248
  var _a;
226
249
  return (React.createElement("span", { key: index, className: classnames((_a = {},
227
250
  _a[SDK_PREFIX + "-table-batch-opt-item"] = true,
228
- _a[SDK_PREFIX + "-table-batch-opt-disabled"] = isUndefined(option.disabled)
229
- ? _this.selectedRowKeys.length === 0
230
- : option.disabled,
251
+ _a[SDK_PREFIX + "-table-batch-opt-disabled"] = _this.getDisabledStatus(option),
231
252
  _a)), onClick: function () { return _this.handleBatchOptionClick(option); } }, option.text));
232
253
  })))) : null));
233
254
  };
@@ -251,6 +272,11 @@ var Table = /** @class */ (function (_super) {
251
272
  __metadata("design:type", Object),
252
273
  __metadata("design:paramtypes", [])
253
274
  ], Table.prototype, "rowSelection", null);
275
+ __decorate([
276
+ computed,
277
+ __metadata("design:type", Object),
278
+ __metadata("design:paramtypes", [])
279
+ ], Table.prototype, "undisabledData", null);
254
280
  __decorate([
255
281
  computed,
256
282
  __metadata("design:type", Object),
@@ -312,6 +338,12 @@ var Table = /** @class */ (function (_super) {
312
338
  __metadata("design:paramtypes", [Object, Number, Number]),
313
339
  __metadata("design:returntype", void 0)
314
340
  ], Table.prototype, "getRowClassName", null);
341
+ __decorate([
342
+ bind,
343
+ __metadata("design:type", Function),
344
+ __metadata("design:paramtypes", [Object]),
345
+ __metadata("design:returntype", void 0)
346
+ ], Table.prototype, "getDisabledStatus", null);
315
347
  Table = __decorate([
316
348
  observer
317
349
  ], Table);
@@ -54,9 +54,7 @@
54
54
  border-bottom: 0;
55
55
  }
56
56
  .ant-table.ant-table-bordered > .ant-table-container {
57
- border: 1px solid #ebecf0;
58
- border-right: 0;
59
- border-bottom: 0;
57
+ border-left: 1px solid #ebecf0;
60
58
  }
61
59
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th,
62
60
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > th,
@@ -119,6 +117,10 @@
119
117
  border-right: 1px solid #ebecf0;
120
118
  content: '';
121
119
  }
120
+ .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table,
121
+ .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {
122
+ border-top: 1px solid #ebecf0;
123
+ }
122
124
  .ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-expanded-row > td,
123
125
  .ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-placeholder > td {
124
126
  border-right: 0;
@@ -274,6 +276,8 @@
274
276
  background: #2a69ca;
275
277
  }
276
278
  .ant-table-summary {
279
+ position: relative;
280
+ z-index: 2;
277
281
  background: #ffffff;
278
282
  }
279
283
  div.ant-table-summary {
@@ -744,6 +748,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
744
748
  .ant-table-sticky-holder {
745
749
  position: sticky;
746
750
  z-index: 3;
751
+ background: #ffffff;
747
752
  }
748
753
  .ant-table-sticky-scroll {
749
754
  position: sticky;
@@ -1340,11 +1345,10 @@ textarea.ant-pagination-options-quick-jumper input {
1340
1345
  cursor: not-allowed;
1341
1346
  }
1342
1347
  .ant-pagination.ant-pagination-disabled .ant-pagination-item-active {
1343
- background: #dbdbdb;
1344
- border-color: transparent;
1348
+ background: #e6e6e6;
1345
1349
  }
1346
1350
  .ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {
1347
- color: #fff;
1351
+ color: rgba(0, 0, 0, 0.25);
1348
1352
  }
1349
1353
  .ant-pagination.ant-pagination-disabled .ant-pagination-item-link {
1350
1354
  color: rgba(0, 0, 0, 0.25);
@@ -60,8 +60,15 @@
60
60
  .ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,
61
61
  .ant-tabs-rtl.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,
62
62
  .ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {
63
- margin-right: 0;
64
- margin-left: 2px;
63
+ margin-right: 2px;
64
+ margin-left: 0;
65
+ }
66
+ .ant-tabs-rtl.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-add,
67
+ .ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-add,
68
+ .ant-tabs-rtl.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-add,
69
+ .ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-add {
70
+ margin-right: 2px;
71
+ margin-left: 0;
65
72
  }
66
73
  .ant-tabs-dropdown-rtl {
67
74
  direction: rtl;
@@ -538,6 +545,7 @@
538
545
  .ant-tabs > .ant-tabs-nav .ant-tabs-nav-add,
539
546
  .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add {
540
547
  min-width: 40px;
548
+ margin-left: 2px;
541
549
  padding: 0 8px;
542
550
  background: #fafafa;
543
551
  border: 1px solid #e5e5e5;
@@ -9,7 +9,7 @@
9
9
  line-height: 24px;
10
10
  margin-right: 8px;
11
11
  border-radius: 1px;
12
- color: #42526e;
12
+ color: #333;
13
13
  text-align: center;
14
14
  vertical-align: middle;
15
15
  border-radius: 2px;
@@ -47,8 +47,8 @@
47
47
  border-left: 1px solid rgba(44, 109, 210, 0.1);
48
48
  }
49
49
  .pandora-sdk-root .pandora-sdk-content {
50
- padding: 0 4px;
51
- max-width: 200px;
50
+ padding: 0 8px;
51
+ max-width: 150px;
52
52
  vertical-align: middle;
53
53
  overflow: hidden;
54
54
  white-space: nowrap;
@@ -5,7 +5,7 @@
5
5
  line-height: 24px;
6
6
  margin-right: 8px;
7
7
  border-radius: 1px;
8
- color: @font-color-2;
8
+ color: @font-color-7;
9
9
  text-align: center;
10
10
  vertical-align: middle;
11
11
  border-radius: @border-radius-base;
@@ -45,8 +45,8 @@
45
45
  }
46
46
 
47
47
  .@{sdk-prefix}-content {
48
- padding: 0 4px;
49
- max-width: 200px;
48
+ padding: 0 8px;
49
+ max-width: 150px;
50
50
  vertical-align: middle;
51
51
  overflow: hidden;
52
52
  white-space: nowrap;
@@ -26,7 +26,7 @@ import { MoreCircle } from '@qn-pandora/pandora-component-icons';
26
26
  import Tag from './Tag';
27
27
  import TagSwitch from './TagSwitch';
28
28
  import { SDK_PREFIX } from '../../constants/style';
29
- export default function TagList(props) {
29
+ function TagList(props) {
30
30
  var _a = props.mode, mode = _a === void 0 ? 'tag' : _a, className = props.className;
31
31
  var handleSwitchChange = function (active, value) {
32
32
  var values = props.values, onChange = props.onChange;
@@ -57,10 +57,11 @@ export default function TagList(props) {
57
57
  }
58
58
  return (React.createElement("div", { className: classnames(SDK_PREFIX + "-simplify", props.className) },
59
59
  React.Children.toArray(children).slice(0, simplifyTo),
60
- React.createElement(Popover, { content: React.createElement("div", { className: SDK_PREFIX + "-popover" }, children), getPopupContainer: getPopupContainer },
60
+ React.createElement(Popover, { content: React.createElement("div", { className: SDK_PREFIX + "-popover" }, React.Children.toArray(children).slice(simplifyTo, childSize)), getPopupContainer: getPopupContainer },
61
61
  React.createElement(MoreCircle, { className: SDK_PREFIX + "-icon" }))));
62
62
  };
63
63
  return (React.createElement("div", { className: classnames(SDK_PREFIX + "-taglist-containter", className) }, mode === 'tag' ? getTagList() : getTagSwitchList()));
64
64
  }
65
65
  TagList.Tag = Tag;
66
66
  TagList.TagSwitch = TagSwitch;
67
+ export default TagList;
@@ -266,12 +266,12 @@
266
266
  .pandora-sdk-taglist-containter .pandora-sdk-simplify .pandora-sdk-icon:hover {
267
267
  color: #7a869a;
268
268
  }
269
- .pandora-sdk-taglist-containter .pandora-sdk-popover {
269
+ .pandora-sdk-popover {
270
270
  max-width: 400px;
271
271
  max-height: 1000px;
272
272
  overflow: auto;
273
- padding: 16px;
273
+ padding: 8px !important;
274
274
  }
275
- .pandora-sdk-taglist-containter .pandora-sdk-popover > div {
275
+ .pandora-sdk-popover > div {
276
276
  margin: 4px;
277
277
  }
@@ -15,14 +15,14 @@
15
15
  }
16
16
  }
17
17
  }
18
+ }
18
19
 
19
- .@{sdk-prefix}-popover {
20
- max-width: 400px;
21
- max-height: 1000px;
22
- overflow: auto;
23
- padding: 16px;
24
- > div {
25
- margin: 4px;
26
- }
20
+ .@{sdk-prefix}-popover {
21
+ max-width: 400px;
22
+ max-height: 1000px;
23
+ overflow: auto;
24
+ padding: 8px !important;
25
+ > div {
26
+ margin: 4px;
27
27
  }
28
28
  }