Skip to main content

Select 选择器

何时使用

需要用户输入表单域内容时。

代码演示

基本用法

formHor demo

代码
<template>
<erSelect
:val="val"
:optionList="[{value: '1'}, {value: '2'}]"
@onChangeValue="console.log('onChangeValue', $event)"
/>
</template>

API

Attributes

属性名说明类型默认值
disabled是否禁止输入booleanfalse
val当前选择值string或number
optionList选择值列表array,必须包含value属性值
outStyleSelectselect样式object

Events

事件名说明类型
@onChangeValue选择值改变,同步绑定的受控值val事件Function