@yzfe/vue3-svgicon
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,25 +0,71 @@ | ||
import { App } from 'vue'; | ||
import { App, PropType } from 'vue'; | ||
import { Props, Options, setOptions, Icon, IconData } from '@yzfe/svgicon'; | ||
declare const VueSvgIcon: { | ||
new (...args: any[]): import("vue").ComponentPublicInstance<Readonly<{ | ||
data?: any; | ||
width?: any; | ||
height?: any; | ||
scale?: any; | ||
dir?: any; | ||
color?: any; | ||
title?: any; | ||
fill?: any; | ||
original?: any; | ||
}>, {}, {}, {}, {}, Record<string, any>, import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, import("vue").ComponentOptionsBase<Readonly<{ | ||
data?: any; | ||
width?: any; | ||
height?: any; | ||
scale?: any; | ||
dir?: any; | ||
color?: any; | ||
title?: any; | ||
fill?: any; | ||
original?: any; | ||
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string>>; | ||
new (...args: any[]): { | ||
$: import("vue").ComponentInternalInstance; | ||
$data: {}; | ||
$props: {} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
fill?: boolean; | ||
original?: boolean; | ||
replace?: (svgInnerContent: string) => string; | ||
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps; | ||
$attrs: Record<string, unknown>; | ||
$refs: Record<string, unknown>; | ||
$slots: Readonly<{ | ||
[name: string]: import("vue").Slot; | ||
}>; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, string>>; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, string>>; | ||
$emit: (event: string, ...args: any[]) => void; | ||
$el: any; | ||
$options: import("vue").ComponentOptionsBase<{} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
fill?: boolean; | ||
original?: boolean; | ||
replace?: (svgInnerContent: string) => string; | ||
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string>; | ||
$forceUpdate: import("vue").ReactiveEffect<any>; | ||
$nextTick: typeof import("vue").nextTick; | ||
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle; | ||
} & {} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
fill?: boolean; | ||
original?: boolean; | ||
replace?: (svgInnerContent: string) => string; | ||
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & Readonly<{ | ||
fill: boolean; | ||
original: boolean; | ||
} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
replace?: (svgInnerContent: string) => string; | ||
}>; | ||
__isFragment?: never; | ||
@@ -29,43 +75,92 @@ __isTeleport?: never; | ||
} & import("vue").ComponentOptionsBase<Readonly<{ | ||
data?: any; | ||
width?: any; | ||
height?: any; | ||
scale?: any; | ||
dir?: any; | ||
color?: any; | ||
title?: any; | ||
fill?: any; | ||
original?: any; | ||
fill: boolean; | ||
original: boolean; | ||
} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
replace?: (svgInnerContent: string) => string; | ||
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string> & { | ||
props: ("data" | "width" | "height" | "scale" | "dir" | "color" | "title" | "fill" | "original")[]; | ||
props: { | ||
/** icon data */ | ||
data: { | ||
type: PropType<Icon>; | ||
}; | ||
width: { | ||
type: (StringConstructor | NumberConstructor)[]; | ||
}; | ||
height: { | ||
type: (StringConstructor | NumberConstructor)[]; | ||
}; | ||
scale: { | ||
type: (StringConstructor | NumberConstructor)[]; | ||
}; | ||
dir: { | ||
type: StringConstructor; | ||
}; | ||
color: { | ||
type: PropType<string | string[]>; | ||
}; | ||
stopColors: { | ||
type: PropType<string[]>; | ||
}; | ||
title: { | ||
type: StringConstructor; | ||
}; | ||
fill: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
original: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
replace: { | ||
type: PropType<(svgInnerContent: string) => string>; | ||
}; | ||
} & ThisType<void>; | ||
} & ThisType<import("vue").ComponentPublicInstance<Readonly<{ | ||
data?: any; | ||
width?: any; | ||
height?: any; | ||
scale?: any; | ||
dir?: any; | ||
color?: any; | ||
title?: any; | ||
fill?: any; | ||
original?: any; | ||
fill: boolean; | ||
original: boolean; | ||
} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
replace?: (svgInnerContent: string) => string; | ||
}>, {}, {}, {}, {}, Record<string, any>, Readonly<{ | ||
data?: any; | ||
width?: any; | ||
height?: any; | ||
scale?: any; | ||
dir?: any; | ||
color?: any; | ||
title?: any; | ||
fill?: any; | ||
original?: any; | ||
fill: boolean; | ||
original: boolean; | ||
} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
replace?: (svgInnerContent: string) => string; | ||
}>, import("vue").ComponentOptionsBase<Readonly<{ | ||
data?: any; | ||
width?: any; | ||
height?: any; | ||
scale?: any; | ||
dir?: any; | ||
color?: any; | ||
title?: any; | ||
fill?: any; | ||
original?: any; | ||
fill: boolean; | ||
original: boolean; | ||
} & { | ||
data?: Icon; | ||
width?: string | number; | ||
height?: string | number; | ||
scale?: string | number; | ||
dir?: string; | ||
color?: string | string[]; | ||
stopColors?: string[]; | ||
title?: string; | ||
replace?: (svgInnerContent: string) => string; | ||
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string>>>; | ||
@@ -72,0 +167,0 @@ declare const VueSvgIconPlugin: { |
import { defineComponent, h } from 'vue'; | ||
import { getPropKeys, svgIcon } from '@yzfe/svgicon'; | ||
import { svgIcon } from '@yzfe/svgicon'; | ||
export { setOptions } from '@yzfe/svgicon'; | ||
var VueSvgIcon = defineComponent({ | ||
props: getPropKeys(), | ||
props: { | ||
/** icon data */ | ||
data: { | ||
type: Object, | ||
}, | ||
width: { | ||
type: [String, Number], | ||
}, | ||
height: { | ||
type: [String, Number], | ||
}, | ||
scale: { | ||
type: [String, Number], | ||
}, | ||
dir: { | ||
type: String, | ||
}, | ||
color: { | ||
type: [String, Array], | ||
}, | ||
stopColors: { | ||
type: Array, | ||
}, | ||
title: { | ||
type: String, | ||
}, | ||
fill: { | ||
type: Boolean, | ||
default: true, | ||
}, | ||
original: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
replace: { | ||
type: Function, | ||
}, | ||
}, | ||
render: function () { | ||
@@ -8,0 +45,0 @@ var result = svgIcon(this.$props); |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("@yzfe/svgicon"),n=e.defineComponent({props:t.getPropKeys(),render:function(){var n=t.svgIcon(this.$props);return e.h("svg",{viewBox:n.box,style:n.style,class:n.className,innerHTML:n.path})}}),r={install:function(e,t){e.component(t.tagName,n)}};Object.defineProperty(exports,"setOptions",{enumerable:!0,get:function(){return t.setOptions}}),exports.VueSvgIcon=n,exports.VueSvgIconPlugin=r; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("@yzfe/svgicon"),r=e.defineComponent({props:{data:{type:Object},width:{type:[String,Number]},height:{type:[String,Number]},scale:{type:[String,Number]},dir:{type:String},color:{type:[String,Array]},stopColors:{type:Array},title:{type:String},fill:{type:Boolean,default:!0},original:{type:Boolean,default:!1},replace:{type:Function}},render:function(){var r=t.svgIcon(this.$props);return e.h("svg",{viewBox:r.box,style:r.style,class:r.className,innerHTML:r.path})}}),n={install:function(e,t){e.component(t.tagName,r)}};Object.defineProperty(exports,"setOptions",{enumerable:!0,get:function(){return t.setOptions}}),exports.VueSvgIcon=r,exports.VueSvgIconPlugin=n; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@yzfe/vue3-svgicon", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "SVG icon component for vue", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
"@yzfe/svgicon": ">=1.0.0", | ||
"vue": ">=3.0.0-0" | ||
"vue": ">=2.7.0" | ||
}, | ||
@@ -42,2 +42,3 @@ "devDependencies": { | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@yzfe/svgicon": "^1.1.1", | ||
"rollup": "^2.26.3", | ||
@@ -51,3 +52,3 @@ "rollup-plugin-peer-deps-external": "^2.2.3", | ||
}, | ||
"gitHead": "a31c6a0577ad803040db53ade8931461f2245f3b" | ||
"gitHead": "2c4b78ac756884dc05c1f0f64613286afadf0b7e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
16260
8
234
10
1