Ionic 2文档使它看起来像箭头自动随附.然而,对我来说这不是那样的.
https://ionicframework.com/docs/components/#lists
<ion-list> <ion-item> <p>Terms Of Use</p> </ion-item> <ion-item> <p>Privacy Policy</p> </ion-item> </ion-list>
解决方法
您正在谈论的箭头是细节箭头(
docs).就像你在文档中看到的那样:
By default,and elements with the ion-item attribute will
display a right arrow icon on ios mode.
和
To hide the right arrow icon on either of these elements,add the
detail-none
attribute to the item. To show the right arrow icon on an
element that doesn’t display it naturally,add thedetail-push
attribute to the item.
关于Android和Windows手机,
This feature is not enabled by default for md and wp modes,but it can
be enabled by setting the Sass variables$item-md-detail-push-show
and$item-wp-detail-push-show
,respectively,totrue
. It can also be
disabled for ios by setting$item-ios-detail-push-show
tofalse
因此,如果您想为Android和Windows手机启用它,您只需要在variables.scss文件中添加以下内容:
$item-md-detail-push-show: true; $item-wp-detail-push-show: true;