@fonixtree/magic-design 0.2.3 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/common/LinkModal/CustomTable/index.js +1 -0
  3. package/es/common/MyModal/index.less +12 -4
  4. package/es/composite-comp/ashita/components/WalletAshita/defaultJSON.js +250 -0
  5. package/es/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  6. package/es/composite-comp/ashita/components/WalletAshita/mobile/index.js +613 -0
  7. package/es/composite-comp/ashita/components/WalletAshita/mobile/index.less +103 -0
  8. package/es/composite-comp/ashita/components/WalletAshita/pc/index.js +359 -0
  9. package/es/composite-comp/ashita/components/WalletAshita/pc/index.less +1 -0
  10. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigContent/index.js +93 -0
  11. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigContent/index.less +0 -0
  12. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.js +145 -0
  13. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
  14. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigSetting/index.js +201 -0
  15. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigSetting/index.less +9 -0
  16. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/imgs/defaultImg.png +0 -0
  17. package/es/composite-comp/ashita/config-panels/WalletAshitaConfig/index.js +77 -0
  18. package/es/composite-comp/ashita/second-config-panels/WalletAshitaSecondConfig/index.js +188 -0
  19. package/es/composite-comp/ashita/second-config-panels/WalletAshitaSecondConfig/index.less +9 -0
  20. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
  21. package/es/composite-comp/public/components/Wallet/defaultJSON.js +145 -0
  22. package/es/composite-comp/public/components/Wallet/index.js +84 -0
  23. package/es/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  24. package/es/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  25. package/es/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
  26. package/es/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
  27. package/es/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
  28. package/es/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.js +123 -0
  29. package/es/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
  30. package/es/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
  31. package/es/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
  32. package/es/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
  33. package/es/constants/component-types.js +15 -9
  34. package/es/constants/index.js +19 -10
  35. package/lib/assets/fonts/.DS_Store +0 -0
  36. package/lib/common/LinkModal/CustomTable/index.js +1 -0
  37. package/lib/common/MyModal/index.less +12 -4
  38. package/lib/composite-comp/ashita/components/WalletAshita/defaultJSON.js +250 -0
  39. package/lib/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  40. package/lib/composite-comp/ashita/components/WalletAshita/mobile/index.js +613 -0
  41. package/lib/composite-comp/ashita/components/WalletAshita/mobile/index.less +103 -0
  42. package/lib/composite-comp/ashita/components/WalletAshita/pc/index.js +359 -0
  43. package/lib/composite-comp/ashita/components/WalletAshita/pc/index.less +1 -0
  44. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigContent/index.js +93 -0
  45. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigContent/index.less +0 -0
  46. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.js +145 -0
  47. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
  48. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigSetting/index.js +201 -0
  49. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigSetting/index.less +9 -0
  50. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/imgs/defaultImg.png +0 -0
  51. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/index.js +77 -0
  52. package/lib/composite-comp/ashita/second-config-panels/WalletAshitaSecondConfig/index.js +188 -0
  53. package/lib/composite-comp/ashita/second-config-panels/WalletAshitaSecondConfig/index.less +9 -0
  54. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
  55. package/lib/composite-comp/public/components/Wallet/defaultJSON.js +145 -0
  56. package/lib/composite-comp/public/components/Wallet/index.js +84 -0
  57. package/lib/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  58. package/lib/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  59. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
  60. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
  61. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
  62. package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.js +123 -0
  63. package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
  64. package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
  65. package/lib/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
  66. package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
  67. package/lib/constants/component-types.js +15 -9
  68. package/lib/constants/index.js +19 -10
  69. package/package.json +1 -1
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _mobxReact = require("mobx-react");
11
+
12
+ var _coreUtil = require("../../../../../utils/coreUtil");
13
+
14
+ var _decorator = require("../../../../../decorator");
15
+
16
+ var _GroupList = _interopRequireDefault(require("../GroupList"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
49
+ var c = arguments.length,
50
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
51
+ d;
52
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
53
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
54
+ }
55
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
56
+ };
57
+
58
+ var notice = 'error';
59
+
60
+ var WalletNuriConfigImageGroup =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(WalletNuriConfigImageGroup, _super);
64
+
65
+ function WalletNuriConfigImageGroup() {
66
+ var _this = _super !== null && _super.apply(this, arguments) || this;
67
+
68
+ _this.state = {};
69
+
70
+ _this.onClickItem = function (node) {
71
+ _this.props.store.setState({
72
+ clickedGroup: node.id
73
+ });
74
+ };
75
+
76
+ _this.reRender = function () {
77
+ (0, _coreUtil.renderPreview)();
78
+
79
+ _this.setState({});
80
+ };
81
+
82
+ return _this;
83
+ }
84
+
85
+ WalletNuriConfigImageGroup.prototype.render = function () {
86
+ var _a = this.props.source,
87
+ source = _a === void 0 ? [] : _a;
88
+
89
+ var _renderCard = function renderCard(src) {
90
+ var _a;
91
+
92
+ return /*#__PURE__*/_react["default"].createElement("div", {
93
+ className: "card_wrap"
94
+ }, /*#__PURE__*/_react["default"].createElement("div", {
95
+ className: "name"
96
+ }, (_a = src.title) === null || _a === void 0 ? void 0 : _a.text));
97
+ };
98
+
99
+ return /*#__PURE__*/_react["default"].createElement("div", {
100
+ className: "WALLET_image"
101
+ }, /*#__PURE__*/_react["default"].createElement("div", {
102
+ className: "node_list"
103
+ }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
104
+ className: "notice"
105
+ }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
106
+ onClickItem: this.onClickItem,
107
+ renderCard: function renderCard(v) {
108
+ return _renderCard(v);
109
+ },
110
+ reRender: this.reRender,
111
+ source: source
112
+ })));
113
+ };
114
+
115
+ WalletNuriConfigImageGroup.defaultProps = {
116
+ source: []
117
+ };
118
+ WalletNuriConfigImageGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
119
+ return WalletNuriConfigImageGroup;
120
+ }(_react["default"].Component);
121
+
122
+ var _default = WalletNuriConfigImageGroup;
123
+ exports["default"] = _default;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = WalletNuriConfig;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _WalletConfigImageGroup = _interopRequireDefault(require("./WalletConfigImageGroup"));
11
+
12
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
+
14
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
15
+
16
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
17
+
18
+ var _layout = require("../../../../constants/layout");
19
+
20
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
21
+
22
+ var _locale = require("../../../../locale");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function WalletNuriConfig(props) {
27
+ var data = props.data;
28
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
29
+ divider: "bold",
30
+ headerSize: "large",
31
+ source: [{
32
+ key: 'walletNuri1',
33
+ name: (0, _locale.i18n)('GROUP'),
34
+ value: /*#__PURE__*/_react["default"].createElement(_WalletConfigImageGroup["default"], {
35
+ source: data.groupSource
36
+ })
37
+ }, {
38
+ key: 'walletNuri2',
39
+ name: (0, _locale.i18n)('SPACING'),
40
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
41
+ data: data.spacing
42
+ })
43
+ }, {
44
+ key: 'walletNuri3',
45
+ name: (0, _locale.i18n)('CUSTOMIZE'),
46
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
47
+ component: "wallet",
48
+ data: data.customize,
49
+ isHideAlign: true,
50
+ layoutSource: _layout.WalletNuriLayout
51
+ })
52
+ }, {
53
+ key: 'walletNuri4',
54
+ name: (0, _locale.i18n)('BACKGROUND'),
55
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
56
+ data: data.background
57
+ })
58
+ }],
59
+ type: "triangle"
60
+ }));
61
+ }
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _locale = require("../../../../locale");
11
+
12
+ var _common = require("../../../../common");
13
+
14
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
15
+
16
+ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
17
+
18
+ var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
19
+
20
+ var _coreUtil = require("../../../../utils/coreUtil");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var WalletSecondConfig =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(WalletSecondConfig, _super);
54
+
55
+ function WalletSecondConfig() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.state = {};
59
+
60
+ _this.reRender = function () {
61
+ (0, _coreUtil.renderPreview)();
62
+
63
+ _this.setState({});
64
+ };
65
+
66
+ _this.getContentPanel = function () {
67
+ var panelProps = _this.props.panelProps;
68
+
69
+ var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
70
+ title: ""
71
+ }, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
72
+ onChange: function onChange(icon) {
73
+ panelProps.tip.url = icon;
74
+
75
+ _this.reRender();
76
+ },
77
+ value: panelProps.tip.url
78
+ }));
79
+
80
+ var defaultSource = [{
81
+ key: panelProps.logo.id,
82
+ name: (0, _locale.i18n)('LOGO'),
83
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
84
+ data: panelProps.logo,
85
+ needHover: false
86
+ }),
87
+ metaOption: panelProps.logo
88
+ }, {
89
+ key: panelProps.title.id,
90
+ name: (0, _locale.i18n)('TITLE'),
91
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
92
+ data: panelProps.title
93
+ }),
94
+ metaOption: panelProps.title
95
+ }, {
96
+ key: panelProps.amount.id,
97
+ name: (0, _locale.i18n)('AMOUNT'),
98
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
99
+ data: panelProps.amount
100
+ }),
101
+ metaOption: panelProps.amount
102
+ }, {
103
+ key: panelProps.text.id,
104
+ name: (0, _locale.i18n)('TEXT'),
105
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
106
+ data: panelProps.text
107
+ }),
108
+ metaOption: panelProps.text
109
+ }, {
110
+ key: panelProps.tip.id,
111
+ name: (0, _locale.i18n)('TIPS'),
112
+ value: iconSetting,
113
+ metaOption: panelProps.tip
114
+ }];
115
+ return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
116
+ divider: "dashed",
117
+ headerSize: "middle",
118
+ onRefresh: function onRefresh() {
119
+ return (0, _coreUtil.renderPreview)();
120
+ },
121
+ showActiveColor: true,
122
+ source: defaultSource,
123
+ type: "switch"
124
+ });
125
+ };
126
+
127
+ return _this;
128
+ }
129
+
130
+ WalletSecondConfig.prototype.render = function () {
131
+ var panelProps = this.props.panelProps;
132
+ return /*#__PURE__*/_react["default"].createElement("div", {
133
+ className: "Wallet_second_conf_wrap"
134
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
135
+ divider: "bold",
136
+ headerSize: "large",
137
+ source: [{
138
+ key: panelProps.id || 'walletNuriContent',
139
+ name: (0, _locale.i18n)('CONTENT'),
140
+ value: this.getContentPanel()
141
+ }]
142
+ }));
143
+ };
144
+
145
+ WalletSecondConfig.defaultProps = {
146
+ panelProps: {}
147
+ };
148
+ return WalletSecondConfig;
149
+ }(_BaseConfig["default"]);
150
+
151
+ var _default = WalletSecondConfig;
152
+ exports["default"] = _default;
@@ -25,8 +25,6 @@ var _Tag = _interopRequireDefault(require("../composite-comp/bol/components/Tag"
25
25
 
26
26
  var _Video = _interopRequireDefault(require("../composite-comp/bol/components/Video"));
27
27
 
28
- var _Wallet = _interopRequireDefault(require("../composite-comp/bol/components/Wallet"));
29
-
30
28
  var _WalletNuri = _interopRequireDefault(require("../composite-comp/bol/components/WalletNuri"));
31
29
 
32
30
  var _CustomCode = _interopRequireDefault(require("../composite-comp/bol/components/CustomCode"));
@@ -51,6 +49,10 @@ var _MenuNavigation = _interopRequireDefault(require("../composite-comp/dito/com
51
49
 
52
50
  var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/components/HeadNavigation"));
53
51
 
52
+ var _WalletAshita = _interopRequireDefault(require("../composite-comp/ashita/components/WalletAshita"));
53
+
54
+ var _Wallet = _interopRequireDefault(require("../composite-comp/public/components/Wallet"));
55
+
54
56
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
55
57
 
56
58
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -75,8 +77,6 @@ var _CustomCodeConfig = _interopRequireDefault(require("../composite-comp/bol/co
75
77
 
76
78
  var _LocationConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/LocationConfig"));
77
79
 
78
- var _WalletConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/WalletConfig"));
79
-
80
80
  var _WalletNuriConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/WalletNuriConfig"));
81
81
 
82
82
  var _FlashDealConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/FlashDealConfig"));
@@ -97,6 +97,10 @@ var _MenuNavigationConfig = _interopRequireDefault(require("../composite-comp/di
97
97
 
98
98
  var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/HeadNavigationConfig"));
99
99
 
100
+ var _WalletAshitaConfig = _interopRequireDefault(require("../composite-comp/ashita/config-panels/WalletAshitaConfig"));
101
+
102
+ var _WalletConfig = _interopRequireDefault(require("../composite-comp/public/config-panels/WalletConfig"));
103
+
100
104
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
101
105
 
102
106
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -113,8 +117,6 @@ var _ButtonSecondConfig = _interopRequireDefault(require("../composite-comp/bol/
113
117
 
114
118
  var _VideoSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/VideoSecondConfig"));
115
119
 
116
- var _WalletSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/WalletSecondConfig"));
117
-
118
120
  var _WalletNuriSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/WalletNuriSecondConfig"));
119
121
 
120
122
  var _RecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/RecommendSecondConfig"));
@@ -129,6 +131,10 @@ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-c
129
131
 
130
132
  var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
131
133
 
134
+ var _WalletAshitaSecondConfig = _interopRequireDefault(require("../composite-comp/ashita/second-config-panels/WalletAshitaSecondConfig"));
135
+
136
+ var _WalletSecondConfig = _interopRequireDefault(require("../composite-comp/public/second-config-panels/WalletSecondConfig"));
137
+
132
138
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
133
139
 
134
140
  var _a, _b, _c; // 组件
@@ -137,17 +143,17 @@ var _a, _b, _c; // 组件
137
143
  /**
138
144
  * 渲染组件索引
139
145
  */
140
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
146
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_WalletAshita["default"].type] = _WalletAshita["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
141
147
  /**
142
148
  * 一级配置面板索引
143
149
  */
144
150
 
145
151
  exports.componentMap = componentMap;
146
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
152
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_WalletAshita["default"].type] = _WalletAshitaConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
147
153
  /**
148
154
  * 二级配置面板索引
149
155
  */
150
156
 
151
157
  exports.configPanelMap = configPanelMap;
152
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
158
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_WalletAshita["default"].type] = _WalletAshitaSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c);
153
159
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.walletType = exports.urlTypeMap = exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.partyTypeMap = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORAGE_KEY = exports.CREDIT_STATE = void 0;
7
+
8
+ var _compInfoMap;
9
+
10
+ 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; }
11
+
7
12
  var STORAGE_KEY = {
8
13
  LOCALE: 'magicLocale',
9
14
  MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
@@ -101,7 +106,7 @@ var quickMenuCode = {
101
106
  MODE_PHONE: 'MODE_PHONE'
102
107
  };
103
108
  exports.quickMenuCode = quickMenuCode;
104
- var compInfoMap = {
109
+ var compInfoMap = (_compInfoMap = {
105
110
  BANNER: {
106
111
  name: 'Banner',
107
112
  icon: 'icon-carousel'
@@ -185,16 +190,20 @@ var compInfoMap = {
185
190
  WALLET_NURI: {
186
191
  name: 'Wallet',
187
192
  icon: 'icon-Wallet'
188
- },
189
- HEAD_NAVIGATION: {
190
- name: 'Head Navigation',
191
- icon: 'icon-header'
192
- },
193
- MENU_NAVIGATION: {
194
- name: 'Menu Navigation',
195
- icon: 'icon-footer'
196
193
  }
197
- };
194
+ }, _defineProperty(_compInfoMap, "WALLET", {
195
+ name: 'Wallet',
196
+ icon: 'icon-Wallet'
197
+ }), _defineProperty(_compInfoMap, "WALLET_ASHITA", {
198
+ name: 'Wallet',
199
+ icon: 'icon-Wallet'
200
+ }), _defineProperty(_compInfoMap, "HEAD_NAVIGATION", {
201
+ name: 'Head Navigation',
202
+ icon: 'icon-header'
203
+ }), _defineProperty(_compInfoMap, "MENU_NAVIGATION", {
204
+ name: 'Menu Navigation',
205
+ icon: 'icon-footer'
206
+ }), _compInfoMap);
198
207
  /**
199
208
  * 元组件类型
200
209
  */
Binary file
@@ -198,6 +198,7 @@ function CustomTable(props) {
198
198
 
199
199
  (0, _react.useEffect)(function () {
200
200
  queryCus({
201
+ templateType: 'Page',
201
202
  pageType: 'Customized',
202
203
  verType: 'Formal',
203
204
  configVersion: 'V2',
@@ -5,11 +5,13 @@
5
5
  top: 0;
6
6
  left: 0;
7
7
  z-index: 9999;
8
+
8
9
  .tip-background {
9
10
  width: 100%;
10
11
  height: 100%;
11
12
  background-color: rgba(0, 0, 0, 0.7);
12
13
  }
14
+
13
15
  .tip-content {
14
16
  border-radius: 16px 16px 0px 0px;
15
17
  background-color: #fff;
@@ -19,7 +21,7 @@
19
21
  left: 0;
20
22
  width: 100%;
21
23
  transition: all 0.3s;
22
- transform: translateY(100%);
24
+ // transform: translateY(100%);
23
25
 
24
26
  .content-head {
25
27
  text-align: center;
@@ -31,6 +33,7 @@
31
33
  letter-spacing: 0px;
32
34
  position: relative;
33
35
  padding: 10px 0;
36
+
34
37
  // margin-bottom: 20px;
35
38
  .close-icon {
36
39
  position: absolute;
@@ -38,19 +41,23 @@
38
41
  top: 10px;
39
42
  }
40
43
  }
44
+
41
45
  .content-body {
42
46
  width: 100%;
43
47
  margin-bottom: 5px;
44
48
  max-height: 500px;
45
49
  overflow-y: auto;
46
- &> img {
50
+
51
+ &>img {
47
52
  width: 100%;
48
53
  // max-width: 300px;
49
54
  height: fit-content;
50
55
  }
51
56
  }
57
+
52
58
  .close-wrap {
53
59
  margin: 6px 2px;
60
+
54
61
  .close-btn {
55
62
  border-radius: 4px;
56
63
  background-color: #E65427;
@@ -61,14 +68,15 @@
61
68
  padding: 8px 0;
62
69
  color: #fff;
63
70
  flex: 1;
71
+
64
72
  &:nth-of-type(2) {
65
73
  margin-left: 10px;
66
74
  }
67
75
  }
68
76
  }
69
77
  }
78
+
70
79
  .scroll-animation {
71
80
  transform: translateY(0);
72
81
  }
73
- }
74
-
82
+ }