浏览代码

Reformat the code.

Naotoshi Fujita 2 年之前
父节点
当前提交
5e088b04ec
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/js/components/Move/Move.ts

+ 3 - 1
src/js/components/Move/Move.ts

@@ -251,7 +251,9 @@ export function Move(
    */
   function offset( index: number ): number {
     const { focus } = options;
-    return focus === 'center' ? ( listSize() - slideSize( index, true ) ) / 2 : +focus * slideSize( index ) || 0;
+    return focus === 'center'
+      ? ( listSize() - slideSize( index, true ) ) / 2
+      : +focus * slideSize( index ) || 0;
   }
 
   /**