@fle-ui/plus-table 1.2.27 → 1.2.28-beta.1

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,8 +263,8 @@ 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 res1, res2, res;
266
+ var _searchRef$current5, _drawFormRef$current5;
267
+ var res1, res2, key, res;
267
268
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
268
269
  while (1) switch (_context8.prev = _context8.next) {
269
270
  case 0:
@@ -272,27 +273,35 @@ 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;
279
+ for (key in res2) {
280
+ if (Object.hasOwn(res2, key)) {
281
+ if (!res2[key]) {
282
+ res1[key] = undefined;
283
+ params[key] = undefined;
284
+ }
285
+ }
286
+ }
278
287
  if (!request) {
279
- _context8.next = 12;
288
+ _context8.next = 13;
280
289
  break;
281
290
  }
282
- _context8.next = 9;
291
+ _context8.next = 10;
283
292
  return request(_objectSpread(_objectSpread(_objectSpread({}, params), dealFetchParams(_objectSpread(_objectSpread(_objectSpread({}, res1), res2), params))), {}, {
284
293
  showFull: showFull
285
294
  }), sort, filter);
286
- case 9:
295
+ case 10:
287
296
  _context8.t0 = _context8.sent;
288
- _context8.next = 13;
297
+ _context8.next = 14;
289
298
  break;
290
- case 12:
291
- _context8.t0 = {};
292
299
  case 13:
300
+ _context8.t0 = {};
301
+ case 14:
293
302
  res = _context8.t0;
294
303
  return _context8.abrupt("return", res);
295
- case 15:
304
+ case 16:
296
305
  case "end":
297
306
  return _context8.stop();
298
307
  }
@@ -364,8 +373,8 @@ function PlusTable(props, ref) {
364
373
  key: "2",
365
374
  type: "default",
366
375
  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();
376
+ var _drawFormRef$current6, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
377
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.resetFields();
369
378
  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
379
  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
380
  },
@@ -377,7 +386,7 @@ function PlusTable(props, ref) {
377
386
  whiteSpace: 'nowrap'
378
387
  },
379
388
  onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
380
- var _drawFormRef$current6, _searchRef$current6;
389
+ var _drawFormRef$current7, _searchRef$current6;
381
390
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
382
391
  while (1) switch (_context9.prev = _context9.next) {
383
392
  case 0:
@@ -385,7 +394,7 @@ function PlusTable(props, ref) {
385
394
  return setSearchDrawer(!searchDrawer);
386
395
  case 2:
387
396
  // 没法实时监听数据所以这里要带过来
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());
397
+ 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
398
  case 3:
390
399
  case "end":
391
400
  return _context9.stop();
@@ -409,11 +418,11 @@ function PlusTable(props, ref) {
409
418
  fieldProps: _objectSpread({
410
419
  onChange: function onChange(e) {
411
420
  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));
421
+ var _drawFormRef$current8;
422
+ 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
423
  } 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]);
424
+ var _drawFormRef$current10;
425
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields([item.dataIndex]);
417
426
  }
418
427
  }
419
428
  }, item.fieldProps)
@@ -490,8 +499,8 @@ function PlusTable(props, ref) {
490
499
  }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
491
500
  type: "default",
492
501
  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();
502
+ var _drawFormRef$current11, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
503
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current11 = drawFormRef.current) === null || _drawFormRef$current11 === void 0 ? void 0 : _drawFormRef$current11.resetFields();
495
504
  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
505
  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
506
  },
@@ -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,8 +267,8 @@ 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 res1, res2, res;
270
+ var _searchRef$current5, _drawFormRef$current5;
271
+ var res1, res2, key, res;
271
272
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
272
273
  while (1) switch (_context8.prev = _context8.next) {
273
274
  case 0:
@@ -276,27 +277,35 @@ 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;
283
+ for (key in res2) {
284
+ if (Object.hasOwn(res2, key)) {
285
+ if (!res2[key]) {
286
+ res1[key] = undefined;
287
+ params[key] = undefined;
288
+ }
289
+ }
290
+ }
282
291
  if (!request) {
283
- _context8.next = 12;
292
+ _context8.next = 13;
284
293
  break;
285
294
  }
286
- _context8.next = 9;
295
+ _context8.next = 10;
287
296
  return request(_objectSpread(_objectSpread(_objectSpread({}, params), dealFetchParams(_objectSpread(_objectSpread(_objectSpread({}, res1), res2), params))), {}, {
288
297
  showFull: showFull
289
298
  }), sort, filter);
290
- case 9:
299
+ case 10:
291
300
  _context8.t0 = _context8.sent;
292
- _context8.next = 13;
301
+ _context8.next = 14;
293
302
  break;
294
- case 12:
295
- _context8.t0 = {};
296
303
  case 13:
304
+ _context8.t0 = {};
305
+ case 14:
297
306
  res = _context8.t0;
298
307
  return _context8.abrupt("return", res);
299
- case 15:
308
+ case 16:
300
309
  case "end":
301
310
  return _context8.stop();
302
311
  }
@@ -368,8 +377,8 @@ function PlusTable(props, ref) {
368
377
  key: "2",
369
378
  type: "default",
370
379
  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();
380
+ var _drawFormRef$current6, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
381
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.resetFields();
373
382
  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
383
  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
384
  },
@@ -381,7 +390,7 @@ function PlusTable(props, ref) {
381
390
  whiteSpace: 'nowrap'
382
391
  },
383
392
  onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
384
- var _drawFormRef$current6, _searchRef$current6;
393
+ var _drawFormRef$current7, _searchRef$current6;
385
394
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
386
395
  while (1) switch (_context9.prev = _context9.next) {
387
396
  case 0:
@@ -389,7 +398,7 @@ function PlusTable(props, ref) {
389
398
  return setSearchDrawer(!searchDrawer);
390
399
  case 2:
391
400
  // 没法实时监听数据所以这里要带过来
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());
401
+ 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
402
  case 3:
394
403
  case "end":
395
404
  return _context9.stop();
@@ -413,11 +422,11 @@ function PlusTable(props, ref) {
413
422
  fieldProps: _objectSpread({
414
423
  onChange: function onChange(e) {
415
424
  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));
425
+ var _drawFormRef$current8;
426
+ 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
427
  } 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]);
428
+ var _drawFormRef$current10;
429
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields([item.dataIndex]);
421
430
  }
422
431
  }
423
432
  }, item.fieldProps)
@@ -494,8 +503,8 @@ function PlusTable(props, ref) {
494
503
  }, "\u67E5\u8BE2"), /*#__PURE__*/_react.default.createElement(_antd.Button, {
495
504
  type: "default",
496
505
  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();
506
+ var _drawFormRef$current11, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
507
+ drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current11 = drawFormRef.current) === null || _drawFormRef$current11 === void 0 ? void 0 : _drawFormRef$current11.resetFields();
499
508
  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
509
  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
510
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-table",
3
- "version": "1.2.27",
3
+ "version": "1.2.28-beta.1",
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": "e56b10c76831c3d57c62576452c07ae1cee01a8a"
49
+ "gitHead": "72f910ee02d932c3c51b7d4c1d9e7fed53bea777"
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
- }