Skip to content

Dynamic modals #10

@dominykasgithub

Description

@dominykasgithub

Hello,

I'm transitioning from vue2 to vue3 and I was using vue-js-modal, but owner won't update package for a year as you can see his reply here (euvl/vue-js-modal#626)

So I decided to use this modal but it lacks features, so I'll build them myself, but I want to suggest copying dynamic modals creations like:

methods: {
            createDynamicModal(){
                this.$modal.show(SideModalReadMore, //just imported component
                    { //component props
                        product: this.product,
                        locale: this.locale,
                        isInit: this.isInit,
                    },
                    { //modal props
                        name: 'side-page-modal',
                        style: 'z-index: 99999',
                        class: "side-page-modal",
                        transition: "scale"
                    },
                    {} //events
                )
            },
        },

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions