chore: format code

This commit is contained in:
hayden
2024-11-11 11:39:32 +08:00
parent e36af38375
commit 6904aca24c
30 changed files with 291 additions and 147 deletions

View File

@@ -60,8 +60,9 @@
</template>
<script setup lang="ts" generic="T">
import { nextTick, onUnmounted, ref, watch } from 'vue'
import { defineResizeCallback } from 'hooks/resize'
import { clamp, throttle } from 'lodash'
import { nextTick, onUnmounted, ref, watch } from 'vue'
interface ScrollAreaProps {
items?: T[][]
@@ -206,7 +207,7 @@ const calculateScrollThumbSize = () => {
})
}
const onContainerResize: ResizeObserverCallback = throttle((entries) => {
const onContainerResize = defineResizeCallback((entries) => {
emit('resize', entries)
if (isDragging.value) return