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:
@@ -10,14 +10,14 @@ Lock scrolling of the element.
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
import { useScrollLock } from '@vueuse/core'
|
||||
import { useTemplateRef } from 'vue'
|
||||
import { useScrollLock } from '@vueuse/core';
|
||||
import { useTemplateRef } from 'vue';
|
||||
|
||||
const el = useTemplateRef('el')
|
||||
const isLocked = useScrollLock(el)
|
||||
const el = useTemplateRef('el');
|
||||
const isLocked = useScrollLock(el);
|
||||
|
||||
isLocked.value = true // lock
|
||||
isLocked.value = false // unlock
|
||||
isLocked.value = true; // lock
|
||||
isLocked.value = false; // unlock
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -29,11 +29,11 @@ isLocked.value = false // unlock
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
import { vScrollLock } from '@vueuse/components'
|
||||
import { vScrollLock } from '@vueuse/components';
|
||||
|
||||
const data = ref([1, 2, 3, 4, 5, 6])
|
||||
const isLocked = ref(false)
|
||||
const toggleLock = useToggle(isLocked)
|
||||
const data = ref([1, 2, 3, 4, 5, 6]);
|
||||
const isLocked = ref(false);
|
||||
const toggleLock = useToggle(isLocked);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -42,9 +42,7 @@ const toggleLock = useToggle(isLocked)
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<button @click="toggleLock()">
|
||||
Toggle lock state
|
||||
</button>
|
||||
<button @click="toggleLock()">Toggle lock state</button>
|
||||
</template>
|
||||
```
|
||||
|
||||
@@ -58,9 +56,7 @@ const toggleLock = useToggle(isLocked)
|
||||
* @param element
|
||||
*/
|
||||
export declare function useScrollLock(
|
||||
element: MaybeRefOrGetter<
|
||||
HTMLElement | SVGElement | Window | Document | null | undefined
|
||||
>,
|
||||
element: MaybeRefOrGetter<HTMLElement | SVGElement | Window | Document | null | undefined>,
|
||||
initialState?: boolean,
|
||||
): WritableComputedRef<boolean, boolean>
|
||||
): WritableComputedRef<boolean, boolean>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user