feature: 下拉组件添加自定义placeholder
This commit is contained in:
@@ -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}`
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user