antd-management-fast-framework 1.11.59 → 1.12.2
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 +28 -0
- package/es/customComponents/Editor/TinymceWrapper/index.js +1 -1
- package/es/customComponents/MobileContainor/ContentView/index.d.ts +13 -0
- package/es/customComponents/MobileContainor/ContentView/index.js +94 -5
- package/es/customComponents/MobileContainor/ContentView/index.less +21 -15
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +14 -2
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +40 -10
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +11 -3
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +39 -12
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +11 -3
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +40 -13
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +11 -3
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +40 -13
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +15 -2
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +41 -10
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +18 -0
- package/es/customComponents/MobileContainor/{RoughSketch → Devices/RoughSketch}/index.js +41 -11
- package/es/customComponents/MobileContainor/{RoughSketch → Devices/RoughSketch}/index.less +0 -0
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +12 -0
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +80 -0
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +12 -3
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +93 -18
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +1 -1
- package/es/framework/Common/index.js +12 -3
- package/es/framework/DataListView/Base/index.js +12 -3
- package/es/utils/constants.d.ts +17 -21
- package/es/utils/constants.js +2 -1
- package/es/utils/mediaDefault.d.ts +3 -0
- package/es/utils/mediaDefault.js +4 -0
- package/package.json +7 -7
- package/es/customComponents/MobileContainor/RoughSketch/index.d.ts +0 -6
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _tools = require("../../../../utils/tools");
|
|
15
15
|
|
|
16
|
+
var _constants = require("../../../../utils/constants");
|
|
17
|
+
|
|
16
18
|
var _ContentView = _interopRequireDefault(require("../../ContentView"));
|
|
17
19
|
|
|
18
20
|
var _devices = _interopRequireDefault(require("../devices.less"));
|
|
@@ -43,23 +45,31 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
43
45
|
|
|
44
46
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
47
|
|
|
46
|
-
var
|
|
47
|
-
_inherits(
|
|
48
|
+
var Iphone8plus = /*#__PURE__*/function (_PureComponent) {
|
|
49
|
+
_inherits(Iphone8plus, _PureComponent);
|
|
48
50
|
|
|
49
|
-
var _super = _createSuper(
|
|
51
|
+
var _super = _createSuper(Iphone8plus);
|
|
50
52
|
|
|
51
|
-
function
|
|
52
|
-
_classCallCheck(this,
|
|
53
|
+
function Iphone8plus() {
|
|
54
|
+
_classCallCheck(this, Iphone8plus);
|
|
53
55
|
|
|
54
56
|
return _super.apply(this, arguments);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
_createClass(
|
|
59
|
+
_createClass(Iphone8plus, [{
|
|
58
60
|
key: "render",
|
|
59
61
|
value: function render() {
|
|
60
62
|
var _this$props = this.props,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
alertVisible = _this$props.alertVisible,
|
|
64
|
+
alertAnimationType = _this$props.alertAnimationType,
|
|
65
|
+
alertMessage = _this$props.alertMessage,
|
|
66
|
+
alertDescription = _this$props.alertDescription,
|
|
67
|
+
alertIcon = _this$props.alertIcon,
|
|
68
|
+
alertType = _this$props.alertType,
|
|
69
|
+
alertButtonText = _this$props.alertButtonText,
|
|
70
|
+
afterAlertClick = _this$props.afterAlertClick,
|
|
71
|
+
children = _this$props.children,
|
|
72
|
+
typeSource = _this$props.type;
|
|
63
73
|
var type = (0, _tools.inCollection)(['black', 'silver', 'gold'], typeSource) ? typeSource : 'silver';
|
|
64
74
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
75
|
className: _devices.default.devices
|
|
@@ -79,7 +89,16 @@ var Index = /*#__PURE__*/function (_PureComponent) {
|
|
|
79
89
|
className: _devices.default.speaker
|
|
80
90
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
81
91
|
className: _devices.default.screen
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement(_ContentView.default,
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_ContentView.default, {
|
|
93
|
+
alertVisible: alertVisible,
|
|
94
|
+
alertAnimationType: alertAnimationType,
|
|
95
|
+
alertMessage: alertMessage,
|
|
96
|
+
alertDescription: alertDescription,
|
|
97
|
+
alertIcon: alertIcon,
|
|
98
|
+
alertType: alertType,
|
|
99
|
+
alertButtonText: alertButtonText,
|
|
100
|
+
afterAlertClick: afterAlertClick
|
|
101
|
+
}, children)), /*#__PURE__*/_react.default.createElement("div", {
|
|
83
102
|
className: _devices.default.home
|
|
84
103
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
85
104
|
className: _devices.default['bottom-bar']
|
|
@@ -87,11 +106,19 @@ var Index = /*#__PURE__*/function (_PureComponent) {
|
|
|
87
106
|
}
|
|
88
107
|
}]);
|
|
89
108
|
|
|
90
|
-
return
|
|
109
|
+
return Iphone8plus;
|
|
91
110
|
}(_react.PureComponent);
|
|
92
111
|
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
Iphone8plus.defaultProps = {
|
|
113
|
+
alertVisible: false,
|
|
114
|
+
alertAnimationType: _constants.animalType.fade,
|
|
115
|
+
alertMessage: '',
|
|
116
|
+
alertDescription: '',
|
|
117
|
+
alertType: 'info',
|
|
118
|
+
alertIcon: true,
|
|
119
|
+
alertButtonText: '刷新',
|
|
120
|
+
afterAlertClick: null,
|
|
121
|
+
type: 'black'
|
|
95
122
|
};
|
|
96
|
-
var _default =
|
|
123
|
+
var _default = Iphone8plus;
|
|
97
124
|
exports.default = _default;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare class
|
|
1
|
+
export default IphoneX;
|
|
2
|
+
declare class IphoneX extends React.PureComponent<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
5
|
}
|
|
6
|
+
declare namespace IphoneX {
|
|
7
|
+
export const defaultProps: {
|
|
8
|
+
alertVisible: boolean;
|
|
9
|
+
alertAnimationType: string;
|
|
10
|
+
alertMessage: string;
|
|
11
|
+
alertDescription: string;
|
|
12
|
+
alertType: string;
|
|
13
|
+
alertIcon: boolean;
|
|
14
|
+
alertButtonText: string;
|
|
15
|
+
afterAlertClick: null;
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
6
19
|
import React from "react";
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _constants = require("../../../../utils/constants");
|
|
15
|
+
|
|
14
16
|
var _ContentView = _interopRequireDefault(require("../../ContentView"));
|
|
15
17
|
|
|
16
18
|
var _devices = _interopRequireDefault(require("../devices.less"));
|
|
@@ -41,21 +43,30 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
41
43
|
|
|
42
44
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
45
|
|
|
44
|
-
var
|
|
45
|
-
_inherits(
|
|
46
|
+
var IphoneX = /*#__PURE__*/function (_PureComponent) {
|
|
47
|
+
_inherits(IphoneX, _PureComponent);
|
|
46
48
|
|
|
47
|
-
var _super = _createSuper(
|
|
49
|
+
var _super = _createSuper(IphoneX);
|
|
48
50
|
|
|
49
|
-
function
|
|
50
|
-
_classCallCheck(this,
|
|
51
|
+
function IphoneX() {
|
|
52
|
+
_classCallCheck(this, IphoneX);
|
|
51
53
|
|
|
52
54
|
return _super.apply(this, arguments);
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
_createClass(
|
|
57
|
+
_createClass(IphoneX, [{
|
|
56
58
|
key: "render",
|
|
57
59
|
value: function render() {
|
|
58
|
-
var
|
|
60
|
+
var _this$props = this.props,
|
|
61
|
+
alertVisible = _this$props.alertVisible,
|
|
62
|
+
alertAnimationType = _this$props.alertAnimationType,
|
|
63
|
+
alertMessage = _this$props.alertMessage,
|
|
64
|
+
alertDescription = _this$props.alertDescription,
|
|
65
|
+
alertIcon = _this$props.alertIcon,
|
|
66
|
+
alertType = _this$props.alertType,
|
|
67
|
+
alertButtonText = _this$props.alertButtonText,
|
|
68
|
+
afterAlertClick = _this$props.afterAlertClick,
|
|
69
|
+
children = _this$props.children;
|
|
59
70
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
71
|
className: _devices.default.devices
|
|
61
72
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -88,12 +99,32 @@ var Index = /*#__PURE__*/function (_PureComponent) {
|
|
|
88
99
|
className: _devices.default['inner-shadow']
|
|
89
100
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
90
101
|
className: _devices.default.screen
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement(_ContentView.default,
|
|
102
|
+
}, /*#__PURE__*/_react.default.createElement(_ContentView.default, {
|
|
103
|
+
alertVisible: alertVisible,
|
|
104
|
+
alertAnimationType: alertAnimationType,
|
|
105
|
+
alertMessage: alertMessage,
|
|
106
|
+
alertDescription: alertDescription,
|
|
107
|
+
alertIcon: alertIcon,
|
|
108
|
+
alertType: alertType,
|
|
109
|
+
alertButtonText: alertButtonText,
|
|
110
|
+
afterAlertClick: afterAlertClick
|
|
111
|
+
}, children))));
|
|
92
112
|
}
|
|
93
113
|
}]);
|
|
94
114
|
|
|
95
|
-
return
|
|
115
|
+
return IphoneX;
|
|
96
116
|
}(_react.PureComponent);
|
|
97
117
|
|
|
98
|
-
|
|
118
|
+
IphoneX.defaultProps = {
|
|
119
|
+
alertVisible: false,
|
|
120
|
+
alertAnimationType: _constants.animalType.fade,
|
|
121
|
+
alertMessage: '',
|
|
122
|
+
alertDescription: '',
|
|
123
|
+
alertType: 'info',
|
|
124
|
+
alertIcon: true,
|
|
125
|
+
alertButtonText: '刷新',
|
|
126
|
+
afterAlertClick: null,
|
|
127
|
+
type: 'black'
|
|
128
|
+
};
|
|
129
|
+
var _default = IphoneX;
|
|
99
130
|
exports.default = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default RoughSketch;
|
|
2
|
+
declare class RoughSketch extends React.PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
}
|
|
6
|
+
declare namespace RoughSketch {
|
|
7
|
+
export namespace defaultProps {
|
|
8
|
+
export const alertVisible: boolean;
|
|
9
|
+
export const alertAnimationType: string;
|
|
10
|
+
export const alertMessage: string;
|
|
11
|
+
export const alertDescription: string;
|
|
12
|
+
export const alertType: string;
|
|
13
|
+
export const alertIcon: boolean;
|
|
14
|
+
export const alertButtonText: string;
|
|
15
|
+
export const afterAlertClick: null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import React from "react";
|
|
@@ -9,7 +9,9 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _constants = require("../../../../utils/constants");
|
|
13
|
+
|
|
14
|
+
var _ContentView = _interopRequireDefault(require("../../ContentView"));
|
|
13
15
|
|
|
14
16
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
15
17
|
|
|
@@ -39,29 +41,57 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
39
41
|
|
|
40
42
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
43
|
|
|
42
|
-
var
|
|
43
|
-
_inherits(
|
|
44
|
+
var RoughSketch = /*#__PURE__*/function (_PureComponent) {
|
|
45
|
+
_inherits(RoughSketch, _PureComponent);
|
|
44
46
|
|
|
45
|
-
var _super = _createSuper(
|
|
47
|
+
var _super = _createSuper(RoughSketch);
|
|
46
48
|
|
|
47
|
-
function
|
|
48
|
-
_classCallCheck(this,
|
|
49
|
+
function RoughSketch() {
|
|
50
|
+
_classCallCheck(this, RoughSketch);
|
|
49
51
|
|
|
50
52
|
return _super.apply(this, arguments);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
_createClass(
|
|
55
|
+
_createClass(RoughSketch, [{
|
|
54
56
|
key: "render",
|
|
55
57
|
value: function render() {
|
|
56
|
-
var
|
|
58
|
+
var _this$props = this.props,
|
|
59
|
+
alertVisible = _this$props.alertVisible,
|
|
60
|
+
alertAnimationType = _this$props.alertAnimationType,
|
|
61
|
+
alertMessage = _this$props.alertMessage,
|
|
62
|
+
alertDescription = _this$props.alertDescription,
|
|
63
|
+
alertIcon = _this$props.alertIcon,
|
|
64
|
+
alertType = _this$props.alertType,
|
|
65
|
+
alertButtonText = _this$props.alertButtonText,
|
|
66
|
+
afterAlertClick = _this$props.afterAlertClick,
|
|
67
|
+
children = _this$props.children;
|
|
57
68
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
58
69
|
className: _index.default.device
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_ContentView.default,
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_ContentView.default, {
|
|
71
|
+
alertVisible: alertVisible,
|
|
72
|
+
alertAnimationType: alertAnimationType,
|
|
73
|
+
alertMessage: alertMessage,
|
|
74
|
+
alertDescription: alertDescription,
|
|
75
|
+
alertIcon: alertIcon,
|
|
76
|
+
alertType: alertType,
|
|
77
|
+
alertButtonText: alertButtonText,
|
|
78
|
+
afterAlertClick: afterAlertClick
|
|
79
|
+
}, children));
|
|
60
80
|
}
|
|
61
81
|
}]);
|
|
62
82
|
|
|
63
|
-
return
|
|
83
|
+
return RoughSketch;
|
|
64
84
|
}(_react.PureComponent);
|
|
65
85
|
|
|
66
|
-
|
|
86
|
+
RoughSketch.defaultProps = {
|
|
87
|
+
alertVisible: false,
|
|
88
|
+
alertAnimationType: _constants.animalType.fade,
|
|
89
|
+
alertMessage: '',
|
|
90
|
+
alertDescription: '',
|
|
91
|
+
alertType: 'info',
|
|
92
|
+
alertIcon: true,
|
|
93
|
+
alertButtonText: '刷新',
|
|
94
|
+
afterAlertClick: null
|
|
95
|
+
};
|
|
96
|
+
var _default = RoughSketch;
|
|
67
97
|
exports.default = _default;
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default MobileHtmlPreviewBox;
|
|
2
|
+
declare class MobileHtmlPreviewBox extends MobilePreviewArea {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
loadDataAfterMount: boolean;
|
|
5
|
+
buildContent: () => JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
declare namespace MobileHtmlPreviewBox {
|
|
8
|
+
export namespace defaultProps {
|
|
9
|
+
export const html: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import MobilePreviewArea from "../MobilePreviewArea";
|
|
@@ -0,0 +1,80 @@
|
|
|
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 = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _HtmlBox = _interopRequireDefault(require("../../HtmlBox"));
|
|
13
|
+
|
|
14
|
+
var _MobilePreviewArea2 = _interopRequireDefault(require("../MobilePreviewArea"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
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); } }
|
|
25
|
+
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
+
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
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); }; }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
+
|
|
40
|
+
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; } }
|
|
41
|
+
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
+
|
|
44
|
+
var MobileHtmlPreviewBox = /*#__PURE__*/function (_MobilePreviewArea) {
|
|
45
|
+
_inherits(MobileHtmlPreviewBox, _MobilePreviewArea);
|
|
46
|
+
|
|
47
|
+
var _super = _createSuper(MobileHtmlPreviewBox);
|
|
48
|
+
|
|
49
|
+
function MobileHtmlPreviewBox(props) {
|
|
50
|
+
var _this;
|
|
51
|
+
|
|
52
|
+
_classCallCheck(this, MobileHtmlPreviewBox);
|
|
53
|
+
|
|
54
|
+
_this = _super.call(this, props);
|
|
55
|
+
_this.loadDataAfterMount = false;
|
|
56
|
+
_this.resetDataAfterLoad = false;
|
|
57
|
+
|
|
58
|
+
_this.buildContent = function () {
|
|
59
|
+
var html = _this.props.html;
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_HtmlBox.default, {
|
|
61
|
+
html: html
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
_this.renderInnerView = function () {
|
|
66
|
+
return _this.buildContent();
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
_this.state = _objectSpread(_objectSpread({}, _this.state), {});
|
|
70
|
+
return _this;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return _createClass(MobileHtmlPreviewBox);
|
|
74
|
+
}(_MobilePreviewArea2.default);
|
|
75
|
+
|
|
76
|
+
MobileHtmlPreviewBox.defaultProps = {
|
|
77
|
+
html: ''
|
|
78
|
+
};
|
|
79
|
+
var _default = MobileHtmlPreviewBox;
|
|
80
|
+
exports.default = _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare class
|
|
1
|
+
export default MobilePreviewArea;
|
|
2
|
+
declare class MobilePreviewArea extends Base {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
state: any;
|
|
5
5
|
buildMobileTypeArray: () => any[];
|
|
@@ -27,11 +27,20 @@ declare class Index extends Base {
|
|
|
27
27
|
}[];
|
|
28
28
|
};
|
|
29
29
|
renderInnerView: () => null;
|
|
30
|
+
renderInnerViewWrapper: () => null;
|
|
30
31
|
renderFurther(): any;
|
|
31
32
|
}
|
|
32
|
-
declare namespace
|
|
33
|
+
declare namespace MobilePreviewArea {
|
|
33
34
|
export namespace defaultProps {
|
|
35
|
+
export const alertVisible: boolean;
|
|
36
|
+
export const alertAnimationType: string;
|
|
37
|
+
export const alertMessage: string;
|
|
38
|
+
export const alertDescription: string;
|
|
39
|
+
export const alertType: string;
|
|
40
|
+
export const alertIcon: boolean;
|
|
41
|
+
export const alertButtonText: string;
|
|
34
42
|
export const mobileList: never[];
|
|
43
|
+
export const afterAlertClick: null;
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
46
|
import Base from "../../../framework/DataOperation/Base";
|
|
@@ -19,7 +19,7 @@ var _Base2 = _interopRequireDefault(require("../../../framework/DataOperation/Ba
|
|
|
19
19
|
|
|
20
20
|
var _VerticalBox = _interopRequireDefault(require("../../VerticalBox"));
|
|
21
21
|
|
|
22
|
-
var _RoughSketch = _interopRequireDefault(require("../RoughSketch"));
|
|
22
|
+
var _RoughSketch = _interopRequireDefault(require("../Devices/RoughSketch"));
|
|
23
23
|
|
|
24
24
|
var _IphoneX = _interopRequireDefault(require("../Devices/IphoneX"));
|
|
25
25
|
|
|
@@ -73,15 +73,15 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
73
73
|
|
|
74
74
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
75
75
|
|
|
76
|
-
var
|
|
77
|
-
_inherits(
|
|
76
|
+
var MobilePreviewArea = /*#__PURE__*/function (_Base) {
|
|
77
|
+
_inherits(MobilePreviewArea, _Base);
|
|
78
78
|
|
|
79
|
-
var _super = _createSuper(
|
|
79
|
+
var _super = _createSuper(MobilePreviewArea);
|
|
80
80
|
|
|
81
|
-
function
|
|
81
|
+
function MobilePreviewArea(props) {
|
|
82
82
|
var _this;
|
|
83
83
|
|
|
84
|
-
_classCallCheck(this,
|
|
84
|
+
_classCallCheck(this, MobilePreviewArea);
|
|
85
85
|
|
|
86
86
|
_this = _super.call(this, props);
|
|
87
87
|
_this.resetDataAfterLoad = false;
|
|
@@ -102,7 +102,16 @@ var Index = /*#__PURE__*/function (_Base) {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
_this.establishCardCollectionConfig = function () {
|
|
105
|
-
var
|
|
105
|
+
var _this$props = _this.props,
|
|
106
|
+
alertVisible = _this$props.alertVisible,
|
|
107
|
+
alertAnimationType = _this$props.alertAnimationType,
|
|
108
|
+
alertMessage = _this$props.alertMessage,
|
|
109
|
+
alertDescription = _this$props.alertDescription,
|
|
110
|
+
alertIcon = _this$props.alertIcon,
|
|
111
|
+
alertType = _this$props.alertType,
|
|
112
|
+
alertButtonText = _this$props.alertButtonText,
|
|
113
|
+
afterAlertClick = _this$props.afterAlertClick,
|
|
114
|
+
mobileList = _this$props.mobileList;
|
|
106
115
|
var mobileType = _this.state.mobileType;
|
|
107
116
|
var listConfig = [];
|
|
108
117
|
var mobileCollection = (0, _tools.isArray)(mobileList) && mobileList.length <= 0 ? _this.buildMobileTypeArray() : mobileList;
|
|
@@ -123,27 +132,81 @@ var Index = /*#__PURE__*/function (_Base) {
|
|
|
123
132
|
|
|
124
133
|
switch (mobileType) {
|
|
125
134
|
case _constants.mobileTypeCollection.roughSketch.name:
|
|
126
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_RoughSketch.default,
|
|
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());
|
|
127
145
|
break;
|
|
128
146
|
|
|
129
147
|
case _constants.mobileTypeCollection.iphoneX.name:
|
|
130
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_IphoneX.default,
|
|
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());
|
|
131
158
|
break;
|
|
132
159
|
|
|
133
160
|
case _constants.mobileTypeCollection.iphone8.name:
|
|
134
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone.default,
|
|
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());
|
|
135
171
|
break;
|
|
136
172
|
|
|
137
173
|
case _constants.mobileTypeCollection.iphone8plus.name:
|
|
138
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_Iphone8plus.default,
|
|
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());
|
|
139
184
|
break;
|
|
140
185
|
|
|
141
186
|
case _constants.mobileTypeCollection.iPhone5S.name:
|
|
142
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_IPhone5S.default,
|
|
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());
|
|
143
197
|
break;
|
|
144
198
|
|
|
145
199
|
case _constants.mobileTypeCollection.galaxyNote8.name:
|
|
146
|
-
mobileView = /*#__PURE__*/_react.default.createElement(_GalaxyNote.default,
|
|
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());
|
|
147
210
|
break;
|
|
148
211
|
|
|
149
212
|
default:
|
|
@@ -202,6 +265,10 @@ var Index = /*#__PURE__*/function (_Base) {
|
|
|
202
265
|
return null;
|
|
203
266
|
};
|
|
204
267
|
|
|
268
|
+
_this.renderInnerViewWrapper = function () {
|
|
269
|
+
return _this.renderInnerView();
|
|
270
|
+
};
|
|
271
|
+
|
|
205
272
|
_this.state = _objectSpread(_objectSpread({}, _this.state), {
|
|
206
273
|
placement: 'top',
|
|
207
274
|
height: '100vh',
|
|
@@ -211,18 +278,26 @@ var Index = /*#__PURE__*/function (_Base) {
|
|
|
211
278
|
return _this;
|
|
212
279
|
}
|
|
213
280
|
|
|
214
|
-
_createClass(
|
|
281
|
+
_createClass(MobilePreviewArea, [{
|
|
215
282
|
key: "renderFurther",
|
|
216
283
|
value: function renderFurther() {
|
|
217
284
|
return this.buildCardCollection(this.establishCardCollectionConfig());
|
|
218
285
|
}
|
|
219
286
|
}]);
|
|
220
287
|
|
|
221
|
-
return
|
|
288
|
+
return MobilePreviewArea;
|
|
222
289
|
}(_Base2.default);
|
|
223
290
|
|
|
224
|
-
|
|
225
|
-
|
|
291
|
+
MobilePreviewArea.defaultProps = {
|
|
292
|
+
alertVisible: false,
|
|
293
|
+
alertAnimationType: _constants.animalType.fade,
|
|
294
|
+
alertMessage: '',
|
|
295
|
+
alertDescription: '',
|
|
296
|
+
alertType: 'info',
|
|
297
|
+
alertIcon: true,
|
|
298
|
+
alertButtonText: '刷新',
|
|
299
|
+
mobileList: [],
|
|
300
|
+
afterAlertClick: null
|
|
226
301
|
};
|
|
227
|
-
var _default =
|
|
302
|
+
var _default = MobilePreviewArea;
|
|
228
303
|
exports.default = _default;
|
|
@@ -19,7 +19,7 @@ var _BaseNeedlessLoadDrawer = _interopRequireDefault(require("../../../framework
|
|
|
19
19
|
|
|
20
20
|
var _VerticalBox = _interopRequireDefault(require("../../VerticalBox"));
|
|
21
21
|
|
|
22
|
-
var _RoughSketch = _interopRequireDefault(require("../RoughSketch"));
|
|
22
|
+
var _RoughSketch = _interopRequireDefault(require("../Devices/RoughSketch"));
|
|
23
23
|
|
|
24
24
|
var _IphoneX = _interopRequireDefault(require("../Devices/IphoneX"));
|
|
25
25
|
|
|
@@ -1429,7 +1429,11 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1429
1429
|
});
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
1432
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1433
|
+
style: {
|
|
1434
|
+
backgroundColor: '#f0f2f5'
|
|
1435
|
+
}
|
|
1436
|
+
}, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1433
1437
|
style: {
|
|
1434
1438
|
width: '100%'
|
|
1435
1439
|
},
|
|
@@ -1443,7 +1447,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1443
1447
|
config: item,
|
|
1444
1448
|
key: index
|
|
1445
1449
|
});
|
|
1446
|
-
}));
|
|
1450
|
+
})));
|
|
1447
1451
|
};
|
|
1448
1452
|
|
|
1449
1453
|
_this.renderSiderArea = function () {
|
|
@@ -1505,7 +1509,12 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1505
1509
|
minHeight: 'auto'
|
|
1506
1510
|
}
|
|
1507
1511
|
}), layoutConfig || {});
|
|
1508
|
-
var inner = siderArea == null ? contentArea : /*#__PURE__*/_react.default.createElement(_layout.default, layoutConfig, siderPosition === 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null, /*#__PURE__*/_react.default.createElement(Content,
|
|
1512
|
+
var inner = siderArea == null ? contentArea : /*#__PURE__*/_react.default.createElement(_layout.default, layoutConfig, siderPosition === 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null, /*#__PURE__*/_react.default.createElement(Content, {
|
|
1513
|
+
style: {
|
|
1514
|
+
backgroundColor: '#fff',
|
|
1515
|
+
borderRadius: '4px'
|
|
1516
|
+
}
|
|
1517
|
+
}, contentArea), siderPosition !== 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null);
|
|
1509
1518
|
|
|
1510
1519
|
var toolbar = _this.buildToolBarWrapper();
|
|
1511
1520
|
|