feat(mixins/themeable): support theme

This commit is contained in:
07akioni 2019-09-17 19:29:27 +08:00
parent fb89fb42bf
commit 2002eb8752

View File

@ -0,0 +1,17 @@
export default {
props: {
theme: {
type: String,
default: null
}
},
computed: {
synthesizedTheme () {
if (this.theme !== null) {
return this.theme
} else {
return (this.NApp && this.NApp.theme) || 'default'
}
}
}
}