feat(NumberKeyboard): use delete icon instead of delete text (#6151)

This commit is contained in:
neverland
2020-04-27 19:14:44 +08:00
committed by GitHub
parent 3360ca7eb0
commit 9e7d72eff2
10 changed files with 464 additions and 431 deletions
+3 -6
View File
@@ -79,7 +79,7 @@ export default createComponent({
{ text: this.extraKey, type: 'extra', color: 'gray' },
{ text: 0 },
{
text: this.showDeleteKey ? this.deleteText : '',
text: this.showDeleteKey ? this.deleteButtonText : '',
type: this.showDeleteKey ? 'delete' : '',
color: 'gray',
}
@@ -95,10 +95,6 @@ export default createComponent({
return keys;
},
deleteText() {
return this.deleteButtonText || t('delete');
},
},
methods: {
@@ -184,8 +180,9 @@ export default createComponent({
{this.showDeleteKey && (
<Key
large
text={this.deleteText}
text={this.deleteButtonText}
type="delete"
color="gray"
onPress={this.onPress}
>
{this.slots('delete')}