quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.28k stars 3.43k forks source link

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

Open AAABingBing opened 3 weeks ago

AAABingBing commented 3 weeks ago

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)

AAABingBing commented 3 weeks ago

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.

AAABingBing commented 3 weeks ago

The ElementPlus Message Box is implemented in this way:

elementPlus/messageBox