add(sample): 护眼模式

fix(floaty): xml.toString() return empty when xml has just one node
This commit is contained in:
hyb1996
2018-05-28 20:02:40 +08:00
parent 44b7f0b39a
commit faa5ef4c48
4 changed files with 17 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
var w = floaty.rawWindow(
<frame gravity="center" bg="#44ffcc00"/>
);
w.setSize(-1, -1);
w.setTouchable(false);
setTimeout(()=>{
w.close();
}, 60000);