@airpower/web 0.2.67 → 0.2.68

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/dist/main.js +8 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1280,7 +1280,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1280
1280
  return true;
1281
1281
  }
1282
1282
  if (props.permission) {
1283
- return !PermissionUtil.has(props.permission) && !WebConfig.disablePermission;
1283
+ const forbidden = !PermissionUtil.has(props.permission) && !WebConfig.disablePermission;
1284
+ console.warn(`[AButton] 权限不足(${props.permission})`);
1285
+ return forbidden;
1284
1286
  }
1285
1287
  return false;
1286
1288
  });
@@ -17360,7 +17362,11 @@ function useTableButton(params) {
17360
17362
  if (!permission) {
17361
17363
  return true;
17362
17364
  }
17363
- return PermissionUtil.has(permission);
17365
+ const hasPermission2 = PermissionUtil.has(permission);
17366
+ if (!hasPermission2) {
17367
+ console.warn(`[ATable] 权限不足 (${permission})`);
17368
+ }
17369
+ return hasPermission2;
17364
17370
  }
17365
17371
  function isAddRowDisabled(row) {
17366
17372
  if (!hasPermission(addRowPermission)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.2.67",
4
+ "version": "0.2.68",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",