jsbox-cview 1.3.1 → 1.3.2

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.
@@ -103,7 +103,7 @@ interface BarButtonItem {
103
103
  symbol?: string;
104
104
  image?: UIImage;
105
105
  tintColor?: UIColor;
106
- handler?: () => void;
106
+ handler?: (sender: UIButtonView) => void;
107
107
  }
108
108
 
109
109
  interface NavigationBarEvents {
@@ -9,6 +9,7 @@ const navbar = new custom_navigation_bar_1.CustomNavigationBar({
9
9
  rightBarButtonItems: [
10
10
  {
11
11
  symbol: "gear",
12
+ handler: (sender) => console.log(sender)
12
13
  }
13
14
  ]
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsbox-cview",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "为 JSBox 设计的微型框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,7 @@ const navbar = new CustomNavigationBar({
8
8
  rightBarButtonItems: [
9
9
  {
10
10
  symbol: "gear",
11
+ handler: (sender) => console.log(sender)
11
12
  }
12
13
  ]
13
14
  }