quasar icon indicating copy to clipboard operation
quasar copied to clipboard

How to use `Dialog Plugin` to implement asynchronous commit operations?

Open a81n9 opened this issue 1 year ago • 3 comments

Description

I want to use Dialog Plugin to implement asynchronous submission functionality.

It's like this https://element-plus.org/en-US/component/message-box.html#customization

element-plus/message-box

Just like this

Documentation Section URL

https://element-plus.org/en-US/component/message-box.html#customization

Flavour

Vite Plugin (@quasar/vite-plugin)

Areas

Plugins (quasar)

a81n9 avatar Apr 18 '24 03:04 a81n9

I can indeed use the dialog component to achieve this operation, but the writing method is not as simple as using the dialog plugin $q.dialog to create a dialog box.

a81n9 avatar Apr 18 '24 03:04 a81n9

The ElementPlus Message Box is implemented in this way:

elementPlus/messageBox

a81n9 avatar Apr 18 '24 03:04 a81n9

You should use a custom Dialog component: https://github.com/quasarframework/quasar/pull/17121#issuecomment-2268955999 https://quasar.dev/quasar-plugins/dialog#invoking-custom-component

stefanvanherwijnen avatar Aug 09 '24 15:08 stefanvanherwijnen