perf(layer): 新增 anim 属性, 支持 7 种入场动画

This commit is contained in:
就眠仪式
2021-11-07 23:59:53 +08:00
parent 6f19ff7c9b
commit 9808f9201f
5 changed files with 44 additions and 19 deletions

View File

@@ -1,7 +1,20 @@
export function S4() {
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
};
export function S4() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
}
export function guid() {
return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
};
export function guid() {
return (
S4() +
S4() +
'-' +
S4() +
'-' +
S4() +
'-' +
S4() +
'-' +
S4() +
S4() +
S4()
)
}