diff --git a/docs/en-US/component/checkbox.md b/docs/en-US/component/checkbox.md index 9d2714abba..44c6cd6cec 100644 --- a/docs/en-US/component/checkbox.md +++ b/docs/en-US/component/checkbox.md @@ -5,15 +5,29 @@ lang: en-US # Checkbox +A group of options for multiple choices. + :::warning `label` act as `value` has been **deprecated**, `label` is used only as display text, this action **will be** removed in ^(3.0.0), consider switching to new API. -New API `value` has been added in ^(2.6.0), you can use `value` API to set the value of Checkbox. +::: + +:::tip + +New API `value` has been added in ^(2.6.0), the examples in the document all use the `value`. +If you are using a version **less than** ^(2.6.0) and using `checkbox-group`, please refer to: ::: -A group of options for multiple choices. +``` vue + + + + + + +``` ## Basic usage diff --git a/docs/en-US/component/radio.md b/docs/en-US/component/radio.md index 6a2920d11e..d4fbe8ed1f 100644 --- a/docs/en-US/component/radio.md +++ b/docs/en-US/component/radio.md @@ -5,15 +5,29 @@ lang: en-US # Radio +Single selection among multiple options. + :::warning `label` act as `value` has been **deprecated**, `label` is used only as display text, this action **will be** removed in ^(3.0.0), consider switching to new API. -New API `value` has been added in ^(2.6.0), you can use `value` API to set the value of Radio. +::: + +:::tip + +New API `value` has been added in ^(2.6.0), the examples in the document all use the `value`. +If you are using a version **less than** ^(2.6.0), please refer to: ::: -Single selection among multiple options. +``` vue + + + Option 1 + + Option 2 + +``` ## Basic usage diff --git a/docs/examples/checkbox/basic.vue b/docs/examples/checkbox/basic.vue index 4cc74be643..57c56c7c91 100644 --- a/docs/examples/checkbox/basic.vue +++ b/docs/examples/checkbox/basic.vue @@ -3,18 +3,14 @@ -
+
-
+
-
- - -
diff --git a/docs/examples/radio/basic-usage.vue b/docs/examples/radio/basic-usage.vue index ea3c5ecce0..4a9f1cb863 100644 --- a/docs/examples/radio/basic-usage.vue +++ b/docs/examples/radio/basic-usage.vue @@ -1,24 +1,18 @@