mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-02 15:19:43 +08:00
🐛 Fix(custom): fix an issue eslint not worked as expected
This commit is contained in:
@@ -6,8 +6,8 @@ import type { IStringKeyMap } from '#/types/types'
|
||||
export const useAppStore = defineStore('app', () => {
|
||||
const settings = ref<IStringKeyMap>({
|
||||
app: {
|
||||
theme: 'light'
|
||||
}
|
||||
theme: 'light',
|
||||
},
|
||||
})
|
||||
const loading = ref(false)
|
||||
const error = ref<string | undefined>()
|
||||
@@ -77,6 +77,6 @@ export const useAppStore = defineStore('app', () => {
|
||||
clearError,
|
||||
setTheme,
|
||||
toggleTheme,
|
||||
applyTheme
|
||||
applyTheme,
|
||||
}
|
||||
})
|
||||
|
||||
@@ -31,7 +31,7 @@ export function useConfirm() {
|
||||
|
||||
return {
|
||||
setConfirmService,
|
||||
confirm
|
||||
confirm,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ export function useMessage() {
|
||||
success,
|
||||
error,
|
||||
warning,
|
||||
info
|
||||
info,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export function useVirtualGrid(options: UseVirtualGridOptions) {
|
||||
itemsPerRow,
|
||||
totalRows,
|
||||
rowHeight,
|
||||
totalHeight
|
||||
totalHeight,
|
||||
}
|
||||
})
|
||||
|
||||
@@ -101,7 +101,7 @@ export function useVirtualGrid(options: UseVirtualGridOptions) {
|
||||
if (scrollTop.value > totalHeight - containerHeight.value) {
|
||||
scrollTop.value = Math.max(0, totalHeight - containerHeight.value)
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
return {
|
||||
@@ -111,6 +111,6 @@ export function useVirtualGrid(options: UseVirtualGridOptions) {
|
||||
updateScrollTop,
|
||||
scrollToItem,
|
||||
scrollToTop,
|
||||
scrollToBottom
|
||||
scrollToBottom,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user