@fonixtree/magic-design 0.0.102 → 0.0.103
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.
|
@@ -175,6 +175,8 @@ function PageCompList(_a) {
|
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
var renderCard = function renderCard(comp, index) {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
|
|
178
180
|
var menu = /*#__PURE__*/_react["default"].createElement(_antd.Menu, {
|
|
179
181
|
onClick: function onClick(_a) {
|
|
180
182
|
var item = _a.item;
|
|
@@ -222,7 +224,7 @@ function PageCompList(_a) {
|
|
|
222
224
|
className: "comp-icon",
|
|
223
225
|
color: active ? '#2F54EB' : '',
|
|
224
226
|
size: "20px",
|
|
225
|
-
type: _constants.compInfoMap[comp.type].icon
|
|
227
|
+
type: (_a = _constants.compInfoMap[comp.type]) === null || _a === void 0 ? void 0 : _a.icon
|
|
226
228
|
}), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
227
229
|
className: "drag-icon",
|
|
228
230
|
color: "#2F54EB",
|
|
@@ -230,7 +232,7 @@ function PageCompList(_a) {
|
|
|
230
232
|
type: "icon-drag"
|
|
231
233
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
232
234
|
className: "card-title ml16"
|
|
233
|
-
}, index + 1, ". ", _constants.compInfoMap[comp.type].name)), /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
235
|
+
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
234
236
|
overlay: menu,
|
|
235
237
|
placement: "bottomRight",
|
|
236
238
|
trigger: ['click']
|
|
@@ -175,6 +175,8 @@ function PageCompList(_a) {
|
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
var renderCard = function renderCard(comp, index) {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
|
|
178
180
|
var menu = /*#__PURE__*/_react["default"].createElement(_antd.Menu, {
|
|
179
181
|
onClick: function onClick(_a) {
|
|
180
182
|
var item = _a.item;
|
|
@@ -222,7 +224,7 @@ function PageCompList(_a) {
|
|
|
222
224
|
className: "comp-icon",
|
|
223
225
|
color: active ? '#2F54EB' : '',
|
|
224
226
|
size: "20px",
|
|
225
|
-
type: _constants.compInfoMap[comp.type].icon
|
|
227
|
+
type: (_a = _constants.compInfoMap[comp.type]) === null || _a === void 0 ? void 0 : _a.icon
|
|
226
228
|
}), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
227
229
|
className: "drag-icon",
|
|
228
230
|
color: "#2F54EB",
|
|
@@ -230,7 +232,7 @@ function PageCompList(_a) {
|
|
|
230
232
|
type: "icon-drag"
|
|
231
233
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
232
234
|
className: "card-title ml16"
|
|
233
|
-
}, index + 1, ". ", _constants.compInfoMap[comp.type].name)), /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
235
|
+
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
234
236
|
overlay: menu,
|
|
235
237
|
placement: "bottomRight",
|
|
236
238
|
trigger: ['click']
|