antd-management-fast-framework 1.11.62 → 1.12.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/CHANGELOG.md +12 -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/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/utils/constants.d.ts +17 -21
- package/es/utils/constants.js +2 -1
- package/package.json +2 -2
- package/es/customComponents/MobileContainor/RoughSketch/index.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.1](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.0...antd-management-fast-framework@1.12.1) (2021-12-24)
|
|
6
|
+
|
|
7
|
+
### Performance Improvements
|
|
8
|
+
|
|
9
|
+
- update dependences ([735c080](https://github.com/kityandhero/antd-management-fast-framework/commit/735c080c3c07e4af7f696673642ae78bb7b820f9))
|
|
10
|
+
|
|
11
|
+
## [1.12.0](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.62...antd-management-fast-framework@1.12.0) (2021-12-24)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- 手机预览增加 alert 提示组件,调整示例 ([7ab32c1](https://github.com/kityandhero/antd-management-fast-framework/commit/7ab32c1171c15670497ae6560490e59d86d47b94))
|
|
16
|
+
|
|
5
17
|
### [1.11.62](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.61...antd-management-fast-framework@1.11.62) (2021-12-23)
|
|
6
18
|
|
|
7
19
|
**Note:** Version bump only for package antd-management-fast-framework
|
|
@@ -72,7 +72,7 @@ var TinymceWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
72
72
|
|
|
73
73
|
var config = _objectSpread(_objectSpread({}, {
|
|
74
74
|
language: 'zh_CN',
|
|
75
|
-
height:
|
|
75
|
+
height: 690,
|
|
76
76
|
plugins_ignore: 'tinydrive powerpaste imagetools advcode formatpainter pageembed permanentpen casechange checklist advtable export tinymcespellchecker linkchecker mentions tinycomments toc',
|
|
77
77
|
plugins: 'print preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media mediaembed template codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount a11ychecker textpattern noneditable help charmap quickbars emoticons',
|
|
78
78
|
mobile: {
|
|
@@ -2,5 +2,18 @@ export default ConventView;
|
|
|
2
2
|
declare class ConventView extends React.PureComponent<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
|
+
onAlertClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare namespace ConventView {
|
|
8
|
+
export namespace defaultProps {
|
|
9
|
+
export const alertVisible: boolean;
|
|
10
|
+
export const alertAnimationType: string;
|
|
11
|
+
export const alertMessage: string;
|
|
12
|
+
export const alertDescription: string;
|
|
13
|
+
export const alertType: string;
|
|
14
|
+
export const alertIcon: boolean;
|
|
15
|
+
export const alertButtonText: string;
|
|
16
|
+
export const afterAlertClick: null;
|
|
17
|
+
}
|
|
5
18
|
}
|
|
6
19
|
import React from "react";
|
|
@@ -7,16 +7,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
+
require("antd/es/alert/style");
|
|
11
|
+
|
|
12
|
+
var _alert = _interopRequireDefault(require("antd/es/alert"));
|
|
13
|
+
|
|
14
|
+
require("antd/es/space/style");
|
|
15
|
+
|
|
16
|
+
var _space = _interopRequireDefault(require("antd/es/space"));
|
|
17
|
+
|
|
10
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
19
|
|
|
12
|
-
var
|
|
20
|
+
var _icons = require("@ant-design/icons");
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
var _tools = require("../../../utils/tools");
|
|
23
|
+
|
|
24
|
+
var _constants = require("../../../utils/constants");
|
|
25
|
+
|
|
26
|
+
var _FadeBox = _interopRequireDefault(require("../../AnimalBox/FadeBox"));
|
|
27
|
+
|
|
28
|
+
var _QueueBox = _interopRequireDefault(require("../../AnimalBox/QueueBox"));
|
|
29
|
+
|
|
30
|
+
var _FunctionComponent = require("../../FunctionComponent");
|
|
31
|
+
|
|
32
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
15
33
|
|
|
16
34
|
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); }
|
|
17
35
|
|
|
18
36
|
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; }
|
|
19
37
|
|
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
+
|
|
20
40
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
41
|
|
|
22
42
|
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); } }
|
|
@@ -43,23 +63,92 @@ var ConventView = /*#__PURE__*/function (_PureComponent) {
|
|
|
43
63
|
var _super = _createSuper(ConventView);
|
|
44
64
|
|
|
45
65
|
function ConventView() {
|
|
66
|
+
var _this;
|
|
67
|
+
|
|
46
68
|
_classCallCheck(this, ConventView);
|
|
47
69
|
|
|
48
|
-
|
|
70
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
71
|
+
args[_key] = arguments[_key];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
75
|
+
|
|
76
|
+
_this.onAlertClick = function () {
|
|
77
|
+
var afterAlertClick = _this.props.afterAlertClick;
|
|
78
|
+
|
|
79
|
+
if ((0, _tools.isFunction)(afterAlertClick)) {
|
|
80
|
+
afterAlertClick();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return _this;
|
|
49
85
|
}
|
|
50
86
|
|
|
51
87
|
_createClass(ConventView, [{
|
|
52
88
|
key: "render",
|
|
53
89
|
value: function render() {
|
|
54
|
-
var
|
|
90
|
+
var _this$props = this.props,
|
|
91
|
+
alertVisible = _this$props.alertVisible,
|
|
92
|
+
alertAnimationTypeSource = _this$props.alertAnimationType,
|
|
93
|
+
alertMessage = _this$props.alertMessage,
|
|
94
|
+
alertDescription = _this$props.alertDescription,
|
|
95
|
+
alertIcon = _this$props.alertIcon,
|
|
96
|
+
alertTypeSource = _this$props.alertType,
|
|
97
|
+
alertButtonText = _this$props.alertButtonText,
|
|
98
|
+
children = _this$props.children;
|
|
99
|
+
var alertType = (0, _tools.inCollection)(['success', 'info', 'warning', 'error'], alertTypeSource) ? alertTypeSource : 'info';
|
|
100
|
+
var alertAnimationType = (0, _tools.inCollection)([_constants.animalType.none, _constants.animalType.fade, _constants.animalType.queue], alertAnimationTypeSource) ? alertAnimationTypeSource : _constants.animalType.fade;
|
|
101
|
+
|
|
102
|
+
var alert = /*#__PURE__*/_react.default.createElement(_alert.default, {
|
|
103
|
+
message: alertMessage,
|
|
104
|
+
description: alertDescription,
|
|
105
|
+
type: alertType,
|
|
106
|
+
showIcon: !!alertIcon,
|
|
107
|
+
style: {
|
|
108
|
+
margin: '2px'
|
|
109
|
+
},
|
|
110
|
+
action: /*#__PURE__*/_react.default.createElement(_space.default, null, (0, _FunctionComponent.buildButton)({
|
|
111
|
+
size: 'small',
|
|
112
|
+
type: 'ghost',
|
|
113
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.ReloadOutlined, null),
|
|
114
|
+
text: alertButtonText,
|
|
115
|
+
handleClick: this.onAlertClick
|
|
116
|
+
})),
|
|
117
|
+
closable: false
|
|
118
|
+
});
|
|
119
|
+
|
|
55
120
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
121
|
className: _index.default.deviceInner
|
|
57
|
-
},
|
|
122
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
+
style: {
|
|
124
|
+
position: 'absolute',
|
|
125
|
+
left: 0,
|
|
126
|
+
top: 0,
|
|
127
|
+
zIndex: 2,
|
|
128
|
+
width: '100%'
|
|
129
|
+
}
|
|
130
|
+
}, alertAnimationType === _constants.animalType.none ? alert : null, alertAnimationType === _constants.animalType.fade ? /*#__PURE__*/_react.default.createElement(_FadeBox.default, {
|
|
131
|
+
show: alertVisible
|
|
132
|
+
}, alert) : null, alertAnimationType === _constants.animalType.queue ? /*#__PURE__*/_react.default.createElement(_QueueBox.default, {
|
|
133
|
+
show: alertVisible
|
|
134
|
+
}, alert) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
135
|
+
className: _index.default.deviceContent
|
|
136
|
+
}, children));
|
|
58
137
|
}
|
|
59
138
|
}]);
|
|
60
139
|
|
|
61
140
|
return ConventView;
|
|
62
141
|
}(_react.PureComponent);
|
|
63
142
|
|
|
143
|
+
ConventView.defaultProps = {
|
|
144
|
+
alertVisible: false,
|
|
145
|
+
alertAnimationType: _constants.animalType.fade,
|
|
146
|
+
alertMessage: '',
|
|
147
|
+
alertDescription: '',
|
|
148
|
+
alertType: 'info',
|
|
149
|
+
alertIcon: true,
|
|
150
|
+
alertButtonText: '刷新',
|
|
151
|
+
afterAlertClick: null
|
|
152
|
+
};
|
|
64
153
|
var _default = ConventView;
|
|
65
154
|
exports.default = _default;
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
.deviceInner {
|
|
2
|
+
position: relative;
|
|
2
3
|
height: 100%;
|
|
3
4
|
padding: 2px;
|
|
4
|
-
overflow: auto;
|
|
5
5
|
background-color: #fff;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
.deviceContent {
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
background-color: #fff;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
/* 设置滚动条的样式 */
|
|
13
|
+
&::-webkit-scrollbar {
|
|
14
|
+
width: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* 滚动槽 */
|
|
18
|
+
&::-webkit-scrollbar-track {
|
|
19
|
+
border-radius: 5px;
|
|
20
|
+
box-shadow: inset 0 0 3px rgb(0 0 0 / 30%);
|
|
21
|
+
}
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
/* 滚动条滑块 */
|
|
24
|
+
&::-webkit-scrollbar-thumb {
|
|
25
|
+
background: rgb(0 0 0 / 80%);
|
|
26
|
+
border-radius: 5px;
|
|
27
|
+
box-shadow: inset 0 0 3px rgb(243 243 244);
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare class
|
|
1
|
+
export default GalaxyNote8;
|
|
2
|
+
declare class GalaxyNote8 extends React.PureComponent<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
5
|
}
|
|
6
|
+
declare namespace GalaxyNote8 {
|
|
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
|
+
}
|
|
6
18
|
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 GalaxyNote8 = /*#__PURE__*/function (_PureComponent) {
|
|
47
|
+
_inherits(GalaxyNote8, _PureComponent);
|
|
46
48
|
|
|
47
|
-
var _super = _createSuper(
|
|
49
|
+
var _super = _createSuper(GalaxyNote8);
|
|
48
50
|
|
|
49
|
-
function
|
|
50
|
-
_classCallCheck(this,
|
|
51
|
+
function GalaxyNote8() {
|
|
52
|
+
_classCallCheck(this, GalaxyNote8);
|
|
51
53
|
|
|
52
54
|
return _super.apply(this, arguments);
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
_createClass(
|
|
57
|
+
_createClass(GalaxyNote8, [{
|
|
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
|
+
children = _this$props.children,
|
|
69
|
+
afterAlertClick = _this$props.afterAlertClick;
|
|
59
70
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
71
|
className: _devices.default.devices
|
|
61
72
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -80,12 +91,31 @@ var Index = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
91
|
className: _devices.default.camera
|
|
81
92
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
82
93
|
className: _devices.default.screen
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement(_ContentView.default,
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_ContentView.default, {
|
|
95
|
+
alertVisible: alertVisible,
|
|
96
|
+
alertAnimationType: alertAnimationType,
|
|
97
|
+
alertMessage: alertMessage,
|
|
98
|
+
alertDescription: alertDescription,
|
|
99
|
+
alertIcon: alertIcon,
|
|
100
|
+
alertType: alertType,
|
|
101
|
+
alertButtonText: alertButtonText,
|
|
102
|
+
afterAlertClick: afterAlertClick
|
|
103
|
+
}, children))));
|
|
84
104
|
}
|
|
85
105
|
}]);
|
|
86
106
|
|
|
87
|
-
return
|
|
107
|
+
return GalaxyNote8;
|
|
88
108
|
}(_react.PureComponent);
|
|
89
109
|
|
|
90
|
-
|
|
110
|
+
GalaxyNote8.defaultProps = {
|
|
111
|
+
alertVisible: false,
|
|
112
|
+
alertAnimationType: _constants.animalType.fade,
|
|
113
|
+
alertMessage: '',
|
|
114
|
+
alertDescription: '',
|
|
115
|
+
alertType: 'info',
|
|
116
|
+
alertIcon: true,
|
|
117
|
+
alertButtonText: '刷新',
|
|
118
|
+
afterAlertClick: null
|
|
119
|
+
};
|
|
120
|
+
var _default = GalaxyNote8;
|
|
91
121
|
exports.default = _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare class
|
|
1
|
+
export default IPhone5S;
|
|
2
|
+
declare class IPhone5S extends React.PureComponent<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
5
|
}
|
|
6
|
-
declare namespace
|
|
6
|
+
declare namespace IPhone5S {
|
|
7
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;
|
|
8
16
|
type: string;
|
|
9
17
|
};
|
|
10
18
|
}
|
|
@@ -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 IPhone5S = /*#__PURE__*/function (_PureComponent) {
|
|
49
|
+
_inherits(IPhone5S, _PureComponent);
|
|
48
50
|
|
|
49
|
-
var _super = _createSuper(
|
|
51
|
+
var _super = _createSuper(IPhone5S);
|
|
50
52
|
|
|
51
|
-
function
|
|
52
|
-
_classCallCheck(this,
|
|
53
|
+
function IPhone5S() {
|
|
54
|
+
_classCallCheck(this, IPhone5S);
|
|
53
55
|
|
|
54
56
|
return _super.apply(this, arguments);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
_createClass(
|
|
59
|
+
_createClass(IPhone5S, [{
|
|
58
60
|
key: "render",
|
|
59
61
|
value: function render() {
|
|
60
62
|
var _this$props = this.props,
|
|
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
|
+
children = _this$props.children,
|
|
61
71
|
typeSource = _this$props.type,
|
|
62
|
-
|
|
72
|
+
afterAlertClick = _this$props.afterAlertClick;
|
|
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 IPhone5S;
|
|
91
110
|
}(_react.PureComponent);
|
|
92
111
|
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
IPhone5S.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 = IPhone5S;
|
|
97
124
|
exports.default = _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare class
|
|
1
|
+
export default Iphone8;
|
|
2
|
+
declare class Iphone8 extends React.PureComponent<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
5
|
}
|
|
6
|
-
declare namespace
|
|
6
|
+
declare namespace Iphone8 {
|
|
7
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;
|
|
8
16
|
type: string;
|
|
9
17
|
};
|
|
10
18
|
}
|
|
@@ -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 Iphone8 = /*#__PURE__*/function (_PureComponent) {
|
|
49
|
+
_inherits(Iphone8, _PureComponent);
|
|
48
50
|
|
|
49
|
-
var _super = _createSuper(
|
|
51
|
+
var _super = _createSuper(Iphone8);
|
|
50
52
|
|
|
51
|
-
function
|
|
52
|
-
_classCallCheck(this,
|
|
53
|
+
function Iphone8() {
|
|
54
|
+
_classCallCheck(this, Iphone8);
|
|
53
55
|
|
|
54
56
|
return _super.apply(this, arguments);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
_createClass(
|
|
59
|
+
_createClass(Iphone8, [{
|
|
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 Iphone8;
|
|
91
110
|
}(_react.PureComponent);
|
|
92
111
|
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
Iphone8.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 = Iphone8;
|
|
97
124
|
exports.default = _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare class
|
|
1
|
+
export default Iphone8plus;
|
|
2
|
+
declare class Iphone8plus extends React.PureComponent<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
5
|
}
|
|
6
|
-
declare namespace
|
|
6
|
+
declare namespace Iphone8plus {
|
|
7
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;
|
|
8
16
|
type: string;
|
|
9
17
|
};
|
|
10
18
|
}
|
|
@@ -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
|
|
@@ -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
|
|
package/es/utils/constants.d.ts
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export function empty(): {};
|
|
8
|
+
export namespace animalType {
|
|
9
|
+
export const none: string;
|
|
10
|
+
export const fade: string;
|
|
11
|
+
export const queue: string;
|
|
12
|
+
}
|
|
8
13
|
export const zeroString: "0";
|
|
9
14
|
export const zeroInt: 0;
|
|
10
15
|
/**
|
|
@@ -193,12 +198,12 @@ export namespace listViewConfig {
|
|
|
193
198
|
export const large: string;
|
|
194
199
|
}
|
|
195
200
|
export namespace expandAnimalType {
|
|
196
|
-
import
|
|
197
|
-
export { none };
|
|
198
|
-
import
|
|
199
|
-
export { fade };
|
|
200
|
-
import
|
|
201
|
-
export { queue };
|
|
201
|
+
import none_1 = none;
|
|
202
|
+
export { none_1 as none };
|
|
203
|
+
import fade_1 = fade;
|
|
204
|
+
export { fade_1 as fade };
|
|
205
|
+
import queue_1 = queue;
|
|
206
|
+
export { queue_1 as queue };
|
|
202
207
|
}
|
|
203
208
|
}
|
|
204
209
|
export namespace sortOperate {
|
|
@@ -255,12 +260,12 @@ export namespace cardConfig {
|
|
|
255
260
|
export const help: string;
|
|
256
261
|
}
|
|
257
262
|
export namespace animalType_1 {
|
|
258
|
-
import
|
|
259
|
-
export {
|
|
260
|
-
import
|
|
261
|
-
export {
|
|
262
|
-
import
|
|
263
|
-
export {
|
|
263
|
+
import none_2 = none;
|
|
264
|
+
export { none_2 as none };
|
|
265
|
+
import fade_2 = fade;
|
|
266
|
+
export { fade_2 as fade };
|
|
267
|
+
import queue_2 = queue;
|
|
268
|
+
export { queue_2 as queue };
|
|
264
269
|
}
|
|
265
270
|
export { animalType_1 as animalType };
|
|
266
271
|
export namespace extraBuildType_1 { }
|
|
@@ -605,12 +610,3 @@ export namespace mobileTypeCollection {
|
|
|
605
610
|
export { helper_7 as helper };
|
|
606
611
|
}
|
|
607
612
|
}
|
|
608
|
-
declare namespace animalType {
|
|
609
|
-
const none_2: string;
|
|
610
|
-
export { none_2 as none };
|
|
611
|
-
const fade_2: string;
|
|
612
|
-
export { fade_2 as fade };
|
|
613
|
-
const queue_2: string;
|
|
614
|
-
export { queue_2 as queue };
|
|
615
|
-
}
|
|
616
|
-
export {};
|
package/es/utils/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.drawerConfig = exports.defaultUserAvatar = exports.defaultEmptyImage = exports.datetimeFormat = exports.dataTypeCollection = exports.convertCollection = exports.contentConfig = exports.columnPlaceholder = exports.columnFacadeMode = exports.cardConfig = exports.authenticationFailCode = exports.appInitDefault = exports.apiSuccessCode = exports.accessWaySpecialCollection = void 0;
|
|
6
|
+
exports.drawerConfig = exports.defaultUserAvatar = exports.defaultEmptyImage = exports.datetimeFormat = exports.dataTypeCollection = exports.convertCollection = exports.contentConfig = exports.columnPlaceholder = exports.columnFacadeMode = exports.cardConfig = exports.authenticationFailCode = exports.appInitDefault = exports.apiSuccessCode = exports.animalType = exports.accessWaySpecialCollection = void 0;
|
|
7
7
|
exports.empty = empty;
|
|
8
8
|
exports.zeroString = exports.zeroInt = exports.whetherString = exports.whetherNumber = exports.unlimitedWithStringFlag = exports.unlimitedWithNumberFlag = exports.tabBarCollection = exports.sortOperate = exports.selectModeCollection = exports.searchCardConfig = exports.pageHeaderRenderType = exports.notificationTypeCollection = exports.mobileTypeCollection = exports.messageTypeCollection = exports.menuType = exports.logShowMode = exports.logLevel = exports.listViewConfig = exports.imageContentPreviewMode = exports.formatCollection = exports.formNameCollection = exports.extraBuildType = exports.emptyLogo = exports.emptyDatetime = void 0;
|
|
9
9
|
|
|
@@ -23,6 +23,7 @@ var animalType = {
|
|
|
23
23
|
fade: 'fade',
|
|
24
24
|
queue: 'queue'
|
|
25
25
|
};
|
|
26
|
+
exports.animalType = animalType;
|
|
26
27
|
var zeroString = '0';
|
|
27
28
|
exports.zeroString = zeroString;
|
|
28
29
|
var zeroInt = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@testing-library/react": "^12.1.2",
|
|
92
92
|
"@testing-library/react-hooks": "^7.0.2",
|
|
93
93
|
"@types/jest": "^27.0.3",
|
|
94
|
-
"@types/node": "^17.0.
|
|
94
|
+
"@types/node": "^17.0.4",
|
|
95
95
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
|
96
96
|
"@umijs/fabric": "^2.8.1",
|
|
97
97
|
"@umijs/test": "^3.5.20",
|