@tinywork/glass 1.0.13 → 1.0.15

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.
Files changed (2) hide show
  1. package/index.d.ts +2 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -13,6 +13,7 @@ declare global {
13
13
  /** 用来click回调时区分 */
14
14
  id: string;
15
15
  label: string;
16
+ enabled?: boolean;
16
17
  };
17
18
 
18
19
  /** 1-新增,2-修改,3-删除 */
@@ -361,7 +362,7 @@ declare global {
361
362
  menus?: MenuItem[];
362
363
  }>;
363
364
  /** 点击插件注册的菜单项 */
364
- onMenuClick?: IGlassExtensionEvent<MenuItem>;
365
+ onMenuClick?: (params: MenuItem) => Promise<void>;
365
366
 
366
367
  onRuleDefault?: IGlassExtensionEvent<{
367
368
  docs: DocSchema[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [