@fonixtree/magic-design 0.0.55 → 0.0.58

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 (138) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +7 -7
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +7 -7
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  9. package/es/common/GroupList/index.js +2 -3
  10. package/es/common/ImgArea/components/MultiCrops.js +210 -0
  11. package/es/common/LinkModal/index.less +1 -1
  12. package/es/composite-comp/bol/components/Button/defaultJSON.js +38 -68
  13. package/es/composite-comp/bol/components/Button/index.js +7 -9
  14. package/es/composite-comp/bol/components/Button/index.less +1 -0
  15. package/es/composite-comp/bol/components/Carousel/mobile/index.js +3 -7
  16. package/es/composite-comp/bol/components/Carousel/pc/index.js +2 -2
  17. package/es/composite-comp/bol/components/Tag/defaultJSON.js +36 -46
  18. package/es/composite-comp/bol/components/Tag/index.js +7 -9
  19. package/es/composite-comp/bol/components/Tag/index.less +1 -0
  20. package/es/composite-comp/bol/components/Text/defaultJSON.js +1 -1
  21. package/es/composite-comp/bol/components/Text/index.js +3 -3
  22. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  23. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
  24. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
  25. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  26. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  27. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
  28. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +6 -16
  29. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
  30. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
  31. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +1 -0
  32. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +2 -6
  33. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
  34. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
  35. package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
  36. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
  37. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  38. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +16 -0
  39. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
  40. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
  41. package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
  42. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +452 -0
  43. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +95 -0
  44. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -1
  45. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +117 -0
  46. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +126 -0
  47. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
  48. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +195 -0
  49. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
  50. package/es/constants/component-types.js +13 -3
  51. package/es/constants/index.js +20 -2
  52. package/es/constants/layout.js +10 -2
  53. package/es/core/Designer/ConfigPanel/index.js +48 -22
  54. package/es/core/Designer/History/index.js +36 -28
  55. package/es/core/Designer/index.js +17 -8
  56. package/es/decorator/compositeDecorator.js +1 -0
  57. package/es/decorator/index.js +8 -0
  58. package/es/decorator/updateConfigDecorator.js +76 -0
  59. package/es/locale/en/en.json +8 -1
  60. package/es/locale/es/es.json +8 -1
  61. package/es/locale/id/id.json +8 -1
  62. package/es/meta-comp/components/Button/index.js +7 -7
  63. package/es/meta-comp/components/Image/index.js +1 -1
  64. package/es/meta-comp/components/Text/index.js +18 -7
  65. package/es/meta-comp/config-panels/BaseConfig.js +8 -10
  66. package/es/meta-comp/config-panels/TextConfig/index.js +10 -3
  67. package/es/mobx/Store.js +1 -9
  68. package/es/utils/coreUtil.js +6 -1
  69. package/lib/assets/fonts/magic-box-iconfont.css +7 -7
  70. package/lib/assets/fonts/magic-box-iconfont.css.bak +7 -7
  71. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  72. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  73. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  74. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  75. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  76. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  77. package/lib/common/GroupList/index.js +2 -3
  78. package/lib/common/ImgArea/components/MultiCrops.js +210 -0
  79. package/lib/common/LinkModal/index.less +1 -1
  80. package/lib/composite-comp/bol/components/Button/defaultJSON.js +38 -68
  81. package/lib/composite-comp/bol/components/Button/index.js +7 -9
  82. package/lib/composite-comp/bol/components/Button/index.less +1 -0
  83. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +3 -7
  84. package/lib/composite-comp/bol/components/Carousel/pc/index.js +2 -2
  85. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +36 -46
  86. package/lib/composite-comp/bol/components/Tag/index.js +7 -9
  87. package/lib/composite-comp/bol/components/Tag/index.less +1 -0
  88. package/lib/composite-comp/bol/components/Text/defaultJSON.js +1 -1
  89. package/lib/composite-comp/bol/components/Text/index.js +3 -3
  90. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  91. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
  92. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
  93. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  94. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  95. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
  96. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +6 -16
  97. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
  98. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
  99. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +1 -0
  100. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +2 -6
  101. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
  102. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
  103. package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
  104. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
  105. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  106. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +16 -0
  107. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
  108. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
  109. package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
  110. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +452 -0
  111. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +95 -0
  112. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -1
  113. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +117 -0
  114. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +126 -0
  115. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
  116. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +195 -0
  117. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
  118. package/lib/constants/component-types.js +13 -3
  119. package/lib/constants/index.js +20 -2
  120. package/lib/constants/layout.js +10 -2
  121. package/lib/core/Designer/ConfigPanel/index.js +48 -22
  122. package/lib/core/Designer/History/index.js +36 -28
  123. package/lib/core/Designer/index.js +17 -8
  124. package/lib/decorator/compositeDecorator.js +1 -0
  125. package/lib/decorator/index.js +8 -0
  126. package/lib/decorator/updateConfigDecorator.js +76 -0
  127. package/lib/locale/en/en.json +8 -1
  128. package/lib/locale/es/es.json +8 -1
  129. package/lib/locale/id/id.json +8 -1
  130. package/lib/meta-comp/components/Button/index.js +7 -7
  131. package/lib/meta-comp/components/Image/index.js +1 -1
  132. package/lib/meta-comp/components/Text/index.js +18 -7
  133. package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
  134. package/lib/meta-comp/config-panels/TextConfig/index.js +10 -3
  135. package/lib/mobx/Store.js +1 -9
  136. package/lib/utils/coreUtil.js +6 -1
  137. package/package.json +1 -86
  138. package/README.md +0 -320
