Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to set transform-origin for dialogs #3901

Closed
rajmondburgaj opened this issue Oct 20, 2022 · 2 comments
Closed

Add the option to set transform-origin for dialogs #3901

rajmondburgaj opened this issue Oct 20, 2022 · 2 comments
Labels
feature request New feature or request

Comments

@rajmondburgaj
Copy link

This function solves the problem (这个功能解决的问题)

I see there is an option to add :transform-origin="'center'" for simple modals, but seems there is no such thing for dialogs, or maybe I can not find it!

Would i be possible to add it as well, so we can have the same behavor for dialogs as well in wanted?

Expected API (期望的 API)

Add a new prop to set the :transform-origin="'center'" for dialogs

@github-actions github-actions bot added the feature request New feature or request label Oct 20, 2022
@jizai1125
Copy link
Contributor

jizai1125 commented Oct 21, 2022

I tried, it is support though not described in the document.

 dialog.create({
    title: 'title',
    content: 'content',
    transformOrigin: 'center',
 })

@07akioni
Copy link
Collaborator

I tried, it is support though not described in the document.

 dialog.create({
    title: 'title',
    content: 'content',
    transformOrigin: 'center',
 })

It should be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants