tntd 1.4.32 → 1.4.33-beta.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/components/Ellipsis/index.js +47 -15
- package/components/QueryListScene/QueryForm.js +4 -4
- package/components/QueryListScene/createActions.js +4 -4
- package/dist/1.tntd.js +1 -1
- package/dist/stats.json +24089 -23289
- package/dist/tntd.css +1 -1
- package/dist/tntd.js +7 -10
- package/es/ArrayInput/icon.js +5 -5
- package/es/ArrayInput/index.js +79 -111
- package/es/AuthContext.js +1 -1
- package/es/Columns/index.js +33 -40
- package/es/DevelopmentLogin/LoginModal.js +33 -46
- package/es/DevelopmentLogin/index.js +14 -18
- package/es/Ellipsis/Svg/CopySVG.js +13 -13
- package/es/Ellipsis/Svg/TickSVG.js +8 -8
- package/es/Ellipsis/index.js +100 -79
- package/es/Handle/index.js +46 -64
- package/es/Icon/fonts/iconfont.js +7 -12
- package/es/Icon/index.js +12 -15
- package/es/Img/Contain.js +26 -31
- package/es/Img/Cover.js +43 -57
- package/es/Img/index.js +39 -48
- package/es/Layout/ActionsContext.js +3 -2
- package/es/Layout/AppList.js +39 -94
- package/es/Layout/Application.js +28 -74
- package/es/Layout/Avatar.js +30 -67
- package/es/Layout/CompatibleLanguage.js +41 -96
- package/es/Layout/EnterpriseLayout/Avatar.js +39 -77
- package/es/Layout/EnterpriseLayout/Language.js +16 -34
- package/es/Layout/EnterpriseLayout/Theme.js +18 -36
- package/es/Layout/EnterpriseLayout/index.js +14 -16
- package/es/Layout/GlobalNavigation/NavigationPopup.js +61 -172
- package/es/Layout/GlobalNavigation/index.js +22 -56
- package/es/Layout/Header.js +26 -47
- package/es/Layout/HeaderActions.js +45 -59
- package/es/Layout/HeaderNavs.js +24 -51
- package/es/Layout/HeaderTabs.js +53 -106
- package/es/Layout/Iconfont.js +1 -1
- package/es/Layout/Language.js +16 -34
- package/es/Layout/Layout.js +88 -110
- package/es/Layout/Logo.js +17 -33
- package/es/Layout/OrgAppList.js +64 -109
- package/es/Layout/SideMenu.js +67 -128
- package/es/Layout/Theme.js +25 -63
- package/es/Layout/index.js +28 -37
- package/es/Layout/paaslayout/CompactSideMenu.js +37 -76
- package/es/Layout/paaslayout/Header.js +23 -46
- package/es/Layout/paaslayout/Logo.js +4 -14
- package/es/Layout/paaslayout/SideMenu.js +41 -80
- package/es/Layout/paaslayout/index.js +77 -104
- package/es/Layout/storage.js +10 -9
- package/es/LoadingButton/index.js +18 -27
- package/es/Modal/index.js +42 -51
- package/es/Page/Box.js +36 -43
- package/es/Page/index.js +56 -71
- package/es/Page/utils.js +0 -5
- package/es/QueryForm/Field/Checkbox.js +7 -11
- package/es/QueryForm/Field/Select.js +34 -44
- package/es/QueryForm/Field/SelectInput.js +31 -46
- package/es/QueryForm/Field/fieldsMap.js +0 -1
- package/es/QueryForm/Field/index.js +46 -78
- package/es/QueryForm/createActions.js +6 -7
- package/es/QueryForm/index.js +79 -140
- package/es/QueryListScene/List.js +83 -139
- package/es/QueryListScene/QueryForm.js +54 -91
- package/es/QueryListScene/QueryListScene.js +29 -47
- package/es/QueryListScene/Title.js +3 -3
- package/es/QueryListScene/Toolbar.js +13 -14
- package/es/QueryListScene/createActions.js +4 -4
- package/es/Select/DropDownWrap.js +32 -55
- package/es/Select/index.js +140 -232
- package/es/Table/ResizableTable/index.js +29 -43
- package/es/Table/index.js +20 -19
- package/es/Title/index.js +23 -25
- package/es/locale.js +1 -5
- package/es/utils/checkAuth.js +6 -8
- package/es/utils/findMenuInfoByPath.js +0 -4
- package/es/utils/index.js +17 -27
- package/lib/ArrayInput/icon.js +7 -9
- package/lib/ArrayInput/index.js +82 -131
- package/lib/AuthContext.js +2 -6
- package/lib/Columns/index.js +36 -54
- package/lib/DevelopmentLogin/LoginModal.js +36 -63
- package/lib/DevelopmentLogin/index.js +21 -31
- package/lib/Ellipsis/Svg/CopySVG.js +15 -18
- package/lib/Ellipsis/Svg/TickSVG.js +10 -13
- package/lib/Ellipsis/index.js +105 -93
- package/lib/Handle/index.js +51 -87
- package/lib/Icon/fonts/iconfont.js +7 -12
- package/lib/Icon/iconList.js +1 -2
- package/lib/Icon/index.js +16 -26
- package/lib/Img/Contain.js +29 -40
- package/lib/Img/Cover.js +48 -72
- package/lib/Img/index.js +42 -58
- package/lib/Layout/ActionsContext.js +1 -5
- package/lib/Layout/AppList.js +45 -124
- package/lib/Layout/Application.js +31 -92
- package/lib/Layout/Avatar.js +36 -91
- package/lib/Layout/CompatibleLanguage.js +44 -116
- package/lib/Layout/EnterpriseLayout/Avatar.js +45 -105
- package/lib/Layout/EnterpriseLayout/Language.js +22 -54
- package/lib/Layout/EnterpriseLayout/Theme.js +21 -50
- package/lib/Layout/EnterpriseLayout/index.js +17 -27
- package/lib/Layout/GlobalNavigation/NavigationPopup.js +64 -192
- package/lib/Layout/GlobalNavigation/index.js +28 -80
- package/lib/Layout/Header.js +36 -68
- package/lib/Layout/HeaderActions.js +51 -81
- package/lib/Layout/HeaderNavs.js +30 -70
- package/lib/Layout/HeaderTabs.js +58 -127
- package/lib/Layout/Iconfont.js +4 -9
- package/lib/Layout/Language.js +22 -54
- package/lib/Layout/Layout.js +93 -134
- package/lib/Layout/Logo.js +26 -47
- package/lib/Layout/OrgAppList.js +69 -133
- package/lib/Layout/SideMenu.js +72 -151
- package/lib/Layout/Theme.js +28 -79
- package/lib/Layout/createActions.js +3 -9
- package/lib/Layout/images/index.js +5 -36
- package/lib/Layout/index.js +35 -63
- package/lib/Layout/paaslayout/CompactSideMenu.js +40 -90
- package/lib/Layout/paaslayout/Header.js +30 -60
- package/lib/Layout/paaslayout/Logo.js +11 -24
- package/lib/Layout/paaslayout/SideMenu.js +44 -93
- package/lib/Layout/paaslayout/index.js +82 -128
- package/lib/Layout/storage.js +26 -68
- package/lib/LoadingButton/index.js +21 -36
- package/lib/Modal/index.js +45 -62
- package/lib/Page/Box.js +38 -50
- package/lib/Page/index.js +58 -84
- package/lib/Page/utils.js +5 -16
- package/lib/QueryForm/Field/Checkbox.js +10 -19
- package/lib/QueryForm/Field/Select.js +39 -60
- package/lib/QueryForm/Field/SelectInput.js +36 -65
- package/lib/QueryForm/Field/fieldsMap.js +6 -23
- package/lib/QueryForm/Field/index.js +50 -91
- package/lib/QueryForm/createActions.js +9 -16
- package/lib/QueryForm/index.js +83 -165
- package/lib/QueryForm/useForm.js +1 -6
- package/lib/QueryListScene/List.js +89 -153
- package/lib/QueryListScene/QueryForm.js +58 -101
- package/lib/QueryListScene/QueryListScene.js +31 -56
- package/lib/QueryListScene/Title.js +6 -11
- package/lib/QueryListScene/Toolbar.js +16 -22
- package/lib/QueryListScene/createActions.js +7 -13
- package/lib/QueryListScene/index.js +5 -19
- package/lib/QueryListScene/useActions.js +1 -6
- package/lib/Select/DropDownWrap.js +35 -63
- package/lib/Select/index.js +142 -245
- package/lib/Table/ResizableTable/index.js +31 -54
- package/lib/Table/index.js +21 -34
- package/lib/Title/index.js +26 -34
- package/lib/index.js +36 -57
- package/lib/locale.js +9 -25
- package/lib/utils/checkAuth.js +9 -16
- package/lib/utils/findMenuInfoByPath.js +3 -12
- package/lib/utils/index.js +26 -60
- package/package.json +3 -2
|
@@ -1,135 +1,102 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
22
|
-
|
|
23
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24
|
-
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
|
-
|
|
27
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
28
|
-
|
|
29
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["className", "actions", "extraActions", "extralActions", "qlsProps"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
10
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
11
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
16
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
19
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
20
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
31
21
|
import React from 'react';
|
|
32
22
|
import classnames from 'classnames';
|
|
33
23
|
import Form from '../QueryForm';
|
|
34
24
|
var clsPrefix = 'tnt-querylistscene-queryform';
|
|
35
|
-
|
|
36
|
-
var QueryForm =
|
|
37
|
-
/*#__PURE__*/
|
|
38
|
-
function (_React$PureComponent) {
|
|
39
|
-
_inherits(QueryForm, _React$PureComponent);
|
|
40
|
-
|
|
25
|
+
var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
41
26
|
function QueryForm(props) {
|
|
42
27
|
var _this;
|
|
43
|
-
|
|
44
28
|
_classCallCheck(this, QueryForm);
|
|
45
|
-
|
|
46
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryForm).call(this, props));
|
|
47
|
-
|
|
29
|
+
_this = _callSuper(this, QueryForm, [props]);
|
|
48
30
|
_this.onSearch = function () {
|
|
49
31
|
var _this$props = _this.props,
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
onSearch = _this$props.onSearch,
|
|
33
|
+
actions = _this$props.actions;
|
|
52
34
|
var values = actions.getFormData();
|
|
53
|
-
|
|
54
|
-
var params = _objectSpread({}, values, {
|
|
35
|
+
var params = _objectSpread(_objectSpread({}, values), {}, {
|
|
55
36
|
current: 1
|
|
56
|
-
});
|
|
57
|
-
|
|
37
|
+
});
|
|
58
38
|
|
|
39
|
+
// memory 与 url解析setForm时 监听事件异步
|
|
59
40
|
actions.setData('formData', values);
|
|
60
41
|
Promise.resolve().then(function () {
|
|
61
42
|
onSearch && onSearch(params);
|
|
62
43
|
actions.emit('search', params);
|
|
63
44
|
});
|
|
64
45
|
};
|
|
65
|
-
|
|
66
46
|
_this.onReset = function () {
|
|
67
47
|
var _this$props2 = _this.props,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
48
|
+
initialValues = _this$props2.initialValues,
|
|
49
|
+
onReset = _this$props2.onReset,
|
|
50
|
+
actions = _this$props2.actions;
|
|
71
51
|
actions.setFormData(initialValues, false);
|
|
72
|
-
onReset
|
|
73
|
-
|
|
52
|
+
onReset == null ? void 0 : onReset(initialValues);
|
|
74
53
|
_this.onSearch();
|
|
75
54
|
};
|
|
76
|
-
|
|
77
55
|
_this.onChange = function (newValues, changedInfo) {
|
|
78
56
|
var _this$props3 = _this.props,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
57
|
+
onChange = _this$props3.onChange,
|
|
58
|
+
actions = _this$props3.actions;
|
|
59
|
+
actions.setFormData(newValues, false);
|
|
82
60
|
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
83
61
|
rest[_key - 2] = arguments[_key];
|
|
84
62
|
}
|
|
85
|
-
|
|
86
|
-
onChange && onChange.apply(void 0, [newValues, changedInfo].concat(rest));
|
|
87
|
-
actions.setFormData(newValues, false);
|
|
63
|
+
onChange == null ? void 0 : onChange.apply(void 0, [newValues, changedInfo].concat(rest));
|
|
88
64
|
};
|
|
89
|
-
|
|
90
65
|
_this.setFormData = function (data, needSearch) {
|
|
91
66
|
var actions = _this.props.actions;
|
|
92
67
|
actions.setData('formData', data);
|
|
93
|
-
|
|
94
68
|
_this.form.setValues(data);
|
|
95
|
-
|
|
96
69
|
needSearch && _this.onSearch();
|
|
97
70
|
};
|
|
98
|
-
|
|
99
71
|
_this.resetFormData = function (needSearch) {
|
|
100
72
|
var _this$props4 = _this.props,
|
|
101
|
-
|
|
102
|
-
|
|
73
|
+
initialValues = _this$props4.initialValues,
|
|
74
|
+
actions = _this$props4.actions;
|
|
103
75
|
actions.setFormData(initialValues, needSearch);
|
|
104
|
-
|
|
105
76
|
_this.form.resetValues();
|
|
106
77
|
};
|
|
107
|
-
|
|
108
78
|
var _actions = props.actions,
|
|
109
|
-
|
|
79
|
+
form = props.form;
|
|
110
80
|
_this.form = form || Form.createForm();
|
|
111
|
-
|
|
112
81
|
_actions.on('setFormData', _this.setFormData);
|
|
113
|
-
|
|
114
82
|
_actions.on('resetFormData', _this.resetFormData);
|
|
115
|
-
|
|
116
83
|
return _this;
|
|
117
84
|
}
|
|
118
|
-
|
|
119
|
-
_createClass(QueryForm, [{
|
|
85
|
+
_inherits(QueryForm, _React$PureComponent);
|
|
86
|
+
return _createClass(QueryForm, [{
|
|
120
87
|
key: "render",
|
|
121
88
|
value: function render() {
|
|
122
89
|
var _this$props5 = this.props,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return React.createElement(Form, _extends({}, props, {
|
|
90
|
+
className = _this$props5.className,
|
|
91
|
+
actions = _this$props5.actions,
|
|
92
|
+
extraActions = _this$props5.extraActions,
|
|
93
|
+
extralActions = _this$props5.extralActions,
|
|
94
|
+
qlsProps = _this$props5.qlsProps,
|
|
95
|
+
props = _objectWithoutProperties(_this$props5, _excluded);
|
|
96
|
+
return /*#__PURE__*/React.createElement(Form, _extends({}, props, {
|
|
131
97
|
form: this.form,
|
|
132
|
-
className: classnames(clsPrefix, _defineProperty({}, className, className))
|
|
98
|
+
className: classnames(clsPrefix, _defineProperty({}, className, className))
|
|
99
|
+
// 前期拼写错误,导致需要兼容错误的api
|
|
133
100
|
,
|
|
134
101
|
extraActions: extraActions || extralActions,
|
|
135
102
|
onChange: this.onChange,
|
|
@@ -141,13 +108,12 @@ function (_React$PureComponent) {
|
|
|
141
108
|
key: "componentDidMount",
|
|
142
109
|
value: function componentDidMount() {
|
|
143
110
|
var _this$props6 = this.props,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
111
|
+
_this$props6$initialV = _this$props6.initialValues,
|
|
112
|
+
initialValues = _this$props6$initialV === void 0 ? {} : _this$props6$initialV,
|
|
113
|
+
actions = _this$props6.actions,
|
|
114
|
+
qlsProps = _this$props6.qlsProps;
|
|
149
115
|
if (qlsProps.memory) {
|
|
150
|
-
actions.setFormData(_objectSpread({}, initialValues,
|
|
116
|
+
actions.setFormData(_objectSpread(_objectSpread({}, initialValues), actions.getFormData()), false);
|
|
151
117
|
} else {
|
|
152
118
|
actions.setData('formData', initialValues);
|
|
153
119
|
}
|
|
@@ -160,10 +126,7 @@ function (_React$PureComponent) {
|
|
|
160
126
|
actions.removeListener('resetFormData', this.resetFormData);
|
|
161
127
|
}
|
|
162
128
|
}]);
|
|
163
|
-
|
|
164
|
-
return QueryForm;
|
|
165
129
|
}(React.PureComponent);
|
|
166
|
-
|
|
167
130
|
export { QueryForm as default };
|
|
168
131
|
;
|
|
169
132
|
QueryForm.Field = Form.Field;
|
|
@@ -1,76 +1,58 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
|
-
|
|
17
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
18
|
-
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
4
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
10
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
13
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
14
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
21
15
|
import React from 'react';
|
|
22
16
|
import cn from 'classnames';
|
|
23
17
|
import Title from './Title';
|
|
24
18
|
import Toolbar from './Toolbar';
|
|
25
19
|
import createActions from './createActions';
|
|
26
|
-
|
|
27
|
-
var QueryListScene =
|
|
28
|
-
/*#__PURE__*/
|
|
29
|
-
function (_React$Component) {
|
|
30
|
-
_inherits(QueryListScene, _React$Component);
|
|
31
|
-
|
|
20
|
+
var QueryListScene = /*#__PURE__*/function (_React$Component) {
|
|
32
21
|
function QueryListScene(props) {
|
|
33
22
|
var _this;
|
|
34
|
-
|
|
35
23
|
_classCallCheck(this, QueryListScene);
|
|
36
|
-
|
|
37
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryListScene).call(this, props));
|
|
24
|
+
_this = _callSuper(this, QueryListScene, [props]);
|
|
38
25
|
_this.actions = props.actions || createActions();
|
|
39
26
|
return _this;
|
|
40
27
|
}
|
|
41
|
-
|
|
42
|
-
_createClass(QueryListScene, [{
|
|
28
|
+
_inherits(QueryListScene, _React$Component);
|
|
29
|
+
return _createClass(QueryListScene, [{
|
|
43
30
|
key: "render",
|
|
44
31
|
value: function render() {
|
|
45
|
-
var
|
|
46
|
-
_this2 = this;
|
|
47
|
-
|
|
32
|
+
var _this2 = this;
|
|
48
33
|
var _this$props = this.props,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
34
|
+
title = _this$props.title,
|
|
35
|
+
children = _this$props.children,
|
|
36
|
+
size = _this$props.size,
|
|
37
|
+
_this$props$className = _this$props.className,
|
|
38
|
+
className = _this$props$className === void 0 ? '' : _this$props$className;
|
|
54
39
|
var hasToolbar = [].some.call(children || [], function (child) {
|
|
55
40
|
return (child == null ? void 0 : child.type) === Toolbar;
|
|
56
41
|
});
|
|
57
|
-
return React.createElement("div", {
|
|
58
|
-
className: cn('tnt-querylistscene', (
|
|
59
|
-
}, title && React.createElement(Title, {
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: cn('tnt-querylistscene', _defineProperty(_defineProperty(_defineProperty({}, className, className), 'large-size', size === 'large'), "hasToolbar", hasToolbar))
|
|
44
|
+
}, title && /*#__PURE__*/React.createElement(Title, {
|
|
60
45
|
title: title,
|
|
61
46
|
size: size
|
|
62
|
-
}), React.createElement("div", {
|
|
47
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
63
48
|
className: "tnt-querylistscene-content"
|
|
64
49
|
}, React.Children.map(children, function (child) {
|
|
65
|
-
return child && React.cloneElement(child, {
|
|
50
|
+
return child && /*#__PURE__*/React.cloneElement(child, {
|
|
66
51
|
qlsProps: _this2.props,
|
|
67
52
|
actions: _this2.actions
|
|
68
53
|
});
|
|
69
54
|
})));
|
|
70
55
|
}
|
|
71
56
|
}]);
|
|
72
|
-
|
|
73
|
-
return QueryListScene;
|
|
74
57
|
}(React.Component);
|
|
75
|
-
|
|
76
58
|
export { QueryListScene as default };
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
export default (function (_ref) {
|
|
7
7
|
var title = _ref.title,
|
|
8
|
-
|
|
9
|
-
return React.createElement("div", {
|
|
8
|
+
children = _ref.children;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
10
|
className: "tnt-querylistscene-title"
|
|
11
|
-
}, React.createElement("span", null, title), React.createElement("span", null, children));
|
|
11
|
+
}, /*#__PURE__*/React.createElement("span", null, title), /*#__PURE__*/React.createElement("span", null, children));
|
|
12
12
|
});
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["className", "children", "actions", "qslProps"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
9
|
import cn from 'classnames';
|
|
10
10
|
export default (function (_ref) {
|
|
11
11
|
var className = _ref.className,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return React.createElement("div", _extends({}, rest, {
|
|
12
|
+
children = _ref.children,
|
|
13
|
+
actions = _ref.actions,
|
|
14
|
+
qslProps = _ref.qslProps,
|
|
15
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
18
17
|
className: cn('tnt-querylistscene-toolbar', _defineProperty({}, className, className))
|
|
19
18
|
}), children);
|
|
20
19
|
});
|
|
@@ -26,7 +26,7 @@ export default (function () {
|
|
|
26
26
|
},
|
|
27
27
|
setFormData: function setFormData(formData) {
|
|
28
28
|
var needSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
29
|
-
set('formData', formData);
|
|
29
|
+
set(data, 'formData', formData);
|
|
30
30
|
eventEmitter.emit('setFormData', formData, needSearch);
|
|
31
31
|
},
|
|
32
32
|
resetFormData: function resetFormData() {
|
|
@@ -34,11 +34,11 @@ export default (function () {
|
|
|
34
34
|
eventEmitter.emit('resetFormData', needSearch);
|
|
35
35
|
},
|
|
36
36
|
setTableDataSource: function setTableDataSource(dataSource) {
|
|
37
|
-
set('dataSource', dataSource);
|
|
37
|
+
set(data, 'dataSource', dataSource);
|
|
38
38
|
eventEmitter.emit('setTableDataSource', dataSource);
|
|
39
39
|
},
|
|
40
40
|
setPagination: function setPagination(pagination) {
|
|
41
|
-
set('pagination', pagination);
|
|
41
|
+
set(data, 'pagination', pagination);
|
|
42
42
|
eventEmitter.emit('setPagination', pagination);
|
|
43
43
|
},
|
|
44
44
|
// 重置记忆数据,form、pagination
|
|
@@ -49,7 +49,7 @@ export default (function () {
|
|
|
49
49
|
search: function search() {
|
|
50
50
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
51
51
|
var showLoading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
52
|
-
return new Promise(function (resolve
|
|
52
|
+
return new Promise(function (resolve) {
|
|
53
53
|
eventEmitter.emit('search', params, {
|
|
54
54
|
callback: resolve,
|
|
55
55
|
showLoading: showLoading
|
|
@@ -1,41 +1,25 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
|
-
|
|
19
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
20
|
-
|
|
21
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
|
-
|
|
23
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
12
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
13
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
15
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
25
17
|
import React, { PureComponent } from 'react';
|
|
26
|
-
|
|
27
|
-
var DropDownWrap =
|
|
28
|
-
/*#__PURE__*/
|
|
29
|
-
function (_PureComponent) {
|
|
30
|
-
_inherits(DropDownWrap, _PureComponent);
|
|
31
|
-
|
|
18
|
+
var DropDownWrap = /*#__PURE__*/function (_PureComponent) {
|
|
32
19
|
function DropDownWrap(props) {
|
|
33
20
|
var _this;
|
|
34
|
-
|
|
35
21
|
_classCallCheck(this, DropDownWrap);
|
|
36
|
-
|
|
37
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(DropDownWrap).call(this, props));
|
|
38
|
-
|
|
22
|
+
_this = _callSuper(this, DropDownWrap, [props]);
|
|
39
23
|
_this.getItemStyle = function (i) {
|
|
40
24
|
var itemHeight = _this.props.itemHeight;
|
|
41
25
|
return {
|
|
@@ -45,7 +29,6 @@ function (_PureComponent) {
|
|
|
45
29
|
width: '100%'
|
|
46
30
|
};
|
|
47
31
|
};
|
|
48
|
-
|
|
49
32
|
_this.reactList = function (allHeight, startIndex, endIndex) {
|
|
50
33
|
return _this.setState({
|
|
51
34
|
allHeight: allHeight,
|
|
@@ -53,10 +36,9 @@ function (_PureComponent) {
|
|
|
53
36
|
endIndex: endIndex
|
|
54
37
|
});
|
|
55
38
|
};
|
|
56
|
-
|
|
57
39
|
var _allHeight = props.allHeight,
|
|
58
|
-
|
|
59
|
-
|
|
40
|
+
_startIndex = props.startIndex,
|
|
41
|
+
_endIndex = props.endIndex;
|
|
60
42
|
_this.state = {
|
|
61
43
|
allHeight: _allHeight,
|
|
62
44
|
startIndex: _startIndex,
|
|
@@ -64,8 +46,8 @@ function (_PureComponent) {
|
|
|
64
46
|
};
|
|
65
47
|
return _this;
|
|
66
48
|
}
|
|
67
|
-
|
|
68
|
-
_createClass(DropDownWrap, [{
|
|
49
|
+
_inherits(DropDownWrap, _PureComponent);
|
|
50
|
+
return _createClass(DropDownWrap, [{
|
|
69
51
|
key: "componentDidUpdate",
|
|
70
52
|
value: function componentDidUpdate(prevProps) {
|
|
71
53
|
if (this.props.allHeight !== prevProps.allHeight) {
|
|
@@ -78,29 +60,27 @@ function (_PureComponent) {
|
|
|
78
60
|
key: "render",
|
|
79
61
|
value: function render() {
|
|
80
62
|
var _this2 = this;
|
|
81
|
-
|
|
82
63
|
var menu = this.props.menu;
|
|
83
64
|
var _this$state = this.state,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
65
|
+
startIndex = _this$state.startIndex,
|
|
66
|
+
endIndex = _this$state.endIndex,
|
|
67
|
+
allHeight = _this$state.allHeight;
|
|
87
68
|
|
|
88
|
-
|
|
69
|
+
// 截取 Select 下拉列表中需要显示的部分
|
|
70
|
+
var cloneMenu = /*#__PURE__*/React.cloneElement(menu, {
|
|
89
71
|
menuItems: menu.props.menuItems.slice(startIndex, endIndex).map(function (item, i) {
|
|
90
72
|
var realIndex = (startIndex || 0) + Number(i);
|
|
73
|
+
var style = _this2.getItemStyle(realIndex);
|
|
91
74
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
75
|
+
// 未搜到数据提示高度使用默认高度
|
|
95
76
|
if (item.key === 'NOT_FOUND') {
|
|
96
77
|
delete style.height;
|
|
97
78
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
style: _objectSpread({}, item.props.style, {}, style)
|
|
79
|
+
return /*#__PURE__*/React.cloneElement(item, {
|
|
80
|
+
style: _objectSpread(_objectSpread({}, item.props.style), style)
|
|
101
81
|
});
|
|
102
82
|
}),
|
|
103
|
-
dropdownMenuStyle: _objectSpread({}, menu.props.dropdownMenuStyle, {
|
|
83
|
+
dropdownMenuStyle: _objectSpread(_objectSpread({}, menu.props.dropdownMenuStyle), {}, {
|
|
104
84
|
height: allHeight,
|
|
105
85
|
maxHeight: allHeight,
|
|
106
86
|
overflow: 'hidden'
|
|
@@ -109,8 +89,5 @@ function (_PureComponent) {
|
|
|
109
89
|
return cloneMenu;
|
|
110
90
|
}
|
|
111
91
|
}]);
|
|
112
|
-
|
|
113
|
-
return DropDownWrap;
|
|
114
92
|
}(PureComponent);
|
|
115
|
-
|
|
116
93
|
export { DropDownWrap as default };
|