mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 05:08:03 +01:00
docs: remove pick usage
This commit is contained in:
@@ -180,7 +180,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { pick } from 'lodash-es'
|
|
||||||
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
|
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
|
||||||
|
|
||||||
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne())
|
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne())
|
||||||
@@ -193,7 +192,7 @@ const { data: module } = await useFetch<{
|
|||||||
username: string
|
username: string
|
||||||
}[]
|
}[]
|
||||||
}>('https://api.nuxt.com/modules/ui', {
|
}>('https://api.nuxt.com/modules/ui', {
|
||||||
transform: (module) => pick(module, ['stats', 'contributors'])
|
transform: ({ stats, contributors }) => ({ stats, contributors })
|
||||||
})
|
})
|
||||||
|
|
||||||
const source = ref('npm i @nuxt/ui')
|
const source = ref('npm i @nuxt/ui')
|
||||||
|
|||||||
Reference in New Issue
Block a user