@fangzhongya/icons 0.0.10 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767779324784,
4
+ "lastModified": 1767779740535,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
@@ -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
- console.log("runDev");
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: "./public/" + directory,
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
- type: {
946
+ default: {
945
947
  type: String,
946
- default: '${type}'
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
  };
@@ -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
- console.log("runDev");
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: "./public/" + directory,
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
- type: {
946
+ default: {
945
947
  type: String,
946
- default: '${type}'
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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzhongya/icons",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.0.10",
5
+ "version": "0.0.11",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",