Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit 7db1339

Browse files
committed
style: reformat
1 parent 8eb5e2a commit 7db1339

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

src/Grid.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ export default defineComponent({
9999
tag: {
100100
type: String as PropType<string>,
101101
required: false,
102-
default: 'div',
102+
default: "div",
103103
},
104104
probeTag: {
105105
type: String as PropType<string>,
106106
required: false,
107-
default: 'div',
107+
default: "div",
108108
},
109109
},
110110
setup(props) {

src/demo/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import {
5555
pageProvider,
5656
scrollMode,
5757
scrollTo,
58-
scrollBehavior
58+
scrollBehavior,
5959
} from "./store";
6060
6161
export default defineComponent({

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import Grid from './Grid.vue'
1+
import Grid from "./Grid.vue";
22

3-
export default Grid
3+
export default Grid;

src/pipeline.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,14 @@ export function pipeline({
367367
// endregion
368368

369369
// region: scroll to a given item by index
370-
const scrollToNotNil$:Observable<number> = scrollTo$.pipe( filter(complement(isNil)))
371-
const scrollAction$: Observable<ScrollAction> = combineLatest(
372-
[scrollToNotNil$, resizeMeasurement$, rootResize$]
373-
).pipe(
370+
const scrollToNotNil$: Observable<number> = scrollTo$.pipe(
371+
filter(complement(isNil))
372+
);
373+
const scrollAction$: Observable<ScrollAction> = combineLatest([
374+
scrollToNotNil$,
375+
resizeMeasurement$,
376+
rootResize$,
377+
]).pipe(
374378
mergeMap<[number, ResizeMeasurement, Element], ScrollAction[]>(
375379
([scrollTo, resizeMeasurement, rootEl]) => {
376380
const { vertical: verticalScrollEl, horizontal: horizontalScrollEl } =

src/shims-vue.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
declare module '*.vue' {
2-
import type { DefineComponent } from 'vue'
3-
const component: DefineComponent<{}, {}, any>
4-
export default component
1+
declare module "*.vue" {
2+
import type { DefineComponent } from "vue";
3+
const component: DefineComponent<{}, {}, any>;
4+
export default component;
55
}

0 commit comments

Comments
 (0)