Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

In Vue2 and vue-class-component 7.2.3, how can i add a properties to the Object 'this' #641

Open
@toplyb

Description

@toplyb

In theshims-vue.d.ts file:

importVuefrom'vue';declare module'vue/types/vue'{interfaceVue{$messageBox:any;}}declare module'*.vue'{importVuefrom'vue';exportdefaultVue;}declare module'*.js';

I want to add the '$messageBox' in 'this', but i got the error in Vue component file:
image
My code is :

@Component({  components: {    [Dialog.Component.name]: Dialog.Component,  },})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp