@fonixtree/magic-design 2.0.76 → 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.
@@ -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
  }
@@ -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 ? /*#__PURE__*/_react["default"].createElement(_Button["default"], {
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')) : /*#__PURE__*/_react["default"].createElement(_Button["default"], {
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
  }
@@ -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 ? /*#__PURE__*/_react["default"].createElement(_Button["default"], {
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')) : /*#__PURE__*/_react["default"].createElement(_Button["default"], {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.76",
4
+ "version": "2.0.77",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",