@@ -0,0 +1,141 @@
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 _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
+
14
+ var _defaultJSON = require("../../../components/Tag/defaultJSON");
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
19
+
20
+ require("./index.less");
21
+
22
+ var _locale = require("../../../../../locale");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ 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); }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+
54
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
55
+ var c = arguments.length,
56
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
57
+ d;
58
+ 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--) {
59
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
+ }
61
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62
+ };
63
+
64
+ var notice = '';
65
+
66
+ var AComponent =
67
+ /** @class */
68
+ function (_super) {
69
+ __extends(AComponent, _super);
70
+
71
+ function AComponent() {
72
+ var _this = _super !== null && _super.apply(this, arguments) || this;
73
+
74
+ _this.state = {};
75
+
76
+ _this.onClickItem = function (node) {
77
+ _this.props.store.setState({
78
+ clickedGroup: node.id
79
+ });
80
+ };
81
+
82
+ _this.onAddClick = function () {
83
+ var json = (0, _defaultJSON.tagGroupSourceJSON)();
84
+
85
+ _this.props.source.push(json);
86
+
87
+ _this.setState({});
88
+
89
+ (0, _coreUtil.renderPreview)();
90
+ };
91
+
92
+ _this.reRender = function () {
93
+ _this.setState({});
94
+ };
95
+
96
+ _this.renderCard = function (src) {
97
+ return /*#__PURE__*/_react["default"].createElement("div", {
98
+ className: "card_wrap"
99
+ }, /*#__PURE__*/_react["default"].createElement("div", {
100
+ className: "name"
101
+ }, "Button Tag"));
102
+ };
103
+
104
+ return _this;
105
+ }
106
+
107
+ AComponent.prototype.render = function () {
108
+ var _this = this;
109
+
110
+ var source = this.props.source;
111
+ return /*#__PURE__*/_react["default"].createElement("div", {
112
+ className: "tag_group"
113
+ }, /*#__PURE__*/_react["default"].createElement("div", {
114
+ className: "node_list"
115
+ }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
116
+ className: "notice"
117
+ }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
118
+ onClickItem: this.onClickItem,
119
+ renderCard: function renderCard(v) {
120
+ return _this.renderCard(v);
121
+ },
122
+ reRender: this.reRender,
123
+ source: source
124
+ })), /*#__PURE__*/_react["default"].createElement("div", {
125
+ className: "btn_wrap"
126
+ }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
127
+ icon: "icon-add",
128
+ onClick: this.onAddClick,
129
+ type: "primary"
130
+ }, (0, _locale.i18n)('ADD_TAG'))));
131
+ };
132
+
133
+ AComponent.defaultProps = {
134
+ source: []
135
+ };
136
+ AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
137
+ return AComponent;
138
+ }(_react["default"].Component);
139
+
140
+ var _default = AComponent;
141
+ exports["default"] = _default;
@@ -0,0 +1,16 @@
1
+ .tag_group {
2
+ margin-bottom: 20px;
3
+
4
+ .node_list {
5
+ margin-bottom: 12px;
6
+
7
+ .notice {
8
+ font-family: 'Open Sans';
9
+ font-style: normal;
10
+ font-weight: 400;
11
+ font-size: 16px;
12
+ line-height: 24px;
13
+ color: #232F46;
14
+ }
15
+ }
16
+ }
@@ -32,6 +32,7 @@ function TagCompConfig(props) {
32
32
  key: '1',
33
33
  name: (0, _locale.i18n)('CONTENT'),
34
34
  value: /*#__PURE__*/_react["default"].createElement(_TagConfigContent["default"], {
35
+ groupSource: data.groupSource,
35
36
  panelProps: data.content
36
37
  })
37
38
  }, {
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _coreUtil = require("../../../../utils/coreUtil");
11
-
12
10
  var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
11
 
14
12
  var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
@@ -102,10 +100,8 @@ function (_super) {
102
100
  metaOption: panelProps.secondButton
103
101
  }];
