@fangzhongya/icons 0.0.1-1 → 0.0.2
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/README.md +1 -14
- package/dist/chunk-2D4VSAJ2.js +13 -0
- package/dist/chunk-2TQQMTHZ.cjs +13 -0
- package/dist/chunk-32F77IBU.cjs +13 -0
- package/dist/chunk-3AMDUJDV.js +13 -0
- package/dist/chunk-3TRFZFYF.js +13 -0
- package/dist/chunk-53VWOQDN.cjs +13 -0
- package/dist/chunk-5PXZNWE4.js +13 -0
- package/dist/chunk-5QUGHNG3.cjs +13 -0
- package/dist/chunk-75ZPJI57.cjs +9 -0
- package/dist/chunk-76TLDMR4.cjs +13 -0
- package/dist/chunk-7IBXEWY5.js +13 -0
- package/dist/chunk-AQDYWFIE.cjs +13 -0
- package/dist/chunk-BEQYH4ZH.js +13 -0
- package/dist/chunk-BMEJLYYZ.js +13 -0
- package/dist/chunk-DOKVIYQP.cjs +13 -0
- package/dist/chunk-EEMF44IH.cjs +58 -0
- package/dist/chunk-EODYYDJS.js +13 -0
- package/dist/chunk-ERELSRIE.cjs +128 -0
- package/dist/chunk-ESPY25SV.cjs +13 -0
- package/dist/chunk-FEFTZ7TT.cjs +13 -0
- package/dist/chunk-FZTWDRFN.js +13 -0
- package/dist/chunk-H4PA2G3N.cjs +13 -0
- package/dist/chunk-HF34GB7O.js +128 -0
- package/dist/chunk-HOVIIPWX.js +280 -0
- package/dist/chunk-I3A3AEAA.cjs +13 -0
- package/dist/chunk-I3U5MBNO.cjs +13 -0
- package/dist/chunk-I5KQLZMG.js +58 -0
- package/dist/chunk-IBTK77R3.cjs +13 -0
- package/dist/chunk-IIVF4KK5.cjs +6 -0
- package/dist/chunk-IPHYXYU4.cjs +13 -0
- package/dist/chunk-JJXGNEQB.js +13 -0
- package/dist/chunk-JT3V6FP7.js +13 -0
- package/dist/chunk-KDGKC2AD.cjs +13 -0
- package/dist/chunk-KZJIE3RV.cjs +13 -0
- package/dist/chunk-L7KCN6DV.cjs +13 -0
- package/dist/chunk-LBBA76TA.js +13 -0
- package/dist/chunk-LI54LRUK.cjs +13 -0
- package/dist/chunk-LLVO2B4L.js +13 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-MOHILOKE.js +6 -0
- package/dist/chunk-NEHQ24EP.js +13 -0
- package/dist/chunk-NESEKAGU.cjs +13 -0
- package/dist/chunk-NS5Q6ZYS.js +13 -0
- package/dist/chunk-OIX6AEOH.js +13 -0
- package/dist/chunk-PM3NSGHO.js +13 -0
- package/dist/chunk-Q7LKAKNO.js +13 -0
- package/dist/chunk-RENPHZI7.cjs +13 -0
- package/dist/chunk-RHPG3BCQ.cjs +13 -0
- package/dist/chunk-S2UC3QOV.cjs +280 -0
- package/dist/chunk-S7LOBBW2.cjs +13 -0
- package/dist/chunk-T7E6HY2F.js +13 -0
- package/dist/chunk-TCP7WBEZ.cjs +13 -0
- package/dist/chunk-TT42MDI2.cjs +13 -0
- package/dist/chunk-VDTZORF6.cjs +13 -0
- package/dist/chunk-VO6GNJ4O.js +13 -0
- package/dist/chunk-VQ54VGY3.js +13 -0
- package/dist/chunk-VRWNZZCS.js +13 -0
- package/dist/chunk-W3IE4UWT.cjs +13 -0
- package/dist/chunk-WLDTS6EO.js +13 -0
- package/dist/chunk-WOAJW7OB.cjs +13 -0
- package/dist/chunk-XUPJ3XJL.js +13 -0
- package/dist/chunk-Y2W7MENX.cjs +13 -0
- package/dist/chunk-YBGWOI5B.cjs +13 -0
- package/dist/chunk-YJLFP6SE.js +13 -0
- package/dist/chunk-YSDDIRK3.js +13 -0
- package/dist/chunk-YUYOWQ5M.js +13 -0
- package/dist/chunk-YYG5XGJC.js +13 -0
- package/dist/chunk-Z7LHYEQW.js +13 -0
- package/dist/config.cjs +7 -0
- package/dist/config.d.cts +6 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.js +7 -0
- package/dist/icon/index.cjs +7 -0
- package/dist/icon/index.d.cts +139 -0
- package/dist/icon/index.d.ts +139 -0
- package/dist/icon/index.js +7 -0
- package/dist/iconify.cjs +99 -0
- package/dist/iconify.d.cts +41 -0
- package/dist/iconify.d.ts +41 -0
- package/dist/iconify.js +99 -0
- package/dist/index.cjs +130 -15
- package/dist/index.css +230 -0
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +34 -8
- package/dist/index.js +128 -13
- package/dist/index.json +99 -0
- package/dist/picker/dialog.cjs +7 -0
- package/dist/picker/dialog.d.cts +19 -0
- package/dist/picker/dialog.d.ts +19 -0
- package/dist/picker/dialog.js +7 -0
- package/dist/picker/index.cjs +280 -0
- package/dist/picker/index.d.cts +117 -0
- package/dist/picker/index.d.ts +117 -0
- package/dist/picker/index.js +280 -0
- package/dist/svg/bar.svg +1 -0
- package/dist/svg/below.svg +1 -0
- package/dist/svg/bicycle.svg +1 -0
- package/dist/svg/bottom-left.svg +1 -0
- package/dist/svg/bottom-right.svg +1 -0
- package/dist/svg/bottom.svg +1 -0
- package/dist/svg/cascader-field.svg +1 -0
- package/dist/svg/catalogue.svg +1 -0
- package/dist/svg/clear.svg +1 -0
- package/dist/svg/close.svg +1 -0
- package/dist/svg/crl.svg +1 -0
- package/dist/svg/delete.svg +1 -0
- package/dist/svg/document.svg +1 -0
- package/dist/svg/down.svg +1 -0
- package/dist/svg/download.svg +1 -0
- package/dist/svg/edit.svg +1 -0
- package/dist/svg/enter.svg +1 -0
- package/dist/svg/frame.svg +1 -0
- package/dist/svg/left.svg +1 -0
- package/dist/svg/mute.svg +1 -0
- package/dist/svg/pause.svg +1 -0
- package/dist/svg/play.svg +1 -0
- package/dist/svg/plus.svg +1 -0
- package/dist/svg/retreat.svg +1 -0
- package/dist/svg/right.svg +1 -0
- package/dist/svg/sound.svg +1 -0
- package/dist/svg/star.svg +1 -0
- package/dist/svg/up.svg +1 -0
- package/dist/svg/views.svg +1 -0
- package/dist/vite/index.cjs +80 -0
- package/dist/vite/index.d.cts +9 -0
- package/dist/vite/index.d.ts +9 -0
- package/dist/vite/index.js +80 -0
- package/dist/vue/bar.cjs +7 -0
- package/dist/vue/bar.d.cts +7 -0
- package/dist/vue/bar.d.ts +7 -0
- package/dist/vue/bar.js +7 -0
- package/dist/vue/below.cjs +7 -0
- package/dist/vue/below.d.cts +7 -0
- package/dist/vue/below.d.ts +7 -0
- package/dist/vue/below.js +7 -0
- package/dist/vue/bicycle.cjs +7 -0
- package/dist/vue/bicycle.d.cts +7 -0
- package/dist/vue/bicycle.d.ts +7 -3
- package/dist/vue/bicycle.js +7 -0
- package/dist/vue/bottom-left.cjs +7 -0
- package/dist/vue/bottom-left.d.cts +7 -0
- package/dist/vue/bottom-left.d.ts +7 -3
- package/dist/vue/bottom-left.js +7 -0
- package/dist/vue/bottom-right.cjs +7 -0
- package/dist/vue/bottom-right.d.cts +7 -0
- package/dist/vue/bottom-right.d.ts +7 -3
- package/dist/vue/bottom-right.js +7 -0
- package/dist/vue/bottom.cjs +7 -0
- package/dist/vue/bottom.d.cts +7 -0
- package/dist/vue/bottom.d.ts +7 -3
- package/dist/vue/bottom.js +7 -0
- package/dist/vue/cascader-field.cjs +7 -0
- package/dist/vue/cascader-field.d.cts +7 -0
- package/dist/vue/cascader-field.d.ts +7 -0
- package/dist/vue/cascader-field.js +7 -0
- package/dist/vue/catalogue.cjs +7 -0
- package/dist/vue/catalogue.d.cts +7 -0
- package/dist/vue/catalogue.d.ts +7 -0
- package/dist/vue/catalogue.js +7 -0
- package/dist/vue/clear.cjs +7 -0
- package/dist/vue/clear.d.cts +7 -0
- package/dist/vue/clear.d.ts +7 -0
- package/dist/vue/clear.js +7 -0
- package/dist/vue/close.cjs +7 -0
- package/dist/vue/close.d.cts +7 -0
- package/dist/vue/close.d.ts +7 -0
- package/dist/vue/close.js +7 -0
- package/dist/vue/crl.cjs +7 -0
- package/dist/vue/crl.d.cts +7 -0
- package/dist/vue/crl.d.ts +7 -0
- package/dist/vue/crl.js +7 -0
- package/dist/vue/delete.cjs +7 -0
- package/dist/vue/delete.d.cts +7 -0
- package/dist/vue/delete.d.ts +7 -0
- package/dist/vue/delete.js +7 -0
- package/dist/vue/document.cjs +7 -0
- package/dist/vue/document.d.cts +7 -0
- package/dist/vue/document.d.ts +7 -0
- package/dist/vue/document.js +7 -0
- package/dist/vue/down.cjs +7 -0
- package/dist/vue/down.d.cts +7 -0
- package/dist/vue/down.d.ts +7 -0
- package/dist/vue/down.js +7 -0
- package/dist/vue/download.cjs +7 -0
- package/dist/vue/download.d.cts +7 -0
- package/dist/vue/download.d.ts +7 -0
- package/dist/vue/download.js +7 -0
- package/dist/vue/edit.cjs +7 -0
- package/dist/vue/edit.d.cts +7 -0
- package/dist/vue/edit.d.ts +7 -0
- package/dist/vue/edit.js +7 -0
- package/dist/vue/enter.cjs +7 -0
- package/dist/vue/enter.d.cts +7 -0
- package/dist/vue/enter.d.ts +7 -0
- package/dist/vue/enter.js +7 -0
- package/dist/vue/frame.cjs +7 -0
- package/dist/vue/frame.d.cts +7 -0
- package/dist/vue/frame.d.ts +7 -0
- package/dist/vue/frame.js +7 -0
- package/dist/vue/index.cjs +120 -10
- package/dist/vue/index.d.cts +30 -0
- package/dist/vue/index.d.ts +30 -4
- package/dist/vue/index.js +118 -8
- package/dist/vue/left.cjs +7 -0
- package/dist/vue/left.d.cts +7 -0
- package/dist/vue/left.d.ts +7 -0
- package/dist/vue/left.js +7 -0
- package/dist/vue/mute.cjs +7 -0
- package/dist/vue/mute.d.cts +7 -0
- package/dist/vue/mute.d.ts +7 -0
- package/dist/vue/mute.js +7 -0
- package/dist/vue/pause.cjs +7 -0
- package/dist/vue/pause.d.cts +7 -0
- package/dist/vue/pause.d.ts +7 -0
- package/dist/vue/pause.js +7 -0
- package/dist/vue/play.cjs +7 -0
- package/dist/vue/play.d.cts +7 -0
- package/dist/vue/play.d.ts +7 -0
- package/dist/vue/play.js +7 -0
- package/dist/vue/plus.cjs +7 -0
- package/dist/vue/plus.d.cts +7 -0
- package/dist/vue/plus.d.ts +7 -0
- package/dist/vue/plus.js +7 -0
- package/dist/vue/retreat.cjs +7 -0
- package/dist/vue/retreat.d.cts +7 -0
- package/dist/vue/retreat.d.ts +7 -0
- package/dist/vue/retreat.js +7 -0
- package/dist/vue/right.cjs +7 -0
- package/dist/vue/right.d.cts +7 -0
- package/dist/vue/right.d.ts +7 -0
- package/dist/vue/right.js +7 -0
- package/dist/vue/sound.cjs +7 -0
- package/dist/vue/sound.d.cts +7 -0
- package/dist/vue/sound.d.ts +7 -0
- package/dist/vue/sound.js +7 -0
- package/dist/vue/star.cjs +7 -0
- package/dist/vue/star.d.cts +7 -0
- package/dist/vue/star.d.ts +7 -0
- package/dist/vue/star.js +7 -0
- package/dist/vue/up.cjs +7 -0
- package/dist/vue/up.d.cts +7 -0
- package/dist/vue/up.d.ts +7 -0
- package/dist/vue/up.js +7 -0
- package/dist/vue/views.cjs +7 -0
- package/dist/vue/views.d.cts +7 -0
- package/dist/vue/views.d.ts +7 -0
- package/dist/vue/views.js +7 -0
- package/package.json +63 -23
- package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -9
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/vue/bicycle.vue.cjs +0 -17
- package/dist/vue/bicycle.vue.js +0 -18
- package/dist/vue/bicycle.vue2.cjs +0 -5
- package/dist/vue/bicycle.vue2.js +0 -6
- package/dist/vue/bottom-left.vue.cjs +0 -25
- package/dist/vue/bottom-left.vue.js +0 -26
- package/dist/vue/bottom-left.vue2.cjs +0 -5
- package/dist/vue/bottom-left.vue2.js +0 -6
- package/dist/vue/bottom-right.vue.cjs +0 -25
- package/dist/vue/bottom-right.vue.js +0 -26
- package/dist/vue/bottom-right.vue2.cjs +0 -5
- package/dist/vue/bottom-right.vue2.js +0 -6
- package/dist/vue/bottom.vue.cjs +0 -20
- package/dist/vue/bottom.vue.js +0 -21
- package/dist/vue/bottom.vue2.cjs +0 -5
- package/dist/vue/bottom.vue2.js +0 -6
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
type Flip = 'horizontal' | 'vertical' | 'both' | '';
|
|
4
|
+
type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com' | 'pub' | 'svg';
|
|
5
|
+
declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
/**
|
|
7
|
+
* @props { String, Object } name= ( )
|
|
8
|
+
* 图标名称
|
|
9
|
+
*/
|
|
10
|
+
name: {
|
|
11
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @props { String} iconClass= ( )
|
|
16
|
+
* 图标样式名称
|
|
17
|
+
*/
|
|
18
|
+
iconClass: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
color: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
26
|
+
* 图标类型
|
|
27
|
+
*/
|
|
28
|
+
type: {
|
|
29
|
+
type: () => IconType;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @props { String, Number } size= ( )
|
|
33
|
+
* 图标大小
|
|
34
|
+
*/
|
|
35
|
+
size: {
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
runtime: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
46
|
+
* 图标方向
|
|
47
|
+
*/
|
|
48
|
+
flip: {
|
|
49
|
+
type: () => Flip;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @props { Number } rotate=0
|
|
54
|
+
* 图标旋转角度
|
|
55
|
+
*/
|
|
56
|
+
rotate: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
default: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
directory: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
70
|
+
/**
|
|
71
|
+
* @props { String, Object } name= ( )
|
|
72
|
+
* 图标名称
|
|
73
|
+
*/
|
|
74
|
+
name: {
|
|
75
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @props { String} iconClass= ( )
|
|
80
|
+
* 图标样式名称
|
|
81
|
+
*/
|
|
82
|
+
iconClass: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
};
|
|
85
|
+
color: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
90
|
+
* 图标类型
|
|
91
|
+
*/
|
|
92
|
+
type: {
|
|
93
|
+
type: () => IconType;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @props { String, Number } size= ( )
|
|
97
|
+
* 图标大小
|
|
98
|
+
*/
|
|
99
|
+
size: {
|
|
100
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
*/
|
|
104
|
+
runtime: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
110
|
+
* 图标方向
|
|
111
|
+
*/
|
|
112
|
+
flip: {
|
|
113
|
+
type: () => Flip;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @props { Number } rotate=0
|
|
118
|
+
* 图标旋转角度
|
|
119
|
+
*/
|
|
120
|
+
rotate: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
default: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
};
|
|
127
|
+
directory: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
}>> & Readonly<{}>, {
|
|
132
|
+
name: string | Record<string, any>;
|
|
133
|
+
runtime: boolean;
|
|
134
|
+
flip: Flip;
|
|
135
|
+
rotate: number;
|
|
136
|
+
directory: string;
|
|
137
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
138
|
+
|
|
139
|
+
export { type IconType, _default as default };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
type Flip = 'horizontal' | 'vertical' | 'both' | '';
|
|
4
|
+
type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com' | 'pub' | 'svg';
|
|
5
|
+
declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
/**
|
|
7
|
+
* @props { String, Object } name= ( )
|
|
8
|
+
* 图标名称
|
|
9
|
+
*/
|
|
10
|
+
name: {
|
|
11
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @props { String} iconClass= ( )
|
|
16
|
+
* 图标样式名称
|
|
17
|
+
*/
|
|
18
|
+
iconClass: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
color: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
26
|
+
* 图标类型
|
|
27
|
+
*/
|
|
28
|
+
type: {
|
|
29
|
+
type: () => IconType;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @props { String, Number } size= ( )
|
|
33
|
+
* 图标大小
|
|
34
|
+
*/
|
|
35
|
+
size: {
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
runtime: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
46
|
+
* 图标方向
|
|
47
|
+
*/
|
|
48
|
+
flip: {
|
|
49
|
+
type: () => Flip;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @props { Number } rotate=0
|
|
54
|
+
* 图标旋转角度
|
|
55
|
+
*/
|
|
56
|
+
rotate: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
default: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
directory: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
70
|
+
/**
|
|
71
|
+
* @props { String, Object } name= ( )
|
|
72
|
+
* 图标名称
|
|
73
|
+
*/
|
|
74
|
+
name: {
|
|
75
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @props { String} iconClass= ( )
|
|
80
|
+
* 图标样式名称
|
|
81
|
+
*/
|
|
82
|
+
iconClass: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
};
|
|
85
|
+
color: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
90
|
+
* 图标类型
|
|
91
|
+
*/
|
|
92
|
+
type: {
|
|
93
|
+
type: () => IconType;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @props { String, Number } size= ( )
|
|
97
|
+
* 图标大小
|
|
98
|
+
*/
|
|
99
|
+
size: {
|
|
100
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
*/
|
|
104
|
+
runtime: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
110
|
+
* 图标方向
|
|
111
|
+
*/
|
|
112
|
+
flip: {
|
|
113
|
+
type: () => Flip;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @props { Number } rotate=0
|
|
118
|
+
* 图标旋转角度
|
|
119
|
+
*/
|
|
120
|
+
rotate: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
default: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
};
|
|
127
|
+
directory: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
}>> & Readonly<{}>, {
|
|
132
|
+
name: string | Record<string, any>;
|
|
133
|
+
runtime: boolean;
|
|
134
|
+
flip: Flip;
|
|
135
|
+
rotate: number;
|
|
136
|
+
directory: string;
|
|
137
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
138
|
+
|
|
139
|
+
export { type IconType, _default as default };
|
package/dist/iconify.cjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
|
|
4
|
+
require('./chunk-75ZPJI57.cjs');
|
|
5
|
+
|
|
6
|
+
// packages/iconify.ts
|
|
7
|
+
var _vue = require('vue');
|
|
8
|
+
|
|
9
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
10
|
+
function firstUpper(str) {
|
|
11
|
+
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
15
|
+
function lineToLargeHump(name) {
|
|
16
|
+
let arr = name.split("-");
|
|
17
|
+
arr = arr.map((vs) => {
|
|
18
|
+
return firstUpper(vs);
|
|
19
|
+
});
|
|
20
|
+
return arr.join("");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// packages/iconify.ts
|
|
24
|
+
function createSVG(obj) {
|
|
25
|
+
const viewBox = [
|
|
26
|
+
obj.left || 0,
|
|
27
|
+
obj.top || 0,
|
|
28
|
+
obj.width || 24,
|
|
29
|
+
obj.height || 24
|
|
30
|
+
].join(" ");
|
|
31
|
+
const name = "icon-" + obj.name;
|
|
32
|
+
return _vue.defineComponent.call(void 0, {
|
|
33
|
+
name: lineToLargeHump(name),
|
|
34
|
+
props: {},
|
|
35
|
+
render() {
|
|
36
|
+
return _vue.h.call(void 0, "svg", {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
"aria-hidden": true,
|
|
39
|
+
id: name,
|
|
40
|
+
ctype: "hcom",
|
|
41
|
+
role: "img",
|
|
42
|
+
class: "iconify iconify-" + obj.prefix,
|
|
43
|
+
viewBox,
|
|
44
|
+
innerHTML: obj.body
|
|
45
|
+
// 直接使用innerHTML
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var iconify = (app, ify, { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = {}) => {
|
|
51
|
+
const obj = {
|
|
52
|
+
prefix: ify.prefix,
|
|
53
|
+
width: ify.width,
|
|
54
|
+
height: ify.height
|
|
55
|
+
};
|
|
56
|
+
const icons = ify.icons;
|
|
57
|
+
for (const key of Object.keys(icons)) {
|
|
58
|
+
app.component(
|
|
59
|
+
prefix + lineToLargeHump(key),
|
|
60
|
+
createSVG({
|
|
61
|
+
...obj,
|
|
62
|
+
name: key,
|
|
63
|
+
...icons[key]
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
const aliases = ify.aliases;
|
|
68
|
+
for (const key of Object.keys(aliases)) {
|
|
69
|
+
const a = aliases[key];
|
|
70
|
+
app.component(
|
|
71
|
+
prefix + lineToLargeHump(key),
|
|
72
|
+
createSVG({
|
|
73
|
+
...obj,
|
|
74
|
+
name: key,
|
|
75
|
+
...icons[a.parent]
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function iconifySVG(obj, name) {
|
|
81
|
+
var _a;
|
|
82
|
+
const icons = obj.icons;
|
|
83
|
+
const aliases = obj.aliases;
|
|
84
|
+
const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
|
|
85
|
+
const n = _nullishCoalesce(icons[name], () => ( (ap ? icons[ap] : void 0)));
|
|
86
|
+
if (n) {
|
|
87
|
+
return createSVG({
|
|
88
|
+
prefix: obj.prefix,
|
|
89
|
+
name,
|
|
90
|
+
width: obj.width,
|
|
91
|
+
height: obj.height,
|
|
92
|
+
...n
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
exports.iconify = iconify; exports.iconifySVG = iconifySVG;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { InstallOptions } from './config.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 将图标配置转换为Vue组件并注册到应用中
|
|
7
|
+
* @param app - Vue应用实例,用于注册组件
|
|
8
|
+
* @param ify - 图标配置对象,包含前缀、尺寸和图标数据
|
|
9
|
+
* @param options - 安装选项,可选参数
|
|
10
|
+
* @param options.prefix - 组件名称前缀,默认使用defaultPrefix
|
|
11
|
+
*/
|
|
12
|
+
declare const iconify: (app: App, ify: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}, { prefix }?: InstallOptions) => void;
|
|
15
|
+
type Iconify = {
|
|
16
|
+
prefix: string;
|
|
17
|
+
icons: {
|
|
18
|
+
[key: string]: {
|
|
19
|
+
body: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
lastModified: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
info: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
aliases: {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
parent: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 创建SVG图标组件
|
|
36
|
+
* @param obj - 图标配置对象,包含图标的各项属性
|
|
37
|
+
* @returns 返回一个Vue组件实例,用于渲染SVG图标
|
|
38
|
+
*/
|
|
39
|
+
declare function iconifySVG(obj: Iconify, name: string): vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
|
|
41
|
+
export { iconify, iconifySVG };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { InstallOptions } from './config.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 将图标配置转换为Vue组件并注册到应用中
|
|
7
|
+
* @param app - Vue应用实例,用于注册组件
|
|
8
|
+
* @param ify - 图标配置对象,包含前缀、尺寸和图标数据
|
|
9
|
+
* @param options - 安装选项,可选参数
|
|
10
|
+
* @param options.prefix - 组件名称前缀,默认使用defaultPrefix
|
|
11
|
+
*/
|
|
12
|
+
declare const iconify: (app: App, ify: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}, { prefix }?: InstallOptions) => void;
|
|
15
|
+
type Iconify = {
|
|
16
|
+
prefix: string;
|
|
17
|
+
icons: {
|
|
18
|
+
[key: string]: {
|
|
19
|
+
body: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
lastModified: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
info: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
aliases: {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
parent: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 创建SVG图标组件
|
|
36
|
+
* @param obj - 图标配置对象,包含图标的各项属性
|
|
37
|
+
* @returns 返回一个Vue组件实例,用于渲染SVG图标
|
|
38
|
+
*/
|
|
39
|
+
declare function iconifySVG(obj: Iconify, name: string): vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
|
|
41
|
+
export { iconify, iconifySVG };
|
package/dist/iconify.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defaultPrefix
|
|
3
|
+
} from "./chunk-MOHILOKE.js";
|
|
4
|
+
import "./chunk-MLKGABMK.js";
|
|
5
|
+
|
|
6
|
+
// packages/iconify.ts
|
|
7
|
+
import { defineComponent, h } from "vue";
|
|
8
|
+
|
|
9
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
10
|
+
function firstUpper(str) {
|
|
11
|
+
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
15
|
+
function lineToLargeHump(name) {
|
|
16
|
+
let arr = name.split("-");
|
|
17
|
+
arr = arr.map((vs) => {
|
|
18
|
+
return firstUpper(vs);
|
|
19
|
+
});
|
|
20
|
+
return arr.join("");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// packages/iconify.ts
|
|
24
|
+
function createSVG(obj) {
|
|
25
|
+
const viewBox = [
|
|
26
|
+
obj.left || 0,
|
|
27
|
+
obj.top || 0,
|
|
28
|
+
obj.width || 24,
|
|
29
|
+
obj.height || 24
|
|
30
|
+
].join(" ");
|
|
31
|
+
const name = "icon-" + obj.name;
|
|
32
|
+
return defineComponent({
|
|
33
|
+
name: lineToLargeHump(name),
|
|
34
|
+
props: {},
|
|
35
|
+
render() {
|
|
36
|
+
return h("svg", {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
"aria-hidden": true,
|
|
39
|
+
id: name,
|
|
40
|
+
ctype: "hcom",
|
|
41
|
+
role: "img",
|
|
42
|
+
class: "iconify iconify-" + obj.prefix,
|
|
43
|
+
viewBox,
|
|
44
|
+
innerHTML: obj.body
|
|
45
|
+
// 直接使用innerHTML
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var iconify = (app, ify, { prefix = defaultPrefix } = {}) => {
|
|
51
|
+
const obj = {
|
|
52
|
+
prefix: ify.prefix,
|
|
53
|
+
width: ify.width,
|
|
54
|
+
height: ify.height
|
|
55
|
+
};
|
|
56
|
+
const icons = ify.icons;
|
|
57
|
+
for (const key of Object.keys(icons)) {
|
|
58
|
+
app.component(
|
|
59
|
+
prefix + lineToLargeHump(key),
|
|
60
|
+
createSVG({
|
|
61
|
+
...obj,
|
|
62
|
+
name: key,
|
|
63
|
+
...icons[key]
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
const aliases = ify.aliases;
|
|
68
|
+
for (const key of Object.keys(aliases)) {
|
|
69
|
+
const a = aliases[key];
|
|
70
|
+
app.component(
|
|
71
|
+
prefix + lineToLargeHump(key),
|
|
72
|
+
createSVG({
|
|
73
|
+
...obj,
|
|
74
|
+
name: key,
|
|
75
|
+
...icons[a.parent]
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function iconifySVG(obj, name) {
|
|
81
|
+
var _a;
|
|
82
|
+
const icons = obj.icons;
|
|
83
|
+
const aliases = obj.aliases;
|
|
84
|
+
const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
|
|
85
|
+
const n = icons[name] ?? (ap ? icons[ap] : void 0);
|
|
86
|
+
if (n) {
|
|
87
|
+
return createSVG({
|
|
88
|
+
prefix: obj.prefix,
|
|
89
|
+
name,
|
|
90
|
+
width: obj.width,
|
|
91
|
+
height: obj.height,
|
|
92
|
+
...n
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
iconify,
|
|
98
|
+
iconifySVG
|
|
99
|
+
};
|