feat: 更新 formkit 配置,优化插件结构并修改按钮点击事件逻辑
Some checks failed
/ test (push) Failing after 27s
/ surge (push) Successful in 35s

This commit is contained in:
严浩
2024-12-04 17:17:48 +08:00
parent 0afb696583
commit b65b6bf48e
3 changed files with 51 additions and 47 deletions

View File

@ -105,7 +105,7 @@ async function submit(formData: Record<string, any>, formNode: FormKitNode) {
label="Button"
@click="() => {
value!.button = value!.button || {};
(value!.button as any).clicked = 'clicked';
(value!.button as any).clicked = 'clicked-这个值在@submit回调的formData里不会出现';
(value!.group as any)['text-in-group-1'] = 'changed-by-button';
}"
/>