From 3e43819ba1d0e1d0c2db654655c2e03eee5a8294 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Sat, 13 Apr 2024 23:08:46 +0800 Subject: [PATCH] rewrite MkFormDialog --- .../client/src/components/MkFormDialog.vue | 195 +++++++++--------- packages/client/src/os.ts | 17 +- packages/client/src/types/form.ts | 123 +++++++++++ 3 files changed, 228 insertions(+), 107 deletions(-) create mode 100644 packages/client/src/types/form.ts diff --git a/packages/client/src/components/MkFormDialog.vue b/packages/client/src/components/MkFormDialog.vue index 11f1d63e29..6007ade2f2 100644 --- a/packages/client/src/components/MkFormDialog.vue +++ b/packages/client/src/components/MkFormDialog.vue @@ -8,7 +8,7 @@ @click="cancel()" @ok="ok()" @close="cancel()" - @closed="$emit('closed')" + @closed="emit('closed')" >