@vtx/components 4.0.0-beta.93 → 4.0.0-beta.94

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 (76) hide show
  1. package/README.md +19 -19
  2. package/es/utils/components/LabelIconTip/index.js +7 -7
  3. package/es/utils/conversionMomentValue/index.js +25 -25
  4. package/es/utils/filterSpecialCharacters.js +6 -6
  5. package/es/utils/genCopyable/index.js +6 -6
  6. package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  7. package/es/utils/hooks/useDebounceFn/index.js +4 -4
  8. package/es/utils/hooks/useDebounceValue/index.js +6 -6
  9. package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
  10. package/es/utils/hooks/useLatest/index.js +2 -2
  11. package/es/utils/hooks/useRefCallback/index.js +5 -5
  12. package/es/utils/isBrowser/index.js +7 -7
  13. package/es/utils/isUrl/index.js +4 -4
  14. package/es/utils/merge/index.js +4 -4
  15. package/es/utils/nanoid/index.js +4 -4
  16. package/es/utils/omitBoolean/index.js +4 -4
  17. package/es/utils/parseValueToMoment/index.js +4 -4
  18. package/es/utils/proFieldParsingText/index.js +10 -10
  19. package/es/utils/transformKeySubmitValue/index.js +57 -57
  20. package/es/utils/useEditableArray/index.js +46 -46
  21. package/es/utils/useEditableMap/index.js +22 -22
  22. package/es/utils/useMediaQuery/index.js +5 -5
  23. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
  24. package/es/vtx-datagrid/index.js +13 -7
  25. package/es/vtx-datagrid/style/index.less +242 -242
  26. package/es/vtx-date-picker/style/index.less +39 -39
  27. package/es/vtx-export/index.js +8 -8
  28. package/es/vtx-icon/index.js1 +90 -90
  29. package/es/vtx-modal/index.js +5 -4
  30. package/es/vtx-page-layout/Basic.js +2 -2
  31. package/es/vtx-page-layout/TabLayout.js +6 -6
  32. package/es/vtx-page-layout/TableLayout.js +10 -10
  33. package/es/vtx-page-layout/TreeLayout.js +6 -6
  34. package/es/vtx-page-layout/container.js +2 -2
  35. package/es/vtx-provider/index.js +30 -30
  36. package/es/vtx-provider/intl.js +9 -9
  37. package/es/vtx-provider/useStyle/index.js +17 -17
  38. package/es/vtx-wang-editor/style/index.less +12 -12
  39. package/lib/utils/components/LabelIconTip/index.js +7 -7
  40. package/lib/utils/conversionMomentValue/index.js +25 -25
  41. package/lib/utils/filterSpecialCharacters.js +6 -6
  42. package/lib/utils/genCopyable/index.js +6 -6
  43. package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  44. package/lib/utils/hooks/useDebounceFn/index.js +4 -4
  45. package/lib/utils/hooks/useDebounceValue/index.js +6 -6
  46. package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
  47. package/lib/utils/hooks/useLatest/index.js +2 -2
  48. package/lib/utils/hooks/useRefCallback/index.js +5 -5
  49. package/lib/utils/isBrowser/index.js +7 -7
  50. package/lib/utils/isUrl/index.js +4 -4
  51. package/lib/utils/merge/index.js +4 -4
  52. package/lib/utils/nanoid/index.js +4 -4
  53. package/lib/utils/omitBoolean/index.js +4 -4
  54. package/lib/utils/parseValueToMoment/index.js +4 -4
  55. package/lib/utils/proFieldParsingText/index.js +10 -10
  56. package/lib/utils/transformKeySubmitValue/index.js +57 -57
  57. package/lib/utils/useEditableArray/index.js +46 -46
  58. package/lib/utils/useEditableMap/index.js +22 -22
  59. package/lib/utils/useMediaQuery/index.js +5 -5
  60. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
  61. package/lib/vtx-datagrid/index.js +13 -10
  62. package/lib/vtx-datagrid/style/index.less +242 -242
  63. package/lib/vtx-date-picker/style/index.less +39 -39
  64. package/lib/vtx-export/index.js +8 -8
  65. package/lib/vtx-icon/index.js1 +90 -90
  66. package/lib/vtx-modal/index.js +5 -4
  67. package/lib/vtx-page-layout/Basic.js +2 -2
  68. package/lib/vtx-page-layout/TabLayout.js +6 -6
  69. package/lib/vtx-page-layout/TableLayout.js +10 -10
  70. package/lib/vtx-page-layout/TreeLayout.js +6 -6
  71. package/lib/vtx-page-layout/container.js +2 -2
  72. package/lib/vtx-provider/index.js +30 -30
  73. package/lib/vtx-provider/intl.js +9 -9
  74. package/lib/vtx-provider/useStyle/index.js +17 -17
  75. package/lib/vtx-wang-editor/style/index.less +12 -12
  76. package/package.json +239 -239
