@fonixtree/magic-design 2.0.75 → 2.0.77
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/less/button.less +5 -0
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +2 -6
- package/es/decorator/metaDecorator.js +1 -1
- package/lib/assets/less/button.less +5 -0
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +2 -6
- package/lib/decorator/metaDecorator.js +1 -1
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -29,4 +29,9 @@
|
|
|
29
29
|
color: #2F54EB;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
}
|
|
33
|
+
.cylon-btn[disabled], .cylon-btn[disabled]:hover, .cylon-btn[disabled]:focus, .cylon-btn[disabled]:active {
|
|
34
|
+
color: rgba(0, 0, 0, 0.25) !important;
|
|
35
|
+
border-color: #d9d9d9 !important;
|
|
36
|
+
background: #f5f5f5 !important;
|
|
32
37
|
}
|
|
@@ -293,7 +293,7 @@ function PageCompList(_a) {
|
|
|
293
293
|
type: "icon-drag"
|
|
294
294
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
295
295
|
className: "card-title ml16"
|
|
296
|
-
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
296
|
+
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), pageType !== 'Menu' && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
297
297
|
overlay: menu,
|
|
298
298
|
placement: "bottomRight",
|
|
299
299
|
trigger: ['click']
|
|
@@ -183,15 +183,11 @@ function (_super) {
|
|
|
183
183
|
type: "light"
|
|
184
184
|
}, (0, _locale.i18n)('SAVE'))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
185
|
className: "menu_right"
|
|
186
|
-
}, window.magicDesign.templateType === _constants.tempTypeMap.PAGE
|
|
186
|
+
}, window.magicDesign.templateType === _constants.tempTypeMap.PAGE && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
187
187
|
"data-code": _constants.quickMenuCode.SET_AS_TEMPLATE,
|
|
188
188
|
onClick: this.onBtnClick,
|
|
189
189
|
type: "text"
|
|
190
|
-
}, (0, _locale.i18n)('SET_AS_TEMPLATE'))
|
|
191
|
-
"data-code": _constants.quickMenuCode.PUSH,
|
|
192
|
-
onClick: this.onBtnClick,
|
|
193
|
-
type: "text"
|
|
194
|
-
}, (0, _locale.i18n)('PUSH')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
190
|
+
}, (0, _locale.i18n)('SET_AS_TEMPLATE')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
195
191
|
"data-code": _constants.quickMenuCode.PREVIEW,
|
|
196
192
|
onClick: this.onBtnClick
|
|
197
193
|
}, (0, _locale.i18n)('PREVIEW')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
@@ -95,7 +95,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
95
95
|
GAData = _c.GAData;
|
|
96
96
|
(0, _commonUtil.pushGA)(__assign(__assign({}, GAData), {
|
|
97
97
|
elementId: data.id,
|
|
98
|
-
elementName: data.text || GAData.groupName
|
|
98
|
+
elementName: data.text || (GAData === null || GAData === void 0 ? void 0 : GAData.groupName)
|
|
99
99
|
}));
|
|
100
100
|
return;
|
|
101
101
|
} // 组织冒泡
|
|
@@ -29,4 +29,9 @@
|
|
|
29
29
|
color: #2F54EB;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
}
|
|
33
|
+
.cylon-btn[disabled], .cylon-btn[disabled]:hover, .cylon-btn[disabled]:focus, .cylon-btn[disabled]:active {
|
|
34
|
+
color: rgba(0, 0, 0, 0.25) !important;
|
|
35
|
+
border-color: #d9d9d9 !important;
|
|
36
|
+
background: #f5f5f5 !important;
|
|
32
37
|
}
|
|
@@ -293,7 +293,7 @@ function PageCompList(_a) {
|
|
|
293
293
|
type: "icon-drag"
|
|
294
294
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
295
295
|
className: "card-title ml16"
|
|
296
|
-
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
296
|
+
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), pageType !== 'Menu' && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
297
297
|
overlay: menu,
|
|
298
298
|
placement: "bottomRight",
|
|
299
299
|
trigger: ['click']
|
|
@@ -183,15 +183,11 @@ function (_super) {
|
|
|
183
183
|
type: "light"
|
|
184
184
|
}, (0, _locale.i18n)('SAVE'))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
185
|
className: "menu_right"
|
|
186
|
-
}, window.magicDesign.templateType === _constants.tempTypeMap.PAGE
|
|
186
|
+
}, window.magicDesign.templateType === _constants.tempTypeMap.PAGE && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
187
187
|
"data-code": _constants.quickMenuCode.SET_AS_TEMPLATE,
|
|
188
188
|
onClick: this.onBtnClick,
|
|
189
189
|
type: "text"
|
|
190
|
-
}, (0, _locale.i18n)('SET_AS_TEMPLATE'))
|
|
191
|
-
"data-code": _constants.quickMenuCode.PUSH,
|
|
192
|
-
onClick: this.onBtnClick,
|
|
193
|
-
type: "text"
|
|
194
|
-
}, (0, _locale.i18n)('PUSH')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
190
|
+
}, (0, _locale.i18n)('SET_AS_TEMPLATE')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
195
191
|
"data-code": _constants.quickMenuCode.PREVIEW,
|
|
196
192
|
onClick: this.onBtnClick
|
|
197
193
|
}, (0, _locale.i18n)('PREVIEW')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
@@ -95,7 +95,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
95
95
|
GAData = _c.GAData;
|
|
96
96
|
(0, _commonUtil.pushGA)(__assign(__assign({}, GAData), {
|
|
97
97
|
elementId: data.id,
|
|
98
|
-
elementName: data.text || GAData.groupName
|
|
98
|
+
elementName: data.text || (GAData === null || GAData === void 0 ? void 0 : GAData.groupName)
|
|
99
99
|
}));
|
|
100
100
|
return;
|
|
101
101
|
} // 组织冒泡
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|