ASelectEx 扩展 Select
代码演示
基本用法
对下拉菜单进行自由扩展
vue
<template>
<a-select-ex
:options="['CIS', 'AMI', 'MDM']"
v-model:value="selectValue"
placeholder="请选择"
inputPlaceholder="请输入"
style="width: 200px"
>
</a-select-ex>
</template>
<script setup lang="ts">
import { ref } from "vue";
const selectValue = ref();
</script>API
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| options | 预置下拉选项 | string[] | - |
| placeholder | 占位符 | string | - |
| inputPlaceholder | 输入框占位符 | string | - |