@fonixtree/magic-design 0.0.69 → 0.0.71
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/assets/fonts/magic-box-iconfont.css +3 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/common/ImageModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +6 -2
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -0
- package/es/composite-comp/bol/components/Carousel/pc/index.js +11 -6
- package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +9 -15
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +1 -2
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +4 -4
- package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.less +4 -4
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -2
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +6 -6
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +4 -2
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +23 -7
- package/es/core/Designer/PageCompList/index.js +4 -2
- package/lib/assets/fonts/magic-box-iconfont.css +3 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/common/ImageModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +6 -2
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -0
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +11 -6
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +9 -15
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +1 -2
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +4 -4
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +4 -4
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -2
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +6 -6
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +4 -2
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +23 -7
- package/lib/core/Designer/PageCompList/index.js +4 -2
- package/package.json +1 -1
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
}, data.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
className: "search-input-wrap",
|
|
100
100
|
style: {
|
|
101
|
-
borderColor: data.box.color
|
|
101
|
+
borderColor: data.box.color.pc
|
|
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.box.color
|
|
115
|
+
background: data.box.color.pc
|
|
116
116
|
}
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
118
|
color: "#fff",
|
|
@@ -124,11 +124,11 @@ function (_super) {
|
|
|
124
124
|
return (0, _coreUtil.clickUrl)('/cart');
|
|
125
125
|
},
|
|
126
126
|
style: {
|
|
127
|
-
borderColor: data.icon.color,
|
|
128
|
-
color: data.icon.color
|
|
127
|
+
borderColor: data.icon.color.pc,
|
|
128
|
+
color: data.icon.color.pc
|
|
129
129
|
}
|
|
130
130
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
131
|
-
color: data.icon.color,
|
|
131
|
+
color: data.icon.color.pc,
|
|
132
132
|
size: 16,
|
|
133
133
|
type: "icon-ShoppingCartSimple"
|
|
134
134
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -136,7 +136,7 @@ function (_super) {
|
|
|
136
136
|
}, (0, _locale.i18n)('SHOPPING_CART')))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
137
137
|
data: data.logo,
|
|
138
138
|
style: {
|
|
139
|
-
height:
|
|
139
|
+
height: 40
|
|
140
140
|
}
|
|
141
141
|
}));
|
|
142
142
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pc-search-bar {
|
|
2
2
|
// height: 48px;
|
|
3
|
-
padding: 20px 100px 30px;
|
|
3
|
+
// padding: 20px 100px 30px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: flex-start;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 90px;
|
|
12
14
|
align-items: center;
|
|
13
15
|
justify-content: space-between;
|
|
14
16
|
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
border-radius: 6px;
|
|
18
20
|
height: 40px;
|
|
19
21
|
display: flex;
|
|
20
|
-
|
|
22
|
+
flex: 1;
|
|
21
23
|
.search-input {
|
|
22
24
|
border: none;
|
|
23
25
|
height: 38px;
|
package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js
CHANGED
|
@@ -73,7 +73,7 @@ function (_super) {
|
|
|
73
73
|
key: 'category1',
|
|
74
74
|
name: /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
onClick: function onClick() {
|
|
76
|
-
return
|
|
76
|
+
return window.open('/#/PageCategoryManagement');
|
|
77
77
|
}
|
|
78
78
|
}, (0, _locale.i18n)('ALL_CATEGORY'), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
79
79
|
color: "#2F54EB",
|
package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/PcNavigation/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); }
|
|
@@ -118,7 +120,7 @@ function (_super) {
|
|
|
118
120
|
PcNavigationConfigGroup.defaultProps = {
|
|
119
121
|
source: []
|
|
120
122
|
};
|
|
121
|
-
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], PcNavigationConfigGroup);
|
|
123
|
+
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], PcNavigationConfigGroup);
|
|
122
124
|
return PcNavigationConfigGroup;
|
|
123
125
|
}(_react["default"].Component);
|
|
124
126
|
|
|
@@ -15,6 +15,8 @@ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-
|
|
|
15
15
|
|
|
16
16
|
var _common = require("../../../../common");
|
|
17
17
|
|
|
18
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
19
|
+
|
|
18
20
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
19
21
|
|
|
20
22
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -83,11 +85,15 @@ function (_super) {
|
|
|
83
85
|
title: (0, _locale.i18n)('COLOR')
|
|
84
86
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
85
87
|
onChange: function onChange(v) {
|
|
86
|
-
|
|
88
|
+
if ((0, _coreUtil.isPc)()) {
|
|
89
|
+
data.box.color.pc = v;
|
|
90
|
+
} else {
|
|
91
|
+
data.box.color.mobile = v;
|
|
92
|
+
}
|
|
87
93
|
|
|
88
94
|
_this.selfRender();
|
|
89
95
|
},
|
|
90
|
-
value: data.box.color
|
|
96
|
+
value: (0, _coreUtil.isPc)() ? data.box.color.pc : data.box.color.mobile
|
|
91
97
|
})),
|
|
92
98
|
metaOption: data.box,
|
|
93
99
|
toggleType: 'switch'
|
|
@@ -101,20 +107,23 @@ function (_super) {
|
|
|
101
107
|
title: (0, _locale.i18n)('COLOR')
|
|
102
108
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
103
109
|
onChange: function onChange(v) {
|
|
104
|
-
|
|
110
|
+
if ((0, _coreUtil.isPc)()) {
|
|
111
|
+
data.icon.color.pc = v;
|
|
112
|
+
} else {
|
|
113
|
+
data.icon.color.mobile = v;
|
|
114
|
+
}
|
|
105
115
|
|
|
106
116
|
_this.selfRender();
|
|
107
117
|
},
|
|
108
|
-
value: data.icon.color
|
|
118
|
+
value: (0, _coreUtil.isPc)() ? data.icon.color.pc : data.icon.color.mobile
|
|
109
119
|
})),
|
|
110
120
|
metaOption: data.icon,
|
|
111
121
|
toggleType: 'switch'
|
|
112
122
|
}];
|
|
113
123
|
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
114
124
|
headerSize: "middle",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
},
|
|
125
|
+
noChange: true,
|
|
126
|
+
onRefresh: _this.selfRender,
|
|
118
127
|
showActiveColor: true,
|
|
119
128
|
source: source,
|
|
120
129
|
type: "switch"
|
|
@@ -133,6 +142,13 @@ function (_super) {
|
|
|
133
142
|
key: 'searchBar1',
|
|
134
143
|
name: (0, _locale.i18n)('CONTENT'),
|
|
135
144
|
value: this.getContentPanel()
|
|
145
|
+
}, {
|
|
146
|
+
key: 'searchBar4',
|
|
147
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
148
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
149
|
+
configCompSpace: true,
|
|
150
|
+
data: data.spacing
|
|
151
|
+
})
|
|
136
152
|
}, {
|
|
137
153
|
key: 'searchBar2',
|
|
138
154
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
@@ -121,9 +121,11 @@ function PageCompList(_a) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
var onMenuClick = function onMenuClick(
|
|
124
|
+
var onMenuClick = function onMenuClick(activeComp, operType) {
|
|
125
125
|
var newComponents = __spreadArrays(components);
|
|
126
126
|
|
|
127
|
+
var index = newComponents.indexOf(activeComp);
|
|
128
|
+
|
|
127
129
|
if (operType === operTypeMap.MOVE_UP) {
|
|
128
130
|
var temp = newComponents[index - 1];
|
|
129
131
|
newComponents[index - 1] = newComponents[index];
|
|
@@ -178,7 +180,7 @@ function PageCompList(_a) {
|
|
|
178
180
|
var menu = /*#__PURE__*/_react["default"].createElement(_antd.Menu, {
|
|
179
181
|
onClick: function onClick(_a) {
|
|
180
182
|
var item = _a.item;
|
|
181
|
-
return onMenuClick(
|
|
183
|
+
return onMenuClick(comp, item.props.value);
|
|
182
184
|
}
|
|
183
185
|
}, index !== 0 && /*#__PURE__*/_react["default"].createElement(_antd.Menu.Item, {
|
|
184
186
|
className: "menu_item",
|