-
-
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
组件配置 filter
绑定值错误的问题
- Loading branch information
Showing
5 changed files
with
8 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,3 @@ | ||
<template> | ||
<f-button type="primary" @click="visible1 = true">打开</f-button> | ||
<script lang="ts" setup></script> | ||
|
||
<f-dialog v-model:visible="visible1" title="标题文字" :on-close-end="closeEnd"> | ||
这是一个 Dialog | ||
<f-select v-model="value" placeholder="请选择……" filter> | ||
<f-option v-for="(item, index) in data" :key="index" :value="item.id">{{ | ||
item.name | ||
}}</f-option> | ||
</f-select> | ||
|
||
<f-up-load v-model:files="files" show-list multiple :on-change="change"></f-up-load> | ||
|
||
<template #footer> | ||
<f-button type="default">默认按钮</f-button> | ||
<f-button type="primary">主要按钮</f-button> | ||
</template> | ||
</f-dialog> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const value = ref('') | ||
const visible1 = ref(false) | ||
const files = ref([]) | ||
const closeEnd = () => { | ||
files.value = [] | ||
console.log(files.value) | ||
} | ||
const change = file => { | ||
console.log(file) | ||
} | ||
const data = ref([ | ||
{ id: 1, name: '张三' }, | ||
{ id: 2, name: '李四' }, | ||
{ id: 3, name: '王五' }, | ||
{ id: 4, name: '赵六' }, | ||
{ id: 5, name: '神器' }, | ||
{ id: 6, name: '奇迹' } | ||
]) | ||
</script> | ||
<template></template> |