chore: bump prettier v3 and format all code (#12111)
* chore: bump prettier v3 and format all code * chore: mjs config * chore: revert * chore: revert * chore: update lock
This commit is contained in:
@@ -46,7 +46,7 @@ export default {
|
||||
() => {
|
||||
console.log('touch outside!');
|
||||
},
|
||||
{ eventName: 'touchstart' }
|
||||
{ eventName: 'touchstart' },
|
||||
);
|
||||
|
||||
return { root };
|
||||
@@ -69,7 +69,7 @@ function useClickAway(
|
||||
| Ref<Element | undefined>
|
||||
| Array<Element | Ref<Element | undefined>>,
|
||||
listener: EventListener,
|
||||
options?: Options
|
||||
options?: Options,
|
||||
): void;
|
||||
```
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
() => {
|
||||
console.log('touch outside!');
|
||||
},
|
||||
{ eventName: 'touchstart' }
|
||||
{ eventName: 'touchstart' },
|
||||
);
|
||||
|
||||
return { root };
|
||||
@@ -71,7 +71,7 @@ function useClickAway(
|
||||
| Ref<Element | undefined>
|
||||
| Array<Element | Ref<Element | undefined>>,
|
||||
listener: EventListener,
|
||||
options?: Options
|
||||
options?: Options,
|
||||
): void;
|
||||
```
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export default {
|
||||
() => {
|
||||
console.log('click body');
|
||||
},
|
||||
{ target: document.body }
|
||||
{ target: document.body },
|
||||
);
|
||||
},
|
||||
};
|
||||
@@ -64,7 +64,7 @@ type Options = {
|
||||
function useEventListener(
|
||||
type: string,
|
||||
listener: EventListener,
|
||||
options?: Options
|
||||
options?: Options,
|
||||
): () => void;
|
||||
```
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
() => {
|
||||
console.log('click body');
|
||||
},
|
||||
{ target: document.body }
|
||||
{ target: document.body },
|
||||
);
|
||||
},
|
||||
};
|
||||
@@ -65,7 +65,7 @@ type Options = {
|
||||
function useEventListener(
|
||||
type: string,
|
||||
listener: EventListener,
|
||||
options?: Options
|
||||
options?: Options,
|
||||
): () => void;
|
||||
```
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useRect(
|
||||
element: Element | Window | Ref<Element | Window | undefined>
|
||||
element: Element | Window | Ref<Element | Window | undefined>,
|
||||
): DOMRect;
|
||||
```
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useRect(
|
||||
element: Element | Window | Ref<Element | Window | undefined>
|
||||
element: Element | Window | Ref<Element | Window | undefined>,
|
||||
): DOMRect;
|
||||
```
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
() => {
|
||||
console.log('scroll');
|
||||
},
|
||||
{ target: scrollParent }
|
||||
{ target: scrollParent },
|
||||
);
|
||||
|
||||
return { root };
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useScrollParent(
|
||||
element: Ref<Element | undefined>
|
||||
element: Ref<Element | undefined>,
|
||||
): Ref<Element | Window | undefined>;
|
||||
```
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
() => {
|
||||
console.log('scroll');
|
||||
},
|
||||
{ target: scrollParent }
|
||||
{ target: scrollParent },
|
||||
);
|
||||
|
||||
return { root };
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useScrollParent(
|
||||
element: Ref<Element | undefined>
|
||||
element: Ref<Element | undefined>,
|
||||
): Ref<Element | Window | undefined>;
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useToggle(
|
||||
defaultValue: boolean
|
||||
defaultValue: boolean,
|
||||
): [Ref<boolean>, (newValue: boolean) => void];
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useToggle(
|
||||
defaultValue: boolean
|
||||
defaultValue: boolean,
|
||||
): [Ref<boolean>, (newValue: boolean) => void];
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user