@fle-ui/plus-table 1.2.26 → 1.2.28-beta.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.
@@ -142,7 +142,7 @@ var FormRender = function FormRender(_ref) {
142
142
  var columnKey = (item === null || item === void 0 ? void 0 : item.key) || (item === null || item === void 0 ? void 0 : (_item$dataIndex = item.dataIndex) === null || _item$dataIndex === void 0 ? void 0 : _item$dataIndex.toString());
143
143
  return _objectSpread(_objectSpread(_objectSpread({}, item), {}, {
144
144
  width: undefined
145
- }, _typeof(item.search) === "object" ? item.search : {}), {}, {
145
+ }, _typeof(item.search) === 'object' ? item.search : {}), {}, {
146
146
  valueType: finalValueType,
147
147
  proFieldProps: _objectSpread(_objectSpread({}, item.proFieldProps), {}, {
148
148
  proFieldKey: columnKey ? "table-field-".concat(columnKey) : undefined
@@ -168,6 +168,14 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
168
168
  search: search,
169
169
  form: _objectSpread(_objectSpread({
170
170
  onValuesChange: function onValuesChange(changeValue, allValue) {
171
+ for (var key in changeValue) {
172
+ if (Object.hasOwn(changeValue, key)) {
173
+ if (!changeValue[key]) {
174
+ changeValue[key] = undefined;
175
+ allValue[key] = undefined;
176
+ }
177
+ }
178
+ }
171
179
  _this.props.changeValue(changeValue, allValue);
172
180
  },
173
181
  autoFocusFirstInput: false
package/es/index.js CHANGED
@@ -219,8 +219,9 @@ function PlusTable(props, ref) {
219
219
  };
220
220
  }();
221
221
  var onValuesChange = function onValuesChange(changeValue, allValue) {
222
- var _searchRef$current4;
223
- searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(drawFormRef.current.getFieldsValue());
222
+ var _drawFormRef$current4, _searchRef$current4;
223
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current4 = drawFormRef.current) === null || _drawFormRef$current4 === void 0 ? void 0 : _drawFormRef$current4.setFieldsValue(allValue);
224
+ searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(allValue);
224
225
  };
225
226
  var handleSearchAll = /*#__PURE__*/function () {
226
227
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(searchConfig) {
@@ -262,7 +263,7 @@ function PlusTable(props, ref) {
262
263
  };
263
264
  var propsRequest = /*#__PURE__*/function () {
264
265
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params, sort, filter) {
265
- var _searchRef$current5, _drawFormRef$current4;
266
+ var _searchRef$current5, _drawFormRef$current5;
266
267
  var res1, res2, res;
267
268
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
268
269
  while (1) switch (_context8.prev = _context8.next) {
@@ -272,7 +273,7 @@ function PlusTable(props, ref) {
272
273
  case 2:
273
274
  res1 = _context8.sent;
274
275
  _context8.next = 5;
275
- return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current4 = drawFormRef.current) === null || _drawFormRef$current4 === void 0 ? void 0 : _drawFormRef$current4.getFieldsValue();
276
+ return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.getFieldsValue();
276
277
  case 5:
277
278
  res2 = _context8.sent;
278
279
  if (!request) {
@@ -364,8 +365,8 @@ function PlusTable(props, ref) {
364
365
  key: "2",
365
366
  type: "default",
366
367
  onClick: function onClick() {
367
- var _drawFormRef$current5, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
368
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.resetFields();
368
+ var _drawFormRef$current6, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
369
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.resetFields();
369
370
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$re = _actionRef$current.reset) === null || _actionRef$current$re === void 0 ? void 0 : _actionRef$current$re.call(_actionRef$current);
370
371
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$r = _actionRef$current2.reload) === null || _actionRef$current2$r === void 0 ? void 0 : _actionRef$current2$r.call(_actionRef$current2);
371
372
  },
@@ -377,7 +378,7 @@ function PlusTable(props, ref) {
377
378
  whiteSpace: 'nowrap'
378
379
  },
379
380
  onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
380
- var _drawFormRef$current6, _searchRef$current6;
381
+ var _drawFormRef$current7, _searchRef$current6;
381
382
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
382
383
  while (1) switch (_context9.prev = _context9.next) {
383
384
  case 0:
@@ -385,7 +386,7 @@ function PlusTable(props, ref) {
385
386
  return setSearchDrawer(!searchDrawer);
386
387
  case 2:
387
388
  // 没法实时监听数据所以这里要带过来
388
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.setFieldsValue(searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current6 = searchRef.current) === null || _searchRef$current6 === void 0 ? void 0 : _searchRef$current6.getFieldsValue());
389
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.setFieldsValue(searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current6 = searchRef.current) === null || _searchRef$current6 === void 0 ? void 0 : _searchRef$current6.getFieldsValue());
389
390
  case 3:
390
391
  case "end":
391
392
  return _context9.stop();
@@ -409,11 +410,11 @@ function PlusTable(props, ref) {
409
410
  fieldProps: _objectSpread({
410
411
  onChange: function onChange(e) {
411
412
  if (e) {
412
- var _drawFormRef$current7;
413
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.setFieldsValue(_defineProperty({}, item.dataIndex, e.target ? e.target.value : e));
413
+ var _drawFormRef$current8;
414
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current8 = drawFormRef.current) === null || _drawFormRef$current8 === void 0 ? void 0 : _drawFormRef$current8.setFieldsValue(_defineProperty({}, item.dataIndex, e.target ? e.target.value : e));
414
415
  } else {
415
- var _drawFormRef$current9;
416
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current9 = drawFormRef.current) === null || _drawFormRef$current9 === void 0 ? void 0 : _drawFormRef$current9.resetFields([item.dataIndex]);
416
+ var _drawFormRef$current10;
417
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields([item.dataIndex]);
417
418
  }
418
419
  }
419
420
  }, item.fieldProps)
@@ -490,8 +491,8 @@ function PlusTable(props, ref) {
490
491
  }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
491
492
  type: "default",
492
493
  onClick: function onClick() {
493
- var _drawFormRef$current10, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
494
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields();
494
+ var _drawFormRef$current11, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
495
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current11 = drawFormRef.current) === null || _drawFormRef$current11 === void 0 ? void 0 : _drawFormRef$current11.resetFields();
495
496
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$r = _actionRef$current3.reset) === null || _actionRef$current3$r === void 0 ? void 0 : _actionRef$current3$r.call(_actionRef$current3);
496
497
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$r = _actionRef$current4.reload) === null || _actionRef$current4$r === void 0 ? void 0 : _actionRef$current4$r.call(_actionRef$current4);
497
498
  },
@@ -148,7 +148,7 @@ var FormRender = function FormRender(_ref) {
148
148
  var columnKey = (item === null || item === void 0 ? void 0 : item.key) || (item === null || item === void 0 ? void 0 : (_item$dataIndex = item.dataIndex) === null || _item$dataIndex === void 0 ? void 0 : _item$dataIndex.toString());
149
149
  return _objectSpread(_objectSpread(_objectSpread({}, item), {}, {
150
150
  width: undefined
151
- }, _typeof(item.search) === "object" ? item.search : {}), {}, {
151
+ }, _typeof(item.search) === 'object' ? item.search : {}), {}, {
152
152
  valueType: finalValueType,
153
153
  proFieldProps: _objectSpread(_objectSpread({}, item.proFieldProps), {}, {
154
154
  proFieldKey: columnKey ? "table-field-".concat(columnKey) : undefined
@@ -175,6 +175,14 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
175
175
  search: search,
176
176
  form: _objectSpread(_objectSpread({
177
177
  onValuesChange: function onValuesChange(changeValue, allValue) {
178
+ for (var key in changeValue) {
179
+ if (Object.hasOwn(changeValue, key)) {
180
+ if (!changeValue[key]) {
181
+ changeValue[key] = undefined;
182
+ allValue[key] = undefined;
183
+ }
184
+ }
185
+ }
178
186
  _this.props.changeValue(changeValue, allValue);
179
187
  },
180
188
  autoFocusFirstInput: false
package/lib/index.js CHANGED
@@ -223,8 +223,9 @@ function PlusTable(props, ref) {
223
223
  };
224
224
  }();
225
225
  var onValuesChange = function onValuesChange(changeValue, allValue) {
226
- var _searchRef$current4;
227
- searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(drawFormRef.current.getFieldsValue());
226
+ var _drawFormRef$current4, _searchRef$current4;
227
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current4 = drawFormRef.current) === null || _drawFormRef$current4 === void 0 ? void 0 : _drawFormRef$current4.setFieldsValue(allValue);
228
+ searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(allValue);
228
229
  };
229
230
  var handleSearchAll = /*#__PURE__*/function () {
230
231
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(searchConfig) {
@@ -266,7 +267,7 @@ function PlusTable(props, ref) {
266
267
  };
267
268
  var propsRequest = /*#__PURE__*/function () {
268
269
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params, sort, filter) {
269
- var _searchRef$current5, _drawFormRef$current4;
270
+ var _searchRef$current5, _drawFormRef$current5;
270
271
  var res1, res2, res;
271
272
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
272
273
  while (1) switch (_context8.prev = _context8.next) {
@@ -276,7 +277,7 @@ function PlusTable(props, ref) {
276
277
  case 2:
277
278
  res1 = _context8.sent;
278
279
  _context8.next = 5;
279
- return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current4 = drawFormRef.current) === null || _drawFormRef$current4 === void 0 ? void 0 : _drawFormRef$current4.getFieldsValue();
280
+ return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.getFieldsValue();
280
281
  case 5:
281
282
  res2 = _context8.sent;
282
283
  if (!request) {
@@ -368,8 +369,8 @@ function PlusTable(props, ref) {
368
369
  key: "2",
369
370
  type: "default",
370
371
  onClick: function onClick() {
371
- var _drawFormRef$current5, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
372
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.resetFields();
372
+ var _drawFormRef$current6, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
373
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.resetFields();
373
374
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$re = _actionRef$current.reset) === null || _actionRef$current$re === void 0 ? void 0 : _actionRef$current$re.call(_actionRef$current);
374
375
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$r = _actionRef$current2.reload) === null || _actionRef$current2$r === void 0 ? void 0 : _actionRef$current2$r.call(_actionRef$current2);
375
376
  },
@@ -381,7 +382,7 @@ function PlusTable(props, ref) {
381
382
  whiteSpace: 'nowrap'
382
383
  },
383
384
  onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
384
- var _drawFormRef$current6, _searchRef$current6;
385
+ var _drawFormRef$current7, _searchRef$current6;
385
386
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
386
387
  while (1) switch (_context9.prev = _context9.next) {
387
388
  case 0:
@@ -389,7 +390,7 @@ function PlusTable(props, ref) {
389
390
  return setSearchDrawer(!searchDrawer);
390
391
  case 2:
391
392
  // 没法实时监听数据所以这里要带过来
392
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.setFieldsValue(searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current6 = searchRef.current) === null || _searchRef$current6 === void 0 ? void 0 : _searchRef$current6.getFieldsValue());
393
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.setFieldsValue(searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current6 = searchRef.current) === null || _searchRef$current6 === void 0 ? void 0 : _searchRef$current6.getFieldsValue());
393
394
  case 3:
394
395
  case "end":
395
396
  return _context9.stop();
@@ -413,11 +414,11 @@ function PlusTable(props, ref) {
413
414
  fieldProps: _objectSpread({
414
415
  onChange: function onChange(e) {
415
416
  if (e) {
416
- var _drawFormRef$current7;
417
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.setFieldsValue(_defineProperty({}, item.dataIndex, e.target ? e.target.value : e));
417
+ var _drawFormRef$current8;
418
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current8 = drawFormRef.current) === null || _drawFormRef$current8 === void 0 ? void 0 : _drawFormRef$current8.setFieldsValue(_defineProperty({}, item.dataIndex, e.target ? e.target.value : e));
418
419
  } else {
419
- var _drawFormRef$current9;
420
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current9 = drawFormRef.current) === null || _drawFormRef$current9 === void 0 ? void 0 : _drawFormRef$current9.resetFields([item.dataIndex]);
420
+ var _drawFormRef$current10;
421
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields([item.dataIndex]);
421
422
  }
422
423
  }
423
424
  }, item.fieldProps)
@@ -494,8 +495,8 @@ function PlusTable(props, ref) {
494
495
  }, "\u67E5\u8BE2"), /*#__PURE__*/_react.default.createElement(_antd.Button, {
495
496
  type: "default",
496
497
  onClick: function onClick() {
497
- var _drawFormRef$current10, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
498
- drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields();
498
+ var _drawFormRef$current11, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
499
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current11 = drawFormRef.current) === null || _drawFormRef$current11 === void 0 ? void 0 : _drawFormRef$current11.resetFields();
499
500
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$r = _actionRef$current3.reset) === null || _actionRef$current3$r === void 0 ? void 0 : _actionRef$current3$r.call(_actionRef$current3);
500
501
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$r = _actionRef$current4.reload) === null || _actionRef$current4$r === void 0 ? void 0 : _actionRef$current4$r.call(_actionRef$current4);
501
502
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-table",
3
- "version": "1.2.26",
3
+ "version": "1.2.28-beta.0",
4
4
  "description": "@fle-ui/plus-table",
5
5
  "keywords": [
6
6
  "fle-ui",
@@ -46,5 +46,5 @@
46
46
  "@ant-design/pro-components": "^2.7.0",
47
47
  "dayjs": "^1.11.10"
48
48
  },
49
- "gitHead": "3848aa215ac9e7c3ba142b0be00e4a49e6ffc020"
49
+ "gitHead": "902b47509c9d8063678bfbdf0942163d569cee75"
50
50
  }
package/es/index.less DELETED
@@ -1,107 +0,0 @@
1
- @primar-color: #2c68ff;
2
-
3
- .choose-site-goods-modal {
4
- .ww-search {
5
- background-color: #fafafa;
6
- padding: 20px;
7
- .ww-search-flex {
8
- width: 100%;
9
- display: flex;
10
- align-items: center;
11
- overflow: hidden;
12
- .ww-search-range-input {
13
- flex: 1;
14
- display: flex;
15
- align-items: center;
16
- }
17
- }
18
- }
19
- .main-search {
20
- display: flex;
21
- justify-content: center;
22
- margin-bottom: 16px;
23
- position: relative;
24
- .choose-more-btn {
25
- position: absolute;
26
- right: 0px;
27
- top: 0px;
28
- }
29
- }
30
- .search-2 {
31
- .sort-item {
32
- display: flex;
33
- align-items: center;
34
- .sort-item-label {
35
- font-size: 12px;
36
- }
37
- .sort-item-icon {
38
- font-size: 10px;
39
- margin-left: 4px;
40
- }
41
- }
42
- .ant-radio-button-wrapper {
43
- padding: 0 10px !important;
44
- }
45
- }
46
- .table-goods-wrap {
47
- display: flex;
48
-
49
- .table-goods-img-wrap {
50
- width: 60px;
51
- height: 60px;
52
- background: #ffffff;
53
- border-radius: 1px;
54
- border: 1px solid #cccccc;
55
- box-sizing: border-box;
56
- display: flex;
57
- align-items: center;
58
- overflow: hidden;
59
- .pro-image {
60
- width: 100%;
61
- height: 100%;
62
- object-fit: cover;
63
- .ant-image {
64
- width: 100%;
65
- height: 100%;
66
- }
67
- }
68
- }
69
-
70
- .table-goods-content {
71
- margin-left: 10px;
72
- flex: 1;
73
-
74
- .table-goods-content-title {
75
- height: 34px;
76
- font-size: 12px;
77
- font-weight: 500;
78
- color: #666666;
79
- line-height: 17px;
80
- text-overflow: -o-ellipsis-lastline;
81
- overflow: hidden;
82
- text-overflow: ellipsis;
83
- display: -webkit-box;
84
- -webkit-line-clamp: 2;
85
- line-clamp: 2;
86
- -webkit-box-orient: vertical;
87
- text-align: left;
88
- // color: @primary-color;
89
- }
90
-
91
- .table-goods-content-sub-title {
92
- text-align: left;
93
- height: 17px;
94
- font-size: 12px;
95
- font-weight: 400;
96
- color: #666666;
97
- overflow: hidden;
98
- text-overflow: ellipsis;
99
- white-space: nowrap;
100
- margin-top: 9px;
101
- }
102
- }
103
- }
104
- .ml-3 {
105
- margin-left: 3px;
106
- }
107
- }
package/lib/index.less DELETED
@@ -1,107 +0,0 @@
1
- @primar-color: #2c68ff;
2
-
3
- .choose-site-goods-modal {
4
- .ww-search {
5
- background-color: #fafafa;
6
- padding: 20px;
7
- .ww-search-flex {
8
- width: 100%;
9
- display: flex;
10
- align-items: center;
11
- overflow: hidden;
12
- .ww-search-range-input {
13
- flex: 1;
14
- display: flex;
15
- align-items: center;
16
- }
17
- }
18
- }
19
- .main-search {
20
- display: flex;
21
- justify-content: center;
22
- margin-bottom: 16px;
23
- position: relative;
24
- .choose-more-btn {
25
- position: absolute;
26
- right: 0px;
27
- top: 0px;
28
- }
29
- }
30
- .search-2 {
31
- .sort-item {
32
- display: flex;
33
- align-items: center;
34
- .sort-item-label {
35
- font-size: 12px;
36
- }
37
- .sort-item-icon {
38
- font-size: 10px;
39
- margin-left: 4px;
40
- }
41
- }
42
- .ant-radio-button-wrapper {
43
- padding: 0 10px !important;
44
- }
45
- }
46
- .table-goods-wrap {
47
- display: flex;
48
-
49
- .table-goods-img-wrap {
50
- width: 60px;
51
- height: 60px;
52
- background: #ffffff;
53
- border-radius: 1px;
54
- border: 1px solid #cccccc;
55
- box-sizing: border-box;
56
- display: flex;
57
- align-items: center;
58
- overflow: hidden;
59
- .pro-image {
60
- width: 100%;
61
- height: 100%;
62
- object-fit: cover;
63
- .ant-image {
64
- width: 100%;
65
- height: 100%;
66
- }
67
- }
68
- }
69
-
70
- .table-goods-content {
71
- margin-left: 10px;
72
- flex: 1;
73
-
74
- .table-goods-content-title {
75
- height: 34px;
76
- font-size: 12px;
77
- font-weight: 500;
78
- color: #666666;
79
- line-height: 17px;
80
- text-overflow: -o-ellipsis-lastline;
81
- overflow: hidden;
82
- text-overflow: ellipsis;
83
- display: -webkit-box;
84
- -webkit-line-clamp: 2;
85
- line-clamp: 2;
86
- -webkit-box-orient: vertical;
87
- text-align: left;
88
- // color: @primary-color;
89
- }
90
-
91
- .table-goods-content-sub-title {
92
- text-align: left;
93
- height: 17px;
94
- font-size: 12px;
95
- font-weight: 400;
96
- color: #666666;
97
- overflow: hidden;
98
- text-overflow: ellipsis;
99
- white-space: nowrap;
100
- margin-top: 9px;
101
- }
102
- }
103
- }
104
- .ml-3 {
105
- margin-left: 3px;
106
- }
107
- }