thorui常用组件
thorui常用组件
tui-tips
<tui-tips position="center" backgroundColor="#EB2444" id="toast" size="22" color="#fff"></tui-tips>
let toast;
onReady() {
toast = this.selectComponent("#toast")
},
let options = {
msg: '登录成功~',
duration: 2000
};
toast && toast.showTips(options);
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 程序员小航
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果