mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
@ -72,9 +72,13 @@ export class BackButton implements ComponentInterface {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const defaultBackButtonText = this.mode === 'ios' ? 'Back' : null;
|
const defaultBackButtonText = this.mode === 'ios' ? 'Back' : null;
|
||||||
const backButtonIcon = this.icon != null ? this.icon : this.config.get('backButtonIcon', 'arrow-back');
|
|
||||||
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', defaultBackButtonText);
|
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', defaultBackButtonText);
|
||||||
|
|
||||||
|
let backButtonIcon = this.icon != null ? this.icon : this.config.get('backButtonIcon', 'arrow-back');
|
||||||
|
if (backButtonIcon === 'arrow-back' && document.dir === 'rtl') {
|
||||||
|
backButtonIcon = 'arrow-forward';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
Reference in New Issue
Block a user