format: apply repo prettier (3.8.1) to the folded skills tree
963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
This commit is contained in:
@@ -9,21 +9,21 @@ Get the DOM element of current component as a ref.
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { useCurrentElement } from '@vueuse/core'
|
||||
import { useCurrentElement } from '@vueuse/core';
|
||||
|
||||
const el = useCurrentElement() // ComputedRef<Element>
|
||||
const el = useCurrentElement(); // ComputedRef<Element>
|
||||
```
|
||||
|
||||
Or pass a specific vue component
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
import { useCurrentElement, VueInstance } from '@vueuse/core'
|
||||
import { shallowRef } from 'vue'
|
||||
import { useCurrentElement, VueInstance } from '@vueuse/core';
|
||||
import { shallowRef } from 'vue';
|
||||
|
||||
const componentRef = shallowRef<VueInstance>(null as unknown as VueInstance)
|
||||
const componentRef = shallowRef<VueInstance>(null as unknown as VueInstance);
|
||||
|
||||
const el = useCurrentElement(componentRef) // ComputedRef<Element>
|
||||
const el = useCurrentElement(componentRef); // ComputedRef<Element>
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -53,9 +53,9 @@ export declare function useCurrentElement<
|
||||
T extends MaybeElement = MaybeElement,
|
||||
R extends VueInstance = VueInstance,
|
||||
E extends MaybeElement = MaybeElement extends T
|
||||
? IsAny<R["$el"]> extends false
|
||||
? R["$el"]
|
||||
? IsAny<R['$el']> extends false
|
||||
? R['$el']
|
||||
: T
|
||||
: T,
|
||||
>(rootComponent?: MaybeElementRef<R>): ComputedRefWithControl<E>
|
||||
>(rootComponent?: MaybeElementRef<R>): ComputedRefWithControl<E>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user