Skip to content

Import directive into component #41

@tomekole

Description

@tomekole

Is it possible to import directive to individual component in the way shown below?

import ??? from "v-drag";

export default defineComponent({
directives:{???},
})

The use case are nested components distributes as Custom Elements (Web Components), where app.use() is not working. All imports must be done in the component itself.

https://vuejs.org/guide/extras/web-components.html#building-custom-elements-with-vue

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions