From 3b73e77774d773e72590f7a5249434834dcc9258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B6=85=E6=A5=A0?= <649298859@qq.com> Date: Fri, 31 Mar 2017 19:04:20 +0800 Subject: [PATCH] update index.md to optimize model's option usage update model's option usage doc and it will be more clearly --- src/v2/api/index.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index ec8b53973c..173b29b838 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -1048,7 +1048,12 @@ All lifecycle hooks automatically have their `this` context bound to the instanc }, props: { // this allows using the `value` prop for a different purpose - value: String + value: String, + // use `checked` as the prop which take the place of `value` + checked: { + type: Number, + default: 0 + } }, // ... })