if (!isDefined($attrs.refreshingIconColor)) {
$attrs.$set('refreshingIconColor', 'none');
}

if (!isDefined($attrs.refreshingIconColor)) {
$attrs.$set('pullingIconColor', 'none');
}
同时还的添加
pullingIconColor: '@',
disablePullingRotation: '@',
代表获取指令属性内的
那么在我们的html页面中可以这样使用
<ion-refresher pulling-text="下拉刷新..." pulling-icon-color="red" on-refresh="doRefresh()" refreshing-icon="ion-checkmark-circled"refreshing-icon-color="green" refreshing-text="成功更新20信息"></ion-refresher>
注意其中红色部分,即是设置的颜色
至此整个修改过程就完成了
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-47765-3.html
赚了
养头猪比养经济学家强多了