yootd 0.0.62 → 0.0.63

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.
@@ -24,6 +24,7 @@ var SortableItem = function SortableItem(_ref) {
24
24
  title = _ref.title,
25
25
  checked = _ref.checked,
26
26
  extra = _ref.extra,
27
+ data = _ref.data,
27
28
  _onClick = _ref.onClick,
28
29
  onEdit = _ref.onEdit,
29
30
  onDel = _ref.onDel,
@@ -57,7 +58,8 @@ var SortableItem = function SortableItem(_ref) {
57
58
  key: id,
58
59
  title: title,
59
60
  extra: extra,
60
- checked: checked
61
+ checked: checked,
62
+ data: data
61
63
  });
62
64
  }
63
65
  }, /*#__PURE__*/React.createElement("div", {
@@ -100,7 +102,8 @@ var SortableItem = function SortableItem(_ref) {
100
102
  key: id,
101
103
  title: title,
102
104
  extra: extra,
103
- checked: checked
105
+ checked: checked,
106
+ data: data
104
107
  });
105
108
  }
106
109
  }, /*#__PURE__*/React.createElement(EditBtnIcon, {
@@ -120,7 +123,8 @@ var SortableItem = function SortableItem(_ref) {
120
123
  key: id,
121
124
  title: title,
122
125
  extra: extra,
123
- checked: checked
126
+ checked: checked,
127
+ data: data
124
128
  });
125
129
  }
126
130
  }, /*#__PURE__*/React.createElement(DelBtnIcon, {
@@ -211,7 +211,8 @@ export var Aside = function Aside(_ref) {
211
211
  onClick: handleClick,
212
212
  onEdit: handleEdit,
213
213
  onDel: handleDel,
214
- onSwitch: handleSwitch
214
+ onSwitch: handleSwitch,
215
+ data: item.data
215
216
  });
216
217
  })))));
217
218
  };
@@ -3,6 +3,7 @@ type IdataItem = {
3
3
  title: string;
4
4
  extra?: string;
5
5
  checked?: boolean;
6
+ data?: any;
6
7
  };
7
8
  export type AsideProps = {
8
9
  width?: number;
@@ -40,6 +41,7 @@ export type AsideItemProps = {
40
41
  dragBtnIcon?: boolean;
41
42
  checked?: boolean;
42
43
  extra?: string;
44
+ data?: any;
43
45
  onClick?: (key: string, e: IdataItem) => void;
44
46
  onEdit?: (key: string, e: IdataItem) => void;
45
47
  onDel?: (key: string, e: IdataItem) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",