Vue-js-modal: Vue.extend component

Created on 7 Jun 2019  路  4Comments  路  Source: euvl/vue-js-modal

Problem:

Don't open modal with component created like a Vue.extend({}). But i want i use typescript

...

Example & screenshots:

https://codesandbox.io/s/vue-template-n9mz2
...

I have checked stackoverflow for solutions and 100% sure that issue not in my code.

stale

Most helpful comment

I have the same problem, and its a prerequiste to use typescript an Vue.extend in my project

All 4 comments

Hello everybody

I have the same issue
I have tried to find a reason

When you use component style like:
// SomeComponent.vue
export default { data() {} }

and
import SomeComponent from "./SomeComponent" typeof SomeComponent // object
but if you use some like
export default class SomeComponent extends Vue {}

and

import SomeComponent from "./SomeComponent" typeof SomeComponent // function

After that https://github.com/euvl/vue-js-modal/blob/master/src/ModalsContainer.vue#L38
The same job for 'function' and 'object'.

Well, I hope it helps.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed.

I have the same problem, and its a prerequiste to use typescript an Vue.extend in my project

Was this page helpful?
0 / 5 - 0 ratings