-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
3 changed files
with
14 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
<template> | ||
<h1>{{ value || '暂无' }}</h1> | ||
<f-select v-model="value" placeholder="请选择……"> | ||
<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> | ||
<script lang="ts" setup></script> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const value = ref('') | ||
setTimeout(() => { | ||
value.value = '' | ||
}, 2000) | ||
</script> | ||
<template></template> |