[new feature] Sku: support custom placeholder (#3864)

This commit is contained in:
neverland
2019-07-16 13:26:24 +08:00
committed by GitHub
parent 511087bc74
commit aba5f59fdd
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export default createComponent({
getPlaceholder(message) {
const type = +message.multiple === 1 ? 'textarea' : message.type;
const map = this.messageConfig.placeholderMap || {};
return map[type] || PLACEHOLDER[type];
return message.placeholder || map[type] || PLACEHOLDER[type];
},
validateMessages() {