Skip to content

Commit

Permalink
perf: optimize types
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-hearts committed Sep 4, 2024
1 parent 04d0597 commit c8c253e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/helpers/form-schema/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Ref, ComputedRef } from 'vue'

export interface Options {
label: string
value: any
Expand Down Expand Up @@ -65,7 +67,7 @@ export interface FormSchema {
* @default '-'
*/
componentProperty?: {
options?: Options[] // select options
options?: Ref<Options[]> | ComputedRef<Options[]> // select options
[props: string]: any
}
}
Expand Down

0 comments on commit c8c253e

Please sign in to comment.