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.
@@ -383,11 +383,16 @@ var captcha = function captcha(props) {
383
383
  };
384
384
 
385
385
  var uploadImg = function uploadImg(props) {
386
- var uploadProps = _objectSpread(_objectSpread({}, props), {}, {
386
+ var uploadProps = {
387
387
  fileList: props.value || [],
388
+ required: props.require,
389
+ multiple: false,
390
+ limitNumber: props.limitNumber || 10,
391
+ onFileChange: props.onFileChange,
392
+ needText: props.needText,
393
+ remark: props.remark,
388
394
  readonly: props.readonly || false
389
- });
390
-
395
+ };
391
396
  return /*#__PURE__*/_react["default"].createElement(_SuperUpload["default"], uploadProps);
392
397
  }; // 支持的控件类型
393
398
 
@@ -99,7 +99,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
99
99
  var FormItem = _form["default"].Item;
100
100
  var defaultSize = 'small';
101
101
  var defaultColNum = 4;
102
- var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'area', 'uploadImg'];
102
+ var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'area', 'uploadImg', 'cascader'];
103
103
  /**
104
104
  * key:[必须],用于唯一标识该Form下的一个表单元素
105
105
  * title:[必须],表单元素的标签
@@ -297,6 +297,9 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
297
297
  colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
298
298
  return colNum * 250;
299
299
  });
300
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getContainer", function () {
301
+ return _this2.props.getContainer;
302
+ });
300
303
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControls", function () {
301
304
  var _this2$props2 = _this2.props,
302
305
  hideControls = _this2$props2.hideControls,
@@ -535,6 +538,16 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
535
538
  }) ? true : false;
536
539
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
537
540
  });
541
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCascader", function (props, control) {
542
+ var container = _this2.getContainer();
543
+
544
+ container && (props.getPopupContainer = container);
545
+ props.options = control.options || [];
546
+ props.onSearch = _this2.createSearchEvent(control);
547
+ props.placeholder = props.placeholder || '';
548
+ props.loadData = _this2.createSearchEvent(control);
549
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
550
+ });
538
551
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toControl", function (props, control) {
539
552
  switch (props.type) {
540
553
  case 'readonly':
@@ -584,6 +597,9 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
584
597
  case 'uploadImg':
585
598
  return _this2.uploadImg(props, control);
586
599
 
600
+ case 'cascader':
601
+ return _this2.toCascader(props, control);
602
+
587
603
  default:
588
604
  return 'type error';
589
605
  }
@@ -90,7 +90,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
90
90
 
91
91
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
92
92
 
93
- 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) { (0, _defineProperty2["default"])(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; }
93
+ 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) { (0, _defineProperty2["default"])(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; }
94
94
 
95
95
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
96
96
 
@@ -99,7 +99,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
99
99
  var FormItem = _form["default"].Item;
100
100
  var defaultSize = 'small';
101
101
  var defaultColNum = 4;
102
- var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'captcha', 'area', 'uploadImg'];
102
+ var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'captcha', 'area', 'uploadImg', 'cascader'];
103
103
  /**
104
104
  * key:[必须],用于唯一标识该Form下的一个表单元素
105
105
  * title:[必须],表单元素的标签
@@ -121,9 +121,7 @@ var ControlType = {
121
121
  onCheckItem: _propTypes["default"].any,
122
122
  showAdd: _propTypes["default"].any,
123
123
  rule: _propTypes["default"].object,
124
- props: _propTypes["default"].object,
125
- buildSuperUploadProps: _propTypes["default"].func //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
126
-
124
+ props: _propTypes["default"].object
127
125
  };
128
126
 
129
127
  var Controlled = /*#__PURE__*/function (_React$Component) {
@@ -308,6 +306,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
308
306
  colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
309
307
  return colNum * 1200;
310
308
  });
309
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getContainer", function () {
310
+ return _this2.props.getContainer;
311
+ });
311
312
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControls", function () {
312
313
  var _this2$props2 = _this2.props,
313
314
  hideControls = _this2$props2.hideControls,
@@ -404,21 +405,13 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
404
405
  onBlur: (0, _bind["default"])(_context14 = _this2.onExitValid).call(_context14, (0, _assertThisInitialized2["default"])(_this2), key),
405
406
  onAreaSearch: _this2.props.onAreaSearch
406
407
  });
