2019-10-18 11:23:45 +08:00
|
|
|
# Multiple
|
2020-01-22 14:34:09 +08:00
|
|
|
|
|
|
|
Select multiple value in popselect.
|
|
|
|
|
2019-10-18 11:23:45 +08:00
|
|
|
```html
|
|
|
|
<n-popselect
|
2020-10-22 21:19:43 +08:00
|
|
|
v-model:value="value"
|
2019-10-18 11:23:45 +08:00
|
|
|
multiple
|
|
|
|
:options="options"
|
|
|
|
>
|
2020-05-31 13:38:35 +08:00
|
|
|
<n-tag>{{ (Array.isArray(value) && value.length) ? value : 'Nothing' }}</n-tag>
|
2019-10-18 11:23:45 +08:00
|
|
|
</n-popselect>
|
|
|
|
```
|
|
|
|
```js
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
value: null,
|
|
|
|
options: [{
|
|
|
|
label: 'Go Let It Out',
|
|
|
|
value: 'Go Let It Out'
|
|
|
|
}, {
|
|
|
|
label: 'Who Feels Love?',
|
|
|
|
value: 'Who Feels Love?'
|
|
|
|
}, {
|
|
|
|
label: 'Sunday Morning Call',
|
|
|
|
value: 'Sunday Morning Call',
|
|
|
|
disabled: true
|
|
|
|
}, {
|
|
|
|
label: 'Roll It Over',
|
|
|
|
value: 'Roll It Over'
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|