cloud-b2b 1.0.7 → 1.1.0

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 (37) hide show
  1. package/es/Indent/package.json +6 -6
  2. package/es/SuperForm2/SuperForm.js +21 -21
  3. package/es/SuperForm2/SuperForm.less +52 -52
  4. package/es/SuperForm2/package.json +6 -6
  5. package/es/SuperTab/SuperTab.js +8 -8
  6. package/es/SuperTab/SuperTab.less +43 -43
  7. package/es/SuperTab/package.json +6 -6
  8. package/es/SuperTab2/SuperTab2.js +7 -7
  9. package/es/SuperTab2/SuperTab2.less +18 -18
  10. package/es/SuperTab2/package.json +6 -6
  11. package/es/SuperTable2/SuperTable2.js +17 -14
  12. package/es/SuperTable2/SuperTable2.less +25 -7
  13. package/es/SuperTable3/FilterDropDown.less +29 -29
  14. package/es/SuperTable3/SuperTable.js +24 -24
  15. package/es/SuperTable3/SuperTable.less +99 -99
  16. package/es/SuperTable3/package.json +6 -6
  17. package/es/WingBlank/WingBlank.js +1 -1
  18. package/es/style.less +1 -1
  19. package/lib/Indent/package.json +6 -6
  20. package/lib/SuperForm2/SuperForm.js +21 -21
  21. package/lib/SuperForm2/SuperForm.less +52 -52
  22. package/lib/SuperForm2/package.json +6 -6
  23. package/lib/SuperTab/SuperTab.js +8 -8
  24. package/lib/SuperTab/SuperTab.less +43 -43
  25. package/lib/SuperTab/package.json +6 -6
  26. package/lib/SuperTab2/SuperTab2.js +7 -7
  27. package/lib/SuperTab2/SuperTab2.less +18 -18
  28. package/lib/SuperTab2/package.json +6 -6
  29. package/lib/SuperTable2/SuperTable2.js +17 -14
  30. package/lib/SuperTable2/SuperTable2.less +25 -7
  31. package/lib/SuperTable3/FilterDropDown.less +29 -29
  32. package/lib/SuperTable3/SuperTable.js +24 -24
  33. package/lib/SuperTable3/SuperTable.less +99 -99
  34. package/lib/SuperTable3/package.json +6 -6
  35. package/lib/WingBlank/WingBlank.js +1 -1
  36. package/lib/style.less +1 -1
  37. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- @import '../variables.less';
2
-
3
- .@{cloudlink-prefix}-SuperTab2 {
4
- :global(.ant-tabs-bar) {
5
- margin-bottom: 0;
6
- }
7
-
8
- :global(.ant-tabs-nav-container) {
9
- font-size: @font-size-base;
10
- line-height: 16px;
11
- height: 32px !important;
12
- }
13
-
14
- :global(.ant-tabs-tab) {
15
- padding: 8px 6px;
16
- margin-right: 4px;
17
- }
18
- }
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-SuperTab2 {
4
+ :global(.ant-tabs-bar) {
5
+ margin-bottom: 0;
6
+ }
7
+
8
+ :global(.ant-tabs-nav-container) {
9
+ font-size: @font-size-base;
10
+ line-height: 16px;
11
+ height: 32px !important;
12
+ }
13
+
14
+ :global(.ant-tabs-tab) {
15
+ padding: 8px 6px;
16
+ margin-right: 4px;
17
+ }
18
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "SuperTab2",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./SuperTab2.js"
6
- }
1
+ {
2
+ "name": "SuperTab2",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./SuperTab2.js"
6
+ }
@@ -96,13 +96,13 @@ var _variables = _interopRequireDefault(require("../variables"));
96
96
 
