@svadmin/core 0.23.5 → 0.24.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/core",
3
- "version": "0.23.5",
3
+ "version": "0.24.0",
4
4
  "author": "zuohuadong",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,11 +30,11 @@ function extendQuery<Q extends object, E extends Record<string, unknown>>(
30
30
  if (typeof prop === 'string' && prop in extensions) {
31
31
  return extensions[prop as keyof E];
32
32
  }
33
- return Reflect.get(target, prop);
33
+ return target[prop as keyof Q];
34
34
  },
35
35
  has(target, prop) {
36
36
  if (typeof prop === 'string' && prop in extensions) return true;
37
- return Reflect.has(target, prop);
37
+ return prop in target;
38
38
  },
39
39
  }) as Q & E;
40
40
  }
package/src/types.ts CHANGED
@@ -298,7 +298,7 @@ export interface MenuItem {
298
298
  /** Display label. Falls back to `t('menu.${name}')` if omitted */
299
299
  label?: string;
300
300
  /** Icon name string (maps to lucide icon set) or Svelte component */
301
- icon?: string;
301
+ icon?: string | any;
302
302
  /** Navigation path — omit for parent-only menu nodes */
303
303
  href?: string;
304
304
  /** Open in new tab (useful for external links) */