mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 13:08:48 +08:00
9be58078d2
* feat(demo): A-B * feat(demo): update B-checkbox * feat(demo): update CheckBox -DatePicker * feat(demo): update DatePicker - Form * feat(demo): update Form - List * feat(demo): update List-pagination * feat(demo): update List - skeleton * feat(demo): update skeleton - switch * feat(demo): update skeleton - switch * feat(demo): update switch - upload * feat(demo): update watermark * fix(demo): del hashId
36 lines
678 B
Vue
36 lines
678 B
Vue
<docs>
|
||
---
|
||
order: 5
|
||
title:
|
||
zh-CN: 多选
|
||
en-US: Multiple selection
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
多选,从已有条目中选择(scroll the menu)
|
||
|
||
## en-US
|
||
|
||
Multiple selection, selecting from existing items (scroll the menu).
|
||
|
||
</docs>
|
||
|
||
<template>
|
||
<a-select
|
||
v-model:value="value"
|
||
mode="multiple"
|
||
style="width: 100%"
|
||
placeholder="Please select"
|
||
:options="[...Array(25)].map((_, i) => ({ value: (i + 10).toString(36) + (i + 1) }))"
|
||
@change="handleChange"
|
||
></a-select>
|
||
</template>
|
||
<script lang="ts" setup>
|
||
import { ref } from 'vue';
|
||
const handleChange = (value: string[]) => {
|
||
console.log(`selected ${value}`);
|
||
};
|
||
const value = ref(['a1', 'b2']);
|
||
</script>
|