@@ -25,19 +25,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
25
25
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
26
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27
27
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable react-hooks/exhaustive-deps */
28
- /**
29
- * 显示警告信息
30
- * @param messageStr
28
+ /**
29
+ * 显示警告信息
30
+ * @param messageStr
31
31
  */
32
32
  var warning = function warning(messageStr) {
33
33
  return _antd.message.warning(messageStr);
34
34
  };
35
35
 
36
- /**
37
- * 使用map 来删除数据,性能一般 但是准确率比较高
38
- *
39
- * @param params
40
- * @param action
36
+ /**
37
+ * 使用map 来删除数据,性能一般 但是准确率比较高
38
+ *
39
+ * @param params
40
+ * @param action
41
41
  */
42
42
  function editableRowByKey(_ref) {
43
43
  var data = _ref.data,
@@ -45,14 +45,14 @@ function editableRowByKey(_ref) {
45
45
  return _objectSpread(_objectSpread({}, data), row);
46
46
  }
47
47
 
48
- /**
49
- * 一个方便的hooks 用于维护编辑的状态
50
- *
51
- * @param props
48
+ /**
49
+ * 一个方便的hooks 用于维护编辑的状态
50
+ *
51
+ * @param props
52
52
  */
53
53
  function useEditableMap(props) {
54
- /**
55
- * 点击开始编辑之前的保存数据用的
54
+ /**
55
+ * 点击开始编辑之前的保存数据用的
56
56
  */
57
57
  var preEditRowRef = (0, _react.useRef)(null);
58
58
  var editableType = props.type || 'single';
@@ -84,10 +84,10 @@ function useEditableMap(props) {
84
84
  return false;
85
85
  }, [(editableKeys || []).join(',')]);
86
86
 
87
- /**
88
- * 进入编辑状态
89
- *
90
- * @param recordKey
87
+ /**
88
+ * 进入编辑状态
89
+ *
90
+ * @param recordKey
91
91
  */
92
92
  var startEditable = function startEditable(recordKey, recordValue) {
93
93
  var _ref2;
@@ -102,10 +102,10 @@ function useEditableMap(props) {
102
102
  return true;
103
103
  };
104
104
 
105
- /**
106
- * 退出编辑状态
107
- *
108
- * @param recordKey
105
+ /**
106
+ * 退出编辑状态
107
+ *
108
+ * @param recordKey
109
109
  */
110
110
  var cancelEditable = function cancelEditable(recordKey) {
111
111
  // 防止多次渲染
@@ -44,11 +44,11 @@ var MediaQueryEnum = exports.MediaQueryEnum = {
44
44
  }
45
45
  };
46
46
 
47
- /**
48
- * loop query screen className
49
- * Array.find will throw a error
50
- * `Rendered more hooks than during the previous render.`
51
- * So should use Array.forEach
47
+ /**
48
+ * loop query screen className
49
+ * Array.find will throw a error
50
+ * `Rendered more hooks than during the previous render.`
51
+ * So should use Array.forEach
52
52
  */
53
53
  var getScreenClassName = exports.getScreenClassName = function getScreenClassName() {
54
54
  var queryKey = undefined;
@@ -379,10 +379,10 @@ function ColumnSetting(props) {
379
379
  var checkedColumnKeys = props.checkedColumnKeys,
380
380
  onColumnsSave = props.onColumnsSave;
381
381
 
382
- /**
383
- * 设置全部选中,或全部未选中
384
- *
385
- * @param show
382
+ /**
383
+ * 设置全部选中,或全部未选中
384
+ *
385
+ * @param show
386
386
  */
387
387
  var setAllSelectAction = (0, _utils.useRefFunction)(function () {
388
388
  var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
@@ -4,9 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.DEFAULT_HEIGHTS = void 0;
8
- exports.VtxDatagrid = VtxDatagrid;
9
- exports.indexColumnKey = exports.default = void 0;
7
+ exports.indexColumnKey = exports.default = exports.VtxDatagrid = exports.DEFAULT_HEIGHTS = void 0;
10
8
  var _ahooks = require("ahooks");
11
9
  var _antd = require("antd");
12
10
  var _classnames2 = _interopRequireDefault(require("classnames"));
@@ -21,6 +19,7 @@ var _Provide = require("./Store/Provide");
21
19
  var _ToolBar = _interopRequireDefault(require("./ToolBar"));
22
20
  var _mergeComponents = require("./mergeComponents");
23
21
  var _index = require("./style/index");
22
+ var _lodashEs = require("lodash-es");
24
23
  var _jsxRuntime = require("react/jsx-runtime");
25
24
  var _excluded = ["toolbar", "toolbarClassName", "toolbarTilte", "buttonGroup", "refreshIconVisible", "fullScreenVisible", "hideColumnSetting", "hideColumnHeight", "onRefresh", "bordered", "startIndex", "autoFit", "headFootHeight", "columnResizable", "components", "className", "style", "emptyText", "onRowSelectionClear", "onColumnsSave", "uniqueKey", "prefixUrl", "hideSelectionClear", "customEnumText"];
26
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -46,7 +45,7 @@ var DEFAULT_HEIGHTS = exports.DEFAULT_HEIGHTS = {
46
45
  ALERT: 48,
47
46
  TOOLBAR: 64
48
47
  };
49
- function VtxTable(props) {
48
+ var VtxTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
50
49
  var _rest$dataSource, _rest$rowSelection, _rest$rowSelection3, _rest$rowSelection4;
51
50
  var intl = (0, _vtxProvider.useIntl)();
52
51
  var _useContext = (0, _react.useContext)(_antd.ConfigProvider.ConfigContext),
@@ -396,6 +395,7 @@ function VtxTable(props) {
396
395
  ref: rootDomRef,
397
396
  style: style,
398
397
  children: [toolbarRender, alertRender, /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Table, _objectSpread(_objectSpread({
398
+ ref: ref,
399
399
  size: counter.tableSize,
400
400
  bordered: true
401
401
  // virtual
@@ -406,11 +406,11 @@ function VtxTable(props) {
406
406
  }, scroll),
407
407
  pagination: getPagination(rest.pagination),
408
408
  xs: true,
409
- styles: {
409
+ styles: (0, _lodashEs.merge)({
410
410
  root: {
411
411
  height: "calc(100% - ".concat(toolbarHeight.current + alertHeight.current, "px)")
412
412
  }
413
- },
413
+ }, props.styles),
414
414
  locale: _objectSpread({
415
415
  emptyText: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Empty, {
416
416
  description: emptyText
@@ -423,16 +423,19 @@ function VtxTable(props) {
423
423
  tableLayout: "fixed"
424
424
  }))]
425
425
  }));
426
- }
427
- function VtxDatagrid(props) {
426
+ });
427
+ VtxTable.displayName = 'VtxTable';
428
+ var VtxDatagrid = exports.VtxDatagrid = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
428
429
  var ErrorComponent = props.ErrorBoundary === false ? _react.default.Fragment : props.ErrorBoundary || _utils.ErrorBoundary;
429
430
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Provide.Container, {
430
431
  initValue: props,
431
432
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ErrorComponent, {
432
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VtxTable, _objectSpread({}, props))
433
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VtxTable, _objectSpread(_objectSpread({}, props), {}, {
434
+ ref: ref
435
+ }))
433
436
  })
434
437
  });
435
- }
438
+ });
436
439
  VtxDatagrid.displayName = 'VtxDatagrid';
