cloud-b2b 1.1.2 → 1.1.3

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.
@@ -334,11 +334,16 @@ var captcha = function captcha(props) {
334
334
  };
335
335
 
336
336
  var uploadImg = function uploadImg(props) {
337
- var uploadProps = _objectSpread(_objectSpread({}, props), {}, {
337
+ var uploadProps = {
338
338
  fileList: props.value || [],
339
+ required: props.require,
340
+ multiple: false,
341
+ limitNumber: props.limitNumber || 10,
342
+ onFileChange: props.onFileChange,
343
+ needText: props.needText,
344
+ remark: props.remark,
339
345
  readonly: props.readonly || false
340
- });
341
-
346
+ };
342
347
  return /*#__PURE__*/React.createElement(SuperUpload, uploadProps);
343
348
  }; // 支持的控件类型
344
349
 
@@ -45,7 +45,7 @@ import variables from '../variables';
45
45
  var FormItem = _Form.Item;
46
46
  var defaultSize = 'small';
47
47
  var defaultColNum = 4;
48
- var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'area', 'uploadImg'];
48
+ var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'area', 'uploadImg', 'cascader'];
49
49
  /**
50
50
  * key:[必须],用于唯一标识该Form下的一个表单元素
51
51
  * title:[必须],表单元素的标签
@@ -256,6 +256,10 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
256
256
  return colNum * 250;
257
257
  });
258
258
 
259
+ _defineProperty(_assertThisInitialized(_this2), "getContainer", function () {
260
+ return _this2.props.getContainer;
261
+ });
262
+
259
263
  _defineProperty(_assertThisInitialized(_this2), "getControls", function () {
260
264
  var _this2$props2 = _this2.props,
261
265
  hideControls = _this2$props2.hideControls,
@@ -515,6 +519,17 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
515
519
  return /*#__PURE__*/React.createElement(Control, props);
516
520
  });
517
521
 
522
+ _defineProperty(_assertThisInitialized(_this2), "toCascader", function (props, control) {
523
+ var container = _this2.getContainer();
524
+
525
+ container && (props.getPopupContainer = container);
526
+ props.options = control.options || [];
527
+ props.onSearch = _this2.createSearchEvent(control);
528
+ props.placeholder = props.placeholder || '';
529
+ props.loadData = _this2.createSearchEvent(control);
530
+ return /*#__PURE__*/React.createElement(Control, props);
531
+ });
532
+
518
533
  _defineProperty(_assertThisInitialized(_this2), "toControl", function (props, control) {
519
534
  switch (props.type) {
520
535
  case 'readonly':
@@ -564,6 +579,9 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
564
579
  case 'uploadImg':
565
580
  return _this2.uploadImg(props, control);
566
581
 
582
+ case 'cascader':
583
+ return _this2.toCascader(props, control);
584
+
567
585
  default:
568
586
  return 'type error';
569
587
  }
@@ -30,7 +30,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
30
30
 
31
31
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32
32
 
33
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context22, _context23; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context22 = ownKeys(Object(source), !0)).call(_context22, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context23 = ownKeys(Object(source))).call(_context23, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
33
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context20, _context21; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context20 = ownKeys(Object(source), !0)).call(_context20, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context21 = ownKeys(Object(source))).call(_context21, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
34
34
 
35
35
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
36
36
 
@@ -45,7 +45,7 @@ import variables from '../variables';
45
45
  var FormItem = _Form.Item;
46
46
  var defaultSize = 'small';
47
47
  var defaultColNum = 4;
48
- var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'captcha', 'area', 'uploadImg'];
48
+ var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'captcha', 'area', 'uploadImg', 'cascader'];
49
49
  /**
50
50
  * key:[必须],用于唯一标识该Form下的一个表单元素
51
51
  * title:[必须],表单元素的标签
@@ -67,9 +67,7 @@ var ControlType = {
67
67
  onCheckItem: PropTypes.any,
68
68
  showAdd: PropTypes.any,
69
69
  rule: PropTypes.object,
70
- props: PropTypes.object,
71
- buildSuperUploadProps: PropTypes.func //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
72
-
70
+ props: PropTypes.object
73
71
  };
74
72
 
75
73
  var Controlled = /*#__PURE__*/function (_React$Component) {
@@ -269,6 +267,10 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
269
267
  return colNum * 1200;
270
268
  });
271
269
 
