@thelastcookies/base-icon 0.1.0 → 0.1.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.
- package/dist/index.d.ts +42 -6
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IconifyJSON } from '@iconify/vue';
|
|
2
|
-
import { Plugin } from 'vue';
|
|
3
|
-
import { default as BaseIcon } from './components/BaseIcon';
|
|
2
|
+
import { App, Plugin } from 'vue';
|
|
4
3
|
/**
|
|
5
4
|
* BaseIcon 安装配置项
|
|
6
5
|
*/
|
|
@@ -13,9 +12,46 @@ export interface BaseIconOptions {
|
|
|
13
12
|
collections?: IconifyJSON[];
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* 安装 BaseIcon:注册离线图标集合并全局注册组件
|
|
17
16
|
* 传入 collections 时注册离线图标集合
|
|
18
17
|
*/
|
|
19
|
-
declare const
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
declare const install: (app: App, options?: BaseIconOptions) => void;
|
|
19
|
+
declare const BaseIcon: {
|
|
20
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
21
|
+
icon?: string | ((...args: any[]) => import('vue').VNodeChild);
|
|
22
|
+
type?: "iconify" | "image" | "logo";
|
|
23
|
+
size?: number | string;
|
|
24
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
25
|
+
icon: string | ((...args: any[]) => import('vue').VNodeChild);
|
|
26
|
+
type: "iconify" | "image" | "logo";
|
|
27
|
+
size: string | number;
|
|
28
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
29
|
+
P: {};
|
|
30
|
+
B: {};
|
|
31
|
+
D: {};
|
|
32
|
+
C: {};
|
|
33
|
+
M: {};
|
|
34
|
+
Defaults: {};
|
|
35
|
+
}, Readonly<{
|
|
36
|
+
icon?: string | ((...args: any[]) => import('vue').VNodeChild);
|
|
37
|
+
type?: "iconify" | "image" | "logo";
|
|
38
|
+
size?: number | string;
|
|
39
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
40
|
+
icon: string | ((...args: any[]) => import('vue').VNodeChild);
|
|
41
|
+
type: "iconify" | "image" | "logo";
|
|
42
|
+
size: string | number;
|
|
43
|
+
}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
48
|
+
icon?: string | ((...args: any[]) => import('vue').VNodeChild);
|
|
49
|
+
type?: "iconify" | "image" | "logo";
|
|
50
|
+
size?: number | string;
|
|
51
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
52
|
+
icon: string | ((...args: any[]) => import('vue').VNodeChild);
|
|
53
|
+
type: "iconify" | "image" | "logo";
|
|
54
|
+
size: string | number;
|
|
55
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Plugin;
|
|
56
|
+
export default BaseIcon;
|
|
57
|
+
export { BaseIcon, install };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import e from "./components/BaseIcon.js";
|
|
2
2
|
import { addCollection as t } from "@iconify/vue";
|
|
3
3
|
//#region src/index.ts
|
|
4
|
-
var n =
|
|
4
|
+
var n = (n, r) => {
|
|
5
5
|
r?.collections?.forEach((e) => {
|
|
6
6
|
t(e);
|
|
7
7
|
}), n.component("BaseIcon", e);
|
|
8
|
-
}
|
|
8
|
+
}, r = ((e) => {
|
|
9
|
+
let t = e;
|
|
10
|
+
return t.install = n, t;
|
|
11
|
+
})(e);
|
|
9
12
|
//#endregion
|
|
10
|
-
export {
|
|
13
|
+
export { r as BaseIcon, r as default, n as install };
|