@fangzhongya/icons 0.0.50 → 0.0.52
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/async.cjs +56 -105
- package/dist/async.js +50 -104
- package/dist/components.cjs +42 -60
- package/dist/components.js +42 -61
- package/dist/config.cjs +5 -7
- package/dist/config.js +4 -7
- package/dist/humpToLine-Czhat99x.js +25 -0
- package/dist/humpToLine-gLzuzWOm.cjs +30 -0
- package/dist/icon/index.cjs +229 -13
- package/dist/icon/index.js +222 -12
- package/dist/iconify.cjs +102 -16
- package/dist/iconify.js +97 -15
- package/dist/index.cjs +100 -194
- package/dist/index.js +52 -194
- package/dist/index.json +1 -1
- package/dist/json-BpszFHNs.js +62 -0
- package/dist/json-C96CKb6M.cjs +67 -0
- package/dist/json.cjs +2 -7
- package/dist/json.js +2 -7
- package/dist/lineToLargeHump-BajF216g.cjs +30 -0
- package/dist/lineToLargeHump-CHL4-tNE.js +25 -0
- package/dist/name.cjs +68 -15
- package/dist/name.js +65 -15
- package/dist/picker/dialog.cjs +42 -7
- package/dist/picker/dialog.js +42 -7
- package/dist/picker/index.cjs +200 -324
- package/dist/picker/index.js +194 -325
- package/dist/util.cjs +13 -7
- package/dist/util.js +12 -7
- package/dist/vite/index.cjs +848 -1143
- package/dist/vite/index.js +848 -1144
- package/dist/vue/bar.cjs +16 -7
- package/dist/vue/bar.js +16 -7
- package/dist/vue/below.cjs +16 -7
- package/dist/vue/below.js +16 -7
- package/dist/vue/bicycle.cjs +16 -7
- package/dist/vue/bicycle.js +16 -7
- package/dist/vue/bottom-left.cjs +16 -7
- package/dist/vue/bottom-left.js +16 -7
- package/dist/vue/bottom-right.cjs +16 -7
- package/dist/vue/bottom-right.js +16 -7
- package/dist/vue/bottom.cjs +16 -7
- package/dist/vue/bottom.js +16 -7
- package/dist/vue/cascader-field.cjs +16 -7
- package/dist/vue/cascader-field.js +16 -7
- package/dist/vue/catalogue.cjs +16 -7
- package/dist/vue/catalogue.js +16 -7
- package/dist/vue/clear.cjs +16 -7
- package/dist/vue/clear.js +16 -7
- package/dist/vue/close.cjs +16 -7
- package/dist/vue/close.js +16 -7
- package/dist/vue/crl.cjs +16 -7
- package/dist/vue/crl.js +16 -7
- package/dist/vue/delete.cjs +16 -7
- package/dist/vue/delete.js +16 -7
- package/dist/vue/document.cjs +16 -7
- package/dist/vue/document.js +16 -7
- package/dist/vue/down.cjs +16 -7
- package/dist/vue/down.js +16 -7
- package/dist/vue/download.cjs +16 -7
- package/dist/vue/download.js +16 -7
- package/dist/vue/edit.cjs +16 -7
- package/dist/vue/edit.js +16 -7
- package/dist/vue/enter.cjs +16 -7
- package/dist/vue/enter.js +16 -7
- package/dist/vue/folder.cjs +16 -7
- package/dist/vue/folder.js +16 -7
- package/dist/vue/frame.cjs +16 -7
- package/dist/vue/frame.js +16 -7
- package/dist/vue/grid.cjs +16 -7
- package/dist/vue/grid.js +16 -7
- package/dist/vue/hidd.cjs +16 -7
- package/dist/vue/hidd.js +16 -7
- package/dist/vue/home.cjs +16 -7
- package/dist/vue/home.js +16 -7
- package/dist/vue/index.cjs +90 -180
- package/dist/vue/index.js +46 -180
- package/dist/vue/left.cjs +16 -7
- package/dist/vue/left.js +16 -7
- package/dist/vue/lock.cjs +16 -7
- package/dist/vue/lock.js +16 -7
- package/dist/vue/login.cjs +16 -7
- package/dist/vue/login.js +16 -7
- package/dist/vue/logink.cjs +16 -7
- package/dist/vue/logink.js +16 -7
- package/dist/vue/more.cjs +16 -7
- package/dist/vue/more.js +16 -7
- package/dist/vue/mr.cjs +16 -7
- package/dist/vue/mr.js +16 -7
- package/dist/vue/mute.cjs +16 -7
- package/dist/vue/mute.js +16 -7
- package/dist/vue/node-tree.cjs +16 -7
- package/dist/vue/node-tree.js +16 -7
- package/dist/vue/page.cjs +16 -7
- package/dist/vue/page.js +16 -7
- package/dist/vue/pause.cjs +16 -7
- package/dist/vue/pause.js +16 -7
- package/dist/vue/play.cjs +16 -7
- package/dist/vue/play.js +16 -7
- package/dist/vue/plus.cjs +16 -7
- package/dist/vue/plus.js +16 -7
- package/dist/vue/qx.cjs +16 -7
- package/dist/vue/qx.js +16 -7
- package/dist/vue/retreat.cjs +16 -7
- package/dist/vue/retreat.js +16 -7
- package/dist/vue/right.cjs +16 -7
- package/dist/vue/right.js +16 -7
- package/dist/vue/set.cjs +16 -7
- package/dist/vue/set.js +16 -7
- package/dist/vue/sound.cjs +16 -7
- package/dist/vue/sound.js +16 -7
- package/dist/vue/star.cjs +16 -7
- package/dist/vue/star.js +16 -7
- package/dist/vue/sub-form.cjs +16 -7
- package/dist/vue/sub-form.js +16 -7
- package/dist/vue/tab.cjs +16 -7
- package/dist/vue/tab.js +16 -7
- package/dist/vue/up.cjs +16 -7
- package/dist/vue/up.js +16 -7
- package/dist/vue/views.cjs +16 -7
- package/dist/vue/views.js +16 -7
- package/dist/vue-CR8K2hMZ.js +105 -0
- package/dist/vue-XcWpjtqA.cjs +110 -0
- package/package.json +32 -30
- package/dist/async.d.cts +0 -142
- package/dist/async.d.ts +0 -142
- package/dist/chunk-2D4VSAJ2.js +0 -13
- package/dist/chunk-2IK6ZEWL.js +0 -13
- package/dist/chunk-2TQQMTHZ.cjs +0 -13
- package/dist/chunk-32F77IBU.cjs +0 -13
- package/dist/chunk-3376ZTRC.cjs +0 -1
- package/dist/chunk-37O763HE.cjs +0 -152
- package/dist/chunk-37UZO7UL.cjs +0 -31
- package/dist/chunk-3AMDUJDV.js +0 -13
- package/dist/chunk-3AMS6SAI.js +0 -13
- package/dist/chunk-3TRFZFYF.js +0 -13
- package/dist/chunk-3YCLWMP7.cjs +0 -13
- package/dist/chunk-53VWOQDN.cjs +0 -13
- package/dist/chunk-5MQTT7S7.cjs +0 -188
- package/dist/chunk-5PXZNWE4.js +0 -13
- package/dist/chunk-5QUGHNG3.cjs +0 -13
- package/dist/chunk-5XDPKNBI.js +0 -13
- package/dist/chunk-66OLJGLO.js +0 -302
- package/dist/chunk-6BDDZBAQ.js +0 -13
- package/dist/chunk-75ZPJI57.cjs +0 -9
- package/dist/chunk-76TLDMR4.cjs +0 -13
- package/dist/chunk-7IBXEWY5.js +0 -13
- package/dist/chunk-7URGGQWA.js +0 -13
- package/dist/chunk-7ZWO2XCS.cjs +0 -13
- package/dist/chunk-AQDYWFIE.cjs +0 -13
- package/dist/chunk-AUEQIRLO.cjs +0 -13
- package/dist/chunk-BEQYH4ZH.js +0 -13
- package/dist/chunk-BMEJLYYZ.js +0 -13
- package/dist/chunk-BXEIRESQ.cjs +0 -17
- package/dist/chunk-BYXBJQAS.js +0 -0
- package/dist/chunk-D4YPZVLI.js +0 -13
- package/dist/chunk-DMNL42QX.cjs +0 -13
- package/dist/chunk-DOKVIYQP.cjs +0 -13
- package/dist/chunk-DSTHXXIG.js +0 -14
- package/dist/chunk-E3I6537N.js +0 -25
- package/dist/chunk-EEMF44IH.cjs +0 -58
- package/dist/chunk-EODYYDJS.js +0 -13
- package/dist/chunk-ERY3BNIM.js +0 -13
- package/dist/chunk-ESPY25SV.cjs +0 -13
- package/dist/chunk-EZJQO3RD.cjs +0 -13
- package/dist/chunk-FEFTZ7TT.cjs +0 -13
- package/dist/chunk-FZTWDRFN.js +0 -13
- package/dist/chunk-H4PA2G3N.cjs +0 -13
- package/dist/chunk-H7QPKI66.cjs +0 -13
- package/dist/chunk-HLATHB47.js +0 -13
- package/dist/chunk-I3A3AEAA.cjs +0 -13
- package/dist/chunk-I3U5MBNO.cjs +0 -13
- package/dist/chunk-I5KQLZMG.js +0 -58
- package/dist/chunk-IBTK77R3.cjs +0 -13
- package/dist/chunk-IEFCX4Q4.cjs +0 -13
- package/dist/chunk-IG3RZSAO.js +0 -152
- package/dist/chunk-IIVF4KK5.cjs +0 -6
- package/dist/chunk-ILE746VV.js +0 -13
- package/dist/chunk-IPHYXYU4.cjs +0 -13
- package/dist/chunk-J4G2OFZ4.js +0 -17
- package/dist/chunk-JJXGNEQB.js +0 -13
- package/dist/chunk-JT3V6FP7.js +0 -13
- package/dist/chunk-K5OMXRSR.js +0 -13
- package/dist/chunk-KDGKC2AD.cjs +0 -13
- package/dist/chunk-KZJIE3RV.cjs +0 -13
- package/dist/chunk-L7KCN6DV.cjs +0 -13
- package/dist/chunk-LBBA76TA.js +0 -13
- package/dist/chunk-LI54LRUK.cjs +0 -13
- package/dist/chunk-LLVO2B4L.js +0 -13
- package/dist/chunk-LZ5V6B6A.cjs +0 -13
- package/dist/chunk-MI2HCYC4.js +0 -13
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/chunk-MOHILOKE.js +0 -6
- package/dist/chunk-NEHQ24EP.js +0 -13
- package/dist/chunk-NESEKAGU.cjs +0 -13
- package/dist/chunk-NS5Q6ZYS.js +0 -13
- package/dist/chunk-OIX6AEOH.js +0 -13
- package/dist/chunk-OPZJWWQC.cjs +0 -13
- package/dist/chunk-PM3NSGHO.js +0 -13
- package/dist/chunk-Q7LKAKNO.js +0 -13
- package/dist/chunk-QTMLVSMQ.js +0 -188
- package/dist/chunk-RENPHZI7.cjs +0 -13
- package/dist/chunk-RHPG3BCQ.cjs +0 -13
- package/dist/chunk-S2QMZA7X.js +0 -13
- package/dist/chunk-S7LOBBW2.cjs +0 -13
- package/dist/chunk-T7E6HY2F.js +0 -13
- package/dist/chunk-TCAPRSWP.cjs +0 -13
- package/dist/chunk-TCP7WBEZ.cjs +0 -13
- package/dist/chunk-TT42MDI2.cjs +0 -13
- package/dist/chunk-TZWDBH6E.js +0 -13
- package/dist/chunk-U4CNUH3A.cjs +0 -302
- package/dist/chunk-UMRBYGCW.cjs +0 -13
- package/dist/chunk-UTRCC2RP.js +0 -13
- package/dist/chunk-UVMBRQNS.cjs +0 -13
- package/dist/chunk-UZWXBTQL.js +0 -31
- package/dist/chunk-VDTZORF6.cjs +0 -13
- package/dist/chunk-VO6GNJ4O.js +0 -13
- package/dist/chunk-VQ54VGY3.js +0 -13
- package/dist/chunk-VRWNZZCS.js +0 -13
- package/dist/chunk-W3IE4UWT.cjs +0 -13
- package/dist/chunk-WE4BXFRS.js +0 -13
- package/dist/chunk-WLDTS6EO.js +0 -13
- package/dist/chunk-WOAJW7OB.cjs +0 -13
- package/dist/chunk-WZX5LXRH.cjs +0 -13
- package/dist/chunk-XHXN5JNR.cjs +0 -14
- package/dist/chunk-XUPJ3XJL.js +0 -13
- package/dist/chunk-XYIWDMXZ.cjs +0 -13
- package/dist/chunk-Y2W7MENX.cjs +0 -13
- package/dist/chunk-YBGWOI5B.cjs +0 -13
- package/dist/chunk-YGLV5TML.js +0 -111
- package/dist/chunk-YJLFP6SE.js +0 -13
- package/dist/chunk-YJVFENGG.cjs +0 -111
- package/dist/chunk-YSDDIRK3.js +0 -13
- package/dist/chunk-YUYOWQ5M.js +0 -13
- package/dist/chunk-YW7CKAOG.cjs +0 -25
- package/dist/chunk-YYG5XGJC.js +0 -13
- package/dist/chunk-Z7LHYEQW.js +0 -13
- package/dist/chunk-ZWJ4O3II.cjs +0 -13
- package/dist/components.d.cts +0 -16
- package/dist/components.d.ts +0 -16
- package/dist/config.d.cts +0 -6
- package/dist/config.d.ts +0 -6
- package/dist/icon/index.d.cts +0 -136
- package/dist/icon/index.d.ts +0 -136
- package/dist/iconify.d.cts +0 -53
- package/dist/iconify.d.ts +0 -53
- package/dist/index.d.cts +0 -50
- package/dist/index.d.ts +0 -50
- package/dist/json.d.cts +0 -155
- package/dist/json.d.ts +0 -155
- package/dist/name.d.cts +0 -15
- package/dist/name.d.ts +0 -15
- package/dist/picker/dialog.d.cts +0 -19
- package/dist/picker/dialog.d.ts +0 -19
- package/dist/picker/index.d.cts +0 -123
- package/dist/picker/index.d.ts +0 -123
- package/dist/util.d.cts +0 -6
- package/dist/util.d.ts +0 -6
- package/dist/vite/index.d.cts +0 -56
- package/dist/vite/index.d.ts +0 -56
- package/dist/vue/bar.d.cts +0 -7
- package/dist/vue/bar.d.ts +0 -7
- package/dist/vue/below.d.cts +0 -7
- package/dist/vue/below.d.ts +0 -7
- package/dist/vue/bicycle.d.cts +0 -7
- package/dist/vue/bicycle.d.ts +0 -7
- package/dist/vue/bottom-left.d.cts +0 -7
- package/dist/vue/bottom-left.d.ts +0 -7
- package/dist/vue/bottom-right.d.cts +0 -7
- package/dist/vue/bottom-right.d.ts +0 -7
- package/dist/vue/bottom.d.cts +0 -7
- package/dist/vue/bottom.d.ts +0 -7
- package/dist/vue/cascader-field.d.cts +0 -7
- package/dist/vue/cascader-field.d.ts +0 -7
- package/dist/vue/catalogue.d.cts +0 -7
- package/dist/vue/catalogue.d.ts +0 -7
- package/dist/vue/clear.d.cts +0 -7
- package/dist/vue/clear.d.ts +0 -7
- package/dist/vue/close.d.cts +0 -7
- package/dist/vue/close.d.ts +0 -7
- package/dist/vue/crl.d.cts +0 -7
- package/dist/vue/crl.d.ts +0 -7
- package/dist/vue/delete.d.cts +0 -7
- package/dist/vue/delete.d.ts +0 -7
- package/dist/vue/document.d.cts +0 -7
- package/dist/vue/document.d.ts +0 -7
- package/dist/vue/down.d.cts +0 -7
- package/dist/vue/down.d.ts +0 -7
- package/dist/vue/download.d.cts +0 -7
- package/dist/vue/download.d.ts +0 -7
- package/dist/vue/edit.d.cts +0 -7
- package/dist/vue/edit.d.ts +0 -7
- package/dist/vue/enter.d.cts +0 -7
- package/dist/vue/enter.d.ts +0 -7
- package/dist/vue/folder.d.cts +0 -7
- package/dist/vue/folder.d.ts +0 -7
- package/dist/vue/frame.d.cts +0 -7
- package/dist/vue/frame.d.ts +0 -7
- package/dist/vue/grid.d.cts +0 -7
- package/dist/vue/grid.d.ts +0 -7
- package/dist/vue/hidd.d.cts +0 -7
- package/dist/vue/hidd.d.ts +0 -7
- package/dist/vue/home.d.cts +0 -7
- package/dist/vue/home.d.ts +0 -7
- package/dist/vue/index.d.cts +0 -45
- package/dist/vue/index.d.ts +0 -45
- package/dist/vue/left.d.cts +0 -7
- package/dist/vue/left.d.ts +0 -7
- package/dist/vue/lock.d.cts +0 -7
- package/dist/vue/lock.d.ts +0 -7
- package/dist/vue/login.d.cts +0 -7
- package/dist/vue/login.d.ts +0 -7
- package/dist/vue/logink.d.cts +0 -7
- package/dist/vue/logink.d.ts +0 -7
- package/dist/vue/more.d.cts +0 -7
- package/dist/vue/more.d.ts +0 -7
- package/dist/vue/mr.d.cts +0 -7
- package/dist/vue/mr.d.ts +0 -7
- package/dist/vue/mute.d.cts +0 -7
- package/dist/vue/mute.d.ts +0 -7
- package/dist/vue/node-tree.d.cts +0 -7
- package/dist/vue/node-tree.d.ts +0 -7
- package/dist/vue/page.d.cts +0 -7
- package/dist/vue/page.d.ts +0 -7
- package/dist/vue/pause.d.cts +0 -7
- package/dist/vue/pause.d.ts +0 -7
- package/dist/vue/play.d.cts +0 -7
- package/dist/vue/play.d.ts +0 -7
- package/dist/vue/plus.d.cts +0 -7
- package/dist/vue/plus.d.ts +0 -7
- package/dist/vue/qx.d.cts +0 -7
- package/dist/vue/qx.d.ts +0 -7
- package/dist/vue/retreat.d.cts +0 -7
- package/dist/vue/retreat.d.ts +0 -7
- package/dist/vue/right.d.cts +0 -7
- package/dist/vue/right.d.ts +0 -7
- package/dist/vue/set.d.cts +0 -7
- package/dist/vue/set.d.ts +0 -7
- package/dist/vue/sound.d.cts +0 -7
- package/dist/vue/sound.d.ts +0 -7
- package/dist/vue/star.d.cts +0 -7
- package/dist/vue/star.d.ts +0 -7
- package/dist/vue/sub-form.d.cts +0 -7
- package/dist/vue/sub-form.d.ts +0 -7
- package/dist/vue/tab.d.cts +0 -7
- package/dist/vue/tab.d.ts +0 -7
- package/dist/vue/up.d.cts +0 -7
- package/dist/vue/up.d.ts +0 -7
- package/dist/vue/views.d.cts +0 -7
- package/dist/vue/views.d.ts +0 -7
package/dist/picker/index.js
CHANGED
|
@@ -1,325 +1,194 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
display: "flex",
|
|
196
|
-
alignItems: "center",
|
|
197
|
-
justifyContent: "space-between",
|
|
198
|
-
borderBottom: "1px solid #eee"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
[
|
|
202
|
-
h("input", {
|
|
203
|
-
style: {
|
|
204
|
-
height: "100%",
|
|
205
|
-
padding: "5px"
|
|
206
|
-
},
|
|
207
|
-
placeholder: "\u8BF7\u8F93\u5165\u56FE\u6807\u540D\u79F0",
|
|
208
|
-
value: search.value,
|
|
209
|
-
onInput(e) {
|
|
210
|
-
search.value = e.target.value;
|
|
211
|
-
}
|
|
212
|
-
}),
|
|
213
|
-
h(
|
|
214
|
-
"span",
|
|
215
|
-
{
|
|
216
|
-
style: {
|
|
217
|
-
display: "flex",
|
|
218
|
-
alignItems: "center"
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
[
|
|
222
|
-
h(
|
|
223
|
-
"span",
|
|
224
|
-
{
|
|
225
|
-
style: {
|
|
226
|
-
marginRight: "10px"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
name2.value
|
|
230
|
-
),
|
|
231
|
-
h(iconVue.value, {
|
|
232
|
-
type: props.type,
|
|
233
|
-
size: props.size,
|
|
234
|
-
name: name2.value
|
|
235
|
-
}),
|
|
236
|
-
props.clearable && name2.value ? h(
|
|
237
|
-
"span",
|
|
238
|
-
{
|
|
239
|
-
style: {
|
|
240
|
-
cursor: "pointer",
|
|
241
|
-
marginLeft: "10px",
|
|
242
|
-
padding: "5px",
|
|
243
|
-
fontSize: "16px",
|
|
244
|
-
textAlign: "center"
|
|
245
|
-
},
|
|
246
|
-
onClick() {
|
|
247
|
-
name2.value = void 0;
|
|
248
|
-
box.value = false;
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
"\u6E05\u7A7A"
|
|
252
|
-
) : void 0
|
|
253
|
-
]
|
|
254
|
-
)
|
|
255
|
-
]
|
|
256
|
-
),
|
|
257
|
-
h(
|
|
258
|
-
"div",
|
|
259
|
-
{
|
|
260
|
-
class: "list",
|
|
261
|
-
style: {
|
|
262
|
-
flex: 1,
|
|
263
|
-
padding: "10px",
|
|
264
|
-
flexWrap: "wrap",
|
|
265
|
-
display: "flex",
|
|
266
|
-
overflow: "auto"
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
icons.value.map((key) => {
|
|
270
|
-
return h(
|
|
271
|
-
"div",
|
|
272
|
-
{
|
|
273
|
-
style: {
|
|
274
|
-
width: `calc(${size} + 20px)`,
|
|
275
|
-
display: "flex",
|
|
276
|
-
flexDirection: "column",
|
|
277
|
-
alignItems: "center",
|
|
278
|
-
cursor: "pointer",
|
|
279
|
-
color: key === name2.value ? "#1569e6" : ""
|
|
280
|
-
},
|
|
281
|
-
onClick() {
|
|
282
|
-
name2.value = key;
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
[
|
|
286
|
-
h(iconVue.value, {
|
|
287
|
-
style: {
|
|
288
|
-
margin: "5px",
|
|
289
|
-
marginBottom: 0,
|
|
290
|
-
backgroundColor: key === name2.value ? "#e0edff" : ""
|
|
291
|
-
},
|
|
292
|
-
size: props.size,
|
|
293
|
-
name: key
|
|
294
|
-
}),
|
|
295
|
-
h(
|
|
296
|
-
"div",
|
|
297
|
-
{
|
|
298
|
-
style: {
|
|
299
|
-
textAlign: "center",
|
|
300
|
-
marginBottom: "5px",
|
|
301
|
-
fontSize: "12px",
|
|
302
|
-
lineHeight: "12px"
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
[key]
|
|
306
|
-
)
|
|
307
|
-
]
|
|
308
|
-
);
|
|
309
|
-
})
|
|
310
|
-
)
|
|
311
|
-
]
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
)
|
|
316
|
-
]);
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
var name = "FangIconPicker";
|
|
320
|
-
var Picker = withInstall(component, name);
|
|
321
|
-
var picker_default = Picker;
|
|
322
|
-
export {
|
|
323
|
-
Picker,
|
|
324
|
-
picker_default as default
|
|
325
|
-
};
|
|
1
|
+
import { withInstall } from "../util.js";
|
|
2
|
+
import { Icon } from "../icon/index.js";
|
|
3
|
+
import dialog_default from "./dialog.js";
|
|
4
|
+
import { computed, defineComponent, h, ref, resolveComponent } from "vue";
|
|
5
|
+
const Picker = withInstall(defineComponent({
|
|
6
|
+
name: "Picker",
|
|
7
|
+
props: {
|
|
8
|
+
icon: { type: [Object, String] },
|
|
9
|
+
dialog: { type: [Object, String] },
|
|
10
|
+
clearable: { type: Boolean },
|
|
11
|
+
/**
|
|
12
|
+
* @props { String } modelValue= ( )
|
|
13
|
+
* 图标名称
|
|
14
|
+
*/
|
|
15
|
+
modelValue: { type: [String] },
|
|
16
|
+
/**
|
|
17
|
+
* @props { String, Number } size='30px' ( )
|
|
18
|
+
* 图标大小
|
|
19
|
+
*/
|
|
20
|
+
size: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default() {
|
|
23
|
+
return 30;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @props { Object } icons={} ( )
|
|
28
|
+
* 图标名称
|
|
29
|
+
*/
|
|
30
|
+
icons: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default() {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* 图标类型
|
|
38
|
+
*/
|
|
39
|
+
type: { type: String }
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:modelValue"],
|
|
42
|
+
setup(props, { emit }) {
|
|
43
|
+
const box = ref(false);
|
|
44
|
+
const name = ref(props.modelValue);
|
|
45
|
+
const search = ref("");
|
|
46
|
+
const icons = computed(() => {
|
|
47
|
+
const obj = props.icons || [];
|
|
48
|
+
if (search.value) return obj.filter((k) => k.includes(search.value));
|
|
49
|
+
else return obj;
|
|
50
|
+
});
|
|
51
|
+
const iconVue = computed(() => {
|
|
52
|
+
if (props.icon) if (typeof props.icon === "string") return resolveComponent(props.icon);
|
|
53
|
+
else return props.icon;
|
|
54
|
+
else return Icon;
|
|
55
|
+
});
|
|
56
|
+
const dialogVue = computed(() => {
|
|
57
|
+
if (props.dialog) if (typeof props.dialog === "string") return resolveComponent(props.dialog);
|
|
58
|
+
else return props.dialog;
|
|
59
|
+
else return dialog_default;
|
|
60
|
+
});
|
|
61
|
+
let size = props.size;
|
|
62
|
+
if (typeof size === "number") size = size + "px";
|
|
63
|
+
return () => h("span", {}, [h("span", {
|
|
64
|
+
style: {
|
|
65
|
+
padding: "5px",
|
|
66
|
+
display: "inline-flex",
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
cursor: "pointer"
|
|
69
|
+
},
|
|
70
|
+
onClick() {
|
|
71
|
+
box.value = true;
|
|
72
|
+
}
|
|
73
|
+
}, [
|
|
74
|
+
h("span", { style: {
|
|
75
|
+
display: "inline-block",
|
|
76
|
+
border: "1px solid #eee",
|
|
77
|
+
width: size,
|
|
78
|
+
height: size
|
|
79
|
+
} }, [h(iconVue.value, {
|
|
80
|
+
type: props.type,
|
|
81
|
+
size: props.size,
|
|
82
|
+
name: props.modelValue
|
|
83
|
+
})]),
|
|
84
|
+
h("span", { style: { marginLeft: "10px" } }, name.value),
|
|
85
|
+
props.clearable && name.value ? h("span", {
|
|
86
|
+
style: {
|
|
87
|
+
cursor: "pointer",
|
|
88
|
+
padding: "5px",
|
|
89
|
+
fontSize: "16px",
|
|
90
|
+
width: "24px",
|
|
91
|
+
textAlign: "center"
|
|
92
|
+
},
|
|
93
|
+
onClick(e) {
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
name.value = void 0;
|
|
96
|
+
emit("update:modelValue", name.value);
|
|
97
|
+
}
|
|
98
|
+
}, "x") : void 0
|
|
99
|
+
]), h(dialogVue.value, {
|
|
100
|
+
title: "选择图标",
|
|
101
|
+
modelValue: box.value,
|
|
102
|
+
"onUpdate:modelValue": (v) => {
|
|
103
|
+
box.value = v;
|
|
104
|
+
emit("update:modelValue", name.value);
|
|
105
|
+
}
|
|
106
|
+
}, { default() {
|
|
107
|
+
return h("div", { style: {
|
|
108
|
+
display: "flex",
|
|
109
|
+
flexDirection: "column",
|
|
110
|
+
padding: "10px"
|
|
111
|
+
} }, [h("div", {
|
|
112
|
+
class: "top",
|
|
113
|
+
style: {
|
|
114
|
+
padding: "10px",
|
|
115
|
+
display: "flex",
|
|
116
|
+
alignItems: "center",
|
|
117
|
+
justifyContent: "space-between",
|
|
118
|
+
borderBottom: "1px solid #eee"
|
|
119
|
+
}
|
|
120
|
+
}, [h("input", {
|
|
121
|
+
style: {
|
|
122
|
+
height: "100%",
|
|
123
|
+
padding: "5px"
|
|
124
|
+
},
|
|
125
|
+
placeholder: "请输入图标名称",
|
|
126
|
+
value: search.value,
|
|
127
|
+
onInput(e) {
|
|
128
|
+
search.value = e.target.value;
|
|
129
|
+
}
|
|
130
|
+
}), h("span", { style: {
|
|
131
|
+
display: "flex",
|
|
132
|
+
alignItems: "center"
|
|
133
|
+
} }, [
|
|
134
|
+
h("span", { style: { marginRight: "10px" } }, name.value),
|
|
135
|
+
h(iconVue.value, {
|
|
136
|
+
type: props.type,
|
|
137
|
+
size: props.size,
|
|
138
|
+
name: name.value
|
|
139
|
+
}),
|
|
140
|
+
props.clearable && name.value ? h("span", {
|
|
141
|
+
style: {
|
|
142
|
+
cursor: "pointer",
|
|
143
|
+
marginLeft: "10px",
|
|
144
|
+
padding: "5px",
|
|
145
|
+
fontSize: "16px",
|
|
146
|
+
textAlign: "center"
|
|
147
|
+
},
|
|
148
|
+
onClick() {
|
|
149
|
+
name.value = void 0;
|
|
150
|
+
box.value = false;
|
|
151
|
+
}
|
|
152
|
+
}, "清空") : void 0
|
|
153
|
+
])]), h("div", {
|
|
154
|
+
class: "list",
|
|
155
|
+
style: {
|
|
156
|
+
flex: 1,
|
|
157
|
+
padding: "10px",
|
|
158
|
+
flexWrap: "wrap",
|
|
159
|
+
display: "flex",
|
|
160
|
+
overflow: "auto"
|
|
161
|
+
}
|
|
162
|
+
}, icons.value.map((key) => {
|
|
163
|
+
return h("div", {
|
|
164
|
+
style: {
|
|
165
|
+
width: `calc(${size} + 20px)`,
|
|
166
|
+
display: "flex",
|
|
167
|
+
flexDirection: "column",
|
|
168
|
+
alignItems: "center",
|
|
169
|
+
cursor: "pointer",
|
|
170
|
+
color: key === name.value ? "#1569e6" : ""
|
|
171
|
+
},
|
|
172
|
+
onClick() {
|
|
173
|
+
name.value = key;
|
|
174
|
+
}
|
|
175
|
+
}, [h(iconVue.value, {
|
|
176
|
+
style: {
|
|
177
|
+
margin: "5px",
|
|
178
|
+
marginBottom: 0,
|
|
179
|
+
backgroundColor: key === name.value ? "#e0edff" : ""
|
|
180
|
+
},
|
|
181
|
+
size: props.size,
|
|
182
|
+
name: key
|
|
183
|
+
}), h("div", { style: {
|
|
184
|
+
textAlign: "center",
|
|
185
|
+
marginBottom: "5px",
|
|
186
|
+
fontSize: "12px",
|
|
187
|
+
lineHeight: "12px"
|
|
188
|
+
} }, [key])]);
|
|
189
|
+
}))]);
|
|
190
|
+
} })]);
|
|
191
|
+
}
|
|
192
|
+
}), "FangIconPicker");
|
|
193
|
+
//#endregion
|
|
194
|
+
export { Picker, Picker as default };
|
package/dist/util.cjs
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region packages/util.ts
|
|
3
|
+
function withInstall(component, name) {
|
|
4
|
+
const comp = component;
|
|
5
|
+
comp.install = (app, options = {}) => {
|
|
6
|
+
const { prefix = "" } = options;
|
|
7
|
+
const m = name || comp.name || comp.displayName;
|
|
8
|
+
app.component(prefix + m, component);
|
|
9
|
+
};
|
|
10
|
+
return comp;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.withInstall = withInstall;
|
package/dist/util.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region packages/util.ts
|
|
2
|
+
function withInstall(component, name) {
|
|
3
|
+
const comp = component;
|
|
4
|
+
comp.install = (app, options = {}) => {
|
|
5
|
+
const { prefix = "" } = options;
|
|
6
|
+
const m = name || comp.name || comp.displayName;
|
|
7
|
+
app.component(prefix + m, component);
|
|
8
|
+
};
|
|
9
|
+
return comp;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { withInstall };
|