437
440
  var _default = exports.default = VtxDatagrid;
438
441
  VtxDatagrid.propTypes = {
@@ -1,242 +1,242 @@
1
-
2
-
3
- @prefix-cls: vtx-datagrid;
4
-
5
- .@{prefix-cls} {
6
- position: relative;
7
- width: 100%;
8
- overflow: hidden;
9
-
10
- &-fit {
11
- height: 100%;
12
- .ant-table-container {
13
- border-left: none !important;
14
- table > thead > tr th:first-child {
15
- border-left: 1px solid @table-border-color;
16
- }
17
- }
18
- .ant-table-body {
19
- // overflow-y: auto !important;
20
- }
21
- .ant-table-header,
22
- .ant-table-body {
23
- &::-webkit-scrollbar {
24
- width: @webkit-scrollbar-width;
25
- height: @webkit-scrollbar-height;
26
- background-color: @webkit-scrollbar-color;
27
- }
28
-
29
- &::-webkit-scrollbar-thumb {
30
- background-color: @webkit-scrollbar-thumb-color;
31
- border-radius: @webkit-scrollbar-thumb-radius;
32
- }
33
- > table {
34
- min-height: 1px;
35
- }
36
- }
37
- .ant-table-tbody > tr {
38
- &:nth-child(odd) {
39
- background: @table-row-odd;
40
- > td {
41
- background: @table-row-odd !important;
42
- }
43
- }
44
- > td:first-child {
45
- border-left: 1px solid @table-border-color;
46
- }
47
- }
48
- .ant-table-fixed-header .ant-table-scroll .ant-table-header {
49
- min-width: 5px !important;
50
- }
51
- .ant-table-pagination {
52
- position: absolute;
53
- right: 0;
54
- bottom: 0;
55
- }
56
- .ant-spin-nested-loading {
57
- height: 100%;
58
- .ant-spin-container {
59
- position: relative;
60
- height: 100%;
61
- .ant-table {
62
- height: 100%;
63
- }
64
- }
65
- }
66
- }
67
- &-noFit {
68
- .ant-table-tbody > tr {
69
- &:nth-child(even) when(@theme=default) {
70
- background: #f6f6f6;
71
- > td {
72
- background: #f6f6f6 !important;
73
- }
74
- }
75
- }
76
- }
77
- .ant-table-container {
78
- position: relative;
79
- height: 100%;
80
- }
81
- .ant-table-middle {
82
- .ant-table-thead > tr > th {
83
- padding-left: 12px !important;
84
- padding-right: 12px !important;
85
- }
86
- .ant-table-tbody > tr > td {
87
- padding-left: 12px !important;
88
- padding-right: 12px !important;
89
- }
90
- }
91
- .ant-table-tbody > tr.ant-table-row-selected > td {
92
- // background: transparent !important;
93
- border-color: @table-border-color !important;
94
- }
95
-
96
- .ant-table-thead > tr > th when(@theme=default) {
97
- // antd4.0 半透明会重叠
98
- // background-color: fade(#1890ff, 8);
99
- font-weight: bold;
100
- background-color: rgba(237, 246, 255, 1);
101
- }
102
- .ant-table-tbody > tr {
103
- // &:nth-child(even) when(@theme=default) {
104
- // background: #f6f6f6;
105
- // }
106
- & > .ant-table-cell {
107
- color: @text-color;
108
- }
109
-
110
- &.ant-table-placeholder {
111
- position: absolute;
112
- top: 25%;
113
- // top: auto;
114
- right: 0;
115
- // bottom: auto;
116
- left: 0;
117
- background-color: transparent;
118
- border-top: none;
119
- // height: 100%;
120
- & > td.ant-table-cell {
121
- display: flex;
122
- align-items: center;
123
- justify-content: center;
124
- width: 100%;
125
- height: 100%;
126
- // border-right: @border-width-base @border-style-base @table-border-color;
127
- // border-left: @border-width-base @border-style-base @table-border-color;
128
- border: none;
129
- }
130
- }
131
- }
132
- // fix: checkbox 选中时 固定列 最上面一层透明会 和下面重叠
133
- // .ant-table-tbody > tr.ant-table-row-selected td {
134
- // background: transparent;
135
- // }
136
- &-alert {
137
- margin-bottom: 8px;
138
- &-message when(@theme=default) {
139
- color: fade(@black, 65%);
140
- }
141
- &-message when(@theme=dark) {
142
- color: @text-color;
143
- }
144
- &-info-content > strong {
145
- margin: 0 4px;
146
- color: #13c2c2;
147
- }
148
- &-info-option {
149
- margin-left: 10px;
150
- }
151
- }
152
- &-nodata {
153
- .ant-table-scroll {
154
- overflow-y: hidden;
155
- }
156
- }
157
- &-toolbar {
158
- display: table;
159
- width: 100%;
160
- margin: 16px 0;
161
- color: @text-color;
162
- }
163
- &-toolbar-left,
164
- &-toolbar-right {
165
- display: inline-block;
166
- display: table-cell;
167
- vertical-align: middle;
168
- }
169
- &-toolbar-left {
170
- color: @text-color;
171
- font-size: 16px;
172
- }
173
- &-toolbar-right {
174
- float: right;
175
- }
176
- // &-toolbar-line {
177
- // width: 1px;
178
- // height: 14px;
179
- // display: inline-block;
180
- // vertical-align: middle;
181
- // background: #e8e8e8;
182
- // margin: 0 -2px 0 12px;
183
- // }
184
- &-toolbar-setting-item {
185
- display: inline-block;
186
- margin-left: 16px;
187
- color: @icon-color;
188
- font-size: 16px;
189
- vertical-align: middle;
190
- cursor: pointer;
191
- color: #707070;
192
- &:hover {
193
- color: @icon-color-hover;
194
- }
195
- }
196
-
197
- &-space-item {
198
- display: inline-block;
199
- vertical-align: middle;
200
- }
201
- .react-resizable {
202
- position: relative;
203
- background-clip: padding-box;
204
- }
205
- .react-resizable-handle {
206
- position: absolute;
207
- right: -5px;
208
- bottom: 0;
209
- z-index: 1;
210
- width: 10px;
211
- height: 100%;
212
- cursor: col-resize;
213
- }
214
-
215
- &-column-setting {
216
- &-title {
217
- height: 32px;
218
- line-height: 32px;
219
-
220
- a {
221
- display: inline-block;
222
- float: right;
223
- vertical-align: middle;
224
- }
225
- }
226
-
227
- &-checkbox-wrapper {
228
- color: @text-color;
229
- vertical-align: middle;
230
- }
231
-
232
- &-list {
233
- &-list-item {
234
- display: flex;
235
-
236
- &-title {
237
- flex: 1;
238
- }
239
- }
240
- }
241
- }
242
- }
1
+
2
+
3
+ @prefix-cls: vtx-datagrid;
4
+
5
+ .@{prefix-cls} {
6
+ position: relative;
7
+ width: 100%;
8
+ overflow: hidden;
9
+
10
+ &-fit {
11
+ height: 100%;
12
+ .ant-table-container {
13
+ border-left: none !important;
14
+ table > thead > tr th:first-child {
15
+ border-left: 1px solid @table-border-color;
16
+ }
17
+ }
18
+ .ant-table-body {
19
+ // overflow-y: auto !important;
20
+ }
21
+ .ant-table-header,
22
+ .ant-table-body {
23
+ &::-webkit-scrollbar {
24
+ width: @webkit-scrollbar-width;
25
+ height: @webkit-scrollbar-height;
26
+ background-color: @webkit-scrollbar-color;
27
+ }
28
+
29
+ &::-webkit-scrollbar-thumb {
30
+ background-color: @webkit-scrollbar-thumb-color;
31
+ border-radius: @webkit-scrollbar-thumb-radius;
32
+ }
33
+ > table {
34
+ min-height: 1px;
35
+ }
36
+ }
37
+ .ant-table-tbody > tr {
38
+ &:nth-child(odd) {
39
+ background: @table-row-odd;
40
+ > td {
41
+ background: @table-row-odd !important;
42
+ }
43
+ }
44
+ > td:first-child {
45
+ border-left: 1px solid @table-border-color;
46
+ }
47
+ }
48
+ .ant-table-fixed-header .ant-table-scroll .ant-table-header {
49
+ min-width: 5px !important;
50
+ }
51
+ .ant-table-pagination {
52
+ position: absolute;
53
+ right: 0;
54
+ bottom: 0;
55
+ }
56
+ .ant-spin-nested-loading {
57
+ height: 100%;
58
+ .ant-spin-container {
59
+ position: relative;
60
+ height: 100%;
61
+ .ant-table {
62
+ height: 100%;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ &-noFit {
68
+ .ant-table-tbody > tr {
69
+ &:nth-child(even) when(@theme=default) {
70
+ background: #f6f6f6;
71
+ > td {
72
+ background: #f6f6f6 !important;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ .ant-table-container {
78
+ position: relative;
79
+ height: 100%;
80
+ }
81
+ .ant-table-middle {
82
+ .ant-table-thead > tr > th {
83
+ padding-left: 12px !important;
84
+ padding-right: 12px !important;
85
+ }
86
+ .ant-table-tbody > tr > td {
87
+ padding-left: 12px !important;
88
+ padding-right: 12px !important;
89
+ }
90
+ }
91
+ .ant-table-tbody > tr.ant-table-row-selected > td {
92
+ // background: transparent !important;
93
+ border-color: @table-border-color !important;
94
+ }
95
+
96
+ .ant-table-thead > tr > th when(@theme=default) {
97
+ // antd4.0 半透明会重叠
98
+ // background-color: fade(#1890ff, 8);
99
+ font-weight: bold;
100
+ background-color: rgba(237, 246, 255, 1);
101
+ }
102
+ .ant-table-tbody > tr {
103
+ // &:nth-child(even) when(@theme=default) {
104
+ // background: #f6f6f6;
105
+ // }
106
+ & > .ant-table-cell {
107
+ color: @text-color;
108
+ }
109
+
110
+ &.ant-table-placeholder {
111
+ position: absolute;
112
+ top: 25%;
113
+ // top: auto;
114
+ right: 0;
115
+ // bottom: auto;
116
+ left: 0;
117
+ background-color: transparent;
118
+ border-top: none;
119
+ // height: 100%;
120
+ & > td.ant-table-cell {
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ width: 100%;
125
+ height: 100%;
126
+ // border-right: @border-width-base @border-style-base @table-border-color;
127
+ // border-left: @border-width-base @border-style-base @table-border-color;
128
+ border: none;
129
+ }
130
+ }
131
+ }
132
+ // fix: checkbox 选中时 固定列 最上面一层透明会 和下面重叠
133
+ // .ant-table-tbody > tr.ant-table-row-selected td {
134
+ // background: transparent;
135
+ // }
136
+ &-alert {
137
+ margin-bottom: 8px;
138
+ &-message when(@theme=default) {
139
+ color: fade(@black, 65%);
140
+ }
141
+ &-message when(@theme=dark) {
142
+ color: @text-color;
143
+ }
144
+ &-info-content > strong {
145
+ margin: 0 4px;
146
+ color: #13c2c2;
147
+ }
148
+ &-info-option {
149
+ margin-left: 10px;
150
+ }
151
+ }
152
+ &-nodata {
153
+ .ant-table-scroll {
154
+ overflow-y: hidden;
155
+ }
156
+ }
157
+ &-toolbar {
158
+ display: table;
159
+ width: 100%;
160
+ margin: 16px 0;
161
+ color: @text-color;
162
+ }
163
+ &-toolbar-left,
164
+ &-toolbar-right {
165
+ display: inline-block;
166
+ display: table-cell;
167
+ vertical-align: middle;
168
+ }
169
+ &-toolbar-left {
170
+ color: @text-color;
171
+ font-size: 16px;
172
+ }
173
+ &-toolbar-right {
174
+ float: right;
175
+ }
176
+ // &-toolbar-line {
177
+ // width: 1px;
178
+ // height: 14px;
179
+ // display: inline-block;
180
+ // vertical-align: middle;
181
+ // background: #e8e8e8;
182
+ // margin: 0 -2px 0 12px;
183
+ // }
184
+ &-toolbar-setting-item {
185
+ display: inline-block;
186
+ margin-left: 16px;
187
+ color: @icon-color;
188
+ font-size: 16px;
189
+ vertical-align: middle;
190
+ cursor: pointer;
191
+ color: #707070;
192
+ &:hover {
193
+ color: @icon-color-hover;
194
+ }
195
+ }
196
+
197
+ &-space-item {
198
+ display: inline-block;
199
+ vertical-align: middle;
200
+ }
201
+ .react-resizable {
202
+ position: relative;
203
+ background-clip: padding-box;
204
+ }
205
+ .react-resizable-handle {
206
+ position: absolute;
207
+ right: -5px;
208
+ bottom: 0;
209
+ z-index: 1;
210
+ width: 10px;
211
+ height: 100%;
212
+ cursor: col-resize;
213
+ }
214
+
215
+ &-column-setting {
216
+ &-title {
217
+ height: 32px;
218
+ line-height: 32px;
219
+
220
+ a {
221
+ display: inline-block;
222
+ float: right;
223
+ vertical-align: middle;
224
+ }
225
+ }
226
+
227
+ &-checkbox-wrapper {
228
+ color: @text-color;
229
+ vertical-align: middle;
230
+ }
231
+
232
+ &-list {
233
+ &-list-item {
234
+ display: flex;
235
+
236
+ &-title {
237
+ flex: 1;
238
+ }
239
+ }
240
+ }
241
+ }
242
+ }