antd-management-fast-framework 1.12.2 → 1.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +12 -115
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +1 -0
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +25 -60
- package/es/customComponents/MobileContainor/MobileSimulation/index.d.ts +22 -0
- package/es/customComponents/MobileContainor/MobileSimulation/index.js +243 -0
- package/es/framework/DataListView/Base/index.d.ts +1 -1
- package/es/framework/DataListView/Base/index.js +3 -2
- package/es/utils/requestAssistor.d.ts +8 -0
- package/es/utils/requestAssistor.js +9 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.12.6](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.5...antd-management-fast-framework@1.12.6) (2021-12-25)
|
|
6
|
+
|
|
7
|
+
**Note:** Version bump only for package antd-management-fast-framework
|
|
8
|
+
|
|
9
|
+
### [1.12.5](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.4...antd-management-fast-framework@1.12.5) (2021-12-25)
|
|
10
|
+
|
|
11
|
+
**Note:** Version bump only for package antd-management-fast-framework
|
|
12
|
+
|
|
13
|
+
### [1.12.4](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.3...antd-management-fast-framework@1.12.4) (2021-12-24)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package antd-management-fast-framework
|
|
16
|
+
|
|
17
|
+
### [1.12.3](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.2...antd-management-fast-framework@1.12.3) (2021-12-24)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package antd-management-fast-framework
|
|
20
|
+
|
|
5
21
|
### [1.12.2](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.1...antd-management-fast-framework@1.12.2) (2021-12-24)
|
|
6
22
|
|
|
7
23
|
**Note:** Version bump only for package antd-management-fast-framework
|
|
@@ -17,19 +17,7 @@ var _constants = require("../../../utils/constants");
|
|
|
17
17
|
|
|
18
18
|
var _Base2 = _interopRequireDefault(require("../../../framework/DataOperation/Base"));
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var _RoughSketch = _interopRequireDefault(require("../Devices/RoughSketch"));
|
|
23
|
-
|
|
24
|
-
var _IphoneX = _interopRequireDefault(require("../Devices/IphoneX"));
|
|
25
|
-
|
|
26
|
-
var _Iphone8plus = _interopRequireDefault(require("../Devices/Iphone8plus"));
|
|
27
|
-
|
|
28
|
-
var _Iphone = _interopRequireDefault(require("../Devices/Iphone8"));
|
|
29
|
-
|
|
30
|
-
var _IPhone5S = _interopRequireDefault(require("../Devices/IPhone5S"));
|
|
31
|
-
|
|
32
|
-
var _GalaxyNote = _interopRequireDefault(require("../Devices/GalaxyNote8"));
|
|
20
|
+
var _MobileSimulation = _interopRequireDefault(require("../MobileSimulation"));
|
|
33
21
|
|
|
34
22
|
var _FunctionComponent = require("../../FunctionComponent");
|
|
35
23
|
|
|
@@ -128,100 +116,6 @@ var MobilePreviewArea = /*#__PURE__*/function (_Base) {
|
|
|
128
116
|
});
|
|
129
117
|
}
|
|
130
118
|
});
|
|
131
|
-
var mobileView = null;
|
|
132
|
-
|
|
133
|
-
switch (mobileType) {
|
|
134
|
-
case _constants.mobileTypeCollection.roughSketch.name:
|
|
135
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_RoughSketch.default, {
|
|
136
|
-
alertVisible: alertVisible,
|
|
137
|
-
alertAnimationType: alertAnimationType,
|
|
138
|
-
alertMessage: alertMessage,
|
|
139
|
-
alertDescription: alertDescription,
|
|
140
|
-
alertIcon: alertIcon,
|
|
141
|
-
alertType: alertType,
|
|
142
|
-
alertButtonText: alertButtonText,
|
|
143
|
-
afterAlertClick: afterAlertClick
|
|
144
|
-
}, _this.renderInnerViewWrapper());
|
|
145
|
-
break;
|
|
146
|
-
|
|
147
|
-
case _constants.mobileTypeCollection.iphoneX.name:
|
|
148
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_IphoneX.default, {
|
|
149
|
-
alertVisible: alertVisible,
|
|
150
|
-
alertAnimationType: alertAnimationType,
|
|
151
|
-
alertMessage: alertMessage,
|
|
152
|
-
alertDescription: alertDescription,
|
|
153
|
-
alertIcon: alertIcon,
|
|
154
|
-
alertType: alertType,
|
|
155
|
-
alertButtonText: alertButtonText,
|
|
156
|
-
afterAlertClick: afterAlertClick
|
|
157
|
-
}, _this.renderInnerViewWrapper());
|
|
158
|
-
break;
|
|
159
|
-
|
|
160
|
-
case _constants.mobileTypeCollection.iphone8.name:
|
|
161
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone.default, {
|
|
162
|
-
alertVisible: alertVisible,
|
|
163
|
-
alertAnimationType: alertAnimationType,
|
|
164
|
-
alertMessage: alertMessage,
|
|
165
|
-
alertDescription: alertDescription,
|
|
166
|
-
alertIcon: alertIcon,
|
|
167
|
-
alertType: alertType,
|
|
168
|
-
alertButtonText: alertButtonText,
|
|
169
|
-
afterAlertClick: afterAlertClick
|
|
170
|
-
}, _this.renderInnerViewWrapper());
|
|
171
|
-
break;
|
|
172
|
-
|
|
173
|
-
case _constants.mobileTypeCollection.iphone8plus.name:
|
|
174
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone8plus.default, {
|
|
175
|
-
alertVisible: alertVisible,
|
|
176
|
-
alertAnimationType: alertAnimationType,
|
|
177
|
-
alertMessage: alertMessage,
|
|
178
|
-
alertDescription: alertDescription,
|
|
179
|
-
alertIcon: alertIcon,
|
|
180
|
-
alertType: alertType,
|
|
181
|
-
alertButtonText: alertButtonText,
|
|
182
|
-
afterAlertClick: afterAlertClick
|
|
183
|
-
}, _this.renderInnerViewWrapper());
|
|
184
|
-
break;
|
|
185
|
-
|
|
186
|
-
case _constants.mobileTypeCollection.iPhone5S.name:
|
|
187
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_IPhone5S.default, {
|
|
188
|
-
alertVisible: alertVisible,
|
|
189
|
-
alertAnimationType: alertAnimationType,
|
|
190
|
-
alertMessage: alertMessage,
|
|
191
|
-
alertDescription: alertDescription,
|
|
192
|
-
alertIcon: alertIcon,
|
|
193
|
-
alertType: alertType,
|
|
194
|
-
alertButtonText: alertButtonText,
|
|
195
|
-
afterAlertClick: afterAlertClick
|
|
196
|
-
}, _this.renderInnerViewWrapper());
|
|
197
|
-
break;
|
|
198
|
-
|
|
199
|
-
case _constants.mobileTypeCollection.galaxyNote8.name:
|
|
200
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_GalaxyNote.default, {
|
|
201
|
-
alertVisible: alertVisible,
|
|
202
|
-
alertAnimationType: alertAnimationType,
|
|
203
|
-
alertMessage: alertMessage,
|
|
204
|
-
alertDescription: alertDescription,
|
|
205
|
-
alertIcon: alertIcon,
|
|
206
|
-
alertType: alertType,
|
|
207
|
-
alertButtonText: alertButtonText,
|
|
208
|
-
afterAlertClick: afterAlertClick
|
|
209
|
-
}, _this.renderInnerViewWrapper());
|
|
210
|
-
break;
|
|
211
|
-
|
|
212
|
-
default:
|
|
213
|
-
mobileView = null;
|
|
214
|
-
var text = 'invalid mobile type,please check in console';
|
|
215
|
-
(0, _tools.showErrorMessage)({
|
|
216
|
-
message: text
|
|
217
|
-
});
|
|
218
|
-
(0, _tools.recordObject)({
|
|
219
|
-
message: 'available mobile type list',
|
|
220
|
-
mobileTypeCollection: _constants.mobileTypeCollection
|
|
221
|
-
});
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
119
|
return {
|
|
226
120
|
list: [{
|
|
227
121
|
title: {
|
|
@@ -249,13 +143,17 @@ var MobilePreviewArea = /*#__PURE__*/function (_Base) {
|
|
|
249
143
|
items: [{
|
|
250
144
|
lg: 24,
|
|
251
145
|
type: _constants.cardConfig.contentItemType.component,
|
|
252
|
-
component: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
146
|
+
component: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_MobileSimulation.default, {
|
|
147
|
+
alertVisible: alertVisible,
|
|
148
|
+
alertAnimationType: alertAnimationType,
|
|
149
|
+
alertMessage: alertMessage,
|
|
150
|
+
alertDescription: alertDescription,
|
|
151
|
+
alertIcon: alertIcon,
|
|
152
|
+
alertType: alertType,
|
|
153
|
+
alertButtonText: alertButtonText,
|
|
154
|
+
afterAlertClick: afterAlertClick,
|
|
155
|
+
mobileType: mobileType
|
|
156
|
+
}, _this.renderInnerViewWrapper()))
|
|
259
157
|
}]
|
|
260
158
|
}]
|
|
261
159
|
};
|
|
@@ -272,7 +170,6 @@ var MobilePreviewArea = /*#__PURE__*/function (_Base) {
|
|
|
272
170
|
_this.state = _objectSpread(_objectSpread({}, _this.state), {
|
|
273
171
|
placement: 'top',
|
|
274
172
|
height: '100vh',
|
|
275
|
-
showBottomBar: false,
|
|
276
173
|
mobileType: _constants.mobileTypeCollection.roughSketch.name
|
|
277
174
|
});
|
|
278
175
|
return _this;
|
|
@@ -17,19 +17,7 @@ var _constants = require("../../../utils/constants");
|
|
|
17
17
|
|
|
18
18
|
var _BaseNeedlessLoadDrawer = _interopRequireDefault(require("../../../framework/DataDrawer/BaseNeedlessLoadDrawer"));
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var _RoughSketch = _interopRequireDefault(require("../Devices/RoughSketch"));
|
|
23
|
-
|
|
24
|
-
var _IphoneX = _interopRequireDefault(require("../Devices/IphoneX"));
|
|
25
|
-
|
|
26
|
-
var _Iphone8plus = _interopRequireDefault(require("../Devices/Iphone8plus"));
|
|
27
|
-
|
|
28
|
-
var _Iphone = _interopRequireDefault(require("../Devices/Iphone8"));
|
|
29
|
-
|
|
30
|
-
var _IPhone5S = _interopRequireDefault(require("../Devices/IPhone5S"));
|
|
31
|
-
|
|
32
|
-
var _GalaxyNote = _interopRequireDefault(require("../Devices/GalaxyNote8"));
|
|
20
|
+
var _MobileSimulation = _interopRequireDefault(require("../MobileSimulation"));
|
|
33
21
|
|
|
34
22
|
var _FunctionComponent = require("../../FunctionComponent");
|
|
35
23
|
|
|
@@ -134,59 +122,32 @@ var MobilePreviewDrawer = /*#__PURE__*/function (_BaseNeedlessLoadDraw) {
|
|
|
134
122
|
};
|
|
135
123
|
|
|
136
124
|
_this.establishCardCollectionConfig = function () {
|
|
125
|
+
var _this$props = _this.props,
|
|
126
|
+
alertVisible = _this$props.alertVisible,
|
|
127
|
+
alertAnimationType = _this$props.alertAnimationType,
|
|
128
|
+
alertMessage = _this$props.alertMessage,
|
|
129
|
+
alertDescription = _this$props.alertDescription,
|
|
130
|
+
alertIcon = _this$props.alertIcon,
|
|
131
|
+
alertType = _this$props.alertType,
|
|
132
|
+
alertButtonText = _this$props.alertButtonText,
|
|
133
|
+
afterAlertClick = _this$props.afterAlertClick;
|
|
137
134
|
var mobileType = _this.state.mobileType;
|
|
138
|
-
var mobileView = null;
|
|
139
|
-
|
|
140
|
-
switch (mobileType) {
|
|
141
|
-
case _constants.mobileTypeCollection.roughSketch.name:
|
|
142
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_RoughSketch.default, null, _this.renderInnerView());
|
|
143
|
-
break;
|
|
144
|
-
|
|
145
|
-
case _constants.mobileTypeCollection.iphoneX.name:
|
|
146
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_IphoneX.default, null, _this.renderInnerView());
|
|
147
|
-
break;
|
|
148
|
-
|
|
149
|
-
case _constants.mobileTypeCollection.iphone8.name:
|
|
150
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone.default, null, _this.renderInnerView());
|
|
151
|
-
break;
|
|
152
|
-
|
|
153
|
-
case _constants.mobileTypeCollection.iphone8plus.name:
|
|
154
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone8plus.default, null, _this.renderInnerView());
|
|
155
|
-
break;
|
|
156
|
-
|
|
157
|
-
case _constants.mobileTypeCollection.iPhone5S.name:
|
|
158
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_IPhone5S.default, null, _this.renderInnerView());
|
|
159
|
-
break;
|
|
160
|
-
|
|
161
|
-
case _constants.mobileTypeCollection.galaxyNote8.name:
|
|
162
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_GalaxyNote.default, null, _this.renderInnerView());
|
|
163
|
-
break;
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
mobileView = null;
|
|
167
|
-
var text = 'invalid mobile type,please check in console';
|
|
168
|
-
(0, _tools.showErrorMessage)({
|
|
169
|
-
message: text
|
|
170
|
-
});
|
|
171
|
-
(0, _tools.recordObject)({
|
|
172
|
-
message: 'available mobile type list',
|
|
173
|
-
mobileTypeCollection: _constants.mobileTypeCollection
|
|
174
|
-
});
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
135
|
return {
|
|
179
136
|
list: [{
|
|
180
137
|
items: [{
|
|
181
138
|
lg: 24,
|
|
182
139
|
type: _constants.cardConfig.contentItemType.component,
|
|
183
|
-
component: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
140
|
+
component: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_MobileSimulation.default, {
|
|
141
|
+
alertVisible: alertVisible,
|
|
142
|
+
alertAnimationType: alertAnimationType,
|
|
143
|
+
alertMessage: alertMessage,
|
|
144
|
+
alertDescription: alertDescription,
|
|
145
|
+
alertIcon: alertIcon,
|
|
146
|
+
alertType: alertType,
|
|
147
|
+
alertButtonText: alertButtonText,
|
|
148
|
+
afterAlertClick: afterAlertClick,
|
|
149
|
+
mobileType: mobileType
|
|
150
|
+
}, _this.renderInnerViewWrapper()))
|
|
190
151
|
}]
|
|
191
152
|
}]
|
|
192
153
|
};
|
|
@@ -196,6 +157,10 @@ var MobilePreviewDrawer = /*#__PURE__*/function (_BaseNeedlessLoadDraw) {
|
|
|
196
157
|
return null;
|
|
197
158
|
};
|
|
198
159
|
|
|
160
|
+
_this.renderInnerViewWrapper = function () {
|
|
161
|
+
return _this.renderInnerView();
|
|
162
|
+
};
|
|
163
|
+
|
|
199
164
|
_this.state = _objectSpread(_objectSpread({}, _this.state), {
|
|
200
165
|
placement: 'top',
|
|
201
166
|
height: '100vh',
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default MobileSimulation;
|
|
2
|
+
declare class MobileSimulation extends React.PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
buildMobileTypeArray: () => any[];
|
|
6
|
+
renderInnerView: () => React.ReactNode;
|
|
7
|
+
renderInnerViewWrapper: () => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare namespace MobileSimulation {
|
|
10
|
+
export namespace defaultProps {
|
|
11
|
+
export const alertVisible: boolean;
|
|
12
|
+
export const alertAnimationType: string;
|
|
13
|
+
export const alertMessage: string;
|
|
14
|
+
export const alertDescription: string;
|
|
15
|
+
export const alertType: string;
|
|
16
|
+
export const alertIcon: boolean;
|
|
17
|
+
export const alertButtonText: string;
|
|
18
|
+
export const mobileType: string;
|
|
19
|
+
export const afterAlertClick: null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import React from "react";
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _tools = require("../../../utils/tools");
|
|
13
|
+
|
|
14
|
+
var _constants = require("../../../utils/constants");
|
|
15
|
+
|
|
16
|
+
var _VerticalBox = _interopRequireDefault(require("../../VerticalBox"));
|
|
17
|
+
|
|
18
|
+
var _RoughSketch = _interopRequireDefault(require("../Devices/RoughSketch"));
|
|
19
|
+
|
|
20
|
+
var _IphoneX = _interopRequireDefault(require("../Devices/IphoneX"));
|
|
21
|
+
|
|
22
|
+
var _Iphone8plus = _interopRequireDefault(require("../Devices/Iphone8plus"));
|
|
23
|
+
|
|
24
|
+
var _Iphone = _interopRequireDefault(require("../Devices/Iphone8"));
|
|
25
|
+
|
|
26
|
+
var _IPhone5S = _interopRequireDefault(require("../Devices/IPhone5S"));
|
|
27
|
+
|
|
28
|
+
var _GalaxyNote = _interopRequireDefault(require("../Devices/GalaxyNote8"));
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
36
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
+
|
|
38
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
|
+
|
|
40
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
|
+
|
|
42
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
+
|
|
44
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
+
|
|
46
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
+
|
|
48
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
49
|
+
|
|
50
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
51
|
+
|
|
52
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
53
|
+
|
|
54
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
55
|
+
|
|
56
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
57
|
+
|
|
58
|
+
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); }; }
|
|
59
|
+
|
|
60
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
61
|
+
|
|
62
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
63
|
+
|
|
64
|
+
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; } }
|
|
65
|
+
|
|
66
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
67
|
+
|
|
68
|
+
var MobileSimulation = /*#__PURE__*/function (_PureComponent) {
|
|
69
|
+
_inherits(MobileSimulation, _PureComponent);
|
|
70
|
+
|
|
71
|
+
var _super = _createSuper(MobileSimulation);
|
|
72
|
+
|
|
73
|
+
function MobileSimulation() {
|
|
74
|
+
var _this;
|
|
75
|
+
|
|
76
|
+
_classCallCheck(this, MobileSimulation);
|
|
77
|
+
|
|
78
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
79
|
+
args[_key] = arguments[_key];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
83
|
+
|
|
84
|
+
_this.buildMobileTypeArray = function () {
|
|
85
|
+
var list = [];
|
|
86
|
+
Object.entries(_constants.mobileTypeCollection).forEach(function (o) {
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
88
|
+
var _o = _slicedToArray(o, 2),
|
|
89
|
+
k = _o[0],
|
|
90
|
+
v = _o[1];
|
|
91
|
+
|
|
92
|
+
if ((0, _tools.isObject)(v)) {
|
|
93
|
+
list.push(v);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
return list;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
_this.renderInnerView = function () {
|
|
100
|
+
var children = _this.props.children;
|
|
101
|
+
return children;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
_this.renderInnerViewWrapper = function () {
|
|
105
|
+
return _this.renderInnerView();
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
return _this;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
_createClass(MobileSimulation, [{
|
|
112
|
+
key: "render",
|
|
113
|
+
value: function render() {
|
|
114
|
+
var _this$props = this.props,
|
|
115
|
+
alertVisible = _this$props.alertVisible,
|
|
116
|
+
alertAnimationType = _this$props.alertAnimationType,
|
|
117
|
+
alertMessage = _this$props.alertMessage,
|
|
118
|
+
alertDescription = _this$props.alertDescription,
|
|
119
|
+
alertIcon = _this$props.alertIcon,
|
|
120
|
+
alertType = _this$props.alertType,
|
|
121
|
+
alertButtonText = _this$props.alertButtonText,
|
|
122
|
+
afterAlertClick = _this$props.afterAlertClick,
|
|
123
|
+
mobileType = _this$props.mobileType;
|
|
124
|
+
var mobileView = null;
|
|
125
|
+
|
|
126
|
+
switch (mobileType) {
|
|
127
|
+
case _constants.mobileTypeCollection.roughSketch.name:
|
|
128
|
+
mobileView = /*#__PURE__*/_react.default.createElement(_RoughSketch.default, {
|
|
129
|
+
alertVisible: alertVisible,
|
|
130
|
+
alertAnimationType: alertAnimationType,
|
|
131
|
+
alertMessage: alertMessage,
|
|
132
|
+
alertDescription: alertDescription,
|
|
133
|
+
alertIcon: alertIcon,
|
|
134
|
+
alertType: alertType,
|
|
135
|
+
alertButtonText: alertButtonText,
|
|
136
|
+
afterAlertClick: afterAlertClick
|
|
137
|
+
}, this.renderInnerViewWrapper());
|
|
138
|
+
break;
|
|
139
|
+
|
|
140
|
+
case _constants.mobileTypeCollection.iphoneX.name:
|
|
141
|
+
mobileView = /*#__PURE__*/_react.default.createElement(_IphoneX.default, {
|
|
142
|
+
alertVisible: alertVisible,
|
|
143
|
+
alertAnimationType: alertAnimationType,
|
|
144
|
+
alertMessage: alertMessage,
|
|
145
|
+
alertDescription: alertDescription,
|
|
146
|
+
alertIcon: alertIcon,
|
|
147
|
+
alertType: alertType,
|
|
148
|
+
alertButtonText: alertButtonText,
|
|
149
|
+
afterAlertClick: afterAlertClick
|
|
150
|
+
}, this.renderInnerViewWrapper());
|
|
151
|
+
break;
|
|
152
|
+
|
|
153
|
+
case _constants.mobileTypeCollection.iphone8.name:
|
|
154
|
+
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone.default, {
|
|
155
|
+
alertVisible: alertVisible,
|
|
156
|
+
alertAnimationType: alertAnimationType,
|
|
157
|
+
alertMessage: alertMessage,
|
|
158
|
+
alertDescription: alertDescription,
|
|
159
|
+
alertIcon: alertIcon,
|
|
160
|
+
alertType: alertType,
|
|
161
|
+
alertButtonText: alertButtonText,
|
|
162
|
+
afterAlertClick: afterAlertClick
|
|
163
|
+
}, this.renderInnerViewWrapper());
|
|
164
|
+
break;
|
|
165
|
+
|
|
166
|
+
case _constants.mobileTypeCollection.iphone8plus.name:
|
|
167
|
+
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone8plus.default, {
|
|
168
|
+
alertVisible: alertVisible,
|
|
169
|
+
alertAnimationType: alertAnimationType,
|
|
170
|
+
alertMessage: alertMessage,
|
|
171
|
+
alertDescription: alertDescription,
|
|
172
|
+
alertIcon: alertIcon,
|
|
173
|
+
alertType: alertType,
|
|
174
|
+
alertButtonText: alertButtonText,
|
|
175
|
+
afterAlertClick: afterAlertClick
|
|
176
|
+
}, this.renderInnerViewWrapper());
|
|
177
|
+
break;
|
|
178
|
+
|
|
179
|
+
case _constants.mobileTypeCollection.iPhone5S.name:
|
|
180
|
+
mobileView = /*#__PURE__*/_react.default.createElement(_IPhone5S.default, {
|
|
181
|
+
alertVisible: alertVisible,
|
|
182
|
+
alertAnimationType: alertAnimationType,
|
|
183
|
+
alertMessage: alertMessage,
|
|
184
|
+
alertDescription: alertDescription,
|
|
185
|
+
alertIcon: alertIcon,
|
|
186
|
+
alertType: alertType,
|
|
187
|
+
alertButtonText: alertButtonText,
|
|
188
|
+
afterAlertClick: afterAlertClick
|
|
189
|
+
}, this.renderInnerViewWrapper());
|
|
190
|
+
break;
|
|
191
|
+
|
|
192
|
+
case _constants.mobileTypeCollection.galaxyNote8.name:
|
|
193
|
+
mobileView = /*#__PURE__*/_react.default.createElement(_GalaxyNote.default, {
|
|
194
|
+
alertVisible: alertVisible,
|
|
195
|
+
alertAnimationType: alertAnimationType,
|
|
196
|
+
alertMessage: alertMessage,
|
|
197
|
+
alertDescription: alertDescription,
|
|
198
|
+
alertIcon: alertIcon,
|
|
199
|
+
alertType: alertType,
|
|
200
|
+
alertButtonText: alertButtonText,
|
|
201
|
+
afterAlertClick: afterAlertClick
|
|
202
|
+
}, this.renderInnerViewWrapper());
|
|
203
|
+
break;
|
|
204
|
+
|
|
205
|
+
default:
|
|
206
|
+
mobileView = null;
|
|
207
|
+
var text = 'invalid mobile type,please check in console';
|
|
208
|
+
(0, _tools.showErrorMessage)({
|
|
209
|
+
message: text
|
|
210
|
+
});
|
|
211
|
+
(0, _tools.recordObject)({
|
|
212
|
+
message: 'available mobile type list',
|
|
213
|
+
mobileTypeCollection: _constants.mobileTypeCollection
|
|
214
|
+
});
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_VerticalBox.default, {
|
|
219
|
+
align: "center",
|
|
220
|
+
alignJustify: "center",
|
|
221
|
+
style: {
|
|
222
|
+
height: '100%'
|
|
223
|
+
}
|
|
224
|
+
}, mobileView));
|
|
225
|
+
}
|
|
226
|
+
}]);
|
|
227
|
+
|
|
228
|
+
return MobileSimulation;
|
|
229
|
+
}(_react.PureComponent);
|
|
230
|
+
|
|
231
|
+
MobileSimulation.defaultProps = {
|
|
232
|
+
alertVisible: false,
|
|
233
|
+
alertAnimationType: _constants.animalType.fade,
|
|
234
|
+
alertMessage: '',
|
|
235
|
+
alertDescription: '',
|
|
236
|
+
alertType: 'info',
|
|
237
|
+
alertIcon: true,
|
|
238
|
+
alertButtonText: '刷新',
|
|
239
|
+
mobileType: _constants.mobileTypeCollection.roughSketch.name,
|
|
240
|
+
afterAlertClick: null
|
|
241
|
+
};
|
|
242
|
+
var _default = MobileSimulation;
|
|
243
|
+
exports.default = _default;
|
|
@@ -191,7 +191,7 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
191
191
|
renderListViewItem: (record: any, index: any) => JSX.Element;
|
|
192
192
|
renderListViewItemInner: (record: any, index: any) => null;
|
|
193
193
|
renderListViewItemExtra: (record: any, index: any) => null;
|
|
194
|
-
renderListViewItemActions: (record: any, index: any) => any[];
|
|
194
|
+
renderListViewItemActions: (record: any, index: any) => any[] | null;
|
|
195
195
|
renderListViewItemActionOthers: (record: any, index: any) => null;
|
|
196
196
|
renderListViewItemActionSelect: (record: any, index: any) => null;
|
|
197
197
|
renderListViewItemLayout: () => string;
|
|
@@ -1097,7 +1097,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1097
1097
|
|
|
1098
1098
|
var actionOthers = _this.renderListViewItemActionOthers(record, index);
|
|
1099
1099
|
|
|
1100
|
-
var actionSelect =
|
|
1100
|
+
var actionSelect = null;
|
|
1101
1101
|
|
|
1102
1102
|
if (showListViewItemActionSelect || false) {
|
|
1103
1103
|
actionSelect = _this.renderListViewItemActionSelect(record, index);
|
|
@@ -1107,7 +1107,8 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1107
1107
|
return _toConsumableArray((0, _tools.isArray)(actionOthers) ? actionOthers : []);
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
|
-
|
|
1110
|
+
var list = [].concat(_toConsumableArray((0, _tools.isArray)(actionOthers) ? actionOthers : []), [actionSelect]);
|
|
1111
|
+
return list.length === 0 ? null : list;
|
|
1111
1112
|
};
|
|
1112
1113
|
|
|
1113
1114
|
_this.renderListViewItemActionOthers = function (record, index) {
|
|
@@ -38,6 +38,14 @@ export function pretreatmentRequestParams(params: any, customHandle: any): {};
|
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
40
|
export function handleCommonDataAssist(state: any, action: any, callback?: any): any;
|
|
41
|
+
/**
|
|
42
|
+
* handleListDataAssist
|
|
43
|
+
* @param {*} state
|
|
44
|
+
* @param {*} action
|
|
45
|
+
* @param {*} pretreatment
|
|
46
|
+
* @param {*} callback
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
41
49
|
export function handleListDataAssist(state: any, action: any, pretreatment?: any, callback?: any): any;
|
|
42
50
|
export function handlePageListDataAssist(state: any, action: any, pretreatment?: any, callback?: any): any;
|
|
43
51
|
/**
|
|
@@ -323,6 +323,15 @@ function handleCommonDataAssist(state, action) {
|
|
|
323
323
|
fromRemote: true
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* handleListDataAssist
|
|
328
|
+
* @param {*} state
|
|
329
|
+
* @param {*} action
|
|
330
|
+
* @param {*} pretreatment
|
|
331
|
+
* @param {*} callback
|
|
332
|
+
* @returns
|
|
333
|
+
*/
|
|
334
|
+
|
|
326
335
|
|
|
327
336
|
function handleListDataAssist(state, action) {
|
|
328
337
|
var pretreatment = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.6",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"commitizen": "^4.2.4",
|
|
104
104
|
"cross-env": "^7.0.3",
|
|
105
105
|
"eslint": "^8.5.0",
|
|
106
|
-
"eslint-config-airbnb": "^19.0.
|
|
106
|
+
"eslint-config-airbnb": "^19.0.3",
|
|
107
107
|
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
108
108
|
"eslint-config-prettier": "^8.3.0",
|
|
109
109
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"import-sort-parser-typescript": "^6.0.0",
|
|
123
123
|
"import-sort-style-module": "^6.0.0",
|
|
124
124
|
"lerna": "^4.0.0",
|
|
125
|
-
"lint-staged": "^12.1.
|
|
125
|
+
"lint-staged": "^12.1.4",
|
|
126
126
|
"npm-run-all": "^4.1.5",
|
|
127
127
|
"pify": "^5.0.0",
|
|
128
128
|
"postcss": "^8.4.5",
|