Skip to content

Commit

Permalink
docs(Select): 可过滤示例补充
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean-gao committed Aug 13, 2024
1 parent e36abac commit 769e0e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/.vitepress/components/select/filterable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
:key="item.label"
:value="item.value"
>
<FTextHighlight :searchValues="[filterText]" strict>{{ item.label }}</FTextHighlight>
<FEllipsis>
<FTextHighlight v-if="filterText" :searchValues="[filterText]" strict>{{ item.label }}</FTextHighlight>
<template v-else>{{ item.label }}</template>
</FEllipsis>
</FOption>
</FSelectGroupOption>
</FSelect>
Expand All @@ -60,7 +63,7 @@ const filterTextHighlight = ref(false);
const optionList = reactive([
{
value: 'HuNan',
label: '湖南',
label: '湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南',
},
{
value: 'HuBei',
Expand Down Expand Up @@ -91,7 +94,7 @@ const cityOptions = [
},
{
value: '湖南',
label: '湖南',
label: '湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南湖南',
},
{
value: '河南',
Expand Down

0 comments on commit 769e0e3

Please sign in to comment.