104
102
  return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
105
- headerSize: "middle",
106
- onRefresh: function onRefresh() {
107
- return (0, _coreUtil.renderPreview)();
108
- },
103
+ headerSize: "middle" // onRefresh={() => renderPreview()}
104
+ ,
109
105
  showActiveColor: true,
110
106
  source: source,
111
107
  type: "switch"
@@ -0,0 +1,103 @@
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 _coreUtil = require("../../../../utils/coreUtil");
11
+
12
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
+
14
+ var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
15
+
16
+ var _locale = require("../../../../locale");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var debug = require('debug')('worker:ButtonSecondConfig');
47
+
48
+ var ButtonSecondConfig =
49
+ /** @class */
50
+ function (_super) {
51
+ __extends(ButtonSecondConfig, _super);
52
+
53
+ function ButtonSecondConfig() {
54
+ var _this = _super !== null && _super.apply(this, arguments) || this;
55
+
56
+ _this.state = {};
57
+
58
+ _this.getContentPanel = function () {
59
+ var panelProps = _this.props.panelProps;
60
+ var source = [{
61
+ key: '1',
62
+ name: (0, _locale.i18n)('BUTTON_TAG'),
63
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
64
+ data: panelProps.button
65
+ }),
66
+ metaOption: panelProps.button
67
+ }];
68
+ return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
69
+ headerSize: "middle",
70
+ onRefresh: function onRefresh() {
71
+ return (0, _coreUtil.renderPreview)();
72
+ },
73
+ showActiveColor: true,
74
+ source: source,
75
+ type: "switch"
76
+ });
77
+ };
78
+
79
+ return _this;
80
+ }
81
+
82
+ ButtonSecondConfig.prototype.render = function () {
83
+ return /*#__PURE__*/_react["default"].createElement("div", {
84
+ className: "button_second_conf_wrap"
85
+ }, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
86
+ divider: "bold",
87
+ headerSize: "large",
88
+ source: [{
89
+ key: '1',
90
+ name: (0, _locale.i18n)('CONTENT'),
91
+ value: this.getContentPanel()
92
+ }]
93
+ }));
94
+ };
95
+
96
+ ButtonSecondConfig.defaultProps = {
97
+ panelProps: {}
98
+ };
99
+ return ButtonSecondConfig;
100
+ }(_react["default"].Component);
101
+
102
+ var _default = ButtonSecondConfig;
103
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ .button_second_conf_wrap {
2
+ width: 354px;
3
+ }
@@ -7,13 +7,13 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
10
+ var _coreUtil = require("../../../../utils/coreUtil");
11
11
 
12
- var _coreUtil = require("../../../../../utils/coreUtil");
12
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
13
 
14
- var _common = require("../../../../../common");
14
+ var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
15
15
 
16
- var _locale = require("../../../../../locale");
16
+ var _locale = require("../../../../locale");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
 
@@ -43,59 +43,61 @@ var __extends = void 0 && (void 0).__extends || function () {
43
43
  };
44
44
  }();
45
45
 
46
- var AComponent =
46
+ var debug = require('debug')('worker:TagSecondConfig');
47
+
48
+ var TagSecondConfig =
47
49
  /** @class */
48
50
  function (_super) {
49
- __extends(AComponent, _super);
51
+ __extends(TagSecondConfig, _super);
50
52
 
51
- function AComponent() {
53
+ function TagSecondConfig() {
52
54
  var _this = _super !== null && _super.apply(this, arguments) || this;
53
55
 
54
56
  _this.state = {};
55
57
 
56
- _this.reRender = function () {
57
- (0, _coreUtil.renderPreview)();
58
-
59
- _this.setState({});
58
+ _this.getContentPanel = function () {
59
+ var panelProps = _this.props.panelProps;
60
+ var source = [{
61
+ key: '1',
62
+ name: (0, _locale.i18n)('BUTTON_TAG'),
63
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
64
+ data: panelProps.button
65
+ }),
66
+ metaOption: panelProps.button
67
+ }];
68
+ return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
69
+ headerSize: "middle",
70
+ onRefresh: function onRefresh() {
71
+ return (0, _coreUtil.renderPreview)();
72
+ },
73
+ showActiveColor: true,
74
+ source: source,
75
+ type: "switch"
76
+ });
60
77
  };
61
78
 
62
79
  return _this;
63
80
  }
64
81
 
65
- AComponent.prototype.render = function () {
66
- var panelProps = this.props.panelProps;
82
+ TagSecondConfig.prototype.render = function () {
67
83
  return /*#__PURE__*/_react["default"].createElement("div", {
68
- className: "recommend_content"
69
- }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
- headerSize: "middle",
71
- onRefresh: this.reRender,
84
+ className: "tag_second_conf_wrap"
85
+ }, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
86
+ divider: "bold",
87
+ headerSize: "large",
72
88
  source: [{
73
89
  key: '1',
74
- name: (0, _locale.i18n)('BUTTON'),
75
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
76
- data: panelProps.button
77
- }),
78
- metaOption: panelProps.button
79
- }, {
80
- key: '2',
81
- name: (0, _locale.i18n)('SECONDARY_BUTTON'),
82
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
83
- data: panelProps.secondaryButton
84
- }),
85
- metaOption: panelProps.secondaryButton
86
- }],
87
- type: "switch"
90
+ name: (0, _locale.i18n)('CONTENT'),
91
+ value: this.getContentPanel()
92
+ }]
88
93
  }));
89
94
  };
90
95
 
91
- AComponent.defaultProps = {
92
- panelProps: {
93
- button: {},
94
- secondaryButton: {}
95
- }
96
+ TagSecondConfig.defaultProps = {
97
+ panelProps: {}
96
98
  };
97
- return AComponent;
99
+ return TagSecondConfig;
98
100
  }(_react["default"].Component);
99
101
 
