jd-opensource / drip-form

基于React和JSONSchema的动态表单解决方案

Home Page:https://jd-opensource.github.io/drip-form/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature(form): support common event callback

CrazyWood007 opened this issue · comments

commented

Is your feature request related to a problem? Please describe.

Some components maybe have common actions like sent a request, pop up a message and so on.
I want to fire a event and do some actions in the event callback.

Description

A Event callback mechanism, support async and await at the same time.

Describe the solution you'd like

Custom components can use fireEvent to throw a event and I can do actions in the event callback named onEvent to process it.

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.