.sp .sp-slices
上创建了自定义CSS动画,并将其插入到名为loadingCtrl的LoadingController变量中:this.loading = this.loadingCtrl.create({
spinner: 'hide',
content: '<div class="sp sp-slices"></div>'
});
this.loading.present();
使用这个应该给您足够的灵活性来调整LoadingController组件,使其看起来与您需要的完全相同。
Ionic 2 还提供了其他 LoadingController 设计,更接近于 Android、iOS 和 Windows Phone 的原生默认外观。值得一看他们的 API 文档: https://ionicframework.com/docs/api/components/loading/LoadingController/
loadingCtrl
和 alertCtrl
,以便在单击背景时显示提示警报。如果用户点击“是”,则取消我的订阅;如果用户点击“否”,则重新运行我的订阅。 - giovannipds