mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
feat(Form): export loading state (#3861)
This commit is contained in:
@@ -278,6 +278,7 @@ defineExpose<Form<T>>({
|
|||||||
},
|
},
|
||||||
|
|
||||||
disabled,
|
disabled,
|
||||||
|
loading,
|
||||||
dirty: computed(() => !!dirtyFields.size),
|
dirty: computed(() => !!dirtyFields.size),
|
||||||
|
|
||||||
dirtyFields: readonly(dirtyFields) as DeepReadonly<Set<keyof T>>,
|
dirtyFields: readonly(dirtyFields) as DeepReadonly<Set<keyof T>>,
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export interface Form<T extends object> {
|
|||||||
submit (): Promise<void>
|
submit (): Promise<void>
|
||||||
disabled: ComputedRef<boolean>
|
disabled: ComputedRef<boolean>
|
||||||
dirty: ComputedRef<boolean>
|
dirty: ComputedRef<boolean>
|
||||||
|
loading: Ref<boolean>
|
||||||
|
|
||||||
dirtyFields: DeepReadonly<Set<keyof T>>
|
dirtyFields: DeepReadonly<Set<keyof T>>
|
||||||
touchedFields: DeepReadonly<Set<keyof T>>
|
touchedFields: DeepReadonly<Set<keyof T>>
|
||||||
|
|||||||
Reference in New Issue
Block a user