@lemon-fe/kits 1.0.5 → 1.0.6

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.
@@ -17,7 +17,7 @@ function ActionItem(props) {
17
17
  var children = item.children || [];
18
18
  var node = /*#__PURE__*/React.createElement("div", {
19
19
  className: classNames(prefix('item'), _defineProperty({}, prefix("item-disabled"), item.disabled)),
20
- onClick: item.onClick
20
+ onClick: item.disabled ? undefined : item.onClick
21
21
  }, item.label, children.length > 0 && /*#__PURE__*/React.createElement(Icons.Down, null));
22
22
 
23
23
  if (children.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",