angular - 离子列表按钮在右图标显示时调整大小
问题描述
我在列表右侧动态显示/隐藏图标。但是,当图标显示时,会ion-item
稍微放大一点。
知道如何解决这个问题吗?绝对不是这样好的用户体验。
<ion-list>
<ion-item-divider color="primary">
Select
</ion-item-divider>
<button ion-item *ngFor="let property of properties; let i = index" (click)="propertySelected(property)" >
{{ property }}
<ion-icon *ngIf="propertySet[i]" name="checkmark" item-end></ion-icon>
</button>
</ion-list>
解决方案
// implementes css for ion-icon
ion-icon{
position: absolute or fixed;
width: 10px;
right: 10px;
}
have to make css the fixed icon, with the size of the better than what you have to submit
推荐阅读
- vue.js - 组件渲染函数中的Vue无限更新循环
- java-8 - 以内存有效的方式重放java流?
- javascript - 如何在angularjs或javascript中的特定位置导出文件?
- kdb - KDB - 每天查询并将结果连接在一起
- identityserver4 - 缩放 IdentityServer4 时出现消息“无法取消保护 message.State”
- java - 如何通过 Cucumber 中的相同步骤定义文件打开 2 个浏览器。任何人都可以请建议
- auth0 - STRAPI:在 Strapi 中使用 auth0 进行 API 身份验证有效且无效
- php - 左外连接,从表中一直是组 laravel
- groovy - 转换列表
- > 在 groovy 脚本中将数据转换为 json 格式
- snowflake-cloud-data-platform - 如何在雪花中创建编辑视图?