mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Import lodash.orderBy directly
Reduces SearchView bundle size by 69.7% (77.12 kB -> 23.37 kB)
This commit is contained in:
parent
76dc5dedd9
commit
462ecc59b3
@ -3,7 +3,7 @@ import ItemCard from '@/components/item-card/ItemCard.vue'
|
||||
import ItemTable from '@/components/item-table/ItemTable.vue'
|
||||
import SearchForm from '@/components/search/SearchForm.vue'
|
||||
import { useGeneralStore } from '@/store'
|
||||
import _ from 'lodash'
|
||||
import orderBy from 'lodash/orderBy'
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
const store = useGeneralStore()
|
||||
@ -72,7 +72,7 @@ function filterSkills(itemSkills: string[]) {
|
||||
}
|
||||
|
||||
const filteredItems = computed(() => {
|
||||
return _.orderBy(
|
||||
return orderBy(
|
||||
store.items
|
||||
.filter((item) => !(store.HideCompleted && store.isItemComplete(item.id)))
|
||||
.filter(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user