270
+ _defineProperty(_assertThisInitialized(_this2), "getContainer", function () {
271
+ return _this2.props.getContainer;
272
+ });
273
+
272
274
  _defineProperty(_assertThisInitialized(_this2), "getControls", function () {
273
275
  var _this2$props2 = _this2.props,
274
276
  hideControls = _this2$props2.hideControls,
@@ -367,21 +369,13 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
367
369
  onBlur: _bindInstanceProperty(_context14 = _this2.onExitValid).call(_context14, _assertThisInitialized(_this2), key),
368
370
  onAreaSearch: _this2.props.onAreaSearch
369
371
  });
370
- } else if (type === 'uploadImg') {
372
+ } else {
371
373
  var _context15, _context16;
372
374
 
373
- var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
374
- return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
375
+ return _objectSpread(_objectSpread({}, props), {}, {
375
376
  onChange: _bindInstanceProperty(_context15 = _this2.onBlur).call(_context15, _assertThisInitialized(_this2), key),
376
377
  onBlur: _bindInstanceProperty(_context16 = _this2.onExitValid).call(_context16, _assertThisInitialized(_this2), key)
377
378
  });
378
- } else {
379
- var _context17, _context18;
380
-
381
- return _objectSpread(_objectSpread({}, props), {}, {
382
- onChange: _bindInstanceProperty(_context17 = _this2.onBlur).call(_context17, _assertThisInitialized(_this2), key),
383
- onBlur: _bindInstanceProperty(_context18 = _this2.onExitValid).call(_context18, _assertThisInitialized(_this2), key)
384
- });
385
379
  }
386
380
  });
387
381
 
@@ -538,17 +532,28 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
538
532
  });
539
533
 
540
534
  _defineProperty(_assertThisInitialized(_this2), "uploadImg", function (props, control) {
541
- var _context19;
535
+ var _context17;
542
536
 
543
537
  var readonly = _this2.props.readonly;
544
538
  props.required = control.required || false;
545
- props.onFileChange = _bindInstanceProperty(_context19 = _this2.onFileChange).call(_context19, _assertThisInitialized(_this2), control);
539
+ props.onFileChange = _bindInstanceProperty(_context17 = _this2.onFileChange).call(_context17, _assertThisInitialized(_this2), control);
546
540
  props.readonly = readonly === true || _Array$isArray(readonly) && _someInstanceProperty(readonly).call(readonly, function (readonlyKey) {
547
541
  return readonlyKey === control.key;
548
542
  }) ? true : false;
549
543
  return /*#__PURE__*/React.createElement(Control, props);
550
544
  });
551
545
 
