gpt4 book ai didi

angular - Ion-list 是否应该自动在列表项上添加箭头?

转载 作者:太空狗 更新时间:2023-10-29 17:43:20 24 4
gpt4 key购买 nike

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 the detail-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, to true. It can also be disabled for ios by setting $item-ios-detail-push-show to false

所以如果你想为 android 和 windows phone 启用它,你只需要在你的 variables.scss 文件中添加以下内容:

$item-md-detail-push-show: true;
$item-wp-detail-push-show: true;

关于angular - Ion-list 是否应该自动在列表项上添加箭头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44469386/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com