@fonixtree/magic-design 2.0.104 → 2.0.106
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/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +2 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +2 -2
- package/package.json +1 -1
|
@@ -351,7 +351,7 @@ function (_super) {
|
|
|
351
351
|
cartNum = _t.cartNum,
|
|
352
352
|
value = _t.value;
|
|
353
353
|
|
|
354
|
-
var style = __assign({}, (0, _Text.contentStyle)((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content));
|
|
354
|
+
var style = __assign({}, (0, _Text.contentStyle)(((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content) || {}));
|
|
355
355
|
|
|
356
356
|
Reflect.deleteProperty(style, 'width');
|
|
357
357
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -152,7 +152,7 @@ function (_super) {
|
|
|
152
152
|
var data = this.props.data;
|
|
153
153
|
var inputVal = this.state.inputVal;
|
|
154
154
|
|
|
155
|
-
var style = __assign({}, (0, _Text.contentStyle)((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content));
|
|
155
|
+
var style = __assign({}, (0, _Text.contentStyle)(((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content) || {}));
|
|
156
156
|
|
|
157
157
|
Reflect.deleteProperty(style, 'width');
|
|
158
158
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function (_super) {
|
|
|
75
75
|
SearchBarConfigContent.prototype.render = function () {
|
|
76
76
|
var _this = this;
|
|
77
77
|
|
|
78
|
-
var _a, _b, _c, _d;
|
|
78
|
+
var _a, _b, _c, _d, _e;
|
|
79
79
|
|
|
80
80
|
var panelProps = this.props.panelProps;
|
|
81
81
|
var source = [{
|
|
@@ -126,7 +126,7 @@ function (_super) {
|
|
|
126
126
|
metaOption: panelProps.box,
|
|
127
127
|
toggleType: 'switch'
|
|
128
128
|
}, {
|
|
129
|
-
key: panelProps.keyword.id,
|
|
129
|
+
key: (_e = panelProps.keyword) === null || _e === void 0 ? void 0 : _e.id,
|
|
130
130
|
name: (0, _locale.i18n)('SEARCH_BAR_KEYWORD'),
|
|
131
131
|
toggleType: 'switch',
|
|
132
132
|
value: /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -351,7 +351,7 @@ function (_super) {
|
|
|
351
351
|
cartNum = _t.cartNum,
|
|
352
352
|
value = _t.value;
|
|
353
353
|
|
|
354
|
-
var style = __assign({}, (0, _Text.contentStyle)((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content));
|
|
354
|
+
var style = __assign({}, (0, _Text.contentStyle)(((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content) || {}));
|
|
355
355
|
|
|
356
356
|
Reflect.deleteProperty(style, 'width');
|
|
357
357
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -152,7 +152,7 @@ function (_super) {
|
|
|
152
152
|
var data = this.props.data;
|
|
153
153
|
var inputVal = this.state.inputVal;
|
|
154
154
|
|
|
155
|
-
var style = __assign({}, (0, _Text.contentStyle)((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content));
|
|
155
|
+
var style = __assign({}, (0, _Text.contentStyle)(((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content) || {}));
|
|
156
156
|
|
|
157
157
|
Reflect.deleteProperty(style, 'width');
|
|
158
158
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function (_super) {
|
|
|
75
75
|
SearchBarConfigContent.prototype.render = function () {
|
|
76
76
|
var _this = this;
|
|
77
77
|
|
|
78
|
-
var _a, _b, _c, _d;
|
|
78
|
+
var _a, _b, _c, _d, _e;
|
|
79
79
|
|
|
80
80
|
var panelProps = this.props.panelProps;
|
|
81
81
|
var source = [{
|
|
@@ -126,7 +126,7 @@ function (_super) {
|
|
|
126
126
|
metaOption: panelProps.box,
|
|
127
127
|
toggleType: 'switch'
|
|
128
128
|
}, {
|
|
129
|
-
key: panelProps.keyword.id,
|
|
129
|
+
key: (_e = panelProps.keyword) === null || _e === void 0 ? void 0 : _e.id,
|
|
130
130
|
name: (0, _locale.i18n)('SEARCH_BAR_KEYWORD'),
|
|
131
131
|
toggleType: 'switch',
|
|
132
132
|
value: /*#__PURE__*/_react["default"].createElement("div", {
|