546
+ _defineProperty(_assertThisInitialized(_this2), "toCascader", function (props, control) {
547
+ var container = _this2.getContainer();
548
+
549
+ container && (props.getPopupContainer = container);
550
+ props.options = control.options || [];
551
+ props.onSearch = _this2.createSearchEvent(control);
552
+ props.placeholder = props.placeholder || '';
553
+ props.loadData = _this2.createSearchEvent(control);
554
+ return /*#__PURE__*/React.createElement(Control, props);
555
+ });
556
+
552
557
  _defineProperty(_assertThisInitialized(_this2), "toControl", function (props, control) {
553
558
  switch (props.type) {
554
559
  case 'readonly':
@@ -601,6 +606,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
601
606
  case 'uploadImg':
602
607
  return _this2.uploadImg(props, control);
603
608
 
609
+ case 'cascader':
610
+ return _this2.toCascader(props, control);
611
+
604
612
  default:
605
613
  return 'type error';
606
614
  }
@@ -612,9 +620,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
612
620
  key = _ref11.key;
613
621
 
614
622
  if (showAdd && type !== 'readonly') {
615
- var _context20;
623
+ var _context18;
616
624
 
617
- var onClick = _bindInstanceProperty(_context20 = _this2.onAdd).call(_context20, _assertThisInitialized(_this2), key, title);
625
+ var onClick = _bindInstanceProperty(_context18 = _this2.onAdd).call(_context18, _assertThisInitialized(_this2), key, title);
618
626
 
619
627
  return /*#__PURE__*/React.createElement("span", null, title, /*#__PURE__*/React.createElement(_Icon, {
620
628
  role: "add",
@@ -676,7 +684,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
676
684
  });
677
685
 
678
686
  _defineProperty(_assertThisInitialized(_this2), "toCols", function () {
679
- var _context21;
687
+ var _context19;
680
688
 
681
689
  var _this2$props4 = _this2.props,
682
690
  _this2$props4$colNum = _this2$props4.colNum,
@@ -688,7 +696,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
688
696
  }
689
697
 
690
698
  var span = 24 / colNum;
691
- return _mapInstanceProperty(_context21 = _this2.getControls()).call(_context21, function (control) {
699
+ return _mapInstanceProperty(_context19 = _this2.getControls()).call(_context19, function (control) {
692
700
  if (allFullFather) {
693
701
  control.allFullFather = allFullFather;
694
702
  }
@@ -1,30 +1,30 @@
1
- @import '../variables.less';
2
-
3
- .@{cloudlink-prefix}-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
- .date{
14
- background: white;
15
- padding: @padding-vertical @padding-horizontal;
16
- border-radius: @border-radius-base;
17
- border: 1px solid #d9d9d9;
18
-
19
- > :first-child > div {
20
- display: inline-block;
21
- }
22
-
23
- > :last-child {
24
- text-align: right;
25
- margin-top: 5px;
26
- }
27
- }
28
- }
29
-
30
-
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-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
+ .date{
14
+ background: white;
15
+ padding: @padding-vertical @padding-horizontal;
16
+ border-radius: @border-radius-base;
17
+ border: 1px solid #d9d9d9;
18
+
19
+ > :first-child > div {
20
+ display: inline-block;
21
+ }
22
+
23
+ > :last-child {
24
+ text-align: right;
25
+ margin-top: 5px;
26
+ }
27
+ }
28
+ }
29
+
30
+
@@ -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
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "SuperTable2",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./SuperTable2.js"
6
- }
1
+ {
2
+ "name": "SuperTable2",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./SuperTable2.js"
6
+ }
@@ -4,6 +4,9 @@ import _Button from "antd/es/button";
4
4
  import _Icon from "antd/es/icon";
5
5
  import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
6
6
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
7
+
8
+ var _this = this;
9
+
7
10
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
8
11
 
9
12
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -116,9 +119,6 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
116
119
  while (1) {
117
120
  switch (_context2.prev = _context2.next) {
118
121
  case 0:
119
- props.onRemove && props.onRemove(fileRemove, fileList, fileDeleteList, onFileChange);
120
-
121
- case 1:
122
122
  case "end":
123
123
  return _context2.stop();
124
124
  }
@@ -132,7 +132,7 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
132
132
  }();
133
133
 
134
134
  return {
135
- action: props.action || '/api/proxy/zuul/archiver-service/file/upload/document',
135
+ action: _this.props.action || '/api/proxy/zuul/ict-service/file/upload/document',
136
136
  fileList: fileList,
137
137
  listType: listType,
138
138
  multiple: multiple,
@@ -170,11 +170,7 @@ function UploadButton(_ref3) {
170
170
  _ref3$limitNumber = _ref3.limitNumber,
171
171
  limitNumber = _ref3$limitNumber === void 0 ? 10 : _ref3$limitNumber,
172
172
  _ref3$listType = _ref3.listType,
173
- listType = _ref3$listType === void 0 ? 'picture-card' : _ref3$listType,
174
- _ref3$needText = _ref3.needText,
175
- needText = _ref3$needText === void 0 ? false : _ref3$needText,
176
- _ref3$remark = _ref3.remark,
177
- remark = _ref3$remark === void 0 ? '大小>=5M' : _ref3$remark;
173
+ listType = _ref3$listType === void 0 ? 'picture-card' : _ref3$listType;
178
174
  var canUpload = fileList.length < limitNumber;
179
175
  return canUpload ? listType === 'picture-card' ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Icon, {
180
176
  type: "plus"
@@ -196,6 +192,8 @@ function UploadButton(_ref3) {
196
192
  }
197
193
 
198
194
  function SuperUpload(props) {
195
+ var _this2 = this;
196
+
199
197
  var _useState = useState(true),
200
198
  _useState2 = _slicedToArray(_useState, 2),
201
199
  loading = _useState2[0],
@@ -206,6 +204,7 @@ function SuperUpload(props) {
206
204
  fileList = _useState4[0],
207
205
  setFileList = _useState4[1];
208
206
 
207
+ var getFileList = this.props.getFileList;
209
208
  useEffect(function () {
210
209
  function fetchImgData() {
211
210
  return _fetchImgData.apply(this, arguments);
@@ -218,28 +217,15 @@ function SuperUpload(props) {
218
217
  while (1) {
219
218
  switch (_context3.prev = _context3.next) {
220
219
  case 0:
221
- if (!props.getFileList) {
222
- _context3.next = 6;
223
- break;
224
- }
225
-
226
- _context3.next = 3;
227
- return props.getFileList(props.fileList);
228
-
229
- case 3:
230
- _context3.t0 = _context3.sent;
231
- _context3.next = 7;
232
- break;
233
-
234
- case 6:
235
- _context3.t0 = [];
220
+ _context3.next = 2;
221
+ return getFileList(props.fileList);
236
222
 
237
- case 7:
238
- initFileList = _context3.t0;
223
+ case 2:
224
+ initFileList = _context3.sent;
239
225
  setFileList(initFileList);
240
226
  setLoading(false);
241
227
 
242
- case 10:
228
+ case 5:
243
229
  case "end":
244
230
  return _context3.stop();
245
231
  }
@@ -254,13 +240,15 @@ function SuperUpload(props) {
254
240
 
255
241
  var onPreview = /*#__PURE__*/function () {
256
242
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(file) {
243
+ var onPreview;
257
244
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
258
245
  while (1) {
259
246
  switch (_context4.prev = _context4.next) {
260
247
  case 0:
261
- props.onPreview && props.onPreview(file, fileList);
248
+ onPreview = _this2.props.onPreview;
249
+ onPreview && onPreview(file);
262
250
 
263
- case 1:
251
+ case 2:
264
252
  case "end":
265
253
  return _context4.stop();
266
254
  }
@@ -288,7 +276,7 @@ function SuperUpload(props) {
288
276
  required: props.required
289
277
  }) : null, /*#__PURE__*/React.createElement(_Upload, uploadProps, readonly ? null : /*#__PURE__*/React.createElement(UploadButton, _objectSpread(_objectSpread({}, props), {}, {
290
278
  fileList: fileList
291
- }))), props.needText ? /*#__PURE__*/React.createElement("span", null, props.remark) : null);
279
+ }))));
292
280
  }
293
281
 
294
282
  export default SuperUpload;
@@ -1,35 +1,35 @@
1
- @import '../variables';
2
-
3
- .@{cloudlink-prefix}-title {
4
- > *:first-child {
5
- display: inline-block;
6
- color: @brand-primary;
7
- line-height: 1.2;
8
-
9
- &[data-border='true'] {
10
- padding: 0 5px;
11
- border-left: @brand-primary solid 3px;
12
- }
13
-
14
- &[data-fold='true'] {
15
- cursor: pointer;
16
- margin: 8px 0;
17
- }
18
-
19
- &[data-required='true'] {
20
- &::after {
21
- display: inline-block;
22
- margin-left: 4px;
23
- color: #f5222d;
24
- font-size: 12px;
25
- font-family: SimSun, sans-serif;
26
- line-height: 1;
27
- content: '*';
28
- }
29
- }
30
- }
31
-
32
- > [role = 'toolbar'] {
33
- display: inline-block;
34
- }
35
- }
1
+ @import '../variables';
2
+
3
+ .@{cloudlink-prefix}-title {
4
+ > *:first-child {
5
+ display: inline-block;
6
+ color: @brand-primary;
7
+ line-height: 1.2;
8
+
9
+ &[data-border='true'] {
10
+ padding: 0 5px;
11
+ border-left: @brand-primary solid 3px;
12
+ }
13
+
14
+ &[data-fold='true'] {
15
+ cursor: pointer;
16
+ margin: 8px 0;
17
+ }
18
+
19
+ &[data-required='true'] {
20
+ &::after {
21
+ display: inline-block;
22
+ margin-left: 4px;
23
+ color: #f5222d;
24
+ font-size: 12px;
25
+ font-family: SimSun, sans-serif;
26
+ line-height: 1;
27
+ content: '*';
28
+ }
29
+ }
30
+ }
31
+
32
+ > [role = 'toolbar'] {
33
+ display: inline-block;
34
+ }
35
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "Title",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./Title.js"
6
- }
1
+ {
2
+ "name": "Title",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./Title.js"
6
+ }
package/es/adjust.less CHANGED
@@ -1,89 +1,89 @@
1
-
2
- .ant-table-small {
3
- .ant-table-thead {
4
- background-color: @table-header-bg;
5
-
6
- > tr > th {
7
- padding: 12px 8px 11px !important;
8
- }
9
- }
10
-
11
- .ant-table-tbody > tr > td {
12
- padding: 8px 8px 7px !important;
13
- }
14
-
15
- .ant-table-tbody > tr.ant-table-row-selected td {
16
- background-color: @primary-1 !important;
17
- }
18
-
19
- .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
20
- background-color: @table-header-bg !important;
21
- }
22
-
23
- .ant-table-selection-column {
24
- min-width: 62px;
25
- }
26
-
27
- table {
28
- border-collapse: separate;
29
- border-spacing: 0;
30
- }
31
- }
32
-
33
- .ant-modal {
34
- top: 50px;
35
- padding-bottom: 0;
36
- }
37
-
38
- .ant-form-item {
39
- margin-bottom: 6px;
40
- }
41
-
42
- .ant-select-sm .ant-select-selection--single {
43
- height: @input-height-sm !important;
44
- overflow: hidden;
45
- }
46
-
47
- .ant-form-vertical .ant-form-item {
48
- padding-bottom: 0;
49
- }
50
-
51
- .ant-form-item-control {
52
- line-height: @input-height-sm;
53
-
54
- > .ant-form-explain-holder[aria-hidden='true'] {
55
- display: none;
56
- }
57
- }
58
-
59
- .ant-form-vertical .ant-form-item-label {
60
- padding: 0;
61
- line-height: 1.2;
62
- }
63
-
64
- .ant-input-lg {
65
- font-size: 12px;
66
- }
67
-
68
- .ant-btn-lg {
69
- height: @input-height-lg;
70
- }
71
-
72
- .ant-menu-inline .ant-menu-item {
73
- margin-top: 0;
74
- margin-bottom: 0 !important;
75
- }
76
-
77
- .ant-modal-header {
78
- padding: 13px 16px;
79
- }
80
-
81
- .ant-modal-body {
82
- padding: 16px;
83
- }
84
-
85
- .ant-btn-primary:focus {
86
- background-color: white;
87
- color: @primary-color;
88
- text-shadow: none;
89
- }
1
+
2
+ .ant-table-small {
3
+ .ant-table-thead {
4
+ background-color: @table-header-bg;
5
+
6
+ > tr > th {
7
+ padding: 12px 8px 11px !important;
8
+ }
9
+ }
10
+
11
+ .ant-table-tbody > tr > td {
12
+ padding: 8px 8px 7px !important;
13
+ }
14
+
15
+ .ant-table-tbody > tr.ant-table-row-selected td {
16
+ background-color: @primary-1 !important;
17
+ }
18
+
19
+ .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
20
+ background-color: @table-header-bg !important;
21
+ }
22
+
23
+ .ant-table-selection-column {
24
+ min-width: 62px;
25
+ }
26
+
27
+ table {
28
+ border-collapse: separate;
29
+ border-spacing: 0;
30
+ }
31
+ }
32
+
33
+ .ant-modal {
34
+ top: 50px;
35
+ padding-bottom: 0;
36
+ }
37
+
38
+ .ant-form-item {
39
+ margin-bottom: 6px;
40
+ }
41
+
42
+ .ant-select-sm .ant-select-selection--single {
43
+ height: @input-height-sm !important;
44
+ overflow: hidden;
45
+ }
46
+
47
+ .ant-form-vertical .ant-form-item {
48
+ padding-bottom: 0;
49
+ }
50
+
51
+ .ant-form-item-control {
52
+ line-height: @input-height-sm;
53
+
54
+ > .ant-form-explain-holder[aria-hidden='true'] {
55
+ display: none;
56
+ }
57
+ }
58
+
59
+ .ant-form-vertical .ant-form-item-label {
60
+ padding: 0;
61
+ line-height: 1.2;
62
+ }
63
+
64
+ .ant-input-lg {
65
+ font-size: 12px;
66
+ }
67
+
68
+ .ant-btn-lg {
69
+ height: @input-height-lg;
70
+ }
71
+
72
+ .ant-menu-inline .ant-menu-item {
73
+ margin-top: 0;
74
+ margin-bottom: 0 !important;
75
+ }
76
+
77
+ .ant-modal-header {
78
+ padding: 13px 16px;
79
+ }
80
+
81
+ .ant-modal-body {
82
+ padding: 16px;
83
+ }
84
+
85
+ .ant-btn-primary:focus {
86
+ background-color: white;
87
+ color: @primary-color;
88
+ text-shadow: none;
89
+ }