97
97
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (_Array$isArray2(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
98
98
 
99
- function _unsupportedIterableToArray(o, minLen) { var _context12; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context12 = Object.prototype.toString.call(o)).call(_context12, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
99
+ function _unsupportedIterableToArray(o, minLen) { var _context13; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context13 = Object.prototype.toString.call(o)).call(_context13, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
100
100
 
101
101
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
102
102
 
103
103
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
104
104
 
105
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context10, _context11; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context10 = ownKeys(Object(source), !0)).call(_context10, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context11 = ownKeys(Object(source))).call(_context11, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
105
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context11, _context12; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context11 = ownKeys(Object(source), !0)).call(_context11, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context12 = ownKeys(Object(source))).call(_context12, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
106
106
 
107
107
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
108
108
 
@@ -400,7 +400,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
400
400
  });
401
401
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getCellRender", function (col) {
402
402
  return function (value, record, index) {
403
- var _context3, _context4, _context5;
403
+ var _context3, _context4, _context5, _context6;
404
404
 
405
405
  var realType = record._isEdit === true && _this.canReadonly(col.type) ? col.editType : col.type;
406
406
 
@@ -463,9 +463,12 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
463
463
  return _this.props.callback.onRenderCustom(record.key, col.key, value, col.props);
464
464
 
465
465
  case 'toolbar':
466
+ //showByKey为true时,每条数据中与按钮key相同的属性值决定按钮是否显示,建议key用下划线开始命名,避免与后台数据冲突
466
467
  var props = {
467
468
  onClick: _this.props.callback.onToolbar ? (0, _bind["default"])(_context4 = _this.props.callback.onToolbar).call(_context4, null, col.key, record.key, record) : undefined,
468
- buttons: (0, _filter["default"])(_context5 = col.props.buttons).call(_context5, function (item) {
469
+ buttons: col.props.showByKey ? (0, _filter["default"])(_context5 = col.props.buttons).call(_context5, function (item) {
470
+ return record[item.key] === true;
471
+ }) : (0, _filter["default"])(_context6 = col.props.buttons).call(_context6, function (item) {
469
472
  return item.defaultShow === !record._isEdit;
470
473
  })
471
474
  };
@@ -561,17 +564,17 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
561
564
  }
562
565
  });
563
566
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "canReadonly", function (type) {
564
- var _context6;
567
+ var _context7;
565
568
 
566
- return !(0, _includes["default"])(_context6 = ['index', 'checkbox', 'link', 'button', 'switch', 'custom', 'img', 'toolbar']).call(_context6, type);
569
+ return !(0, _includes["default"])(_context7 = ['index', 'checkbox', 'link', 'button', 'switch', 'custom', 'img', 'toolbar']).call(_context7, type);
567
570
  });
568
571
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getColumns", function (cols) {
569
- var _context7;
572
+ var _context8;
570
573
 
571
574
  var readonly = _this.props.readonly;
572
- return (0, _map["default"])(_context7 = (0, _filter["default"])(cols).call(cols, function (col) {
575
+ return (0, _map["default"])(_context8 = (0, _filter["default"])(cols).call(cols, function (col) {
573
576
  return !col.hide;
574
- })).call(_context7, function (_ref11, index) {
577
+ })).call(_context8, function (_ref11, index) {
575
578
  var col = (0, _extends2["default"])({}, _ref11);
576
579
  col.className = _this.getColumnClassName(col);
577
580
  col.title = _this.getColumnTitle(col);
@@ -597,13 +600,13 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
597
600
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getDataSource", function (items, cols) {
598
601
  return (0, _map["default"])(items).call(items, function (item, index) {
599
602
  return (0, _reduce["default"])(cols).call(cols, function (result, _ref12) {
600
- var _context8;
603
+ var _context9;
601
604
 
602
605
  var key = _ref12.key,
603
606
  type = _ref12.type,
604
607
  options = _ref12.options;
605
608
 
606
- if (!_this.props.readonly && type && type !== 'readonly' && (!item.isReadonly || (0, _isArray["default"])(item.isReadonly) && !(0, _includes["default"])(_context8 = item.isReadonly).call(_context8, key))) {
609
+ if (!_this.props.readonly && type && type !== 'readonly' && (!item.isReadonly || (0, _isArray["default"])(item.isReadonly) && !(0, _includes["default"])(_context9 = item.isReadonly).call(_context9, key))) {
607
610
  result[key] = item[key];
608
611
  } else {
609
612
  result[key] = (0, _Control.getTitle)(item[key], options);
@@ -635,7 +638,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
635
638
  };
636
639
  });
637
640
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getProps", function () {
638
- var _context9;
641
+ var _context10;
639
642
 
640
643
  var _this$props3 = _this.props,
641
644
  cols = _this$props3.cols,
@@ -649,9 +652,9 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
649
652
  _this$props3$isEmphas = _this$props3.isEmphasized,
650
653
  isEmphasized = _this$props3$isEmphas === void 0 ? false : _this$props3$isEmphas,
651
654
  maxHeight = _this$props3.maxHeight;
652
- var widthX = (0, _reduce["default"])(_context9 = (0, _filter["default"])(cols).call(cols, function (col) {
655
+ var widthX = (0, _reduce["default"])(_context10 = (0, _filter["default"])(cols).call(cols, function (col) {
653
656
  return !col.hide;
654
- })).call(_context9, function (width, item) {
657
+ })).call(_context10, function (width, item) {
655
658
  return width += item.width ? item.width : 120;
656
659
  }, 0);
657
660
  return _objectSpread({
@@ -26,6 +26,22 @@
26
26
  background: #2CBB45!important;
27
27
  }
28
28
 
29
+ :global(.ant-table-fixed){
30
+ width: 100% !important;
31
+ }
32
+ :global(.ant-table-tbody){
33
+ width: 100% !important;
34
+ }
35
+
36
+ :global(.ant-table-thead){
37
+ -moz-transform: none !important;
38
+ -webkit-transform: none !important;
39
+ -o-transform: none !important;
40
+ -ms-transform: none !important;
41
+ transform: none !important;
42
+ }
43
+
44
+
29
45
  th [role='add'] {
30
46
  color: @primary-color;
31
47
  margin-left: 4px;
@@ -89,12 +105,14 @@
89
105
  }
90
106
  }
91
107
  }
92
- }
93
108
 
94
- .weakenedSelectRow{
95
- background-color: @table-row-hover-bg;
96
- color :#999;
97
- }
98
- .weakenedUnselectRow{
99
- color :#999;
109
+ .weakenedSelectRow{
110
+ background-color: @table-row-hover-bg;
111
+ color :#999;
112
+ }
113
+
114
+ .weakenedUnselectRow{
115
+ color :#999;
116
+ }
100
117
  }
118
+
@@ -1,29 +1,29 @@
1
- @import '../variables.less';
2
-
3
- .@{cloudlink-prefix}-SuperTable3-FilterDropDown {
4
- background: white;
5
- padding: @padding-vertical @padding-horizontal;
6
- border-radius: @border-radius-base;
7
- border: 1px solid #d9d9d9;
8
-
9
- > :first-child {
10
- width: 135px;
11
- margin-right: 10px;
12
- }
13
-
14
- .date{
15
- background: white;
16
- padding: @padding-vertical @padding-horizontal;
17
- border-radius: @border-radius-base;
18
- border: 1px solid #d9d9d9;
19
-
20
- > :first-child > div {
21
- display: inline-block;
22
- }
23
-
24
- > :last-child {
25
- text-align: right;
26
- margin-top: 5px;
27
- }
28
- }
29
- }
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-SuperTable3-FilterDropDown {
4
+ background: white;
5
+ padding: @padding-vertical @padding-horizontal;
6
+ border-radius: @border-radius-base;
7
+ border: 1px solid #d9d9d9;
8
+
9
+ > :first-child {
10
+ width: 135px;
11
+ margin-right: 10px;
12
+ }
13
+
14
+ .date{
15
+ background: white;
16
+ padding: @padding-vertical @padding-horizontal;
17
+ border-radius: @border-radius-base;
18
+ border: 1px solid #d9d9d9;
19
+
20
+ > :first-child > div {
21
+ display: inline-block;
22
+ }
23
+
24
+ > :last-child {
25
+ text-align: right;
26
+ margin-top: 5px;
27
+ }
28
+ }
29
+ }
@@ -102,13 +102,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
102
102
 
103
103
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
104
104
 
105
- /**
106
- * sorter: [可选],不传表示该列不支持排序;为string表示按字符串排序;为number表示按数字大小排序
107
- * filter: [可选],是否支持过滤,默认为false
108
- * link: [可选],为true表示超链接,内容来至items;为字符串表示超链接,内容就是该字符串;为字符串‘list’表示超链接数组,内容就是该items对应key对象数组的linkTitleKey属性拼接
109
- * linkTitleKey: [可选],当link为'list'表示超链接组时,该值表示要拼接展示的属性key值
110
- * isDateFilterByStartAndEnd: [可选],为true时做过滤操作会显示时间段搜索,默认为false
111
- *
105
+ /**
106
+ * sorter: [可选],不传表示该列不支持排序;为string表示按字符串排序;为number表示按数字大小排序
107
+ * filter: [可选],是否支持过滤,默认为false
108
+ * link: [可选],为true表示超链接,内容来至items;为字符串表示超链接,内容就是该字符串;为字符串‘list’表示超链接数组,内容就是该items对应key对象数组的linkTitleKey属性拼接
109
+ * linkTitleKey: [可选],当link为'list'表示超链接组时,该值表示要拼接展示的属性key值
110
+ * isDateFilterByStartAndEnd: [可选],为true时做过滤操作会显示时间段搜索,默认为false
111
+ *
112
112
  */
113
113
  var ColType = {
114
114
  key: _propTypes["default"].string.isRequired,
@@ -126,12 +126,12 @@ var ColType = {
126
126
  var ItemType = {
127
127
  checked: _propTypes["default"].bool
128
128
  };
129
- /**
130
- * onCheck:点击复选框时触发, 原型为onCheck(checkedRows)
131
- * onRadio: 点击单选按钮时触发,原型为func(checkedRows)
132
- * onDoubleClick: 行双击时触发,原型func(rowIndex)
133
- * onLink: 点击超链接时触发,原型为func(key, rowIndex, item)
134
- * onTableChange: 排序信息改变时触发,原型为func(sortInfo, filterInfo)
129
+ /**
130
+ * onCheck:点击复选框时触发, 原型为onCheck(checkedRows)
131
+ * onRadio: 点击单选按钮时触发,原型为func(checkedRows)
132
+ * onDoubleClick: 行双击时触发,原型func(rowIndex)
133
+ * onLink: 点击超链接时触发,原型为func(key, rowIndex, item)
134
+ * onTableChange: 排序信息改变时触发,原型为func(sortInfo, filterInfo)
135
135
  */
136
136
 
137
137
  var CallbackType = {
@@ -141,17 +141,17 @@ var CallbackType = {
141
141
  onLink: _propTypes["default"].func,
142
142
  onTableChange: _propTypes["default"].func
143
143
  };
144
- /**
145
- * checkbox: [可选],是否有复选框,默认为true
146
- * isPaging: [可选],是否分页,默认为false
147
- * radio: [可选],是否为单选按钮,当checkbox为true时生效,默认值为false
148
- * checkedRows: [可选],选中的行数,radio为true时生效
149
- * index: [可选],是否有序号,默认值为true
150
- * indexTitle:[可选],序号标题,默认为'序号'
151
- * sortInfo: [可选],排序信息,默认为null
152
- * filterInfo: [可选],过滤信息,默认为null
153
- * maxHeight: [可选],设置表格的最大高度
154
- * childrenKey: [可选],设置子列表数据的key,默认children
144
+ /**
145
+ * checkbox: [可选],是否有复选框,默认为true
146
+ * isPaging: [可选],是否分页,默认为false
147
+ * radio: [可选],是否为单选按钮,当checkbox为true时生效,默认值为false
148
+ * checkedRows: [可选],选中的行数,radio为true时生效
149
+ * index: [可选],是否有序号,默认值为true
150
+ * indexTitle:[可选],序号标题,默认为'序号'
151
+ * sortInfo: [可选],排序信息,默认为null
152
+ * filterInfo: [可选],过滤信息,默认为null
153
+ * maxHeight: [可选],设置表格的最大高度
154
+ * childrenKey: [可选],设置子列表数据的key,默认children
155
155
  */
156
156
 
157
157
  var SuperTable = /*#__PURE__*/function (_React$Component) {
@@ -1,99 +1,99 @@
1
- @import '../variables.less';
2
-
3
- .root {
4
- border-spacing: 0;
5
- cursor: default;
6
-
7
- table {
8
- white-space: pre;
9
-
10
- :global(.ant-checkbox-input) {
11
- z-index: -1;
12
- }
13
- }
14
-
15
- :global(.ant-table-placeholder) {
16
- padding: 0;
17
-
18
- > div {
19
- margin: 0;
20
- }
21
- }
22
-
23
- .select {
24
- background-color: @primary-1;
25
- }
26
-
27
- .center {
28
- text-align: center !important;
29
- }
30
-
31
- .left {
32
- text-align: left !important;
33
- }
34
-
35
- .right {
36
- text-align: right !important;
37
- }
38
-
39
- .noWrap{
40
- white-space: nowrap;
41
- }
42
-
43
- .totalRow {
44
- color: #222!important;
45
- background-color: #f0f0f0!important;
46
- transition: all 0s!important;
47
- td {
48
- border-top: 1px solid #ddd!important;
49
- background-color: #f0f0f0!important;
50
- border-bottom: 0!important;
51
- transition: all 0s!important;
52
- }
53
- }
54
-
55
- :global(.ant-table-footer) {
56
- padding: 0!important;
57
- }
58
-
59
- .footer {
60
- vertical-align: middle;
61
- overflow: auto;
62
- scrollbar-width: none;
63
- -ms-overflow-style: none;
64
- scrollbar-color: transparent transparent;
65
- scrollbar-track-color: transparent;
66
- -ms-scrollbar-track-color: transparent;
67
- .footerItem {
68
- white-space: pre;
69
- > span {
70
- display: inline-block;
71
- color: #222;
72
- position: relative;
73
- vertical-align: middle;
74
- border-top: 1px solid #dedede;
75
- display: inline-block;
76
- box-sizing: border-box;
77
- height: 35px;
78
- padding: 8px 8px 7px !important;
79
- border-right: 1px solid transparent;
80
- }
81
- .ghost {
82
- opacity: 0;
83
- filter: alpha(opacity=0);
84
- }
85
- .content {
86
- position: absolute;
87
- left: 0;
88
- }
89
- }
90
- }
91
-
92
- .footer::-webkit-scrollbar {
93
- display: none;
94
- width: 0!important;
95
- height: 0!important;
96
- opacity: 0;
97
- filter: alpha(opacity=0);
98
- }
99
- }
1
+ @import '../variables.less';
2
+
3
+ .root {
4
+ border-spacing: 0;
5
+ cursor: default;
6
+
7
+ table {
8
+ white-space: pre;
9
+
10
+ :global(.ant-checkbox-input) {
11
+ z-index: -1;
12
+ }
13
+ }
14
+
15
+ :global(.ant-table-placeholder) {
16
+ padding: 0;
17
+
18
+ > div {
19
+ margin: 0;
20
+ }
21
+ }
22
+
23
+ .select {
24
+ background-color: @primary-1;
25
+ }
26
+
27
+ .center {
28
+ text-align: center !important;
29
+ }
30
+
31
+ .left {
32
+ text-align: left !important;
33
+ }
34
+
35
+ .right {
36
+ text-align: right !important;
37
+ }
38
+
39
+ .noWrap{
40
+ white-space: nowrap;
41
+ }
42
+
43
+ .totalRow {
44
+ color: #222!important;
45
+ background-color: #f0f0f0!important;
46
+ transition: all 0s!important;
47
+ td {
48
+ border-top: 1px solid #ddd!important;
49
+ background-color: #f0f0f0!important;
50
+ border-bottom: 0!important;
51
+ transition: all 0s!important;
52
+ }
53
+ }
54
+
55
+ :global(.ant-table-footer) {
56
+ padding: 0!important;
57
+ }
58
+
59
+ .footer {
60
+ vertical-align: middle;
61
+ overflow: auto;
62
+ scrollbar-width: none;
63
+ -ms-overflow-style: none;
64
+ scrollbar-color: transparent transparent;
65
+ scrollbar-track-color: transparent;
66
+ -ms-scrollbar-track-color: transparent;
67
+ .footerItem {
68
+ white-space: pre;
69
+ > span {
70
+ display: inline-block;
71
+ color: #222;
72
+ position: relative;
73
+ vertical-align: middle;
74
+ border-top: 1px solid #dedede;
75
+ display: inline-block;
76
+ box-sizing: border-box;
77
+ height: 35px;
78
+ padding: 8px 8px 7px !important;
79
+ border-right: 1px solid transparent;
80
+ }
81
+ .ghost {
82
+ opacity: 0;
83
+ filter: alpha(opacity=0);
84
+ }
85
+ .content {
86
+ position: absolute;
87
+ left: 0;
88
+ }
89
+ }
90
+ }
91
+
92
+ .footer::-webkit-scrollbar {
93
+ display: none;
94
+ width: 0!important;
95
+ height: 0!important;
96
+ opacity: 0;
97
+ filter: alpha(opacity=0);
98
+ }
99
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "SuperTable",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./SuperTable.js"
6
- }
1
+ {
2
+ "name": "SuperTable",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./SuperTable.js"
6
+ }
@@ -29,7 +29,7 @@ function WingBlank(_ref) {
29
29
  children = _ref.children,
30
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
31
31
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
32
- className: (0, _concat["default"])(_context = "".concat(className, " ")).call(_context, (0, _variables["default"])('DragTable'))
32
+ className: (0, _concat["default"])(_context = "".concat(className, " ")).call(_context, (0, _variables["default"])('WingBlank'))
33
33
  }, props), /*#__PURE__*/_react["default"].createElement("div", null, children));
34
34
  }
35
35
 
package/lib/style.less CHANGED
@@ -11,7 +11,7 @@
11
11
  @import "./SuperTable3/FilterDropDown.less";
12
12
  @import "./Header/Header.less";
13
13
  @import "./Header/Vertical.less";
14
- @import "./InputEditor/InputEditor.less";
14
+ @import "./InputEditor/inputEditor.less";
15
15
  @import "./Layout/Layout.less";
16
16
  @import "./LayoutLink/LayoutLink.less";
17
17
  @import "./Loading/Loading.less";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",