@fangzhongya/icons 0.0.28 → 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.
- package/dist/{chunk-6HEYV6HJ.cjs → chunk-AVF7TFLU.cjs} +1 -1
- package/dist/{chunk-2LL6OGUU.cjs → chunk-PUWPNLDY.cjs} +1 -2
- package/dist/{chunk-TGMIXPQX.js → chunk-T6CBSQ63.js} +1 -1
- package/dist/{chunk-TKF4GGHW.js → chunk-WBRCD7JF.js} +1 -2
- package/dist/icon/index.cjs +2 -2
- package/dist/icon/index.js +1 -1
- package/dist/index.json +1 -1
- package/dist/json.cjs +2 -2
- package/dist/json.d.cts +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/json.js +1 -1
- package/dist/picker/index.cjs +17 -6
- package/dist/picker/index.d.cts +5 -5
- package/dist/picker/index.d.ts +5 -5
- package/dist/picker/index.js +15 -4
- package/dist/vite/index.cjs +3 -3
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
|
@@ -228,8 +228,8 @@ var icon_default = _vue.defineComponent.call(void 0, {
|
|
|
228
228
|
} else if (outputType.value === "pub") {
|
|
229
229
|
const src = props.directory + "/" + outputName.value + ".svg";
|
|
230
230
|
return _vue.h.call(void 0, "img", {
|
|
231
|
+
class: [props.iconClass],
|
|
231
232
|
style: contStyle,
|
|
232
|
-
alt: "svg",
|
|
233
233
|
src
|
|
234
234
|
});
|
|
235
235
|
} else if (outputType.value === "css" || outputType.value === "font") {
|
|
@@ -241,7 +241,6 @@ var icon_default = _vue.defineComponent.call(void 0, {
|
|
|
241
241
|
return _vue.h.call(void 0, "img", {
|
|
242
242
|
class: [props.iconClass],
|
|
243
243
|
style: contStyle,
|
|
244
|
-
alt: "svg",
|
|
245
244
|
src: outputName.value
|
|
246
245
|
});
|
|
247
246
|
} else if (outputType.value === "svg") {
|
|
@@ -228,8 +228,8 @@ var icon_default = defineComponent({
|
|
|
228
228
|
} else if (outputType.value === "pub") {
|
|
229
229
|
const src = props.directory + "/" + outputName.value + ".svg";
|
|
230
230
|
return h("img", {
|
|
231
|
+
class: [props.iconClass],
|
|
231
232
|
style: contStyle,
|
|
232
|
-
alt: "svg",
|
|
233
233
|
src
|
|
234
234
|
});
|
|
235
235
|
} else if (outputType.value === "css" || outputType.value === "font") {
|
|
@@ -241,7 +241,6 @@ var icon_default = defineComponent({
|
|
|
241
241
|
return h("img", {
|
|
242
242
|
class: [props.iconClass],
|
|
243
243
|
style: contStyle,
|
|
244
|
-
alt: "svg",
|
|
245
244
|
src: outputName.value
|
|
246
245
|
});
|
|
247
246
|
} else if (outputType.value === "svg") {
|
package/dist/icon/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPUWPNLDYcjs = require('../chunk-PUWPNLDY.cjs');
|
|
4
4
|
require('../chunk-3376ZTRC.cjs');
|
|
5
5
|
require('../chunk-IIVF4KK5.cjs');
|
|
6
6
|
require('../chunk-75ZPJI57.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkPUWPNLDYcjs.icon_default;
|
package/dist/icon/index.js
CHANGED
package/dist/index.json
CHANGED
package/dist/json.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAVF7TFLUcjs = require('./chunk-AVF7TFLU.cjs');
|
|
4
4
|
require('./chunk-75ZPJI57.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = _chunkAVF7TFLUcjs.json_default;
|
package/dist/json.d.cts
CHANGED
package/dist/json.d.ts
CHANGED
package/dist/json.js
CHANGED
package/dist/picker/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPUWPNLDYcjs = require('../chunk-PUWPNLDY.cjs');
|
|
4
4
|
require('../chunk-3376ZTRC.cjs');
|
|
5
5
|
require('../chunk-IIVF4KK5.cjs');
|
|
6
6
|
|
|
@@ -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
|
|
@@ -84,7 +84,18 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
84
84
|
return props.icon;
|
|
85
85
|
}
|
|
86
86
|
} else {
|
|
87
|
-
return
|
|
87
|
+
return _chunkPUWPNLDYcjs.icon_default;
|
|
88
|
+
}
|
|
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;
|
|
88
99
|
}
|
|
89
100
|
});
|
|
90
101
|
let size = props.size;
|
|
@@ -157,7 +168,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
157
168
|
]
|
|
158
169
|
),
|
|
159
170
|
_vue.h.call(void 0,
|
|
160
|
-
|
|
171
|
+
dialogVue.value,
|
|
161
172
|
{
|
|
162
173
|
title: "\u9009\u62E9\u56FE\u6807",
|
|
163
174
|
modelValue: box.value,
|
|
@@ -288,7 +299,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
288
299
|
}
|
|
289
300
|
},
|
|
290
301
|
[
|
|
291
|
-
_vue.h.call(void 0,
|
|
302
|
+
_vue.h.call(void 0, _chunkPUWPNLDYcjs.icon_default, {
|
|
292
303
|
style: {
|
|
293
304
|
margin: "5px",
|
|
294
305
|
marginBottom: 0,
|
package/dist/picker/index.d.cts
CHANGED
|
@@ -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;
|
|
@@ -103,8 +103,8 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
103
103
|
}>> & Readonly<{
|
|
104
104
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
105
105
|
}>, {
|
|
106
|
-
clearable: boolean;
|
|
107
106
|
size: string | number;
|
|
107
|
+
clearable: boolean;
|
|
108
108
|
icons: Icons;
|
|
109
109
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
110
110
|
|
package/dist/picker/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -103,8 +103,8 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
103
103
|
}>> & Readonly<{
|
|
104
104
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
105
105
|
}>, {
|
|
106
|
-
clearable: boolean;
|
|
107
106
|
size: string | number;
|
|
107
|
+
clearable: boolean;
|
|
108
108
|
icons: Icons;
|
|
109
109
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
110
110
|
|
package/dist/picker/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
icon_default
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WBRCD7JF.js";
|
|
4
4
|
import "../chunk-BYXBJQAS.js";
|
|
5
5
|
import "../chunk-MOHILOKE.js";
|
|
6
6
|
import {
|
|
@@ -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
|
-
|
|
171
|
+
dialogVue.value,
|
|
161
172
|
{
|
|
162
173
|
title: "\u9009\u62E9\u56FE\u6807",
|
|
163
174
|
modelValue: box.value,
|
package/dist/vite/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunk6CU3NPDGcjs = require('../chunk-6CU3NPDG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
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,
|
|
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 =
|
|
1251
|
+
let svgContent = _chunkAVF7TFLUcjs.json_default.icons[iconName];
|
|
1252
1252
|
if (!svgContent) {
|
|
1253
1253
|
return { text: match.fullMatch, imptext: "" };
|
|
1254
1254
|
}
|
package/dist/vite/index.js
CHANGED