WIP(dropdown): add placeholder text

This commit is contained in:
SabreCat
2022-08-10 14:59:19 -05:00
committed by CuriousMagpie
parent 8d1f7e77ed
commit e3c552dd54
3 changed files with 9 additions and 33 deletions

View File

@@ -12,7 +12,7 @@
<template v-slot:button-content>
<slot
name="item"
:item="selected"
:item="selected || placeholder"
:button="true"
>
<!-- Fallback content -->
@@ -114,6 +114,9 @@ export default {
type: Boolean,
default: true,
},
placeholder: {
type: String,
},
},
data () {
return {