chore: commit时格式整理

This commit is contained in:
dingyongya
2022-02-16 17:22:55 +08:00
parent c2b9d36868
commit 7f3674d532
95 changed files with 823 additions and 852 deletions

View File

@@ -3,7 +3,7 @@
* <p>
* @param elem dom
* */
export function getTop(elem: any) : any {
export function getTop(elem: any): any {
return (
elem.offsetTop + ((elem.offsetParent && getTop(elem.offsetParent)) || 0)
);
@@ -14,7 +14,7 @@ export function getTop(elem: any) : any {
* <p>
* @param elem dom
* */
export function getLeft(elem: any) : any {
export function getLeft(elem: any): any {
return (
elem.offsetLeft + ((elem.offsetParent && getLeft(elem.offsetParent)) || 0)
);

View File

@@ -13,5 +13,18 @@ export function S4() {
* @param null 无参
* */
export function guid() {
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
return (
S4() +
S4() +
"-" +
S4() +
"-" +
S4() +
"-" +
S4() +
"-" +
S4() +
S4() +
S4()
);
}