cloud-b2b 1.1.3 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Area/Area.js CHANGED
@@ -58,7 +58,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
58
58
  var _this$props = _this.props,
59
59
  onParentChange = _this$props.onParentChange,
60
60
  child = _this$props.child,
61
- value = _this$props.value;
61
+ _this$props$value = _this$props.value,
62
+ value = _this$props$value === void 0 ? {} : _this$props$value;
62
63
  var newValue = {};
63
64
  newValue[key] = keyValue;
64
65
  var CheckValue, checkIndex;
@@ -83,7 +84,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
83
84
  var _this$props2 = _this.props,
84
85
  onAreaSearch = _this$props2.onAreaSearch,
85
86
  child = _this$props2.child,
86
- value = _this$props2.value;
87
+ _this$props2$value = _this$props2.value,
88
+ value = _this$props2$value === void 0 ? {} : _this$props2$value;
87
89
  var flag = true;
88
90
 
89
91
  _mapInstanceProperty(child).call(child, function (item, index) {
@@ -113,7 +115,7 @@ var Area = /*#__PURE__*/function (_React$Component) {
113
115
  value: function componentWillReceiveProps(props) {
114
116
  if (props.value !== this.props.value) {
115
117
  this.setState({
116
- value: props.value
118
+ value: props.value || {}
117
119
  });
118
120
  }
119
121
  }
@@ -129,7 +131,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
129
131
  options = _this$props3$options === void 0 ? {} : _this$props3$options,
130
132
  _this$props3$readonly = _this$props3.readonly,
131
133
  readonly = _this$props3$readonly === void 0 ? false : _this$props3$readonly,
132
- value = _this$props3.value;
134
+ _this$props3$value = _this$props3.value,
135
+ value = _this$props3$value === void 0 ? {} : _this$props3$value;
133
136
  return /*#__PURE__*/React.createElement(_Row, null, _mapInstanceProperty(child).call(child, function (item, index) {
134
137
  var _context, _context2, _context3;
135
138
 
@@ -148,7 +151,7 @@ var Area = /*#__PURE__*/function (_React$Component) {
148
151
  onSearch: _bindInstanceProperty(_context2 = _this2.onSearch).call(_context2, _this2, item.key, item, parentKey),
149
152
  onChange: _bindInstanceProperty(_context3 = _this2.onChange).call(_context3, _this2, item.key),
150
153
  options: childOptions,
151
- value: _this2.props.value[item.key].title ? _this2.props.value[item.key].title : _this2.props.value[item.key],
154
+ value: value[item.key] && value[item.key].title ? value[item.key].title : value[item.key],
152
155
  type: readonly ? 'readonly' : item.type
153
156
  });
154
157
 
@@ -334,16 +334,11 @@ var captcha = function captcha(props) {
334
334
  };
335
335
 
336
336
  var uploadImg = function uploadImg(props) {
337
- var uploadProps = {
337
+ var uploadProps = _objectSpread(_objectSpread({}, props), {}, {
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,
345
339
  readonly: props.readonly || false
346
- };
340
+ });
341
+
347
342
  return /*#__PURE__*/React.createElement(SuperUpload, uploadProps);
348
343
  }; // 支持的控件类型
349
344
 
@@ -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 _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; }
33
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context23, _context24; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context23 = ownKeys(Object(source), !0)).call(_context23, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context24 = ownKeys(Object(source))).call(_context24, 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
 
@@ -324,57 +324,74 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
324
324
  readonly: true,
325
325
  onBlur: _bindInstanceProperty(_context3 = _this2.onExitValid).call(_context3, _assertThisInitialized(_this2), key)
326
326
  };
327
- } else {
327
+ } else if (originType === 'uploadImg') {
328
328
  var _context4;
329
329
 
330
- return {
330
+ var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
331
+ return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
332
+ readonly: true,
331
333
  onBlur: _bindInstanceProperty(_context4 = _this2.onExitValid).call(_context4, _assertThisInitialized(_this2), key)
334
+ });
335
+ } else {
336
+ var _context5;
337
+
338
+ return {
339
+ onBlur: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _assertThisInitialized(_this2), key)
332
340
  };
333
341
  }
