mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
feat(icon): text type
This commit is contained in:
parent
46e38547bd
commit
1ccec634c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user