From 3c66cb5d9c7e70dd1815fc70d3974212989773b8 Mon Sep 17 00:00:00 2001 From: zernonia Date: Thu, 13 Feb 2025 11:25:59 +0800 Subject: [PATCH] docs: update controlling value in select --- docs/content/docs/components/select.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/components/select.md b/docs/content/docs/components/select.md index 099eb78a7..f493afd3c 100644 --- a/docs/content/docs/components/select.md +++ b/docs/content/docs/components/select.md @@ -528,11 +528,11 @@ import { ### Controlling the value displayed in the trigger -By default the trigger will automatically display the selected item `ItemText`'s content. You can control what appears by choosing to put things inside/outside the `ItemText` part. +By default the trigger display the selected item's text (no longer automatically render `ItemText`'s content like in v1). -If you need more flexibility, you can control the component using `v-model` props and passing `slot` to `SelectValue`. Remember to make sure what you put in there is accessible. +If you need to render other than plain text, you can control the component using `v-model` props (or accessing `SelectValue`'s slotProps) and passing `slot` to `SelectValue`. Remember to make sure what you put in there is accessible. -```vue line=2,4,8 +```vue line=2,4,10-12