cloud-b2b 1.1.58 → 1.1.60

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.
@@ -0,0 +1,65 @@
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-Search2 {
4
+ transition: all 0.3s;
5
+
6
+ > *:first-child {
7
+ display: inline-block;
8
+ vertical-align: top;
9
+ margin-bottom: -10px;
10
+
11
+ :global(.ant-form-item) {
12
+ margin-bottom: 10px;
13
+
14
+ :global(.ant-select-selection--multiple) {
15
+ border-top-width: 1px;
16
+ height: 22px;
17
+ overflow: auto;
18
+ }
19
+
20
+ [role='icon'] {
21
+ cursor: pointer;
22
+ margin-left: 10px;
23
+ color: @primary-color;
24
+ }
25
+ }
26
+ }
27
+
28
+ > *:last-child {
29
+ display: inline-block;
30
+ vertical-align: top;
31
+ padding-left: 20px;
32
+ padding-top: 14px;
33
+ width: 18%;
34
+ }
35
+
36
+ :global(.ant-form-item-control) input,
37
+ :global(.ant-calendar-picker),
38
+ :global(.ant-select) {
39
+ display: block;
40
+ }
41
+ :global(.ant-calendar-picker-small) {
42
+ min-width: 100px !important;
43
+ }
44
+ [role='buttons'] > * {
45
+ margin-right: 5px;
46
+ }
47
+
48
+ [role='more'] {
49
+ color: rgba(0, 0, 0, 0.65);
50
+ user-select: none;
51
+
52
+ &:hover {
53
+ color: @brand-primary;
54
+ }
55
+
56
+ > i {
57
+ transform: scale(0.75);
58
+ transition: all 0.2s;
59
+
60
+ &[data-status='up'] {
61
+ transform: scale(0.75) rotate(-180deg);
62
+ }
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "Search",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./Search.js"
6
+ }
@@ -270,7 +270,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
270
270
  onChange: function onChange(e) {
271
271
  _this.onChange(key, index)(e.target.value);
272
272
  },
273
- value: value
273
+ value: String(value)
274
274
  };
275
275
  return /*#__PURE__*/_react["default"].createElement(RadioGroup, radioGroupProps, (0, _map["default"])(options).call(options, _this.toRadio));
276
276
  });
@@ -486,8 +486,8 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
486
486
  type: col.bsStyle
487
487
  }, record[col.key] || col.typeRelated);
488
488
  }
489
- case 'radioGroup':
490
- return _this.renderRadioGroup(col, value, record.key);
489
+ // case 'radioGroup':
490
+ // return this.renderRadioGroup(col, value, record.key);
491
491
  case 'switch':
492
492
  return typeof value === 'string' ? /*#__PURE__*/_react["default"].createElement("div", null, value) : /*#__PURE__*/_react["default"].createElement(_switch["default"], {
493
493
  checkedChildren: col.props.checkedChildren || '',
@@ -133,6 +133,11 @@ var SuperTableCell = /*#__PURE__*/function (_React$Component) {
133
133
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toSelectWriting", function (props) {
134
134
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
135
135
  });
136
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toRadioGroup", function (props) {
137
+ console.log(props);
138
+ props.options = _this.options();
139
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
140
+ });
136
141
  // 确保value的值为字符串(包含value和title的对象除外)
137
142
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "makeString", function (value) {
138
143
  if (value === null || typeof value === 'undefined') {
@@ -207,6 +212,10 @@ var SuperTableCell = /*#__PURE__*/function (_React$Component) {
207
212
  return /*#__PURE__*/_react["default"].createElement("div", {
208
213
  className: className
209
214
  }, this.toSelectWriting(props));
215
+ case 'radioGroup':
216
+ return /*#__PURE__*/_react["default"].createElement("div", {
217
+ className: className
218
+ }, this.toRadioGroup(props));
210
219
  case 'double':
211
220
  return /*#__PURE__*/_react["default"].createElement("div", {
212
221
  className: className
package/lib/index.js CHANGED
@@ -137,6 +137,12 @@ _Object$defineProperty(exports, "Search", {
137
137
  return _Search["default"];
138
138
  }
139
139
  });
140
+ _Object$defineProperty(exports, "Search2", {
141
+ enumerable: true,
142
+ get: function get() {
143
+ return _Search2["default"];
144
+ }
145
+ });
140
146
  _Object$defineProperty(exports, "Sidebar", {
141
147
  enumerable: true,
142
148
  get: function get() {
@@ -268,4 +274,5 @@ var _SuperTable3 = _interopRequireDefault(require("./SuperTable"));
268
274
  var _SuperPagination = _interopRequireDefault(require("./SuperPagination"));
269
275
  var _SuperTab = _interopRequireDefault(require("./SuperTab"));
270
276
  var _SuperTab2 = _interopRequireDefault(require("./SuperTab2"));
271
- var _Indent = _interopRequireDefault(require("./Indent"));
277
+ var _Indent = _interopRequireDefault(require("./Indent"));
278
+ var _Search2 = _interopRequireDefault(require("./Search2"));
package/lib/index.less CHANGED
@@ -9,6 +9,7 @@
9
9
  @import "./Loading2/Loading2.less";
10
10
  @import "./ModalWithDrag/ModalWithDrag.less";
11
11
  @import "./Search/Search.less";
12
+ @import "./Search2/Search.less";
12
13
  @import "./Sidebar/Sidebar.less";
13
14
  @import "./Sidebar2/Sidebar.less";
14
15
  @import "./style.less";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",