2018-02-24 11:53:21 +00:00
|
|
|
|
|
|
|
<cn>
|
|
|
|
#### 基本使用
|
|
|
|
基本使用。
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
<us>
|
|
|
|
#### Basic Usage
|
|
|
|
Basic Usage
|
|
|
|
</us>
|
|
|
|
|
|
|
|
```html
|
|
|
|
<template>
|
|
|
|
<div>
|
2018-02-25 08:48:19 +00:00
|
|
|
<a-select defaultValue="lucy" style="width: 120px" @change="handleChange">
|
2018-02-24 11:53:21 +00:00
|
|
|
<a-select-option value="jack">Jack</a-select-option>
|
|
|
|
<a-select-option value="lucy">Lucy</a-select-option>
|
|
|
|
<a-select-option value="disabled" disabled>Disabled</a-select-option>
|
|
|
|
<a-select-option value="Yiminghe">yiminghe</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
<a-select defaultValue="lucy" style='width: 120px' allowClear disabled>
|
|
|
|
<a-select-option value="lucy">Lucy</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-02-25 08:48:19 +00:00
|
|
|
methods: {
|
|
|
|
handleChange(value) {
|
|
|
|
console.log(`selected ${value}`);
|
2018-02-24 11:53:21 +00:00
|
|
|
}
|
2018-02-25 08:48:19 +00:00
|
|
|
}
|
2018-02-24 11:53:21 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
```
|
|
|
|
|