334
342
  } else if (type === 'text' || type === 'textArea') {
335
- var _context5, _context6;
343
+ var _context6, _context7;
336
344
 
337
345
  return _objectSpread(_objectSpread({}, props), {}, {
338
- onChange: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _assertThisInitialized(_this2), key),
339
- onBlur: _bindInstanceProperty(_context6 = _this2.onChange).call(_context6, _assertThisInitialized(_this2), key)
346
+ onChange: _bindInstanceProperty(_context6 = _this2.onExitValid).call(_context6, _assertThisInitialized(_this2), key),
347
+ onBlur: _bindInstanceProperty(_context7 = _this2.onChange).call(_context7, _assertThisInitialized(_this2), key)
340
348
  });
341
349
  } else if (type === 'date') {
342
- var _context7, _context8;
350
+ var _context8, _context9;
343
351
 
344
352
  var propsObj = _objectSpread(_objectSpread({}, props), {}, {
345
- onChange: _bindInstanceProperty(_context7 = _this2.onBlur).call(_context7, _assertThisInitialized(_this2), key),
346
- onBlur: _bindInstanceProperty(_context8 = _this2.onExitValid).call(_context8, _assertThisInitialized(_this2), key)
353
+ onChange: _bindInstanceProperty(_context8 = _this2.onBlur).call(_context8, _assertThisInitialized(_this2), key),
354
+ onBlur: _bindInstanceProperty(_context9 = _this2.onExitValid).call(_context9, _assertThisInitialized(_this2), key)
347
355
  });
348
356
 
349
357
  if (_this2.props.onOpenChange && typeof _this2.props.onOpenChange === 'function') {
350
- var _context9;
358
+ var _context10;
351
359
 
352
- propsObj.onOpenChange = _bindInstanceProperty(_context9 = _this2.props.onOpenChange).call(_context9, _assertThisInitialized(_this2), key);
360
+ propsObj.onOpenChange = _bindInstanceProperty(_context10 = _this2.props.onOpenChange).call(_context10, _assertThisInitialized(_this2), key);
353
361
  }
354
362
 
355
363
  return propsObj;
356
364
  } else if (type === 'captcha') {
357
- var _context10, _context11, _context12;
365
+ var _context11, _context12, _context13;
358
366
 
359
367
  return _objectSpread(_objectSpread({}, props), {}, {
360
- onChange: _bindInstanceProperty(_context10 = _this2.onBlur).call(_context10, _assertThisInitialized(_this2), key),
361
- onBlur: _bindInstanceProperty(_context11 = _this2.onExitValid).call(_context11, _assertThisInitialized(_this2), key),
362
- onGetCode: _bindInstanceProperty(_context12 = _this2.onGetCode).call(_context12, _assertThisInitialized(_this2), key)
368
+ onChange: _bindInstanceProperty(_context11 = _this2.onBlur).call(_context11, _assertThisInitialized(_this2), key),
369
+ onBlur: _bindInstanceProperty(_context12 = _this2.onExitValid).call(_context12, _assertThisInitialized(_this2), key),
370
+ onGetCode: _bindInstanceProperty(_context13 = _this2.onGetCode).call(_context13, _assertThisInitialized(_this2), key)
363
371
  });
364
372
  } else if (type === 'area') {
365
- var _context13, _context14;
373
+ var _context14, _context15;
366
374
 
367
375
  return _objectSpread(_objectSpread({}, props), {}, {
368
- onChange: _bindInstanceProperty(_context13 = _this2.onBlur).call(_context13, _assertThisInitialized(_this2), key),
369
- onBlur: _bindInstanceProperty(_context14 = _this2.onExitValid).call(_context14, _assertThisInitialized(_this2), key),
376
+ onChange: _bindInstanceProperty(_context14 = _this2.onBlur).call(_context14, _assertThisInitialized(_this2), key),
377
+ onBlur: _bindInstanceProperty(_context15 = _this2.onExitValid).call(_context15, _assertThisInitialized(_this2), key),
370
378
  onAreaSearch: _this2.props.onAreaSearch
371
379
  });
380
+ } else if (type === 'uploadImg') {
381
+ var _context16, _context17;
382
+
383
+ var _commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
384
+
385
+ return _objectSpread(_objectSpread(_objectSpread({}, props), _commonProps), {}, {
386
+ onChange: _bindInstanceProperty(_context16 = _this2.onBlur).call(_context16, _assertThisInitialized(_this2), key),
387
+ onBlur: _bindInstanceProperty(_context17 = _this2.onExitValid).call(_context17, _assertThisInitialized(_this2), key)
388
+ });
372
389
  } else {
373
- var _context15, _context16;
390
+ var _context18, _context19;
374
391
 
375
392
  return _objectSpread(_objectSpread({}, props), {}, {
376
- onChange: _bindInstanceProperty(_context15 = _this2.onBlur).call(_context15, _assertThisInitialized(_this2), key),
377
- onBlur: _bindInstanceProperty(_context16 = _this2.onExitValid).call(_context16, _assertThisInitialized(_this2), key)
393
+ onChange: _bindInstanceProperty(_context18 = _this2.onBlur).call(_context18, _assertThisInitialized(_this2), key),
394
+ onBlur: _bindInstanceProperty(_context19 = _this2.onExitValid).call(_context19, _assertThisInitialized(_this2), key)
378
395
  });
379
396
  }
