Skip to content

How to use slot option in dynamic show() api dont' need pass component property ? #57

@kytosai

Description

@kytosai

Version

vue-final-modal: v3.0.0
vue: v3.0.7

OS

Mac

What is Expected?

I hope can pass a string to slot.default option in dynamic show (), but don't work because slot required component property.

Exam:

$vfm?.show({
  component: TestModal,
  bind: {
    name: 'test-modal',
  },
  on: {
    opened() {
      console.log('@opened');
    },
    closed() {
      console.log('@closed');
    }
  },
  slots: {
    default: "Content with string value", // It don't work
  },
});

I think this is unnecessary and has to create unnecessary redundant components

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions