【问题标题】:How to implement page loader in nativescript-vue?如何在 nativescript-vue 中实现页面加载器?
【发布时间】:2019-02-21 06:32:27
【问题描述】:

我们如何实现页面加载器? 谁能给我详细的代码...

<ActivityIndicator :busy="showLogin" :visibility="showLogin ? 'visible' : 'collapse'"  height="50" width="50"/>
this.showLogin = this.showLogin==false?true:false;

【问题讨论】:

  • 页面加载器是什么意思?
  • 与服务器交互时,显示loader。
  • 仅供参考 ?true:false 是多余的,this.showLogin = this.showLogin==false 就足够了,因为 (this.showLogin == false) 返回 true 或 false

标签: nativescript nativescript-vue


【解决方案1】:

如果您只想显示ActivityIndicator,请将busy 属性绑定到一个变量,在您想要显示或隐藏时切换它。

或者如果你想完全屏蔽整个页面,试试nativescript-loading-indicator插件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-19
    • 2014-05-02
    • 1970-01-01
    • 2020-11-05
    • 1970-01-01
    • 2012-02-06
    • 2017-05-17
    • 1970-01-01
    相关资源
    最近更新 更多