From dfb5f07b540ddda74e28887f5efa17fc1744b0c4 Mon Sep 17 00:00:00 2001 From: GU Yiling Date: Sat, 26 Oct 2024 11:37:09 +0800 Subject: [PATCH] feat(kselect): add `before` slot (#2481) --- docs/components/select.md | 20 ++++++++++++++++---- sandbox/pages/SandboxSelect.vue | 9 +++++++++ src/components/KSelect/KSelect.vue | 6 ++++++ 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/docs/components/select.md b/docs/components/select.md index 62da931c1b..db16a0b651 100644 --- a/docs/components/select.md +++ b/docs/components/select.md @@ -597,7 +597,7 @@ A slot alternative for [`dropdownFooterText` prop](#dropdownfootertext). ### loading -Content to be displayed when [`loading` prop](#loading-1) is `true`. Note that this prop only applies when `enableFiltering` is `true`. +Content to be displayed when [`loading` prop](#loading-1) is `true`. Note that this slot only applies when `enableFiltering` is `true`. @@ -642,7 +642,7 @@ Slot to display custom content when items is empty or no items match filter quer ### label-tooltip -Use this prop to pass any custom content to label tooltip. +Use this slot to pass any custom content to label tooltip. @@ -656,6 +656,18 @@ Use this prop to pass any custom content to label tooltip. ``` +### before + +Use this slot for inserting icons before the input field. + + + + + + + ## Events ### selected @@ -684,7 +696,7 @@ Event payload is removed [item](#items).