naive-ui/packages/mixins/withapp.js

13 lines
173 B
JavaScript

export default {
inject: {
NApp: {
default: null
}
},
computed: {
namespace () {
return (this.NApp && this.NApp.namespace) || null
}
}
}