antd-management-fast-framework 1.11.58 → 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.
Files changed (30) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/es/customComponents/Editor/TinymceWrapper/index.js +1 -1
  3. package/es/customComponents/MobileContainor/ContentView/index.d.ts +13 -0
  4. package/es/customComponents/MobileContainor/ContentView/index.js +94 -5
  5. package/es/customComponents/MobileContainor/ContentView/index.less +21 -15
  6. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +14 -2
  7. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +40 -10
  8. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +11 -3
  9. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +39 -12
  10. package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +11 -3
  11. package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +40 -13
  12. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +11 -3
  13. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +40 -13
  14. package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +15 -2
  15. package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +41 -10
  16. package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +18 -0
  17. package/es/customComponents/MobileContainor/{RoughSketch → Devices/RoughSketch}/index.js +41 -11
  18. package/es/customComponents/MobileContainor/{RoughSketch → Devices/RoughSketch}/index.less +0 -0
  19. package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +12 -3
  20. package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +93 -18
  21. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +1 -1
  22. package/es/framework/Common/index.js +12 -3
  23. package/es/framework/DataListView/Base/index.js +12 -3
  24. package/es/utils/constants.d.ts +17 -21
  25. package/es/utils/constants.js +2 -1
  26. package/es/utils/mediaDefault.d.ts +3 -0
  27. package/es/utils/mediaDefault.js +4 -0
  28. package/es/utils/tools.js +2 -2
  29. package/package.json +7 -7
  30. package/es/customComponents/MobileContainor/RoughSketch/index.d.ts +0 -6
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
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
+
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)
18
+
19
+ **Note:** Version bump only for package antd-management-fast-framework
20
+
21
+ ### [1.11.61](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.60...antd-management-fast-framework@1.11.61) (2021-12-23)
22
+
23
+ **Note:** Version bump only for package antd-management-fast-framework
24
+
25
+ ### [1.11.60](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.59...antd-management-fast-framework@1.11.60) (2021-12-23)
26
+
27
+ **Note:** Version bump only for package antd-management-fast-framework
28
+
29
+ ### [1.11.59](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.58...antd-management-fast-framework@1.11.59) (2021-12-21)
30
+
31
+ **Note:** Version bump only for package antd-management-fast-framework
32
+
5
33
  ### [1.11.58](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.57...antd-management-fast-framework@1.11.58) (2021-12-21)
6
34
 
7
35
  ### Performance Improvements
@@ -72,7 +72,7 @@ var TinymceWrapper = /*#__PURE__*/function (_PureComponent) {
72
72
 
73
73
  var config = _objectSpread(_objectSpread({}, {
74
74
  language: 'zh_CN',
75
- height: 600,
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 _index = _interopRequireDefault(require("./index.less"));
20
+ var _icons = require("@ant-design/icons");
13
21
 
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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
- return _super.apply(this, arguments);
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 children = this.props.children;
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
- }, children);
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
- &::-webkit-scrollbar {
9
- width: 0;
10
- }
7
+ .deviceContent {
8
+ height: 100%;
9
+ overflow: auto;
10
+ background-color: #fff;
11
11
 
12
- /* 滚动槽 */
13
- &::-webkit-scrollbar-track {
14
- border-radius: 5px;
15
- box-shadow: inset 0 0 3px rgb(0 0 0 / 30%);
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
- &::-webkit-scrollbar-thumb {
20
- background: rgb(0 0 0 / 80%);
21
- border-radius: 5px;
22
- box-shadow: inset 0 0 3px rgb(243 243 244);
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 Index;
2
- declare class Index extends React.PureComponent<any, any, any> {
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 Index = /*#__PURE__*/function (_PureComponent) {
45
- _inherits(Index, _PureComponent);
46
+ var GalaxyNote8 = /*#__PURE__*/function (_PureComponent) {
47
+ _inherits(GalaxyNote8, _PureComponent);
46
48
 
47
- var _super = _createSuper(Index);
49
+ var _super = _createSuper(GalaxyNote8);
48
50
 
49
- function Index() {
50
- _classCallCheck(this, Index);
51
+ function GalaxyNote8() {
52
+ _classCallCheck(this, GalaxyNote8);
51
53
 
52
54
  return _super.apply(this, arguments);
53
55
  }
54
56
 
55
- _createClass(Index, [{
57
+ _createClass(GalaxyNote8, [{
56
58
  key: "render",
57
59
  value: function render() {
58
- var children = this.props.children;
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, null, children))));
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 Index;
107
+ return GalaxyNote8;
88
108
  }(_react.PureComponent);
89
109
 
90
- var _default = Index;
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 Index;
2
- declare class Index extends React.PureComponent<any, any, any> {
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 Index {
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 Index = /*#__PURE__*/function (_PureComponent) {
47
- _inherits(Index, _PureComponent);
48
+ var IPhone5S = /*#__PURE__*/function (_PureComponent) {
49
+ _inherits(IPhone5S, _PureComponent);
48
50
 
49
- var _super = _createSuper(Index);
51
+ var _super = _createSuper(IPhone5S);
50
52
 
51
- function Index() {
52
- _classCallCheck(this, Index);
53
+ function IPhone5S() {
54
+ _classCallCheck(this, IPhone5S);
53
55
 
54
56
  return _super.apply(this, arguments);
55
57
  }
56
58
 
57
- _createClass(Index, [{
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
- children = _this$props.children;
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, null, children)), /*#__PURE__*/_react.default.createElement("div", {
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 Index;
109
+ return IPhone5S;
91
110
  }(_react.PureComponent);
92
111
 
93
- Index.defaultProps = {
94
- type: 'silver'
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 = Index;
123
+ var _default = IPhone5S;
97
124
  exports.default = _default;
@@ -1,10 +1,18 @@
1
- export default Index;
2
- declare class Index extends React.PureComponent<any, any, any> {
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 Index {
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 Index = /*#__PURE__*/function (_PureComponent) {
47
- _inherits(Index, _PureComponent);
48
+ var Iphone8 = /*#__PURE__*/function (_PureComponent) {
49
+ _inherits(Iphone8, _PureComponent);
48
50
 
49
- var _super = _createSuper(Index);
51
+ var _super = _createSuper(Iphone8);
50
52
 
51
- function Index() {
52
- _classCallCheck(this, Index);
53
+ function Iphone8() {
54
+ _classCallCheck(this, Iphone8);
53
55
 
54
56
  return _super.apply(this, arguments);
55
57
  }
56
58
 
57
- _createClass(Index, [{
59
+ _createClass(Iphone8, [{
58
60
  key: "render",
59
61
  value: function render() {
60
62
  var _this$props = this.props,
61
- typeSource = _this$props.type,
62
- children = _this$props.children;
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, null, children)), /*#__PURE__*/_react.default.createElement("div", {
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 Index;
109
+ return Iphone8;
91
110
  }(_react.PureComponent);
92
111
 
93
- Index.defaultProps = {
94
- type: 'silver'
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 = Index;
123
+ var _default = Iphone8;
97
124
  exports.default = _default;
@@ -1,10 +1,18 @@
1
- export default Index;
2
- declare class Index extends React.PureComponent<any, any, any> {
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 Index {
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
  }