-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(select): 列表展开时定位置选中项 列表展开时定位置选中项 closed #111 * fix(select): 事例优化 * feat(select): 修改 expose 数据命名 * feat(select): 使用provide inject传递参数 Co-authored-by: 18651688439 <1164668598@qq.com>
- Loading branch information
Showing
8 changed files
with
439 additions
and
170 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<t-space> | ||
<t-select v-model="value1" :options="options1" placeholder="请选择" /> | ||
<t-select v-model="value2" :options="options1" placeholder="请选择" multiple /> | ||
</t-space> | ||
</template> | ||
<script setup lang="jsx"> | ||
import { ref } from 'vue'; | ||
const options = []; | ||
for (let i = 0; i < 100; i++) { | ||
options.push({ label: `第 ${i} 项`, value: i }); | ||
} | ||
const options1 = options; | ||
const value1 = ref(50); | ||
const value2 = ref([50, 70]); | ||
</script> |
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
Oops, something went wrong.