@flyto/farco 1.1.12 → 1.2.1

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.
@@ -9,3 +9,18 @@ export declare const ICONFONT_KEY: InjectionKey<Component<any, any, any, import(
9
9
  export declare const ARCO_ICON_KEY: InjectionKey<Record<string, Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>>>;
10
10
  /** 全局通用的router实例 */
11
11
  export declare const ROUTER_KEY: InjectionKey<Router | null>;
12
+ /**
13
+ * FArco 依赖注入键集合。
14
+ *
15
+ * 如果不想通过 `app.use(FArco, opts)` 全局注册所有组件,
16
+ * 而是按需引入时,需要手动 provide 这些键以确保 FLink / FIcon 正常工作。
17
+ */
18
+ declare const _default: {
19
+ /** 对应 `FInstallOptions.router`,`FLink` SPA 跳转依赖,无需路由时传 `null` */
20
+ ROUTER: InjectionKey<Router | null>;
21
+ /** 对应 `FInstallOptions.iconfont`,`FIcon` IconFont 图标源,不使用时可传 `null` */
22
+ ICONFONT: InjectionKey<Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>>;
23
+ /** 对应 `FInstallOptions.arcoIcon`,`FIcon` Arco 图标映射表,不使用时可传 `{}` */
24
+ ARCO_ICON: InjectionKey<Record<string, Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>>>;
25
+ };
26
+ export default _default;
@@ -4,6 +4,8 @@ import { FInstallOptions } from './types';
4
4
 
5
5
  export * from './components/index';
6
6
  export { utils } from './utils';
7
+ /** FArco 依赖注入键,按需引入场景下手动 provide 使用 */
8
+ export { default as FArcoKeys } from './constants/global';
7
9
  declare function installFn(app: App, opts?: FInstallOptions): App;
8
10
  export declare const install: typeof installFn;
9
11
  declare const _default: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyto/farco",
3
- "version": "1.1.12",
3
+ "version": "1.2.1",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/types/index.d.ts",