380
397
  });
@@ -532,11 +549,11 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
532
549
  });
533
550
 
534
551
  _defineProperty(_assertThisInitialized(_this2), "uploadImg", function (props, control) {
535
- var _context17;
552
+ var _context20;
536
553
 
537
554
  var readonly = _this2.props.readonly;
538
555
  props.required = control.required || false;
539
- props.onFileChange = _bindInstanceProperty(_context17 = _this2.onFileChange).call(_context17, _assertThisInitialized(_this2), control);
556
+ props.onFileChange = _bindInstanceProperty(_context20 = _this2.onFileChange).call(_context20, _assertThisInitialized(_this2), control);
540
557
  props.readonly = readonly === true || _Array$isArray(readonly) && _someInstanceProperty(readonly).call(readonly, function (readonlyKey) {
541
558
  return readonlyKey === control.key;
542
559
  }) ? true : false;
@@ -620,9 +637,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
620
637
  key = _ref11.key;
621
638
 
622
639
  if (showAdd && type !== 'readonly') {
623
- var _context18;
640
+ var _context21;
624
641
 
625
- var onClick = _bindInstanceProperty(_context18 = _this2.onAdd).call(_context18, _assertThisInitialized(_this2), key, title);
642
+ var onClick = _bindInstanceProperty(_context21 = _this2.onAdd).call(_context21, _assertThisInitialized(_this2), key, title);
626
643
 
627
644
  return /*#__PURE__*/React.createElement("span", null, title, /*#__PURE__*/React.createElement(_Icon, {
628
645
  role: "add",
@@ -684,7 +701,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
684
701
  });
685
702
 
686
703
  _defineProperty(_assertThisInitialized(_this2), "toCols", function () {
687
- var _context19;
704
+ var _context22;
688
705
 
689
706
  var _this2$props4 = _this2.props,
690
707
  _this2$props4$colNum = _this2$props4.colNum,
@@ -696,7 +713,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
696
713
  }
697
714
 
698
715
  var span = 24 / colNum;
699
- return _mapInstanceProperty(_context19 = _this2.getControls()).call(_context19, function (control) {
716
+ return _mapInstanceProperty(_context22 = _this2.getControls()).call(_context22, function (control) {
700
717
  if (allFullFather) {
701
718
  control.allFullFather = allFullFather;
702
719
  }
@@ -744,7 +761,9 @@ _defineProperty(SuperForm2, "propTypes", {
744
761
  onOpenChange: PropTypes.func,
745
762
  onGetCode: PropTypes.func,
746
763
  onFileChange: PropTypes.func,
747
- onAreaSearch: PropTypes.func
764
+ onAreaSearch: PropTypes.func,
765
+ buildSuperUploadProps: PropTypes.func //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
766
+
748
767
  });
749
768
 
750
769
  export default SuperForm2;
@@ -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
+ }
@@ -439,14 +439,16 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
439
439
  return value ? typeof value === 'string' ? /*#__PURE__*/React.createElement("img", {
440
440
  src: value,
441
441
  style: {
442
- maxWidth: '100px'
442
+ width: '80px',
443
+ height: '80px'
443
444
  }
444
445
  }) : /*#__PURE__*/React.createElement("div", {
445
446
  role: 'imgBox'
446
447
  }, /*#__PURE__*/React.createElement("img", {
447
448
  src: value.img,
448
449
  style: {
449
- maxWidth: '100px'
450
+ width: '80px',
451
+ height: '80px'
450
452
  }
451
453
  }), /*#__PURE__*/React.createElement("span", null, value.title)) : /*#__PURE__*/React.createElement("div", null);
452
454
 
@@ -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,9 +4,6 @@ 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
-
10
7
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
11
8
 
12
9
  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; }
@@ -119,6 +116,9 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
119
116
  while (1) {
120
117
  switch (_context2.prev = _context2.next) {
121
118
  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: _this.props.action || '/api/proxy/zuul/ict-service/file/upload/document',
135
+ action: props.action || '/api/proxy/zuul/archiver-service/file/upload/document',
136
136
  fileList: fileList,
137
137
  listType: listType,
138
138
  multiple: multiple,
@@ -170,7 +170,11 @@ 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;
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;
174
178
  var canUpload = fileList.length < limitNumber;
175
179
  return canUpload ? listType === 'picture-card' ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Icon, {
176
180
  type: "plus"
@@ -192,8 +196,6 @@ function UploadButton(_ref3) {
192
196
  }
193
197
 
194
198
  function SuperUpload(props) {
195
- var _this2 = this;
196
-
197
199
  var _useState = useState(true),
198
200
  _useState2 = _slicedToArray(_useState, 2),
199
201
  loading = _useState2[0],
@@ -204,7 +206,6 @@ function SuperUpload(props) {
204
206
  fileList = _useState4[0],
205
207
  setFileList = _useState4[1];
206
208
 
207
- var getFileList = this.props.getFileList;
208
209
  useEffect(function () {
209
210
  function fetchImgData() {
210
211
  return _fetchImgData.apply(this, arguments);
@@ -217,15 +218,28 @@ function SuperUpload(props) {
217
218
  while (1) {
218
219
  switch (_context3.prev = _context3.next) {
219
220
  case 0:
220
- _context3.next = 2;
221
- return getFileList(props.fileList);
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 = [];
222
236
 
223
- case 2:
224
- initFileList = _context3.sent;
237
+ case 7:
238
+ initFileList = _context3.t0;
225
239
  setFileList(initFileList);
226
240
  setLoading(false);
227
241
 
228
- case 5:
242
+ case 10:
229
243
  case "end":
230
244
  return _context3.stop();
231
245
  }
@@ -240,15 +254,13 @@ function SuperUpload(props) {
240
254
 
241
255
  var onPreview = /*#__PURE__*/function () {
242
256
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(file) {
243
- var onPreview;
244
257
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
245
258
  while (1) {
246
259
  switch (_context4.prev = _context4.next) {
247
260
  case 0:
248
- onPreview = _this2.props.onPreview;
249
- onPreview && onPreview(file);
261
+ props.onPreview && props.onPreview(file, fileList);
250
262
 
251
- case 2:
263
+ case 1:
252
264
  case "end":
253
265
  return _context4.stop();
254
266
  }
@@ -276,7 +288,7 @@ function SuperUpload(props) {
276
288
  required: props.required
277
289
  }) : null, /*#__PURE__*/React.createElement(_Upload, uploadProps, readonly ? null : /*#__PURE__*/React.createElement(UploadButton, _objectSpread(_objectSpread({}, props), {}, {
278
290
  fileList: fileList
279
- }))));
291
+ }))), props.needText ? /*#__PURE__*/React.createElement("span", null, props.remark) : null);
280
292
  }
281
293
 
282
294
  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
+ }