-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 修复
f-select
组件在筛选之后,直接失去焦点关闭下拉选项再次打开时依然显示过滤的内容问题
- Loading branch information
Showing
6 changed files
with
59 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const value = ref('1') | ||
const value = ref('') | ||
// setTimeout(() => { | ||
// value.value = '1' | ||
// setTimeout(() => { | ||
// value.value = '3' | ||
// setTimeout(() => { | ||
// value.value = '' | ||
// }, 1000) | ||
// }, 1000) | ||
// }, 1000) | ||
</script> | ||
|
||
<template> | ||
<f-input v-model="value" clear></f-input> | ||
<f-select v-model="value" placeholder="请选择……" clear filter> | ||
<f-option :value="1">香蕉</f-option> | ||
<f-option :value="2">苹果</f-option> | ||
<f-option :value="3">哈密瓜</f-option> | ||
<f-option :value="4">樱桃</f-option> | ||
<!-- <f-input v-model="value" clear></f-input> --> | ||
<h1>{{ value || '无' }}</h1> | ||
<f-select v-model="value" placeholder="请选择……" filter> | ||
<f-option value="1">香蕉</f-option> | ||
<f-option value="2">苹果</f-option> | ||
<f-option value="3">哈密瓜</f-option> | ||
<f-option value="4">樱桃</f-option> | ||
</f-select> | ||
</template> |