mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
fix(detachable): add default value for injected NApp
This commit is contained in:
parent
82573a95df
commit
130ab7f843
@ -7,7 +7,11 @@
|
||||
* @prop {HTMLElement} detachTarget determine where should $refs.contentContainer to be detached
|
||||
*/
|
||||
export default {
|
||||
inject: [ 'NApp' ],
|
||||
inject: {
|
||||
NApp: {
|
||||
default: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
namespace () {
|
||||
return (this.NApp && this.NApp.namespace) || null
|
||||
|
Loading…
Reference in New Issue
Block a user