407
- } else if (type === 'uploadImg') {
408
+ } else {
408
409
  var _context15, _context16;
409
410
 
410
- var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
411
- return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
411
+ return _objectSpread(_objectSpread({}, props), {}, {
412
412
  onChange: (0, _bind["default"])(_context15 = _this2.onBlur).call(_context15, (0, _assertThisInitialized2["default"])(_this2), key),
413
413
  onBlur: (0, _bind["default"])(_context16 = _this2.onExitValid).call(_context16, (0, _assertThisInitialized2["default"])(_this2), key)
414
414
  });
415
- } else {
416
- var _context17, _context18;
417
-
418
- return _objectSpread(_objectSpread({}, props), {}, {
419
- onChange: (0, _bind["default"])(_context17 = _this2.onBlur).call(_context17, (0, _assertThisInitialized2["default"])(_this2), key),
420
- onBlur: (0, _bind["default"])(_context18 = _this2.onExitValid).call(_context18, (0, _assertThisInitialized2["default"])(_this2), key)
421
- });
422
415
  }
423
416
  });
424
417
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControlProps", function (control, status) {
@@ -555,16 +548,26 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
555
548
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
556
549
  });
557
550
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "uploadImg", function (props, control) {
558
- var _context19;
551
+ var _context17;
559
552
 
560
553
  var readonly = _this2.props.readonly;
561
554
  props.required = control.required || false;
562
- props.onFileChange = (0, _bind["default"])(_context19 = _this2.onFileChange).call(_context19, (0, _assertThisInitialized2["default"])(_this2), control);
555
+ props.onFileChange = (0, _bind["default"])(_context17 = _this2.onFileChange).call(_context17, (0, _assertThisInitialized2["default"])(_this2), control);
563
556
  props.readonly = readonly === true || (0, _isArray["default"])(readonly) && (0, _some["default"])(readonly).call(readonly, function (readonlyKey) {
564
557
  return readonlyKey === control.key;
565
558
  }) ? true : false;
566
559
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
567
560
  });
561
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCascader", function (props, control) {
562
+ var container = _this2.getContainer();
563
+
564
+ container && (props.getPopupContainer = container);
565
+ props.options = control.options || [];
566
+ props.onSearch = _this2.createSearchEvent(control);
567
+ props.placeholder = props.placeholder || '';
568
+ props.loadData = _this2.createSearchEvent(control);
569
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
570
+ });
568
571
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toControl", function (props, control) {
569
572
  switch (props.type) {
570
573
  case 'readonly':
@@ -617,6 +620,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
617
620
  case 'uploadImg':
618
621
  return _this2.uploadImg(props, control);
619
622
 
623
+ case 'cascader':
624
+ return _this2.toCascader(props, control);
625
+
620
626
  default:
621
627
  return 'type error';
622
628
  }
@@ -627,9 +633,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
627
633
  key = _ref11.key;
628
634
 
629
635
  if (showAdd && type !== 'readonly') {
630
- var _context20;
636
+ var _context18;
631
637
 
632
- var onClick = (0, _bind["default"])(_context20 = _this2.onAdd).call(_context20, (0, _assertThisInitialized2["default"])(_this2), key, title);
638
+ var onClick = (0, _bind["default"])(_context18 = _this2.onAdd).call(_context18, (0, _assertThisInitialized2["default"])(_this2), key, title);
633
639
  return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
634
640
  role: "add",
635
641
  type: "plus-circle-o",
@@ -688,7 +694,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
688
694
  });
689
695
  });
690
696
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCols", function () {
691
- var _context21;
697
+ var _context19;
692
698
 
693
699
  var _this2$props4 = _this2.props,
694
700
  _this2$props4$colNum = _this2$props4.colNum,
@@ -700,7 +706,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
700
706
  }
701
707
 
702
708
  var span = 24 / colNum;
