cloud-b2b 1.1.0 → 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.
- package/es/CodeInput/CodeInput.js +153 -0
- package/es/CodeInput/package.json +6 -0
- package/es/Control/Control.js +23 -8
- package/es/SuperForm/SuperForm.js +19 -1
- package/es/SuperForm2/SuperForm.js +19 -1
- package/es/SuperTable/FilterDropDown.less +30 -30
- package/es/SuperTable/package.json +6 -6
- package/es/SuperTable2/package.json +6 -6
- package/es/Title/Title.less +35 -35
- package/es/Title/package.json +6 -6
- package/es/adjust.less +89 -89
- package/lib/CodeInput/CodeInput.js +182 -0
- package/lib/CodeInput/package.json +6 -0
- package/lib/Control/Control.js +26 -10
- package/lib/SuperForm/SuperForm.js +17 -1
- package/lib/SuperForm2/SuperForm.js +17 -1
- package/lib/SuperTable/FilterDropDown.less +30 -30
- package/lib/SuperTable/package.json +6 -6
- package/lib/SuperTable2/package.json +6 -6
- package/lib/Title/Title.less +35 -35
- package/lib/Title/package.json +6 -6
- package/lib/adjust.less +89 -89
- package/package.json +1 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _Row from "antd/es/row";
|
|
10
|
+
import _Button from "antd/es/button";
|
|
11
|
+
import _Col from "antd/es/col";
|
|
12
|
+
import _Input from "antd/es/input";
|
|
13
|
+
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
|
|
14
|
+
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
15
|
+
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
16
|
+
import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
|
|
17
|
+
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
18
|
+
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
19
|
+
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
20
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
|
|
26
|
+
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
|
27
|
+
|
|
28
|
+
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); }; }
|
|
29
|
+
|
|
30
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
+
|
|
32
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
33
|
+
import _setInterval from "@babel/runtime-corejs3/core-js-stable/set-interval";
|
|
34
|
+
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
|
|
35
|
+
import React from 'react';
|
|
36
|
+
import PropTypes from 'prop-types';
|
|
37
|
+
import helper from '../helper';
|
|
38
|
+
var PROPS = {
|
|
39
|
+
filter: PropTypes.bool,
|
|
40
|
+
remark: PropTypes.bool,
|
|
41
|
+
searchWhenClick: PropTypes.bool,
|
|
42
|
+
noSearchWhenTypo: PropTypes.bool,
|
|
43
|
+
options: PropTypes.array,
|
|
44
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]),
|
|
45
|
+
inputRef: PropTypes.func,
|
|
46
|
+
onChange: PropTypes.func,
|
|
47
|
+
onBlur: PropTypes.func,
|
|
48
|
+
onSelect: PropTypes.func,
|
|
49
|
+
onSearch: PropTypes.func
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
var PROPS_KEYS = _Object$keys(PROPS);
|
|
53
|
+
|
|
54
|
+
var CodeInput = /*#__PURE__*/function (_React$Component) {
|
|
55
|
+
_inherits(CodeInput, _React$Component);
|
|
56
|
+
|
|
57
|
+
var _super = _createSuper(CodeInput);
|
|
58
|
+
|
|
59
|
+
function CodeInput(_props) {
|
|
60
|
+
var _this;
|
|
61
|
+
|
|
62
|
+
_classCallCheck(this, CodeInput);
|
|
63
|
+
|
|
64
|
+
_this = _super.call(this, _props);
|
|
65
|
+
|
|
66
|
+
_defineProperty(_assertThisInitialized(_this), "onGetCode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
67
|
+
var onGetCode, that, s;
|
|
68
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
69
|
+
while (1) {
|
|
70
|
+
switch (_context.prev = _context.next) {
|
|
71
|
+
case 0:
|
|
72
|
+
// const url = await helper.fetchJson();
|
|
73
|
+
onGetCode = _this.props.onGetCode;
|
|
74
|
+
_context.next = 3;
|
|
75
|
+
return onGetCode && onGetCode();
|
|
76
|
+
|
|
77
|
+
case 3:
|
|
78
|
+
if (!_context.sent) {
|
|
79
|
+
_context.next = 8;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
debugger;
|
|
84
|
+
|
|
85
|
+
_this.setState({
|
|
86
|
+
time: _this.props.time || 60
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
that = _assertThisInitialized(_this);
|
|
90
|
+
s = _setInterval(function () {
|
|
91
|
+
that.setState({
|
|
92
|
+
time: that.state.time -= 1
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
if (that.state.time === 0) {
|
|
96
|
+
clearInterval(s);
|
|
97
|
+
}
|
|
98
|
+
}, 1000);
|
|
99
|
+
|
|
100
|
+
case 8:
|
|
101
|
+
;
|
|
102
|
+
|
|
103
|
+
case 9:
|
|
104
|
+
case "end":
|
|
105
|
+
return _context.stop();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}, _callee);
|
|
109
|
+
})));
|
|
110
|
+
|
|
111
|
+
_defineProperty(_assertThisInitialized(_this), "btnProps", function (props) {
|
|
112
|
+
var btnProps = _Object$assign(helper.getObjectExclude(props, ['onGetCode']));
|
|
113
|
+
|
|
114
|
+
return _objectSpread(_objectSpread({}, btnProps), {}, {
|
|
115
|
+
size: 'large',
|
|
116
|
+
disabled: _this.state.time !== 0,
|
|
117
|
+
onClick: _this.onGetCode
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
_defineProperty(_assertThisInitialized(_this), "inputProps", function (props) {
|
|
122
|
+
var inpPros = _Object$assign(helper.getObjectExclude(props, ['onGetCode']));
|
|
123
|
+
|
|
124
|
+
return _objectSpread(_objectSpread({}, inpPros), {}, {
|
|
125
|
+
size: 'large'
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
_this.state = {
|
|
130
|
+
value: _props.value,
|
|
131
|
+
time: 0
|
|
132
|
+
};
|
|
133
|
+
return _this;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
_createClass(CodeInput, [{
|
|
137
|
+
key: "render",
|
|
138
|
+
value: function render() {
|
|
139
|
+
var _this$props = this.props,
|
|
140
|
+
inputKey = _this$props.inputKey,
|
|
141
|
+
readonly = _this$props.readonly,
|
|
142
|
+
value = _this$props.value;
|
|
143
|
+
var time = this.state.time;
|
|
144
|
+
return /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
|
|
145
|
+
span: 20
|
|
146
|
+
}, /*#__PURE__*/React.createElement(_Input, this.inputProps(this.props))), /*#__PURE__*/React.createElement(_Col, null, /*#__PURE__*/React.createElement(_Button, this.btnProps(this.props), time === 0 ? "\u83B7\u53D6\u9A8C\u8BC1\u7801" : "".concat(time, "s\u83B7\u53D6\u9A8C\u8BC1\u7801"))));
|
|
147
|
+
}
|
|
148
|
+
}]);
|
|
149
|
+
|
|
150
|
+
return CodeInput;
|
|
151
|
+
}(React.Component);
|
|
152
|
+
|
|
153
|
+
export default CodeInput;
|
package/es/Control/Control.js
CHANGED
|
@@ -39,10 +39,11 @@ import InputEditor from '../InputEditor';
|
|
|
39
39
|
import InputSelect from '../InputSelect';
|
|
40
40
|
import InputWriting from '../InputWriting';
|
|
41
41
|
import InpurCascader from '../InpurCascader';
|
|
42
|
-
import SuperUpload from '../SuperUpload';
|
|
43
|
-
import Area from '../Area';
|
|
44
42
|
import moment from 'moment';
|
|
45
43
|
import eventWrapper from './event';
|
|
44
|
+
import CodeInput from '../CodeInput';
|
|
45
|
+
import SuperUpload from '../SuperUpload';
|
|
46
|
+
import Area from '../Area/Area';
|
|
46
47
|
var SelectOption = _Select.Option;
|
|
47
48
|
var TextArea = _Input.TextArea;
|
|
48
49
|
var RadioGroup = _Radio.Group;
|
|
@@ -131,6 +132,9 @@ var textArea = function textArea(props) {
|
|
|
131
132
|
|
|
132
133
|
var readonly = function readonly(props) {
|
|
133
134
|
props.readOnly = true;
|
|
135
|
+
props.style = _Object$assign(props.style || {}, {
|
|
136
|
+
backgroundColor: '#f0f0f0'
|
|
137
|
+
});
|
|
134
138
|
|
|
135
139
|
if (props.value || props.defaultValue) {
|
|
136
140
|
props.title = props.value || props.defaultValue;
|
|
@@ -176,6 +180,14 @@ var select = function select(props) {
|
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
return /*#__PURE__*/React.createElement(_Select, props, _mapInstanceProperty(options).call(options, toOption));
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
var area = function area(props) {
|
|
186
|
+
var areaProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
187
|
+
onParentChange: props.onChange
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
return /*#__PURE__*/React.createElement(Area, areaProps);
|
|
179
191
|
}; // 下拉选择框-取title作为值
|
|
180
192
|
|
|
181
193
|
|
|
@@ -312,12 +324,13 @@ var cascader = function cascader(props) {
|
|
|
312
324
|
return /*#__PURE__*/React.createElement(InpurCascader, props);
|
|
313
325
|
};
|
|
314
326
|
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
327
|
+
var captcha = function captcha(props) {
|
|
328
|
+
if (props.ref) {
|
|
329
|
+
props.inputRef = props.ref;
|
|
330
|
+
delete props.ref;
|
|
331
|
+
}
|
|
319
332
|
|
|
320
|
-
return /*#__PURE__*/React.createElement(
|
|
333
|
+
return /*#__PURE__*/React.createElement(CodeInput, props);
|
|
321
334
|
};
|
|
322
335
|
|
|
323
336
|
var uploadImg = function uploadImg(props) {
|
|
@@ -351,6 +364,7 @@ var controls = {
|
|
|
351
364
|
selectSearch: selectSearch,
|
|
352
365
|
selectWriting: selectWriting,
|
|
353
366
|
cascader: cascader,
|
|
367
|
+
captcha: captcha,
|
|
354
368
|
area: area,
|
|
355
369
|
uploadImg: uploadImg
|
|
356
370
|
};
|
|
@@ -373,7 +387,8 @@ Control.propTypes = {
|
|
|
373
387
|
autoFocus: PropTypes.bool,
|
|
374
388
|
onChange: PropTypes.func,
|
|
375
389
|
onSearch: PropTypes.func,
|
|
376
|
-
onBlur: PropTypes.func
|
|
390
|
+
onBlur: PropTypes.func,
|
|
391
|
+
onGetCode: PropTypes.func
|
|
377
392
|
}; // 依据value查找对应的标题
|
|
378
393
|
|
|
379
394
|
var getTitle = function getTitle(value) {
|
|
@@ -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
|
}
|
|
@@ -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:[必须],表单元素的标签
|
|
@@ -267,6 +267,10 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
267
267
|
return colNum * 1200;
|
|
268
268
|
});
|
|
269
269
|
|
|
270
|
+
_defineProperty(_assertThisInitialized(_this2), "getContainer", function () {
|
|
271
|
+
return _this2.props.getContainer;
|
|
272
|
+
});
|
|
273
|
+
|
|
270
274
|
_defineProperty(_assertThisInitialized(_this2), "getControls", function () {
|
|
271
275
|
var _this2$props2 = _this2.props,
|
|
272
276
|
hideControls = _this2$props2.hideControls,
|
|
@@ -539,6 +543,17 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
539
543
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
540
544
|
});
|
|
541
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
|
+
|
|
542
557
|
_defineProperty(_assertThisInitialized(_this2), "toControl", function (props, control) {
|
|
543
558
|
switch (props.type) {
|
|
544
559
|
case 'readonly':
|
|
@@ -591,6 +606,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
591
606
|
case 'uploadImg':
|
|
592
607
|
return _this2.uploadImg(props, control);
|
|
593
608
|
|
|
609
|
+
case 'cascader':
|
|
610
|
+
return _this2.toCascader(props, control);
|
|
611
|
+
|
|
594
612
|
default:
|
|
595
613
|
return 'type error';
|
|
596
614
|
}
|
|
@@ -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
|
+
}
|
package/es/Title/Title.less
CHANGED
|
@@ -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
|
+
}
|
package/es/Title/package.json
CHANGED
|
@@ -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
|
+
}
|