cloud-b2b 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Card/Card.js +20 -0
- package/es/Card/package.json +6 -0
- package/es/Control/Control.js +402 -0
- package/es/Control/event.js +57 -0
- package/es/Control/package.json +6 -0
- package/es/Enhance/Dialogs.js +67 -0
- package/es/Enhance/Loading.js +151 -0
- package/es/Enhance/index.js +8 -0
- package/es/Enhance/package.json +6 -0
- package/es/Header/Header.js +194 -0
- package/es/Header/Header.less +94 -0
- package/es/Header/Vertical.js +129 -0
- package/es/Header/Vertical.less +60 -0
- package/es/Header/package.json +6 -0
- package/es/HomeHeader/Header.js +75 -0
- package/es/HomeHeader/Header.less +73 -0
- package/es/HomeHeader/package.json +6 -0
- package/es/ImageView/ImageView.js +117 -0
- package/es/ImageView/ImageView.less +14 -0
- package/es/ImageView/package.json +6 -0
- package/es/InpurCascader/InputCascader.js +135 -0
- package/es/InpurCascader/package.json +6 -0
- package/es/InputEditor/InputEditor.js +118 -0
- package/es/InputEditor/inputEditor.less +8 -0
- package/es/InputEditor/package.json +6 -0
- package/es/InputSearch/InputSearch.js +306 -0
- package/es/InputSearch/package.json +6 -0
- package/es/InputSelect/InputSelect.js +185 -0
- package/es/InputSelect/package.json +6 -0
- package/es/InputWriting/InputWriting.js +107 -0
- package/es/InputWriting/package.json +6 -0
- package/es/Layout/Layout.js +232 -0
- package/es/Layout/Layout.less +28 -0
- package/es/Layout/package.json +6 -0
- package/es/LayoutLink/LayoutLink.js +82 -0
- package/es/LayoutLink/LayoutLink.less +53 -0
- package/es/LayoutLink/package.json +6 -0
- package/es/Link/Link.js +108 -0
- package/es/Link/package.json +6 -0
- package/es/Loading/Loading.js +15 -0
- package/es/Loading/Loading.less +13 -0
- package/es/Loading/package.json +6 -0
- package/es/Loading2/Loading2.js +11 -0
- package/es/Loading2/Loading2.less +19 -0
- package/es/Loading2/package.json +6 -0
- package/es/ModalWithDrag/ModalWithDrag.js +34 -0
- package/es/ModalWithDrag/ModalWithDrag.less +6 -0
- package/es/ModalWithDrag/drag.js +133 -0
- package/es/ModalWithDrag/package.json +6 -0
- package/es/NumberInput/NumberInput.js +237 -0
- package/es/NumberInput/package.json +6 -0
- package/es/Search/Search.js +581 -0
- package/es/Search/Search.less +63 -0
- package/es/Search/package.json +6 -0
- package/es/Sidebar/Sidebar.js +165 -0
- package/es/Sidebar/Sidebar.less +77 -0
- package/es/Sidebar/package.json +6 -0
- package/es/Sidebar2/Sidebar.js +192 -0
- package/es/Sidebar2/Sidebar.less +153 -0
- package/es/Sidebar2/package.json +6 -0
- package/es/SuperForm/SuperForm.js +641 -0
- package/es/SuperForm/SuperForm.less +52 -0
- package/es/SuperForm/package.json +6 -0
- package/es/SuperIcon/SuperIcon.js +30 -0
- package/es/SuperIcon/package.json +6 -0
- package/es/SuperPagination/SuperPagination.js +126 -0
- package/es/SuperPagination/package.json +6 -0
- package/es/SuperToolbar/SuperToolbar.js +223 -0
- package/es/SuperToolbar/SuperToolbar.less +17 -0
- package/es/SuperToolbar/package.json +6 -0
- package/es/SuperUpload/SuperUpload.js +282 -0
- package/es/SuperUpload/SuperUpload.less +27 -0
- package/es/SuperUpload/package.json +6 -0
- package/es/Viewer/ImageViews.js +311 -0
- package/es/Viewer/Viewer.js +149 -0
- package/es/Viewer/Viewer.less +67 -0
- package/es/Viewer/imgView.less +59 -0
- package/es/Viewer/package.json +7 -0
- package/es/WingBlank/WingBlank.js +20 -0
- package/es/WingBlank/WingBlank.less +12 -0
- package/es/WingBlank/package.json +6 -0
- package/es/helper.js +118 -0
- package/es/history.js +5 -0
- package/es/index.js +24 -1
- package/es/variables.less +73 -73
- package/lib/Card/Card.js +38 -0
- package/lib/Card/package.json +6 -0
- package/lib/Control/Control.js +449 -0
- package/lib/Control/event.js +68 -0
- package/lib/Control/package.json +6 -0
- package/lib/Enhance/Dialogs.js +87 -0
- package/lib/Enhance/Loading.js +175 -0
- package/lib/Enhance/index.js +35 -0
- package/lib/Enhance/package.json +6 -0
- package/lib/Header/Header.js +215 -0
- package/lib/Header/Header.less +94 -0
- package/lib/Header/Vertical.js +150 -0
- package/lib/Header/Vertical.less +60 -0
- package/lib/Header/package.json +6 -0
- package/lib/HomeHeader/Header.js +95 -0
- package/lib/HomeHeader/Header.less +73 -0
- package/lib/HomeHeader/package.json +6 -0
- package/lib/ImageView/ImageView.js +134 -0
- package/lib/ImageView/ImageView.less +14 -0
- package/lib/ImageView/package.json +6 -0
- package/lib/InpurCascader/InputCascader.js +156 -0
- package/lib/InpurCascader/package.json +6 -0
- package/lib/InputEditor/InputEditor.js +136 -0
- package/lib/InputEditor/inputEditor.less +8 -0
- package/lib/InputEditor/package.json +6 -0
- package/lib/InputSearch/InputSearch.js +322 -0
- package/lib/InputSearch/package.json +6 -0
- package/lib/InputSelect/InputSelect.js +208 -0
- package/lib/InputSelect/package.json +6 -0
- package/lib/InputWriting/InputWriting.js +123 -0
- package/lib/InputWriting/package.json +6 -0
- package/lib/Layout/Layout.js +258 -0
- package/lib/Layout/Layout.less +28 -0
- package/lib/Layout/package.json +6 -0
- package/lib/LayoutLink/LayoutLink.js +114 -0
- package/lib/LayoutLink/LayoutLink.less +53 -0
- package/lib/LayoutLink/package.json +6 -0
- package/lib/Link/Link.js +130 -0
- package/lib/Link/package.json +6 -0
- package/lib/Loading/Loading.js +30 -0
- package/lib/Loading/Loading.less +13 -0
- package/lib/Loading/package.json +6 -0
- package/lib/Loading2/Loading2.js +26 -0
- package/lib/Loading2/Loading2.less +19 -0
- package/lib/Loading2/package.json +6 -0
- package/lib/ModalWithDrag/ModalWithDrag.js +53 -0
- package/lib/ModalWithDrag/ModalWithDrag.less +6 -0
- package/lib/ModalWithDrag/drag.js +147 -0
- package/lib/ModalWithDrag/package.json +6 -0
- package/lib/NumberInput/NumberInput.js +259 -0
- package/lib/NumberInput/package.json +6 -0
- package/lib/Search/Search.js +603 -0
- package/lib/Search/Search.less +63 -0
- package/lib/Search/package.json +6 -0
- package/lib/Sidebar/Sidebar.js +186 -0
- package/lib/Sidebar/Sidebar.less +77 -0
- package/lib/Sidebar/package.json +6 -0
- package/lib/Sidebar2/Sidebar.js +213 -0
- package/lib/Sidebar2/Sidebar.less +153 -0
- package/lib/Sidebar2/package.json +6 -0
- package/lib/SuperForm/SuperForm.js +657 -0
- package/lib/SuperForm/SuperForm.less +52 -0
- package/lib/SuperForm/package.json +6 -0
- package/lib/SuperIcon/SuperIcon.js +47 -0
- package/lib/SuperIcon/package.json +6 -0
- package/lib/SuperPagination/SuperPagination.js +145 -0
- package/lib/SuperPagination/package.json +6 -0
- package/lib/SuperToolbar/SuperToolbar.js +248 -0
- package/lib/SuperToolbar/SuperToolbar.less +17 -0
- package/lib/SuperToolbar/package.json +6 -0
- package/lib/SuperUpload/SuperUpload.js +324 -0
- package/lib/SuperUpload/SuperUpload.less +27 -0
- package/lib/SuperUpload/package.json +6 -0
- package/lib/Viewer/ImageViews.js +323 -0
- package/lib/Viewer/Viewer.js +167 -0
- package/lib/Viewer/Viewer.less +67 -0
- package/lib/Viewer/imgView.less +59 -0
- package/lib/Viewer/package.json +7 -0
- package/lib/WingBlank/WingBlank.js +37 -0
- package/lib/WingBlank/WingBlank.less +12 -0
- package/lib/WingBlank/package.json +6 -0
- package/lib/helper.js +147 -0
- package/lib/history.js +18 -0
- package/lib/index.js +208 -1
- package/lib/index.less +20 -1
- package/lib/variables.less +73 -73
- package/package.json +3 -2
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
4
|
+
|
|
5
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
6
|
+
|
|
7
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
8
|
+
|
|
9
|
+
var _filterInstanceProperty2 = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
10
|
+
|
|
11
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
12
|
+
|
|
13
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
14
|
+
|
|
15
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
16
|
+
|
|
17
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
18
|
+
|
|
19
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
20
|
+
|
|
21
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
22
|
+
|
|
23
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
exports["default"] = void 0;
|
|
28
|
+
|
|
29
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
30
|
+
|
|
31
|
+
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
32
|
+
|
|
33
|
+
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
34
|
+
|
|
35
|
+
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
36
|
+
|
|
37
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
38
|
+
|
|
39
|
+
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
40
|
+
|
|
41
|
+
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
42
|
+
|
|
43
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
|
|
44
|
+
|
|
45
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
46
|
+
|
|
47
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
48
|
+
|
|
49
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
50
|
+
|
|
51
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
52
|
+
|
|
53
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
54
|
+
|
|
55
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
56
|
+
|
|
57
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
58
|
+
|
|
59
|
+
var _select = _interopRequireDefault(require("antd/lib/select"));
|
|
60
|
+
|
|
61
|
+
var _react = _interopRequireDefault(require("react"));
|
|
62
|
+
|
|
63
|
+
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; }
|
|
64
|
+
|
|
65
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(source), !0)).call(_context5, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
66
|
+
|
|
67
|
+
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); }; }
|
|
68
|
+
|
|
69
|
+
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; } }
|
|
70
|
+
|
|
71
|
+
var SelectOption = _select["default"].Option;
|
|
72
|
+
var OPTION_STYLE = {
|
|
73
|
+
"float": 'right',
|
|
74
|
+
marginLeft: '1rem',
|
|
75
|
+
marginRight: '1rem',
|
|
76
|
+
color: '#aaa',
|
|
77
|
+
whiteSpace: 'pre-wrap'
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
81
|
+
(0, _inherits2["default"])(InputSelect, _React$Component);
|
|
82
|
+
|
|
83
|
+
var _super = _createSuper(InputSelect);
|
|
84
|
+
|
|
85
|
+
function InputSelect() {
|
|
86
|
+
var _context;
|
|
87
|
+
|
|
88
|
+
var _this;
|
|
89
|
+
|
|
90
|
+
(0, _classCallCheck2["default"])(this, InputSelect);
|
|
91
|
+
|
|
92
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
93
|
+
args[_key] = arguments[_key];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
_this = _super.call.apply(_super, (0, _concat["default"])(_context = [this]).call(_context, args));
|
|
97
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onClick", function (e) {
|
|
98
|
+
var _this$props = _this.props,
|
|
99
|
+
_this$props$options = _this$props.options,
|
|
100
|
+
options = _this$props$options === void 0 ? [] : _this$props$options,
|
|
101
|
+
onSearch = _this$props.onSearch,
|
|
102
|
+
_this$props$value = _this$props.value,
|
|
103
|
+
value = _this$props$value === void 0 ? [] : _this$props$value;
|
|
104
|
+
|
|
105
|
+
if (onSearch && options.length <= value.length) {
|
|
106
|
+
onSearch(e.target.value);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSearch", function (value) {
|
|
110
|
+
var onSearch = _this.props.onSearch;
|
|
111
|
+
onSearch && onSearch(value);
|
|
112
|
+
});
|
|
113
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMatch", function (inputValue, option) {
|
|
114
|
+
var _context2;
|
|
115
|
+
|
|
116
|
+
return (0, _indexOf["default"])(_context2 = option.props.children).call(_context2, inputValue) !== -1;
|
|
117
|
+
});
|
|
118
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMatchRemark", function (inputValue, option) {
|
|
119
|
+
var _option$props = option.props,
|
|
120
|
+
text = _option$props.text,
|
|
121
|
+
remark = _option$props.remark;
|
|
122
|
+
return (0, _indexOf["default"])(text).call(text, inputValue) > -1 || (0, _indexOf["default"])(remark).call(remark, inputValue) > -1;
|
|
123
|
+
});
|
|
124
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toRemarkOption", function (option, index) {
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(SelectOption, {
|
|
126
|
+
key: index,
|
|
127
|
+
value: String(option.value),
|
|
128
|
+
text: option.title,
|
|
129
|
+
remark: option.remark || ''
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, option.title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
|
+
style: OPTION_STYLE
|
|
132
|
+
}, option.remark || ''));
|
|
133
|
+
});
|
|
134
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toOption", function (option, index) {
|
|
135
|
+
return /*#__PURE__*/_react["default"].createElement(SelectOption, {
|
|
136
|
+
key: index,
|
|
137
|
+
value: String(option.value)
|
|
138
|
+
}, option.title);
|
|
139
|
+
});
|
|
140
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (options, keyValue) {
|
|
141
|
+
var onChange = _this.props.onChange;
|
|
142
|
+
var objValue = keyValue.length > 0 ? (0, _map["default"])(keyValue).call(keyValue, function (item) {
|
|
143
|
+
return _objectSpread(_objectSpread({}, (0, _filter["default"])(options).call(options, function (o) {
|
|
144
|
+
return o.value === item.key;
|
|
145
|
+
})[0]), {}, {
|
|
146
|
+
value: item.key,
|
|
147
|
+
title: item.label
|
|
148
|
+
});
|
|
149
|
+
}) : [];
|
|
150
|
+
onChange && onChange(objValue);
|
|
151
|
+
});
|
|
152
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getValue", function () {
|
|
153
|
+
var value = _this.props.value;
|
|
154
|
+
|
|
155
|
+
if ((0, _typeof2["default"])(value) === 'object' && (0, _isArray["default"])(value)) {
|
|
156
|
+
return (0, _map["default"])(value).call(value, function (item) {
|
|
157
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
158
|
+
key: item.value,
|
|
159
|
+
label: item.title
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
} else {
|
|
163
|
+
return [];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
return _this;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
(0, _createClass2["default"])(InputSelect, [{
|
|
170
|
+
key: "render",
|
|
171
|
+
value: function render() {
|
|
172
|
+
var _context3, _context4;
|
|
173
|
+
|
|
174
|
+
var _this$props2 = this.props,
|
|
175
|
+
_this$props2$options = _this$props2.options,
|
|
176
|
+
options = _this$props2$options === void 0 ? [] : _this$props2$options,
|
|
177
|
+
size = _this$props2.size,
|
|
178
|
+
_this$props2$value = _this$props2.value,
|
|
179
|
+
value = _this$props2$value === void 0 ? [] : _this$props2$value;
|
|
180
|
+
var values = (0, _map["default"])(value).call(value, function (o) {
|
|
181
|
+
return o.value;
|
|
182
|
+
});
|
|
183
|
+
var allOptions = (0, _concat["default"])(_context3 = (0, _filter["default"])(options).call(options, function (o) {
|
|
184
|
+
return !(0, _includes["default"])(values).call(values, o.value);
|
|
185
|
+
})).call(_context3, value);
|
|
186
|
+
var props = {
|
|
187
|
+
value: this.getValue(),
|
|
188
|
+
style: this.props.style || {},
|
|
189
|
+
mode: 'multiple',
|
|
190
|
+
optionLabelProp: this.props.remark ? 'text' : 'children',
|
|
191
|
+
dropdownMatchSelectWidth: false,
|
|
192
|
+
filterOption: this.props.remark ? this.isMatchRemark : this.isMatch,
|
|
193
|
+
onSearch: this.onSearch,
|
|
194
|
+
onChange: (0, _bind["default"])(_context4 = this.onChange).call(_context4, this, allOptions),
|
|
195
|
+
labelInValue: true,
|
|
196
|
+
allowClear: true,
|
|
197
|
+
size: size
|
|
198
|
+
};
|
|
199
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
200
|
+
onClick: this.onClick
|
|
201
|
+
}, /*#__PURE__*/_react["default"].createElement(_select["default"], props, this.props.remark ? (0, _map["default"])(allOptions).call(allOptions, this.toRemarkOption) : (0, _map["default"])(allOptions).call(allOptions, this.toOption)));
|
|
202
|
+
}
|
|
203
|
+
}]);
|
|
204
|
+
return InputSelect;
|
|
205
|
+
}(_react["default"].Component);
|
|
206
|
+
|
|
207
|
+
var _default = InputSelect;
|
|
208
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
6
|
+
|
|
7
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
8
|
+
|
|
9
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
exports["default"] = void 0;
|
|
14
|
+
|
|
15
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
16
|
+
|
|
17
|
+
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
18
|
+
|
|
19
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
20
|
+
|
|
21
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
22
|
+
|
|
23
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
24
|
+
|
|
25
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
26
|
+
|
|
27
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
28
|
+
|
|
29
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
30
|
+
|
|
31
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
32
|
+
|
|
33
|
+
var _select = _interopRequireDefault(require("antd/lib/select"));
|
|
34
|
+
|
|
35
|
+
var _react = _interopRequireDefault(require("react"));
|
|
36
|
+
|
|
37
|
+
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); }; }
|
|
38
|
+
|
|
39
|
+
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; } }
|
|
40
|
+
|
|
41
|
+
var Option = _select["default"].Option;
|
|
42
|
+
|
|
43
|
+
var InputWriting = /*#__PURE__*/function (_React$Component) {
|
|
44
|
+
(0, _inherits2["default"])(InputWriting, _React$Component);
|
|
45
|
+
|
|
46
|
+
var _super = _createSuper(InputWriting);
|
|
47
|
+
|
|
48
|
+
function InputWriting() {
|
|
49
|
+
var _context;
|
|
50
|
+
|
|
51
|
+
var _this;
|
|
52
|
+
|
|
53
|
+
(0, _classCallCheck2["default"])(this, InputWriting);
|
|
54
|
+
|
|
55
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
56
|
+
args[_key] = arguments[_key];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_this = _super.call.apply(_super, (0, _concat["default"])(_context = [this]).call(_context, args));
|
|
60
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
61
|
+
options: [],
|
|
62
|
+
value: [],
|
|
63
|
+
fetching: false
|
|
64
|
+
});
|
|
65
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onClick", function (e) {
|
|
66
|
+
var _this$props = _this.props,
|
|
67
|
+
_this$props$options = _this$props.options,
|
|
68
|
+
options = _this$props$options === void 0 ? [] : _this$props$options,
|
|
69
|
+
onSearch = _this$props.onSearch,
|
|
70
|
+
value = _this$props.value;
|
|
71
|
+
|
|
72
|
+
if (onSearch && !options.length) {
|
|
73
|
+
onSearch(e.target.value);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSearch", function (value) {
|
|
77
|
+
var onSearch = _this.props.onSearch;
|
|
78
|
+
onSearch && onSearch(value);
|
|
79
|
+
});
|
|
80
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMatch", function (inputValue, option) {
|
|
81
|
+
var _context2;
|
|
82
|
+
|
|
83
|
+
return (0, _indexOf["default"])(_context2 = option.props.children).call(_context2, inputValue) !== -1;
|
|
84
|
+
});
|
|
85
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toOption", function (option, index) {
|
|
86
|
+
return /*#__PURE__*/_react["default"].createElement(SelectOption, {
|
|
87
|
+
key: index,
|
|
88
|
+
value: String(option.value)
|
|
89
|
+
}, option.title);
|
|
90
|
+
});
|
|
91
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (keyValue) {
|
|
92
|
+
var _this$props2 = _this.props,
|
|
93
|
+
onChange = _this$props2.onChange,
|
|
94
|
+
value = _this$props2.value;
|
|
95
|
+
onChange && onChange(keyValue);
|
|
96
|
+
});
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
(0, _createClass2["default"])(InputWriting, [{
|
|
101
|
+
key: "render",
|
|
102
|
+
value: function render() {
|
|
103
|
+
var value = this.props.value;
|
|
104
|
+
var props = {
|
|
105
|
+
value: value,
|
|
106
|
+
size: 'small',
|
|
107
|
+
mode: 'tags',
|
|
108
|
+
allowClear: true,
|
|
109
|
+
onSelect: this.onSelect,
|
|
110
|
+
filterOption: this.isMatch,
|
|
111
|
+
dropdownMatchSelectWidth: false,
|
|
112
|
+
onChange: this.onChange
|
|
113
|
+
};
|
|
114
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
onClick: this.onClick
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement(_select["default"], props));
|
|
117
|
+
}
|
|
118
|
+
}]);
|
|
119
|
+
return InputWriting;
|
|
120
|
+
}(_react["default"].Component);
|
|
121
|
+
|
|
122
|
+
var _default = InputWriting;
|
|
123
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
6
|
+
|
|
7
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
8
|
+
|
|
9
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
exports["default"] = void 0;
|
|
14
|
+
|
|
15
|
+
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
16
|
+
|
|
17
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
18
|
+
|
|
19
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
20
|
+
|
|
21
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
22
|
+
|
|
23
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
24
|
+
|
|
25
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
26
|
+
|
|
27
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
28
|
+
|
|
29
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
30
|
+
|
|
31
|
+
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
|
|
32
|
+
|
|
33
|
+
var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some"));
|
|
34
|
+
|
|
35
|
+
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
36
|
+
|
|
37
|
+
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
38
|
+
|
|
39
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
40
|
+
|
|
41
|
+
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
42
|
+
|
|
43
|
+
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
44
|
+
|
|
45
|
+
var _react = _interopRequireDefault(require("react"));
|
|
46
|
+
|
|
47
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
48
|
+
|
|
49
|
+
var _Header = _interopRequireDefault(require("../Header"));
|
|
50
|
+
|
|
51
|
+
var _Sidebar = _interopRequireDefault(require("../Sidebar2"));
|
|
52
|
+
|
|
53
|
+
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
54
|
+
|
|
55
|
+
var _Link = require("../Link");
|
|
56
|
+
|
|
57
|
+
var _variables = _interopRequireDefault(require("../variables"));
|
|
58
|
+
|
|
59
|
+
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); }; }
|
|
60
|
+
|
|
61
|
+
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; } }
|
|
62
|
+
|
|
63
|
+
var HeaderV = _Header["default"].Vertical;
|
|
64
|
+
|
|
65
|
+
var getCurrentSideKey = function getCurrentSideKey() {
|
|
66
|
+
var sidebars = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
67
|
+
var href = arguments.length > 1 ? arguments[1] : undefined;
|
|
68
|
+
if (!href) return '';
|
|
69
|
+
|
|
70
|
+
for (var _i = 0, _Object$keys = (0, _keys["default"])(sidebars); _i < _Object$keys.length; _i++) {
|
|
71
|
+
var _context;
|
|
72
|
+
|
|
73
|
+
var key = _Object$keys[_i];
|
|
74
|
+
|
|
75
|
+
if ((0, _some["default"])(_context = sidebars[key]).call(_context, function (item) {
|
|
76
|
+
var _context2;
|
|
77
|
+
|
|
78
|
+
return item.href === href || item.children && (0, _some["default"])(_context2 = item.children).call(_context2, function (o) {
|
|
79
|
+
return o.href === href;
|
|
80
|
+
});
|
|
81
|
+
})) {
|
|
82
|
+
return key;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var Layout = /*#__PURE__*/function (_React$Component) {
|
|
88
|
+
(0, _inherits2["default"])(Layout, _React$Component);
|
|
89
|
+
|
|
90
|
+
var _super = _createSuper(Layout);
|
|
91
|
+
|
|
92
|
+
function Layout(props) {
|
|
93
|
+
var _this;
|
|
94
|
+
|
|
95
|
+
(0, _classCallCheck2["default"])(this, Layout);
|
|
96
|
+
_this = _super.call(this, props);
|
|
97
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onOpenChange", function (sideKey, openKeys) {
|
|
98
|
+
var onOpenChange = _this.props.onOpenChange;
|
|
99
|
+
|
|
100
|
+
if (onOpenChange) {
|
|
101
|
+
onOpenChange(sideKey, openKeys);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getSidebarProps", function (sideKey) {
|
|
105
|
+
var _context3;
|
|
106
|
+
|
|
107
|
+
var _this$props = _this.props,
|
|
108
|
+
sidebars = _this$props.sidebars,
|
|
109
|
+
nav2 = _this$props.nav2,
|
|
110
|
+
_this$props$openKeys = _this$props.openKeys,
|
|
111
|
+
openKeys = _this$props$openKeys === void 0 ? {} : _this$props$openKeys,
|
|
112
|
+
navigation = _this$props.navigation;
|
|
113
|
+
var sides = sidebars[sideKey] || [];
|
|
114
|
+
return {
|
|
115
|
+
mode: _this.state.mode,
|
|
116
|
+
title: (0, _filter["default"])(navigation).call(navigation, function (o) {
|
|
117
|
+
return o.key === sideKey;
|
|
118
|
+
})[0].title,
|
|
119
|
+
activeKey: nav2,
|
|
120
|
+
items: sides,
|
|
121
|
+
openKeys: openKeys[sideKey] || [],
|
|
122
|
+
onOpenChange: (0, _bind["default"])(_context3 = _this.onOpenChange).call(_context3, (0, _assertThisInitialized2["default"])(_this), sideKey),
|
|
123
|
+
onModeChange: function onModeChange(mode) {
|
|
124
|
+
return _this.setState({
|
|
125
|
+
mode: mode
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toSidebar", function (sideKey) {
|
|
131
|
+
var hasHeaderV = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
132
|
+
|
|
133
|
+
if (!sideKey) {
|
|
134
|
+
return null;
|
|
135
|
+
} else {
|
|
136
|
+
return /*#__PURE__*/_react["default"].createElement("aside", {
|
|
137
|
+
style: {
|
|
138
|
+
marginLeft: hasHeaderV ? 40 : 0
|
|
139
|
+
}
|
|
140
|
+
}, /*#__PURE__*/_react["default"].createElement(_Sidebar["default"], _this.getSidebarProps(sideKey)));
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toHeader", function () {
|
|
144
|
+
var _context4, _context5;
|
|
145
|
+
|
|
146
|
+
var _this$props2 = _this.props,
|
|
147
|
+
loading = _this$props2.loading,
|
|
148
|
+
sidebars = _this$props2.sidebars,
|
|
149
|
+
nav1 = _this$props2.nav1,
|
|
150
|
+
nav2 = _this$props2.nav2,
|
|
151
|
+
homeUrl = _this$props2.homeUrl,
|
|
152
|
+
settingUrl = _this$props2.settingUrl,
|
|
153
|
+
messageUrl = _this$props2.messageUrl,
|
|
154
|
+
messageCount = _this$props2.messageCount,
|
|
155
|
+
userName = _this$props2.userName,
|
|
156
|
+
userIcon = _this$props2.userIcon,
|
|
157
|
+
loginUrl = _this$props2.loginUrl,
|
|
158
|
+
onMenuClick = _this$props2.onMenuClick,
|
|
159
|
+
onLogout = _this$props2.onLogout;
|
|
160
|
+
var selectKey = loading ? '' : getCurrentSideKey(sidebars, (0, _concat["default"])(_context4 = "/".concat(nav1, "/")).call(_context4, nav2));
|
|
161
|
+
var selectUrl = loading ? '' : (0, _concat["default"])(_context5 = "/".concat(nav1, "/")).call(_context5, nav2);
|
|
162
|
+
return /*#__PURE__*/_react["default"].createElement(_Header["default"], {
|
|
163
|
+
homeUrl: homeUrl,
|
|
164
|
+
settingUrl: settingUrl,
|
|
165
|
+
messageUrl: messageUrl,
|
|
166
|
+
loginUrl: loginUrl,
|
|
167
|
+
userName: userName,
|
|
168
|
+
userIcon: userIcon,
|
|
169
|
+
messageCount: messageCount,
|
|
170
|
+
selectKey: selectKey,
|
|
171
|
+
selectUrl: selectUrl,
|
|
172
|
+
onMenuClick: onMenuClick,
|
|
173
|
+
onLogout: onLogout
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "headerVProps", function (selectKey) {
|
|
177
|
+
var _context6;
|
|
178
|
+
|
|
179
|
+
var keys = ['setting', 'message'];
|
|
180
|
+
return {
|
|
181
|
+
selectKey: selectKey,
|
|
182
|
+
url: _this.state.url,
|
|
183
|
+
items: (0, _filter["default"])(_context6 = _this.props.navigation).call(_context6, function (item) {
|
|
184
|
+
return !(0, _includes["default"])(keys).call(keys, item.key);
|
|
185
|
+
})
|
|
186
|
+
};
|
|
187
|
+
});
|
|
188
|
+
_this.state = {
|
|
189
|
+
mode: 'expand',
|
|
190
|
+
url: {}
|
|
191
|
+
};
|
|
192
|
+
return _this;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
(0, _createClass2["default"])(Layout, [{
|
|
196
|
+
key: "componentWillReceiveProps",
|
|
197
|
+
value: function componentWillReceiveProps(props) {
|
|
198
|
+
if (!props.loading) {
|
|
199
|
+
var _context7, _context8;
|
|
200
|
+
|
|
201
|
+
this.setState({
|
|
202
|
+
url: (0, _assign["default"])({}, this.state.url, (0, _defineProperty2["default"])({}, getCurrentSideKey(props.sidebars, (0, _concat["default"])(_context7 = "/".concat(props.nav1, "/")).call(_context7, props.nav2)), (0, _concat["default"])(_context8 = "/".concat(props.nav1, "/")).call(_context8, props.nav2)))
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}, {
|
|
207
|
+
key: "render",
|
|
208
|
+
value: function render() {
|
|
209
|
+
var _context10;
|
|
210
|
+
|
|
211
|
+
var _this$props3 = this.props,
|
|
212
|
+
loading = _this$props3.loading,
|
|
213
|
+
sidebars = _this$props3.sidebars,
|
|
214
|
+
_this$props3$nav = _this$props3.nav1,
|
|
215
|
+
nav1 = _this$props3$nav === void 0 ? '' : _this$props3$nav,
|
|
216
|
+
_this$props3$nav2 = _this$props3.nav2,
|
|
217
|
+
nav2 = _this$props3$nav2 === void 0 ? '' : _this$props3$nav2,
|
|
218
|
+
children = _this$props3.children,
|
|
219
|
+
_this$props3$noPrivil = _this$props3.noPrivilege,
|
|
220
|
+
noPrivilege = _this$props3$noPrivil === void 0 ? false : _this$props3$noPrivil,
|
|
221
|
+
navigation = _this$props3.navigation;
|
|
222
|
+
var hasV = (0, _filter["default"])(navigation).call(navigation, function (item) {
|
|
223
|
+
var _context9;
|
|
224
|
+
|
|
225
|
+
return !(0, _includes["default"])(_context9 = ['setting', 'message']).call(_context9, item.key);
|
|
226
|
+
}).length > 1;
|
|
227
|
+
var sideKey = loading || !nav2 ? '' : getCurrentSideKey(sidebars, (0, _concat["default"])(_context10 = "/".concat(nav1, "/")).call(_context10, nav2));
|
|
228
|
+
return noPrivilege ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
|
+
style: {
|
|
230
|
+
textAlign: 'center'
|
|
231
|
+
}
|
|
232
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
233
|
+
style: {
|
|
234
|
+
lineHeight: '100px'
|
|
235
|
+
}
|
|
236
|
+
}, "\u60A8\u6682\u65E0\u6743\u9650\uFF0C\u8BF7\u786E\u8BA4\u60A8\u8D26\u53F7\u89D2\u8272\u662F\u5426\u6B63\u786E\uFF0C\u6216\u8054\u7CFB\u7BA1\u7406\u5458\u5206\u914D\u6743\u9650"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
237
|
+
type: "primary",
|
|
238
|
+
onClick: function onClick() {
|
|
239
|
+
return (0, _Link.jump)('/');
|
|
240
|
+
}
|
|
241
|
+
}, "\u8FD4\u56DE\u9996\u9875")) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
|
+
className: (0, _variables["default"])('Layout')
|
|
243
|
+
}, this.toHeader(sideKey), loading ? /*#__PURE__*/_react["default"].createElement(_Loading["default"], null) : /*#__PURE__*/_react["default"].createElement("div", null, hasV ? /*#__PURE__*/_react["default"].createElement(HeaderV, this.headerVProps(sideKey)) : null, this.toSidebar(sideKey, hasV), /*#__PURE__*/_react["default"].createElement("section", null, children)));
|
|
244
|
+
}
|
|
245
|
+
}]);
|
|
246
|
+
return Layout;
|
|
247
|
+
}(_react["default"].Component);
|
|
248
|
+
|
|
249
|
+
(0, _defineProperty2["default"])(Layout, "propTypes", {
|
|
250
|
+
children: _propTypes["default"].node.isRequired,
|
|
251
|
+
nav1: _propTypes["default"].string,
|
|
252
|
+
nav2: _propTypes["default"].string,
|
|
253
|
+
sidebars: _propTypes["default"].object,
|
|
254
|
+
openKeys: _propTypes["default"].object,
|
|
255
|
+
onOpenChange: _propTypes["default"].func
|
|
256
|
+
});
|
|
257
|
+
var _default = Layout;
|
|
258
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import '../variables.less';
|
|
2
|
+
|
|
3
|
+
.@{cloudlink-prefix}-Layout{
|
|
4
|
+
min-width: 1024px;
|
|
5
|
+
max-height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
|
|
8
|
+
> :last-child {
|
|
9
|
+
height: ~'calc(100vh - @{header-height})';
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
> :first-child {
|
|
13
|
+
position: absolute;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> aside {
|
|
17
|
+
position: inherit !important;
|
|
18
|
+
height: inherit;
|
|
19
|
+
float: left;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> section {
|
|
23
|
+
overflow: auto;
|
|
24
|
+
height: inherit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|