703
- return (0, _map["default"])(_context21 = _this2.getControls()).call(_context21, function (control) {
709
+ return (0, _map["default"])(_context19 = _this2.getControls()).call(_context19, function (control) {
704
710
  if (allFullFather) {
705
711
  control.allFullFather = allFullFather;
706
712
  }
@@ -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
+ }
@@ -58,6 +58,8 @@ var _Title = _interopRequireDefault(require("../Title"));
58
58
 
59
59
  var _variables = _interopRequireDefault(require("../variables"));
60
60
 
61
+ var _this = void 0;
62
+
61
63
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
62
64
 
63
65
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -158,9 +160,6 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
158
160
  while (1) {
159
161
  switch (_context2.prev = _context2.next) {
160
162
  case 0:
161
- props.onRemove && props.onRemove(fileRemove, fileList, fileDeleteList, onFileChange);
162
-
163
- case 1:
164
163
  case "end":
165
164
  return _context2.stop();
166
165
  }
@@ -174,7 +173,7 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
174
173
  }();
175
174
 
176
175
  return {
177
- action: props.action || '/api/proxy/zuul/archiver-service/file/upload/document',
176
+ action: _this.props.action || '/api/proxy/zuul/ict-service/file/upload/document',
178
177
  fileList: fileList,
179
178
  listType: listType,
180
179
  multiple: multiple,
@@ -212,11 +211,7 @@ function UploadButton(_ref3) {
212
211
  _ref3$limitNumber = _ref3.limitNumber,
213
212
  limitNumber = _ref3$limitNumber === void 0 ? 10 : _ref3$limitNumber,
214
213
  _ref3$listType = _ref3.listType,
215
- listType = _ref3$listType === void 0 ? 'picture-card' : _ref3$listType,
216
- _ref3$needText = _ref3.needText,
217
- needText = _ref3$needText === void 0 ? false : _ref3$needText,
218
- _ref3$remark = _ref3.remark,
219
- remark = _ref3$remark === void 0 ? '大小>=5M' : _ref3$remark;
214
+ listType = _ref3$listType === void 0 ? 'picture-card' : _ref3$listType;
220
215
  var canUpload = fileList.length < limitNumber;
221
216
  return canUpload ? listType === 'picture-card' ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
222
217
  type: "plus"
@@ -238,6 +233,8 @@ function UploadButton(_ref3) {
238
233
  }
239
234
 
240
235
  function SuperUpload(props) {
236
+ var _this2 = this;
237
+
241
238
  var _useState = (0, _react.useState)(true),
242
239
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
243
240
  loading = _useState2[0],
@@ -248,6 +245,7 @@ function SuperUpload(props) {
248
245
  fileList = _useState4[0],
249
246
  setFileList = _useState4[1];
250
247
 
248
+ var getFileList = this.props.getFileList;
251
249
  (0, _react.useEffect)(function () {
252
250
  function fetchImgData() {
253
251
  return _fetchImgData.apply(this, arguments);
@@ -260,28 +258,15 @@ function SuperUpload(props) {
260
258
  while (1) {
261
259
  switch (_context3.prev = _context3.next) {
262
260
  case 0:
263
- if (!props.getFileList) {
264
- _context3.next = 6;
265
- break;
266
- }
267
-
268
- _context3.next = 3;
269
- return props.getFileList(props.fileList);
270
-
271
- case 3:
272
- _context3.t0 = _context3.sent;
273
- _context3.next = 7;
274
- break;
275
-
276
- case 6:
277
- _context3.t0 = [];
261
+ _context3.next = 2;
262
+ return getFileList(props.fileList);
278
263
 
279
- case 7:
280
- initFileList = _context3.t0;
264
+ case 2:
265
+ initFileList = _context3.sent;
281
266
  setFileList(initFileList);
282
267
  setLoading(false);
283
268
 
284
- case 10:
269
+ case 5:
285
270
  case "end":
286
271
  return _context3.stop();
287
272
  }
@@ -296,13 +281,15 @@ function SuperUpload(props) {
296
281
 
297
282
  var onPreview = /*#__PURE__*/function () {
298
283
  var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(file) {
284
+ var onPreview;
299
285
  return _regenerator["default"].wrap(function _callee3$(_context4) {
300
286
  while (1) {
301
287
  switch (_context4.prev = _context4.next) {
302
288
  case 0:
303
- props.onPreview && props.onPreview(file, fileList);
289
+ onPreview = _this2.props.onPreview;
290
+ onPreview && onPreview(file);
304
291
 
305
- case 1:
292
+ case 2:
306
293
  case "end":
307
294
  return _context4.stop();
308
295
  }
@@ -330,7 +317,7 @@ function SuperUpload(props) {
330
317
  required: props.required
331
318
  }) : null, /*#__PURE__*/_react["default"].createElement(_upload["default"], uploadProps, readonly ? null : /*#__PURE__*/_react["default"].createElement(UploadButton, _objectSpread(_objectSpread({}, props), {}, {
332
319
  fileList: fileList
333
- }))), props.needText ? /*#__PURE__*/_react["default"].createElement("span", null, props.remark) : null);
320
+ }))));
334
321
  }
335
322
 
336
323
  var _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/lib/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
+ }