@pisell/materials 2.2.46 → 2.2.47
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/productCard/index.js +4 -3
- package/es/components/productCard/index.less +2 -2
- package/lib/components/productCard/index.js +1 -8
- package/lib/components/productCard/index.less +2 -2
- package/package.json +1 -1
|
@@ -88,11 +88,12 @@ var ProductCard = function ProductCard(props) {
|
|
|
88
88
|
return /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
className: classNames('pisell-lowcode-product-card-wrap', _defineProperty({}, 'pisell-lowcode-product-card-disabled', dataSource === null || dataSource === void 0 ? void 0 : dataSource.disabled))
|
|
90
90
|
}, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.disabled) && /*#__PURE__*/React.createElement("div", {
|
|
91
|
-
className: "delete-btn-wrapper"
|
|
92
|
-
|
|
91
|
+
className: "delete-btn-wrapper"
|
|
92
|
+
}, /*#__PURE__*/React.createElement(DeleteButton, {
|
|
93
|
+
onDelete: function onDelete() {
|
|
93
94
|
return _onDelete === null || _onDelete === void 0 ? void 0 : _onDelete(dataSource);
|
|
94
95
|
}
|
|
95
|
-
}
|
|
96
|
+
})), /*#__PURE__*/React.createElement(CardPro, {
|
|
96
97
|
className: classNames('pisell-lowcode-product-card', (_classNames2 = {}, _defineProperty(_classNames2, 'pisell-lowcode-product-card-image', !showImage), _defineProperty(_classNames2, 'pisell-lowcode-normal-product-card', !showImage && isNormalProduct), _classNames2)),
|
|
97
98
|
key: _id
|
|
98
99
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -96,14 +96,7 @@ var ProductCard = (props) => {
|
|
|
96
96
|
["pisell-lowcode-product-card-disabled"]: dataSource == null ? void 0 : dataSource.disabled
|
|
97
97
|
})
|
|
98
98
|
},
|
|
99
|
-
(dataSource == null ? void 0 : dataSource.disabled) && /* @__PURE__ */ import_react.default.createElement(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
className: "delete-btn-wrapper",
|
|
103
|
-
onClick: () => onDelete == null ? void 0 : onDelete(dataSource)
|
|
104
|
-
},
|
|
105
|
-
/* @__PURE__ */ import_react.default.createElement(import_DeleteButton.default, null)
|
|
106
|
-
),
|
|
99
|
+
(dataSource == null ? void 0 : dataSource.disabled) && /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-btn-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_DeleteButton.default, { onDelete: () => onDelete == null ? void 0 : onDelete(dataSource) })),
|
|
107
100
|
/* @__PURE__ */ import_react.default.createElement(
|
|
108
101
|
import_cardPro.default,
|
|
109
102
|
{
|