feat(icon): text type

This commit is contained in:
07akioni 2020-02-18 13:02:45 +08:00
parent 46e38547bd
commit 1ccec634c2

View File

@ -10,6 +10,18 @@ export default {
type: [Number, String],
default: null
},
primary: {
type: Boolean,
default: false
},
secondary: {
type: Boolean,
default: false
},
tertiary: {
type: Boolean,
default: false
},
color: {
type: String,
default: null
@ -32,6 +44,12 @@ export default {
else {
return h('i', {
staticClass: 'n-icon',
class: {
[`n-${this.syntheticTheme}-theme`]: this.syntheticTheme,
'n-icon--primary': this.primary,
'n-icon--secondary': this.secondary,
'n-icon--tertiary': this.tertiary
},
style: {
...this.styles,
...this.syntheticStyle