@fangzhongya/icons 0.0.52 → 0.0.53
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.d.cts +141 -0
- package/dist/async.d.ts +141 -0
- package/dist/bar-Bdt8mHeX.d.cts +6 -0
- package/dist/bar-Bdt8mHeX.d.ts +6 -0
- package/dist/below-wz4oeZsn.d.cts +6 -0
- package/dist/below-wz4oeZsn.d.ts +6 -0
- package/dist/bicycle-CN0_HvvC.d.cts +6 -0
- package/dist/bicycle-CN0_HvvC.d.ts +6 -0
- package/dist/bottom-B1ZV5b3V.d.cts +6 -0
- package/dist/bottom-B1ZV5b3V.d.ts +6 -0
- package/dist/bottom-left-BJK1wKOY.d.cts +6 -0
- package/dist/bottom-left-BJK1wKOY.d.ts +6 -0
- package/dist/bottom-right-BIdY9kfC.d.cts +6 -0
- package/dist/bottom-right-BIdY9kfC.d.ts +6 -0
- package/dist/cascader-field-CsBrpWaF.d.cts +6 -0
- package/dist/cascader-field-CsBrpWaF.d.ts +6 -0
- package/dist/catalogue-BCzpsdvU.d.cts +6 -0
- package/dist/catalogue-BCzpsdvU.d.ts +6 -0
- package/dist/clear-oUzG_17m.d.cts +6 -0
- package/dist/clear-oUzG_17m.d.ts +6 -0
- package/dist/close-DacH-Yom.d.cts +6 -0
- package/dist/close-DacH-Yom.d.ts +6 -0
- package/dist/components.d.cts +17 -0
- package/dist/components.d.ts +17 -0
- package/dist/config.d.cts +7 -0
- package/dist/config.d.ts +7 -0
- package/dist/crl-D829G0Kg.d.cts +6 -0
- package/dist/crl-D829G0Kg.d.ts +6 -0
- package/dist/delete-DCpOpoIQ.d.cts +6 -0
- package/dist/delete-DCpOpoIQ.d.ts +6 -0
- package/dist/document-zA-gYr3_.d.cts +6 -0
- package/dist/document-zA-gYr3_.d.ts +6 -0
- package/dist/down-DvZPmg2j.d.cts +6 -0
- package/dist/down-DvZPmg2j.d.ts +6 -0
- package/dist/download-BexHrQaN.d.cts +6 -0
- package/dist/download-BexHrQaN.d.ts +6 -0
- package/dist/edit-BH1qI1T0.d.cts +6 -0
- package/dist/edit-BH1qI1T0.d.ts +6 -0
- package/dist/enter-CIcilzWB.d.cts +6 -0
- package/dist/enter-CIcilzWB.d.ts +6 -0
- package/dist/folder-C3uzsLbr.d.cts +6 -0
- package/dist/folder-C3uzsLbr.d.ts +6 -0
- package/dist/frame-Bes_-5hL.d.cts +6 -0
- package/dist/frame-Bes_-5hL.d.ts +6 -0
- package/dist/grid-CnMS6YGI.d.cts +6 -0
- package/dist/grid-CnMS6YGI.d.ts +6 -0
- package/dist/hidd-wcrKjFhA.d.cts +6 -0
- package/dist/hidd-wcrKjFhA.d.ts +6 -0
- package/dist/home-BVQRBHRU.d.cts +6 -0
- package/dist/home-BVQRBHRU.d.ts +6 -0
- package/dist/icon/index.d.cts +136 -0
- package/dist/icon/index.d.ts +136 -0
- package/dist/iconify.d.cts +55 -0
- package/dist/iconify.d.ts +55 -0
- package/dist/index.d.cts +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.json +1 -1
- package/dist/{json-BpszFHNs.js → json-BKPP5Mlr.js} +3 -3
- package/dist/{json-C96CKb6M.cjs → json-IGrD8_vM.cjs} +4 -4
- package/dist/json.cjs +2 -2
- package/dist/json.d.cts +3 -0
- package/dist/json.d.ts +4 -0
- package/dist/json.js +2 -2
- package/dist/left-B3721MJJ.d.cts +6 -0
- package/dist/left-B3721MJJ.d.ts +6 -0
- package/dist/lock-mgSuNhGG.d.cts +6 -0
- package/dist/lock-mgSuNhGG.d.ts +6 -0
- package/dist/login-mcwpzqMp.d.cts +6 -0
- package/dist/login-mcwpzqMp.d.ts +6 -0
- package/dist/logink-DWeD4iVq.d.cts +6 -0
- package/dist/logink-DWeD4iVq.d.ts +6 -0
- package/dist/more-DlwRPOL-.d.cts +6 -0
- package/dist/more-DlwRPOL-.d.ts +6 -0
- package/dist/mr-CFIvZkwU.d.cts +6 -0
- package/dist/mr-CFIvZkwU.d.ts +6 -0
- package/dist/mute-T1_LFQM9.d.cts +6 -0
- package/dist/mute-T1_LFQM9.d.ts +6 -0
- package/dist/name.d.cts +16 -0
- package/dist/name.d.ts +16 -0
- package/dist/node-tree-0GAabW8w.d.cts +6 -0
- package/dist/node-tree-0GAabW8w.d.ts +6 -0
- package/dist/page-xROWQBtB.d.cts +6 -0
- package/dist/page-xROWQBtB.d.ts +6 -0
- package/dist/pause-cLPubYio.d.cts +6 -0
- package/dist/pause-cLPubYio.d.ts +6 -0
- package/dist/picker/dialog.d.cts +17 -0
- package/dist/picker/dialog.d.ts +18 -0
- package/dist/picker/index.d.cts +119 -0
- package/dist/picker/index.d.ts +119 -0
- package/dist/play-CDhVCRhH.d.cts +6 -0
- package/dist/play-CDhVCRhH.d.ts +6 -0
- package/dist/plus-zzG8Eoct.d.cts +6 -0
- package/dist/plus-zzG8Eoct.d.ts +6 -0
- package/dist/qx-Dasb5PIo.d.cts +6 -0
- package/dist/qx-Dasb5PIo.d.ts +6 -0
- package/dist/retreat-DaQj66uq.d.cts +6 -0
- package/dist/retreat-DaQj66uq.d.ts +6 -0
- package/dist/right-Cq_Ie_pK.d.cts +6 -0
- package/dist/right-Cq_Ie_pK.d.ts +6 -0
- package/dist/set-BAt1SOIT.d.cts +6 -0
- package/dist/set-BAt1SOIT.d.ts +6 -0
- package/dist/sound-C9qtuv2l.d.cts +6 -0
- package/dist/sound-C9qtuv2l.d.ts +6 -0
- package/dist/star-C0cNKyLP.d.cts +6 -0
- package/dist/star-C0cNKyLP.d.ts +6 -0
- package/dist/sub-form-Do-YgMUe.d.cts +6 -0
- package/dist/sub-form-Do-YgMUe.d.ts +6 -0
- package/dist/tab-5cOn6QJy.d.cts +6 -0
- package/dist/tab-5cOn6QJy.d.ts +6 -0
- package/dist/up-TMH4QSNk.d.cts +6 -0
- package/dist/up-TMH4QSNk.d.ts +6 -0
- package/dist/util.d.cts +7 -0
- package/dist/util.d.ts +7 -0
- package/dist/views-DoiacMc0.d.cts +6 -0
- package/dist/views-DoiacMc0.d.ts +6 -0
- package/dist/vite/index.cjs +3 -3
- package/dist/vite/index.d.cts +57 -0
- package/dist/vite/index.d.ts +57 -0
- package/dist/vite/index.js +3 -3
- package/dist/vue/bar.d.cts +2 -0
- package/dist/vue/bar.d.ts +2 -0
- package/dist/vue/below.d.cts +2 -0
- package/dist/vue/below.d.ts +2 -0
- package/dist/vue/bicycle.d.cts +2 -0
- package/dist/vue/bicycle.d.ts +2 -0
- package/dist/vue/bottom-left.d.cts +2 -0
- package/dist/vue/bottom-left.d.ts +2 -0
- package/dist/vue/bottom-right.d.cts +2 -0
- package/dist/vue/bottom-right.d.ts +2 -0
- package/dist/vue/bottom.d.cts +2 -0
- package/dist/vue/bottom.d.ts +2 -0
- package/dist/vue/cascader-field.d.cts +2 -0
- package/dist/vue/cascader-field.d.ts +2 -0
- package/dist/vue/catalogue.d.cts +2 -0
- package/dist/vue/catalogue.d.ts +2 -0
- package/dist/vue/clear.d.cts +2 -0
- package/dist/vue/clear.d.ts +2 -0
- package/dist/vue/close.d.cts +2 -0
- package/dist/vue/close.d.ts +2 -0
- package/dist/vue/crl.d.cts +2 -0
- package/dist/vue/crl.d.ts +2 -0
- package/dist/vue/delete.d.cts +2 -0
- package/dist/vue/delete.d.ts +2 -0
- package/dist/vue/document.d.cts +2 -0
- package/dist/vue/document.d.ts +2 -0
- package/dist/vue/down.d.cts +2 -0
- package/dist/vue/down.d.ts +2 -0
- package/dist/vue/download.d.cts +2 -0
- package/dist/vue/download.d.ts +2 -0
- package/dist/vue/edit.d.cts +2 -0
- package/dist/vue/edit.d.ts +2 -0
- package/dist/vue/enter.d.cts +2 -0
- package/dist/vue/enter.d.ts +2 -0
- package/dist/vue/folder.d.cts +2 -0
- package/dist/vue/folder.d.ts +2 -0
- package/dist/vue/frame.d.cts +2 -0
- package/dist/vue/frame.d.ts +2 -0
- package/dist/vue/grid.d.cts +2 -0
- package/dist/vue/grid.d.ts +2 -0
- package/dist/vue/hidd.d.cts +2 -0
- package/dist/vue/hidd.d.ts +2 -0
- package/dist/vue/home.d.cts +2 -0
- package/dist/vue/home.d.ts +2 -0
- package/dist/vue/index.d.cts +45 -0
- package/dist/vue/index.d.ts +45 -0
- package/dist/vue/left.d.cts +2 -0
- package/dist/vue/left.d.ts +2 -0
- package/dist/vue/lock.d.cts +2 -0
- package/dist/vue/lock.d.ts +2 -0
- package/dist/vue/login.d.cts +2 -0
- package/dist/vue/login.d.ts +2 -0
- package/dist/vue/logink.d.cts +2 -0
- package/dist/vue/logink.d.ts +2 -0
- package/dist/vue/more.d.cts +2 -0
- package/dist/vue/more.d.ts +2 -0
- package/dist/vue/mr.d.cts +2 -0
- package/dist/vue/mr.d.ts +2 -0
- package/dist/vue/mute.d.cts +2 -0
- package/dist/vue/mute.d.ts +2 -0
- package/dist/vue/node-tree.d.cts +2 -0
- package/dist/vue/node-tree.d.ts +2 -0
- package/dist/vue/page.d.cts +2 -0
- package/dist/vue/page.d.ts +2 -0
- package/dist/vue/pause.d.cts +2 -0
- package/dist/vue/pause.d.ts +2 -0
- package/dist/vue/play.d.cts +2 -0
- package/dist/vue/play.d.ts +2 -0
- package/dist/vue/plus.d.cts +2 -0
- package/dist/vue/plus.d.ts +2 -0
- package/dist/vue/qx.d.cts +2 -0
- package/dist/vue/qx.d.ts +2 -0
- package/dist/vue/retreat.d.cts +2 -0
- package/dist/vue/retreat.d.ts +2 -0
- package/dist/vue/right.d.cts +2 -0
- package/dist/vue/right.d.ts +2 -0
- package/dist/vue/set.d.cts +2 -0
- package/dist/vue/set.d.ts +2 -0
- package/dist/vue/sound.d.cts +2 -0
- package/dist/vue/sound.d.ts +2 -0
- package/dist/vue/star.d.cts +2 -0
- package/dist/vue/star.d.ts +2 -0
- package/dist/vue/sub-form.d.cts +2 -0
- package/dist/vue/sub-form.d.ts +2 -0
- package/dist/vue/tab.d.cts +2 -0
- package/dist/vue/tab.d.ts +2 -0
- package/dist/vue/up.d.cts +2 -0
- package/dist/vue/up.d.ts +2 -0
- package/dist/vue/views.d.cts +2 -0
- package/dist/vue/views.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/sound.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/star.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/star.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/sub-form.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/sub-form.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/tab.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/tab.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/up.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/up.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
package/dist/util.d.cts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Component, Plugin } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region packages/util.d.ts
|
|
4
|
+
type SFCWithInstall<T> = T & Plugin;
|
|
5
|
+
declare function withInstall<T extends Component>(component: T, name?: string): SFCWithInstall<T>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SFCWithInstall, withInstall };
|
package/dist/util.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Component, Plugin } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region packages/util.d.ts
|
|
4
|
+
type SFCWithInstall<T> = T & Plugin;
|
|
5
|
+
declare function withInstall<T extends Component>(component: T, name?: string): SFCWithInstall<T>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SFCWithInstall, withInstall };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/views.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region packages/vue/views.d.ts
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as t };
|
package/dist/vite/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_lineToLargeHump = require("../lineToLargeHump-BajF216g.cjs");
|
|
3
3
|
const require_iconify = require("../iconify.cjs");
|
|
4
|
-
const require_json = require("../json-
|
|
4
|
+
const require_json = require("../json-IGrD8_vM.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let path = require("path");
|
|
@@ -944,7 +944,7 @@ function findComponents(code, name) {
|
|
|
944
944
|
return components;
|
|
945
945
|
}
|
|
946
946
|
function getText(iconName, match, name) {
|
|
947
|
-
const svg = require_iconify.getIconifySVG(require_json.
|
|
947
|
+
const svg = require_iconify.getIconifySVG(require_json.jsons, name);
|
|
948
948
|
return {
|
|
949
949
|
text: `${match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "")}${svg}</${match.componentName}>`,
|
|
950
950
|
imptext: ""
|
|
@@ -967,7 +967,7 @@ function replaceComponent(match, type, dynamic, customReplacement, alias) {
|
|
|
967
967
|
if (alias) {
|
|
968
968
|
if (iconName && iconName.startsWith(alias + "-")) name = iconName.substring(alias.length + 1);
|
|
969
969
|
}
|
|
970
|
-
if (!(require_json.
|
|
970
|
+
if (!(require_json.jsons.icons[iconName] || require_json.jsons.icons[name])) return {
|
|
971
971
|
text: match.fullMatch,
|
|
972
972
|
imptext: ""
|
|
973
973
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Plugin } from "vite";
|
|
2
|
+
|
|
3
|
+
//#region packages/vite/index.d.ts
|
|
4
|
+
type IconReplacement = (iconName: string, attributes: ComponentAttributes, alias?: string) => {
|
|
5
|
+
text: string;
|
|
6
|
+
imptext: string;
|
|
7
|
+
};
|
|
8
|
+
interface PluginOptions {
|
|
9
|
+
/**
|
|
10
|
+
* 组件名称
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 图标默认类型
|
|
15
|
+
*/
|
|
16
|
+
type?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 图标目录
|
|
19
|
+
*/
|
|
20
|
+
directory?: string;
|
|
21
|
+
customReplacement?: IconReplacement;
|
|
22
|
+
/**
|
|
23
|
+
* 是否创建虚拟组件
|
|
24
|
+
*/
|
|
25
|
+
virtual?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 是否替换组件
|
|
28
|
+
*/
|
|
29
|
+
replaced?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否加载图片到本地public'
|
|
32
|
+
*/
|
|
33
|
+
mobile?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 是否动态更新
|
|
36
|
+
*/
|
|
37
|
+
dynamic?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 别名
|
|
40
|
+
*/
|
|
41
|
+
alias?: string;
|
|
42
|
+
}
|
|
43
|
+
interface ComponentAttributes {
|
|
44
|
+
name: string;
|
|
45
|
+
[key: string]: string | boolean | number;
|
|
46
|
+
}
|
|
47
|
+
interface ComponentMatchInfo {
|
|
48
|
+
componentName: string;
|
|
49
|
+
fullMatch: string;
|
|
50
|
+
start: number;
|
|
51
|
+
end: number;
|
|
52
|
+
attributes: ComponentAttributes;
|
|
53
|
+
isSelfClosing: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare function simpleFangIcon(options?: PluginOptions): Plugin;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { ComponentAttributes, ComponentMatchInfo, IconReplacement, PluginOptions, simpleFangIcon };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Plugin } from "vite";
|
|
2
|
+
|
|
3
|
+
//#region packages/vite/index.d.ts
|
|
4
|
+
type IconReplacement = (iconName: string, attributes: ComponentAttributes, alias?: string) => {
|
|
5
|
+
text: string;
|
|
6
|
+
imptext: string;
|
|
7
|
+
};
|
|
8
|
+
interface PluginOptions {
|
|
9
|
+
/**
|
|
10
|
+
* 组件名称
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 图标默认类型
|
|
15
|
+
*/
|
|
16
|
+
type?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 图标目录
|
|
19
|
+
*/
|
|
20
|
+
directory?: string;
|
|
21
|
+
customReplacement?: IconReplacement;
|
|
22
|
+
/**
|
|
23
|
+
* 是否创建虚拟组件
|
|
24
|
+
*/
|
|
25
|
+
virtual?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 是否替换组件
|
|
28
|
+
*/
|
|
29
|
+
replaced?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否加载图片到本地public'
|
|
32
|
+
*/
|
|
33
|
+
mobile?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 是否动态更新
|
|
36
|
+
*/
|
|
37
|
+
dynamic?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 别名
|
|
40
|
+
*/
|
|
41
|
+
alias?: string;
|
|
42
|
+
}
|
|
43
|
+
interface ComponentAttributes {
|
|
44
|
+
name: string;
|
|
45
|
+
[key: string]: string | boolean | number;
|
|
46
|
+
}
|
|
47
|
+
interface ComponentMatchInfo {
|
|
48
|
+
componentName: string;
|
|
49
|
+
fullMatch: string;
|
|
50
|
+
start: number;
|
|
51
|
+
end: number;
|
|
52
|
+
attributes: ComponentAttributes;
|
|
53
|
+
isSelfClosing: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare function simpleFangIcon(options?: PluginOptions): Plugin;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { ComponentAttributes, ComponentMatchInfo, IconReplacement, PluginOptions, simpleFangIcon };
|
package/dist/vite/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as lineToLargeHump } from "../lineToLargeHump-CHL4-tNE.js";
|
|
2
2
|
import { getIconifySVG } from "../iconify.js";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as jsons } from "../json-BKPP5Mlr.js";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
5
|
import { access, constants, createReadStream, mkdir, open, readFile, readdir, stat, write, writeFile } from "node:fs";
|
|
6
6
|
import { join as join$1 } from "path";
|
|
@@ -943,7 +943,7 @@ function findComponents(code, name) {
|
|
|
943
943
|
return components;
|
|
944
944
|
}
|
|
945
945
|
function getText(iconName, match, name) {
|
|
946
|
-
const svg = getIconifySVG(
|
|
946
|
+
const svg = getIconifySVG(jsons, name);
|
|
947
947
|
return {
|
|
948
948
|
text: `${match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "")}${svg}</${match.componentName}>`,
|
|
949
949
|
imptext: ""
|
|
@@ -966,7 +966,7 @@ function replaceComponent(match, type, dynamic, customReplacement, alias) {
|
|
|
966
966
|
if (alias) {
|
|
967
967
|
if (iconName && iconName.startsWith(alias + "-")) name = iconName.substring(alias.length + 1);
|
|
968
968
|
}
|
|
969
|
-
if (!(
|
|
969
|
+
if (!(jsons.icons[iconName] || jsons.icons[name])) return {
|
|
970
970
|
text: match.fullMatch,
|
|
971
971
|
imptext: ""
|
|
972
972
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as _default } from "../bar-Bdt8mHeX.cjs";
|
|
2
|
+
import { t as _default$1 } from "../below-wz4oeZsn.cjs";
|
|
3
|
+
import { t as _default$2 } from "../bicycle-CN0_HvvC.cjs";
|
|
4
|
+
import { t as _default$3 } from "../bottom-B1ZV5b3V.cjs";
|
|
5
|
+
import { t as _default$4 } from "../bottom-left-BJK1wKOY.cjs";
|
|
6
|
+
import { t as _default$5 } from "../bottom-right-BIdY9kfC.cjs";
|
|
7
|
+
import { t as _default$6 } from "../cascader-field-CsBrpWaF.cjs";
|
|
8
|
+
import { t as _default$7 } from "../catalogue-BCzpsdvU.cjs";
|
|
9
|
+
import { t as _default$8 } from "../clear-oUzG_17m.cjs";
|
|
10
|
+
import { t as _default$9 } from "../close-DacH-Yom.cjs";
|
|
11
|
+
import { t as _default$10 } from "../crl-D829G0Kg.cjs";
|
|
12
|
+
import { t as _default$11 } from "../delete-DCpOpoIQ.cjs";
|
|
13
|
+
import { t as _default$12 } from "../document-zA-gYr3_.cjs";
|
|
14
|
+
import { t as _default$13 } from "../down-DvZPmg2j.cjs";
|
|
15
|
+
import { t as _default$14 } from "../download-BexHrQaN.cjs";
|
|
16
|
+
import { t as _default$15 } from "../edit-BH1qI1T0.cjs";
|
|
17
|
+
import { t as _default$16 } from "../enter-CIcilzWB.cjs";
|
|
18
|
+
import { t as _default$17 } from "../folder-C3uzsLbr.cjs";
|
|
19
|
+
import { t as _default$18 } from "../frame-Bes_-5hL.cjs";
|
|
20
|
+
import { t as _default$19 } from "../grid-CnMS6YGI.cjs";
|
|
21
|
+
import { t as _default$20 } from "../hidd-wcrKjFhA.cjs";
|
|
22
|
+
import { t as _default$21 } from "../home-BVQRBHRU.cjs";
|
|
23
|
+
import { t as _default$22 } from "../left-B3721MJJ.cjs";
|
|
24
|
+
import { t as _default$23 } from "../lock-mgSuNhGG.cjs";
|
|
25
|
+
import { t as _default$24 } from "../login-mcwpzqMp.cjs";
|
|
26
|
+
import { t as _default$25 } from "../logink-DWeD4iVq.cjs";
|
|
27
|
+
import { t as _default$26 } from "../more-DlwRPOL-.cjs";
|
|
28
|
+
import { t as _default$27 } from "../mr-CFIvZkwU.cjs";
|
|
29
|
+
import { t as _default$28 } from "../mute-T1_LFQM9.cjs";
|
|
30
|
+
import { t as _default$29 } from "../node-tree-0GAabW8w.cjs";
|
|
31
|
+
import { t as _default$30 } from "../page-xROWQBtB.cjs";
|
|
32
|
+
import { t as _default$31 } from "../pause-cLPubYio.cjs";
|
|
33
|
+
import { t as _default$32 } from "../play-CDhVCRhH.cjs";
|
|
34
|
+
import { t as _default$33 } from "../plus-zzG8Eoct.cjs";
|
|
35
|
+
import { t as _default$34 } from "../qx-Dasb5PIo.cjs";
|
|
36
|
+
import { t as _default$35 } from "../retreat-DaQj66uq.cjs";
|
|
37
|
+
import { t as _default$36 } from "../right-Cq_Ie_pK.cjs";
|
|
38
|
+
import { t as _default$37 } from "../set-BAt1SOIT.cjs";
|
|
39
|
+
import { t as _default$38 } from "../sound-C9qtuv2l.cjs";
|
|
40
|
+
import { t as _default$39 } from "../star-C0cNKyLP.cjs";
|
|
41
|
+
import { t as _default$40 } from "../sub-form-Do-YgMUe.cjs";
|
|
42
|
+
import { t as _default$41 } from "../tab-5cOn6QJy.cjs";
|
|
43
|
+
import { t as _default$42 } from "../up-TMH4QSNk.cjs";
|
|
44
|
+
import { t as _default$43 } from "../views-DoiacMc0.cjs";
|
|
45
|
+
export { _default as Bar, _default$1 as Below, _default$2 as Bicycle, _default$3 as Bottom, _default$4 as BottomLeft, _default$5 as BottomRight, _default$6 as CascaderField, _default$7 as Catalogue, _default$8 as Clear, _default$9 as Close, _default$10 as Crl, _default$11 as Delete, _default$12 as Document, _default$13 as Down, _default$14 as Download, _default$15 as Edit, _default$16 as Enter, _default$17 as Folder, _default$18 as Frame, _default$19 as Grid, _default$20 as Hidd, _default$21 as Home, _default$22 as Left, _default$23 as Lock, _default$24 as Login, _default$25 as Logink, _default$26 as More, _default$27 as Mr, _default$28 as Mute, _default$29 as NodeTree, _default$30 as Page, _default$31 as Pause, _default$32 as Play, _default$33 as Plus, _default$34 as Qx, _default$35 as Retreat, _default$36 as Right, _default$37 as Set, _default$38 as Sound, _default$39 as Star, _default$40 as SubForm, _default$41 as Tab, _default$42 as Up, _default$43 as Views };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as _default } from "../bar-Bdt8mHeX.js";
|
|
2
|
+
import { t as _default$1 } from "../below-wz4oeZsn.js";
|
|
3
|
+
import { t as _default$2 } from "../bicycle-CN0_HvvC.js";
|
|
4
|
+
import { t as _default$3 } from "../bottom-B1ZV5b3V.js";
|
|
5
|
+
import { t as _default$4 } from "../bottom-left-BJK1wKOY.js";
|
|
6
|
+
import { t as _default$5 } from "../bottom-right-BIdY9kfC.js";
|
|
7
|
+
import { t as _default$6 } from "../cascader-field-CsBrpWaF.js";
|
|
8
|
+
import { t as _default$7 } from "../catalogue-BCzpsdvU.js";
|
|
9
|
+
import { t as _default$8 } from "../clear-oUzG_17m.js";
|
|
10
|
+
import { t as _default$9 } from "../close-DacH-Yom.js";
|
|
11
|
+
import { t as _default$10 } from "../crl-D829G0Kg.js";
|
|
12
|
+
import { t as _default$11 } from "../delete-DCpOpoIQ.js";
|
|
13
|
+
import { t as _default$12 } from "../document-zA-gYr3_.js";
|
|
14
|
+
import { t as _default$13 } from "../down-DvZPmg2j.js";
|
|
15
|
+
import { t as _default$14 } from "../download-BexHrQaN.js";
|
|
16
|
+
import { t as _default$15 } from "../edit-BH1qI1T0.js";
|
|
17
|
+
import { t as _default$16 } from "../enter-CIcilzWB.js";
|
|
18
|
+
import { t as _default$17 } from "../folder-C3uzsLbr.js";
|
|
19
|
+
import { t as _default$18 } from "../frame-Bes_-5hL.js";
|
|
20
|
+
import { t as _default$19 } from "../grid-CnMS6YGI.js";
|
|
21
|
+
import { t as _default$20 } from "../hidd-wcrKjFhA.js";
|
|
22
|
+
import { t as _default$21 } from "../home-BVQRBHRU.js";
|
|
23
|
+
import { t as _default$22 } from "../left-B3721MJJ.js";
|
|
24
|
+
import { t as _default$23 } from "../lock-mgSuNhGG.js";
|
|
25
|
+
import { t as _default$24 } from "../login-mcwpzqMp.js";
|
|
26
|
+
import { t as _default$25 } from "../logink-DWeD4iVq.js";
|
|
27
|
+
import { t as _default$26 } from "../more-DlwRPOL-.js";
|
|
28
|
+
import { t as _default$27 } from "../mr-CFIvZkwU.js";
|
|
29
|
+
import { t as _default$28 } from "../mute-T1_LFQM9.js";
|
|
30
|
+
import { t as _default$29 } from "../node-tree-0GAabW8w.js";
|
|
31
|
+
import { t as _default$30 } from "../page-xROWQBtB.js";
|
|
32
|
+
import { t as _default$31 } from "../pause-cLPubYio.js";
|
|
33
|
+
import { t as _default$32 } from "../play-CDhVCRhH.js";
|
|
34
|
+
import { t as _default$33 } from "../plus-zzG8Eoct.js";
|
|
35
|
+
import { t as _default$34 } from "../qx-Dasb5PIo.js";
|
|
36
|
+
import { t as _default$35 } from "../retreat-DaQj66uq.js";
|
|
37
|
+
import { t as _default$36 } from "../right-Cq_Ie_pK.js";
|
|
38
|
+
import { t as _default$37 } from "../set-BAt1SOIT.js";
|
|
39
|
+
import { t as _default$38 } from "../sound-C9qtuv2l.js";
|
|
40
|
+
import { t as _default$39 } from "../star-C0cNKyLP.js";
|
|
41
|
+
import { t as _default$40 } from "../sub-form-Do-YgMUe.js";
|
|
42
|
+
import { t as _default$41 } from "../tab-5cOn6QJy.js";
|
|
43
|
+
import { t as _default$42 } from "../up-TMH4QSNk.js";
|
|
44
|
+
import { t as _default$43 } from "../views-DoiacMc0.js";
|
|
45
|
+
export { _default as Bar, _default$1 as Below, _default$2 as Bicycle, _default$3 as Bottom, _default$4 as BottomLeft, _default$5 as BottomRight, _default$6 as CascaderField, _default$7 as Catalogue, _default$8 as Clear, _default$9 as Close, _default$10 as Crl, _default$11 as Delete, _default$12 as Document, _default$13 as Down, _default$14 as Download, _default$15 as Edit, _default$16 as Enter, _default$17 as Folder, _default$18 as Frame, _default$19 as Grid, _default$20 as Hidd, _default$21 as Home, _default$22 as Left, _default$23 as Lock, _default$24 as Login, _default$25 as Logink, _default$26 as More, _default$27 as Mr, _default$28 as Mute, _default$29 as NodeTree, _default$30 as Page, _default$31 as Pause, _default$32 as Play, _default$33 as Plus, _default$34 as Qx, _default$35 as Retreat, _default$36 as Right, _default$37 as Set, _default$38 as Sound, _default$39 as Star, _default$40 as SubForm, _default$41 as Tab, _default$42 as Up, _default$43 as Views };
|
package/dist/vue/mr.d.ts
ADDED