feat(NumberKeyboard): use delete icon instead of delete text (#6151)
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user