add categories customization
This commit is contained in:
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
v-model="model"
|
||||
:multiple="multiple"
|
||||
>
|
||||
<option :value="null" v-if="!required"></option>
|
||||
<option
|
||||
v-for="option in options"
|
||||
:key="option.id"
|
||||
@@ -49,12 +50,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<script setup>
|
||||
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
|
||||
|
||||
const model = defineModel({ type: [Number, String, Array] })
|
||||
const model = defineModel({ type: [Number, String, Array, null] })
|
||||
const { options, expanded } = defineProps({
|
||||
options: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
required: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
expanded: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
|
||||
Reference in New Issue
Block a user