@fangzhongya/icons 0.0.9 → 0.0.11
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.json +1 -1
- package/dist/vite/index.cjs +7 -5
- package/dist/vite/index.js +7 -5
- package/package.json +1 -1
package/dist/index.json
CHANGED
package/dist/vite/index.cjs
CHANGED
|
@@ -907,16 +907,18 @@ function runDev(config, configCallback, callback) {
|
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
// packages/vite/index.ts
|
|
910
|
+
|
|
910
911
|
var virtualModuleId = "virtual:fang-icon";
|
|
911
912
|
function simpleFangIcon(options = {}) {
|
|
912
913
|
const { type = "svg", directory = "./svg" } = options;
|
|
913
914
|
const resolvedVirtualModuleId = "\0" + virtualModuleId;
|
|
914
915
|
if (type === "pub" && options.mobile) {
|
|
915
|
-
|
|
916
|
+
const outDir = _path.join.call(void 0, "./public/", directory);
|
|
917
|
+
console.log("outDir", outDir);
|
|
916
918
|
runDev({
|
|
917
919
|
issort: true,
|
|
918
920
|
dir: "./node_modules/@fangzhongya/icons/dist/svg",
|
|
919
|
-
outDir
|
|
921
|
+
outDir,
|
|
920
922
|
extensions: ["svg"],
|
|
921
923
|
read: true,
|
|
922
924
|
fileCover: true,
|
|
@@ -941,9 +943,9 @@ export default defineComponent({
|
|
|
941
943
|
name: {
|
|
942
944
|
type: [String, Object],
|
|
943
945
|
},
|
|
944
|
-
|
|
946
|
+
default: {
|
|
945
947
|
type: String,
|
|
946
|
-
|
|
948
|
+
default: '${type}'
|
|
947
949
|
},
|
|
948
950
|
directory: {
|
|
949
951
|
type: String,
|
|
@@ -954,8 +956,8 @@ export default defineComponent({
|
|
|
954
956
|
return () => {
|
|
955
957
|
return h(FangIcon, {
|
|
956
958
|
...attrs,
|
|
957
|
-
type: props.type,
|
|
958
959
|
name: props.name,
|
|
960
|
+
default: props.default,
|
|
959
961
|
directory: props.directory
|
|
960
962
|
});
|
|
961
963
|
};
|
package/dist/vite/index.js
CHANGED
|
@@ -907,16 +907,18 @@ function runDev(config, configCallback, callback) {
|
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
// packages/vite/index.ts
|
|
910
|
+
import { join as join5 } from "path";
|
|
910
911
|
var virtualModuleId = "virtual:fang-icon";
|
|
911
912
|
function simpleFangIcon(options = {}) {
|
|
912
913
|
const { type = "svg", directory = "./svg" } = options;
|
|
913
914
|
const resolvedVirtualModuleId = "\0" + virtualModuleId;
|
|
914
915
|
if (type === "pub" && options.mobile) {
|
|
915
|
-
|
|
916
|
+
const outDir = join5("./public/", directory);
|
|
917
|
+
console.log("outDir", outDir);
|
|
916
918
|
runDev({
|
|
917
919
|
issort: true,
|
|
918
920
|
dir: "./node_modules/@fangzhongya/icons/dist/svg",
|
|
919
|
-
outDir
|
|
921
|
+
outDir,
|
|
920
922
|
extensions: ["svg"],
|
|
921
923
|
read: true,
|
|
922
924
|
fileCover: true,
|
|
@@ -941,9 +943,9 @@ export default defineComponent({
|
|
|
941
943
|
name: {
|
|
942
944
|
type: [String, Object],
|
|
943
945
|
},
|
|
944
|
-
|
|
946
|
+
default: {
|
|
945
947
|
type: String,
|
|
946
|
-
|
|
948
|
+
default: '${type}'
|
|
947
949
|
},
|
|
948
950
|
directory: {
|
|
949
951
|
type: String,
|
|
@@ -954,8 +956,8 @@ export default defineComponent({
|
|
|
954
956
|
return () => {
|
|
955
957
|
return h(FangIcon, {
|
|
956
958
|
...attrs,
|
|
957
|
-
type: props.type,
|
|
958
959
|
name: props.name,
|
|
960
|
+
default: props.default,
|
|
959
961
|
directory: props.directory
|
|
960
962
|
});
|
|
961
963
|
};
|