Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/feather-icons.esm.js

Large diffs are not rendered by default.

20 changes: 16 additions & 4 deletions lib/vue-feather-plugin.esm.js

Large diffs are not rendered by default.

20 changes: 16 additions & 4 deletions lib/vue-feather.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/vue-feather.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/feather-icons.js

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions src/vue-feather.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ export default {
classPrefix: {
type: String,
default: 'icon-'
},
stroke: {
type: String,
default: 'currentColor'
},
strokeWidth: {
type: Number,
default: 2
},
fill: {
type: String,
default: "none"
}
},
render (h) {
Expand Down Expand Up @@ -98,9 +110,9 @@ export default {
class: [this.baseClass, this.classPrefix + this.name],
attrs: {
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
"stroke-width": "2",
fill: this.fill,
stroke: this.stroke,
"stroke-width": `${this.strokeWidth}`,
"stroke-linecap": "round",
"stroke-linejoin": "round"
}
Expand Down
13 changes: 10 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,11 @@ core-js@^2.4.0, core-js@^2.5.0:
version "2.5.3"
resolved "http://registry.npm.taobao.org/core-js/download/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e"

core-js@^3.1.3:
version "3.6.5"
resolved "https://registry.npm.taobao.org/core-js/download/core-js-3.6.5.tgz#7395dc273af37fb2e50e9bd3d9fe841285231d1a"
integrity sha1-c5XcJzrzf7LlDpvT2f6EEoUjHRo=

[email protected], core-util-is@~1.0.0:
version "1.0.2"
resolved "http://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
Expand Down Expand Up @@ -1963,11 +1968,13 @@ faye-websocket@~0.11.0:
dependencies:
websocket-driver ">=0.5.1"

feather-icons@^4.5.0:
version "4.5.0"
resolved "http://registry.npm.taobao.org/feather-icons/download/feather-icons-4.5.0.tgz#5c0a38fe4633e88a14cc8d7aa822e2591828027d"
feather-icons@^4.26.0:
version "4.28.0"
resolved "https://registry.npm.taobao.org/feather-icons/download/feather-icons-4.28.0.tgz#e1892a401fe12c4559291770ff6e68b0168e760f"
integrity sha1-4YkqQB/hLEVZKRdw/25osBaOdg8=
dependencies:
classnames "^2.2.5"
core-js "^3.1.3"

filename-regex@^2.0.0:
version "2.0.1"
Expand Down