Skip to content

Mixins for setup method #1866

Closed
Closed
@NMFES

Description

What problem does this feature solve?

Is there ability to use common mixin file with setup method for several components?

// mixin.js

export default {
    setup: => { console.log(123); }
}

// component.js

import mixin from 'mixin.js';
export default {
    mixins: [mixin], // <- "setup is not available, but data-property or any other methods work"
}

What does the proposed API look like?

idk

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