@fonixtree/magic-design 0.0.65 → 0.0.67
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/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +6 -2
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +5 -2
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +21 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +2 -2
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +6 -2
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +5 -2
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +21 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +2 -2
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/ImageText/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
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); }
|
|
@@ -120,7 +122,7 @@ function (_super) {
|
|
|
120
122
|
ImageTextConfigGroup.defaultProps = {
|
|
121
123
|
source: []
|
|
122
124
|
};
|
|
123
|
-
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
|
|
125
|
+
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
124
126
|
return ImageTextConfigGroup;
|
|
125
127
|
}(_react["default"].Component);
|
|
126
128
|
|
|
Binary file
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
11
|
+
|
|
10
12
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
11
13
|
|
|
12
14
|
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
@@ -100,8 +102,10 @@ function (_super) {
|
|
|
100
102
|
metaOption: panelProps.secondButton
|
|
101
103
|
}];
|
|
102
104
|
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
103
|
-
headerSize: "middle"
|
|
104
|
-
|
|
105
|
+
headerSize: "middle",
|
|
106
|
+
onRefresh: function onRefresh() {
|
|
107
|
+
return (0, _coreUtil.renderPreview)();
|
|
108
|
+
},
|
|
105
109
|
showActiveColor: true,
|
|
106
110
|
source: source,
|
|
107
111
|
type: "switch"
|
|
@@ -256,15 +256,18 @@ function (_super) {
|
|
|
256
256
|
className: "search-input-wrap",
|
|
257
257
|
onClick: function onClick() {
|
|
258
258
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
259
|
+
},
|
|
260
|
+
style: {
|
|
261
|
+
borderColor: data.box.color
|
|
259
262
|
}
|
|
260
263
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
261
|
-
color:
|
|
264
|
+
color: data.box.color,
|
|
262
265
|
size: 24,
|
|
263
266
|
type: "icon-search2"
|
|
264
267
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
265
268
|
className: "message-wrap"
|
|
266
269
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
267
|
-
color:
|
|
270
|
+
color: data.icon.color,
|
|
268
271
|
onClick: function onClick() {
|
|
269
272
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
270
273
|
},
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
className: "search-input-wrap",
|
|
100
100
|
style: {
|
|
101
|
-
borderColor: data.
|
|
101
|
+
borderColor: data.box.color
|
|
102
102
|
}
|
|
103
103
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
104
|
className: "search-input",
|
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
className: "search-icon",
|
|
113
113
|
onClick: this.searchProduct,
|
|
114
114
|
style: {
|
|
115
|
-
background: data.
|
|
115
|
+
background: data.box.color
|
|
116
116
|
}
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
118
|
color: "#fff",
|
|
@@ -75,8 +75,29 @@ function (_super) {
|
|
|
75
75
|
toggleType: 'switch'
|
|
76
76
|
}, {
|
|
77
77
|
key: 'search2',
|
|
78
|
+
name: (0, _locale.i18n)('SEARCH_BOX'),
|
|
79
|
+
value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
80
|
+
style: {
|
|
81
|
+
marginTop: 20
|
|
82
|
+
},
|
|
83
|
+
title: (0, _locale.i18n)('COLOR')
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
85
|
+
onChange: function onChange(v) {
|
|
86
|
+
data.box.color = v;
|
|
87
|
+
|
|
88
|
+
_this.selfRender();
|
|
89
|
+
},
|
|
90
|
+
value: data.box.color
|
|
91
|
+
})),
|
|
92
|
+
metaOption: data.box,
|
|
93
|
+
toggleType: 'switch'
|
|
94
|
+
}, {
|
|
95
|
+
key: 'search3',
|
|
78
96
|
name: (0, _locale.i18n)('ICON'),
|
|
79
97
|
value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
98
|
+
style: {
|
|
99
|
+
marginTop: 20
|
|
100
|
+
},
|
|
80
101
|
title: (0, _locale.i18n)('COLOR')
|
|
81
102
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
82
103
|
onChange: function onChange(v) {
|
|
@@ -39,7 +39,7 @@ function TerminalSelect(_a) {
|
|
|
39
39
|
|
|
40
40
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
41
|
className: "terminal_wrap"
|
|
42
|
-
}, ['MOBILE', 'ALL'].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
+
}, ['MOBILE', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
43
|
className: "terminal_item",
|
|
44
44
|
onClick: function onClick() {
|
|
45
45
|
return onTerminalClick('MOBILE');
|
|
@@ -54,7 +54,7 @@ function TerminalSelect(_a) {
|
|
|
54
54
|
color: isActiveMobile ? '#00AC5A' : '#A3AEC3',
|
|
55
55
|
size: 9,
|
|
56
56
|
type: "icon-select"
|
|
57
|
-
}))), ['PC', 'ALL'].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
}))), ['PC', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
58
|
className: "terminal_item",
|
|
59
59
|
onClick: function onClick() {
|
|
60
60
|
return onTerminalClick('PC');
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/ImageText/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
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); }
|
|
@@ -120,7 +122,7 @@ function (_super) {
|
|
|
120
122
|
ImageTextConfigGroup.defaultProps = {
|
|
121
123
|
source: []
|
|
122
124
|
};
|
|
123
|
-
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
|
|
125
|
+
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
124
126
|
return ImageTextConfigGroup;
|
|
125
127
|
}(_react["default"].Component);
|
|
126
128
|
|
|
Binary file
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
11
|
+
|
|
10
12
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
11
13
|
|
|
12
14
|
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
@@ -100,8 +102,10 @@ function (_super) {
|
|
|
100
102
|
metaOption: panelProps.secondButton
|
|
101
103
|
}];
|
|
102
104
|
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
103
|
-
headerSize: "middle"
|
|
104
|
-
|
|
105
|
+
headerSize: "middle",
|
|
106
|
+
onRefresh: function onRefresh() {
|
|
107
|
+
return (0, _coreUtil.renderPreview)();
|
|
108
|
+
},
|
|
105
109
|
showActiveColor: true,
|
|
106
110
|
source: source,
|
|
107
111
|
type: "switch"
|
|
@@ -256,15 +256,18 @@ function (_super) {
|
|
|
256
256
|
className: "search-input-wrap",
|
|
257
257
|
onClick: function onClick() {
|
|
258
258
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
259
|
+
},
|
|
260
|
+
style: {
|
|
261
|
+
borderColor: data.box.color
|
|
259
262
|
}
|
|
260
263
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
261
|
-
color:
|
|
264
|
+
color: data.box.color,
|
|
262
265
|
size: 24,
|
|
263
266
|
type: "icon-search2"
|
|
264
267
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
265
268
|
className: "message-wrap"
|
|
266
269
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
267
|
-
color:
|
|
270
|
+
color: data.icon.color,
|
|
268
271
|
onClick: function onClick() {
|
|
269
272
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
270
273
|
},
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
className: "search-input-wrap",
|
|
100
100
|
style: {
|
|
101
|
-
borderColor: data.
|
|
101
|
+
borderColor: data.box.color
|
|
102
102
|
}
|
|
103
103
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
104
|
className: "search-input",
|
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
className: "search-icon",
|
|
113
113
|
onClick: this.searchProduct,
|
|
114
114
|
style: {
|
|
115
|
-
background: data.
|
|
115
|
+
background: data.box.color
|
|
116
116
|
}
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
118
|
color: "#fff",
|
|
@@ -75,8 +75,29 @@ function (_super) {
|
|
|
75
75
|
toggleType: 'switch'
|
|
76
76
|
}, {
|
|
77
77
|
key: 'search2',
|
|
78
|
+
name: (0, _locale.i18n)('SEARCH_BOX'),
|
|
79
|
+
value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
80
|
+
style: {
|
|
81
|
+
marginTop: 20
|
|
82
|
+
},
|
|
83
|
+
title: (0, _locale.i18n)('COLOR')
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
85
|
+
onChange: function onChange(v) {
|
|
86
|
+
data.box.color = v;
|
|
87
|
+
|
|
88
|
+
_this.selfRender();
|
|
89
|
+
},
|
|
90
|
+
value: data.box.color
|
|
91
|
+
})),
|
|
92
|
+
metaOption: data.box,
|
|
93
|
+
toggleType: 'switch'
|
|
94
|
+
}, {
|
|
95
|
+
key: 'search3',
|
|
78
96
|
name: (0, _locale.i18n)('ICON'),
|
|
79
97
|
value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
98
|
+
style: {
|
|
99
|
+
marginTop: 20
|
|
100
|
+
},
|
|
80
101
|
title: (0, _locale.i18n)('COLOR')
|
|
81
102
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
82
103
|
onChange: function onChange(v) {
|
|
@@ -39,7 +39,7 @@ function TerminalSelect(_a) {
|
|
|
39
39
|
|
|
40
40
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
41
|
className: "terminal_wrap"
|
|
42
|
-
}, ['MOBILE', 'ALL'].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
+
}, ['MOBILE', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
43
|
className: "terminal_item",
|
|
44
44
|
onClick: function onClick() {
|
|
45
45
|
return onTerminalClick('MOBILE');
|
|
@@ -54,7 +54,7 @@ function TerminalSelect(_a) {
|
|
|
54
54
|
color: isActiveMobile ? '#00AC5A' : '#A3AEC3',
|
|
55
55
|
size: 9,
|
|
56
56
|
type: "icon-select"
|
|
57
|
-
}))), ['PC', 'ALL'].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
}))), ['PC', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
58
|
className: "terminal_item",
|
|
59
59
|
onClick: function onClick() {
|
|
60
60
|
return onTerminalClick('PC');
|
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/id/id.json
CHANGED