diff --git a/src/api/composition-api-helpers.md b/src/api/composition-api-helpers.md index 2a6cf4c1..a48ae9ad 100644 --- a/src/api/composition-api-helpers.md +++ b/src/api/composition-api-helpers.md @@ -35,12 +35,17 @@ props: Record, key: string, options?: DefineModelOptions - ) + ): ModelRef type DefineModelOptions = { get?: (v: T) => any set?: (v: T) => any } + + type ModelRef = Ref & [ + ModelRef, + Record + ] ``` - **示例**