100
- var _default = AComponent;
102
+ var _default = TagSecondConfig;
101
103
  exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ .tag_second_conf_wrap {
2
+ width: 354px;
3
+ }
@@ -89,9 +89,9 @@ function (_super) {
89
89
  className: "padding-item"
90
90
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
91
91
  type: "icon-padding-top"
92
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
92
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
93
93
  onChange: function onChange(e) {
94
- obj.paddingTop = e.target.value;
94
+ obj.paddingTop = e;
95
95
 
96
96
  _this.selfRender();
97
97
  },
@@ -100,9 +100,9 @@ function (_super) {
100
100
  className: "padding-item"
101
101
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
102
102
  type: "icon-padding-bottom"
103
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
103
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
104
104
  onChange: function onChange(e) {
105
- obj.paddingBottom = e.target.value;
105
+ obj.paddingBottom = e;
106
106
 
107
107
  _this.selfRender();
108
108
  },
@@ -111,9 +111,9 @@ function (_super) {
111
111
  className: "padding-item"
112
112
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
113
113
  type: "icon-padding-left"
114
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
114
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
115
115
  onChange: function onChange(e) {
116
- obj.paddingLeft = e.target.value;
116
+ obj.paddingLeft = e;
117
117
 
118
118
  _this.selfRender();
119
119
  },
@@ -122,9 +122,9 @@ function (_super) {
122
122
  className: "padding-item"
123
123
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
124
124
  type: "icon-padding-right"
125
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
125
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
126
126
  onChange: function onChange(e) {
127
- obj.paddingRight = e.target.value;
127
+ obj.paddingRight = e;
128
128
 
129
129
  _this.selfRender();
130
130
  },
@@ -167,6 +167,22 @@ var getDefaultJSON = function getDefaultJSON() {
167
167
  open: true
168
168
  }
169
169
  },
170
+ spacing: {
171
+ pc: {
172
+ paddingTop: 0,
173
+ paddingBottom: 0,
174
+ paddingLeft: 0,
175
+ paddingRight: 0,
176
+ marginBottom: window.magicDesign.compSpacing * 1.5
177
+ },
178
+ mobile: {
179
+ paddingTop: 0,
180
+ paddingBottom: 0,
181
+ paddingLeft: 0,
182
+ paddingRight: 0,
183
+ marginBottom: window.magicDesign.compSpacing
184
+ }
185
+ },
170
186
  customize: {
171
187
  layout: 'layout1',
172
188
  align: 'left',
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = exports.PcNavGroupSourceJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var PcNavGroupSourceJSON = function PcNavGroupSourceJSON() {
11
+ var groupId = (0, _uuid.v4)();
12
+ return {
13
+ id: groupId,
14
+ title: {
15
+ parentId: groupId,
16
+ id: (0, _uuid.v4)(),
17
+ open: true,
18
+ type: 'TEXT',
19
+ specialContent: [],
20
+ text: 'Navigation',
21
+ content: {
22
+ sizeType: 'Customize font styles',
23
+ fontFamily: 'Open Sans',
24
+ fontWeight: 400,
25
+ fontSize: 16,
26
+ pcFontSize: 16,
27
+ width: '100%',
28
+ color: '#232F46'
29
+ },
30
+ underline: {
31
+ open: false,
32
+ textDecorationColor: '',
33
+ textDecorationStyle: 'solid'
34
+ },
35
+ vertical: {}
36
+ }
37
+ };
38
+ };
39
+
40
+ exports.PcNavGroupSourceJSON = PcNavGroupSourceJSON;
41
+
42
+ var getDefaultJSON = function getDefaultJSON() {
43
+ return {
44
+ id: (0, _uuid.v4)(),
45
+ type: 'PC_NAVIGATION',
46
+ spacing: {
47
+ pc: {
48
+ paddingTop: 10,
49
+ paddingBottom: 10,
50
+ paddingLeft: 120,
51
+ paddingRight: 120,
52
+ marginBottom: window.magicDesign.compSpacing
53
+ },
54
+ mobile: {
55
+ paddingTop: 0,
56
+ paddingBottom: 0,
57
+ marginBottom: 0
58
+ }
59
+ },
60
+ customize: {
61
+ layout: 'normal'
62
+ },
63
+ background: {
64
+ opacity: 100,
65
+ color: '#FFFFFF',
66
+ image: '',
67
+ bgType: 'color'
68
+ },
69
+ home: {
70
+ allCategory: {
71
+ id: (0, _uuid.v4)(),
72
+ open: true,
73
+ type: 'TEXT',
74
+ text: 'All Category',
75
+ specialContent: [],
76
+ iconUrl: '',
77
+ content: {
78
+ sizeType: 'Customize font styles',
79
+ fontFamily: 'Open Sans',
80
+ fontWeight: 400,
81
+ fontSize: 16,
82
+ pcFontSize: 16,
83
+ width: '100%',
84
+ color: '#3A2E2E'
85
+ }
86
+ },
87
+ firstCategory: {
88
+ id: (0, _uuid.v4)(),
89
+ specialContent: [],
90
+ content: {
91
+ sizeType: 'Customize font styles',
92
+ fontFamily: 'Open Sans',
93
+ fontWeight: 600,
94
+ fontSize: 22,
95
+ pcFontSize: 22,
96
+ width: '100%',
97
+ color: '#232F46'
98
+ }
99
+ },
100
+ secondCategory: {
101
+ id: (0, _uuid.v4)(),
102
+ specialContent: [],
103
+ content: {
104
+ sizeType: 'Customize font styles',
105
+ fontFamily: 'Open Sans',
106
+ fontWeight: 600,
107
+ fontSize: 22,
108
+ pcFontSize: 22,
109
+ width: '100%',
110
+ color: '#232F46'
111
+ }
112
+ },
113
+ lastCategory: {
114
+ id: (0, _uuid.v4)(),
115
+ specialContent: [],
116
+ content: {
117
+ sizeType: 'Customize font styles',
118
+ fontFamily: 'Open Sans',
119
+ fontWeight: 600,
120
+ fontSize: 22,
121
+ pcFontSize: 22,
122
+ width: '100%',
123
+ color: '#232F46'
124
+ }
125
+ }
126
+ },
127
+ groupSource: [PcNavGroupSourceJSON()]
128
+ };
129
+ };
130
+
131
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,6 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="&#230;&#177;&#137;&#229;&#160;&#161;&#229;&#140;&#133;">
3
+ <rect id="Rectangle" opacity="0.01" width="16" height="16" fill="black"/>
4
+ <path id="Shape" fill-rule="evenodd" clip-rule="evenodd" d="M1.15 4.34978C0.688742 4.34978 0.313477 3.97452 0.313477 3.51328C0.313477 3.05202 0.688742 2.67676 1.15 2.67676H14.8503C15.3115 2.67676 15.6868 3.05202 15.6868 3.51328C15.6868 3.97452 15.3115 4.34978 14.8503 4.34978H1.15ZM1.15 9.25537C0.688742 9.25537 0.313477 8.88009 0.313477 8.41878C0.313477 7.95753 0.688742 7.58226 1.15 7.58226H14.8503C15.3115 7.58226 15.6868 7.95753 15.6868 8.41878C15.6868 8.88009 15.3115 9.25537 14.8503 9.25537H1.15ZM0.313477 13.2852C0.313477 13.7465 0.688742 14.1217 1.15 14.1217H14.8503C15.3115 14.1217 15.6868 13.7465 15.6868 13.2852C15.6868 12.8239 15.3115 12.4487 14.8503 12.4487H1.15C0.688742 12.4487 0.313477 12.8239 0.313477 13.2852Z" fill="#3A2E2E"/>
5
+ </g>
6
+ </svg>