feature: 下拉组件添加自定义placeholder

This commit is contained in:
zyn
2023-12-27 15:28:39 +08:00
parent 2902cbde44
commit f7969b7d2a
@@ -48,9 +48,16 @@ export default {
type: Boolean,
default: true
},
customPlaceholder: {
type: String,
default: ''
},
},
computed: {
placeholder () {
if (this.customPlaceholder !== '') {
return this.customPlaceholder
}
return `请选择${this.label}`
},
},