fix linter issues
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="!expanded">
|
||||
<select v-model="model" v-if="!expanded" :multiple="multiple">
|
||||
<select
|
||||
v-if="!expanded"
|
||||
v-model="model"
|
||||
:multiple="multiple"
|
||||
>
|
||||
<option
|
||||
v-for="option in options"
|
||||
:key="option.id"
|
||||
:value="option.id"
|
||||
>
|
||||
{{ t('side_menu', option.label) }}
|
||||
@@ -13,9 +18,9 @@
|
||||
<template v-else>
|
||||
<NcCheckboxRadioSwitch
|
||||
v-for="option in options"
|
||||
:key="option.id"
|
||||
v-model="model"
|
||||
:value="option.id"
|
||||
:key="option.id"
|
||||
:type="multiple ? 'checkbox' : 'radio'"
|
||||
name="value"
|
||||
>
|
||||
@@ -28,7 +33,7 @@
|
||||
<script setup>
|
||||
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
|
||||
|
||||
const model = defineModel()
|
||||
const model = defineModel({ type: [Number, String, Array] })
|
||||
const { options, expanded } = defineProps({
|
||||
options: {
|
||||
type: Array,
|
||||
|
||||
Reference in New Issue
Block a user