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.
- package/es/Search2/Search.js +597 -0
- package/es/Search2/Search.less +65 -0
- package/es/Search2/package.json +6 -0
- package/es/SuperTable2/SuperTable2.js +3 -3
- package/es/SuperTable2/SuperTableCell.js +9 -0
- package/es/index.js +2 -1
- package/lib/Search2/Search.js +609 -0
- package/lib/Search2/Search.less +65 -0
- package/lib/Search2/package.json +6 -0
- package/lib/SuperTable2/SuperTable2.js +3 -3
- package/lib/SuperTable2/SuperTableCell.js +9 -0
- package/lib/index.js +8 -1
- package/lib/index.less +1 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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
|
-
|
|
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