mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: update radio VCA doc (#2111)
This commit is contained in:
@@ -14,16 +14,26 @@ Radio should not have too many options. Otherwise, use the Select component inst
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
export default {
|
||||
setup() {
|
||||
const radio = ref('1')
|
||||
data () {
|
||||
return {
|
||||
radio
|
||||
}
|
||||
radio: '1'
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--
|
||||
<setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const radio = ref('1');
|
||||
return { radio }
|
||||
}
|
||||
}
|
||||
</setup>
|
||||
-->
|
||||
```
|
||||
:::
|
||||
|
||||
|
||||
@@ -20,6 +20,18 @@ El elemento Radio no debe tener muchas opciones. De otra manera, utilice el comp
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--
|
||||
<setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const radio = ref('1');
|
||||
return { radio }
|
||||
}
|
||||
}
|
||||
</setup>
|
||||
-->
|
||||
```
|
||||
:::
|
||||
|
||||
|
||||
@@ -22,6 +22,18 @@ Radio ne devrait pas avoir trop d'options. Dans ce cas utilisez plutôt Select.
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--
|
||||
<setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const radio = ref('1');
|
||||
return { radio }
|
||||
}
|
||||
}
|
||||
</setup>
|
||||
-->
|
||||
```
|
||||
:::
|
||||
|
||||
|
||||
@@ -22,6 +22,18 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--
|
||||
<setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const radio = ref('1');
|
||||
return { radio }
|
||||
}
|
||||
}
|
||||
</setup>
|
||||
-->
|
||||
```
|
||||
:::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user