Skip to content

Commit

Permalink
chore(deps): bump deps, unhead
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 1, 2022
1 parent fa788b1 commit 51b9686
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 38 deletions.
43 changes: 29 additions & 14 deletions examples/nuxt3/pages/api/option/basic.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { defineNuxtComponent } from '#imports'
import type { MetaObject } from '@nuxt/schema'
export default defineComponent({
head: {
title: 'Options',
meta: [
{
hid: 'description',
name: 'description',
content: 'My basic description',
},
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
export default defineNuxtComponent({
data() {
return {
test: 'Options API',
}
},
methods: {
update() {
this.test = 'new val'
}
},
head() {
return {
title: () => this.test,
meta: [
{
hid: 'description',
name: 'description',
content: () => this.test,
},
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
],
}
},
})
</script>

<template>
<div>
options api - basic
<button @click="update">
update
</button>
</div>
</template>
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"vue": ">=2.7 || >=3"
},
"dependencies": {
"@unhead/dom": "^1.0.5",
"@unhead/schema": "^1.0.5",
"@unhead/ssr": "^1.0.5",
"@unhead/vue": "^1.0.5"
"@unhead/dom": "^1.0.6",
"@unhead/schema": "^1.0.6",
"@unhead/ssr": "^1.0.6",
"@unhead/vue": "^1.0.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.33.1",
Expand Down
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51b9686

Please sign in to comment.