yootd 0.2.49 → 0.2.50
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.
|
@@ -189,7 +189,7 @@ var SortableItem = function SortableItem(_ref) {
|
|
|
189
189
|
marginRight: editBtnIcon || delBtnIcon ? '12px' : '0',
|
|
190
190
|
marginLeft: dragBtnIcon ? '6px' : '0'
|
|
191
191
|
}
|
|
192
|
-
}, item.title)))), /*#__PURE__*/React.createElement("div", {
|
|
192
|
+
}, item.title))), item.customBtn), /*#__PURE__*/React.createElement("div", {
|
|
193
193
|
className: "".concat(mb.b('content').b('bottom')),
|
|
194
194
|
style: {
|
|
195
195
|
marginLeft: dragBtnIcon ? '22px' : '0'
|
|
@@ -17,6 +17,7 @@ type IdataItem = {
|
|
|
17
17
|
data?: any;
|
|
18
18
|
showEditBtn?: boolean;
|
|
19
19
|
showDelBtn?: boolean;
|
|
20
|
+
customBtn?: React.ReactNode; // 自定义按钮
|
|
20
21
|
}>;
|
|
21
22
|
};
|
|
22
23
|
export type AsideProps = {
|
|
@@ -77,6 +78,7 @@ export type AsideItemProps = {
|
|
|
77
78
|
data?: any;
|
|
78
79
|
showEditBtn?: boolean;
|
|
79
80
|
showDelBtn?: boolean;
|
|
81
|
+
customBtn?: React.ReactNode; // 自定义按钮
|
|
80
82
|
}>;
|
|
81
83
|
onSubClick?: (key, subKey: string | undefined, e: IdataItem) => void;
|
|
82
84
|
};
|