@fangzhongya/icons 0.0.29 → 0.0.30

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.
@@ -2,7 +2,7 @@
2
2
  var index_default = {
3
3
  prefix: "fang-icons",
4
4
  info: {},
5
- lastModified: 1767880405257,
5
+ lastModified: 1767880789573,
6
6
  icons: {
7
7
  bar: {
8
8
  body: '<path d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>'
@@ -2,7 +2,7 @@
2
2
  var index_default = {
3
3
  prefix: "fang-icons",
4
4
  info: {},
5
- lastModified: 1767880405257,
5
+ lastModified: 1767880789573,
6
6
  icons: {
7
7
  bar: {
8
8
  body: '<path d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>'
package/dist/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767880405257,
4
+ "lastModified": 1767880789573,
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>"
package/dist/json.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk73TKL5VLcjs = require('./chunk-73TKL5VL.cjs');
3
+ var _chunkAVF7TFLUcjs = require('./chunk-AVF7TFLU.cjs');
4
4
  require('./chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.default = _chunk73TKL5VLcjs.json_default;
7
+ exports.default = _chunkAVF7TFLUcjs.json_default;
package/dist/json.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  var prefix = "fang-icons";
2
2
  var info = {
3
3
  };
4
- var lastModified = 1767880405257;
4
+ var lastModified = 1767880789573;
5
5
  var icons = {
6
6
  bar: {
7
7
  body: "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
package/dist/json.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  var prefix = "fang-icons";
2
2
  var info = {
3
3
  };
4
- var lastModified = 1767880405257;
4
+ var lastModified = 1767880789573;
5
5
  var icons = {
6
6
  bar: {
7
7
  body: "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
package/dist/json.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  json_default
3
- } from "./chunk-6H7WLSYF.js";
3
+ } from "./chunk-T6CBSQ63.js";
4
4
  import "./chunk-MLKGABMK.js";
5
5
  export {
6
6
  json_default as default
@@ -14,10 +14,10 @@ var picker_default = _vue.defineComponent.call(void 0, {
14
14
  name: "Picker",
15
15
  props: {
16
16
  icon: {
17
- type: Object
17
+ type: [Object, String]
18
18
  },
19
19
  dialog: {
20
- type: Object
20
+ type: [Object, String]
21
21
  },
22
22
  clearable: {
23
23
  type: Boolean
@@ -87,6 +87,17 @@ var picker_default = _vue.defineComponent.call(void 0, {
87
87
  return _chunkPUWPNLDYcjs.icon_default;
88
88
  }
89
89
  });
90
+ const dialogVue = _vue.computed.call(void 0, () => {
91
+ if (props.dialog) {
92
+ if (typeof props.dialog === "string") {
93
+ return _vue.resolveComponent.call(void 0, props.dialog);
94
+ } else {
95
+ return props.dialog;
96
+ }
97
+ } else {
98
+ return _chunkEEMF44IHcjs.dialog_default;
99
+ }
100
+ });
90
101
  let size = props.size;
91
102
  if (typeof size === "number") {
92
103
  size = size + "px";
@@ -157,7 +168,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
157
168
  ]
158
169
  ),
159
170
  _vue.h.call(void 0,
160
- props.dialog || _chunkEEMF44IHcjs.dialog_default,
171
+ dialogVue.value,
161
172
  {
162
173
  title: "\u9009\u62E9\u56FE\u6807",
163
174
  modelValue: box.value,
@@ -22,10 +22,10 @@ type Icons = {
22
22
  };
23
23
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
24
24
  icon: {
25
- type: ObjectConstructor;
25
+ type: (ObjectConstructor | StringConstructor)[];
26
26
  };
27
27
  dialog: {
28
- type: ObjectConstructor;
28
+ type: (ObjectConstructor | StringConstructor)[];
29
29
  };
30
30
  clearable: {
31
31
  type: BooleanConstructor;
@@ -63,10 +63,10 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
63
63
  [key: string]: any;
64
64
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
65
65
  icon: {
66
- type: ObjectConstructor;
66
+ type: (ObjectConstructor | StringConstructor)[];
67
67
  };
68
68
  dialog: {
69
- type: ObjectConstructor;
69
+ type: (ObjectConstructor | StringConstructor)[];
70
70
  };
71
71
  clearable: {
72
72
  type: BooleanConstructor;
@@ -22,10 +22,10 @@ type Icons = {
22
22
  };
23
23
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
24
24
  icon: {
25
- type: ObjectConstructor;
25
+ type: (ObjectConstructor | StringConstructor)[];
26
26
  };
27
27
  dialog: {
28
- type: ObjectConstructor;
28
+ type: (ObjectConstructor | StringConstructor)[];
29
29
  };
30
30
  clearable: {
31
31
  type: BooleanConstructor;
@@ -63,10 +63,10 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
63
63
  [key: string]: any;
64
64
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
65
65
  icon: {
66
- type: ObjectConstructor;
66
+ type: (ObjectConstructor | StringConstructor)[];
67
67
  };
68
68
  dialog: {
69
- type: ObjectConstructor;
69
+ type: (ObjectConstructor | StringConstructor)[];
70
70
  };
71
71
  clearable: {
72
72
  type: BooleanConstructor;
@@ -14,10 +14,10 @@ var picker_default = defineComponent({
14
14
  name: "Picker",
15
15
  props: {
16
16
  icon: {
17
- type: Object
17
+ type: [Object, String]
18
18
  },
19
19
  dialog: {
20
- type: Object
20
+ type: [Object, String]
21
21
  },
22
22
  clearable: {
23
23
  type: Boolean
@@ -87,6 +87,17 @@ var picker_default = defineComponent({
87
87
  return icon_default;
88
88
  }
89
89
  });
90
+ const dialogVue = computed(() => {
91
+ if (props.dialog) {
92
+ if (typeof props.dialog === "string") {
93
+ return resolveComponent(props.dialog);
94
+ } else {
95
+ return props.dialog;
96
+ }
97
+ } else {
98
+ return dialog_default;
99
+ }
100
+ });
90
101
  let size = props.size;
91
102
  if (typeof size === "number") {
92
103
  size = size + "px";
@@ -157,7 +168,7 @@ var picker_default = defineComponent({
157
168
  ]
158
169
  ),
159
170
  h(
160
- props.dialog || dialog_default,
171
+ dialogVue.value,
161
172
  {
162
173
  title: "\u9009\u62E9\u56FE\u6807",
163
174
  modelValue: box.value,
@@ -4,7 +4,7 @@
4
4
  var _chunk6CU3NPDGcjs = require('../chunk-6CU3NPDG.cjs');
5
5
 
6
6
 
7
- var _chunk73TKL5VLcjs = require('../chunk-73TKL5VL.cjs');
7
+ var _chunkAVF7TFLUcjs = require('../chunk-AVF7TFLU.cjs');
8
8
  require('../chunk-3376ZTRC.cjs');
9
9
  require('../chunk-IIVF4KK5.cjs');
10
10
  require('../chunk-75ZPJI57.cjs');
@@ -1222,7 +1222,7 @@ function findComponents(code, name) {
1222
1222
  return components;
1223
1223
  }
1224
1224
  function getText(iconName, match) {
1225
- const svg = _chunk6CU3NPDGcjs.getIconifySVG.call(void 0, _chunk73TKL5VLcjs.json_default, iconName, 'v-bind="scope"');
1225
+ const svg = _chunk6CU3NPDGcjs.getIconifySVG.call(void 0, _chunkAVF7TFLUcjs.json_default, iconName, 'v-bind="scope"');
1226
1226
  const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
1227
1227
  const text = `${s}<template #default="scope">${svg}</template></${match.componentName}>`;
1228
1228
  return { text, imptext: "" };
@@ -1248,7 +1248,7 @@ function replaceComponent(match, type, dynamic, customReplacement) {
1248
1248
  if (customReplacement) {
1249
1249
  return customReplacement(iconName, attributes);
1250
1250
  }
1251
- let svgContent = _chunk73TKL5VLcjs.json_default.icons[iconName];
1251
+ let svgContent = _chunkAVF7TFLUcjs.json_default.icons[iconName];
1252
1252
  if (!svgContent) {
1253
1253
  return { text: match.fullMatch, imptext: "" };
1254
1254
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-7QX4NRMQ.js";
5
5
  import {
6
6
  json_default
7
- } from "../chunk-6H7WLSYF.js";
7
+ } from "../chunk-T6CBSQ63.js";
8
8
  import "../chunk-BYXBJQAS.js";
9
9
  import "../chunk-MOHILOKE.js";
10
10
  import "../chunk-MLKGABMK.js";
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.29",
5
+ "version": "0.0.30",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",