2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-24 02:00:33 +03:00

types: update new features

This commit is contained in:
pimlie
2019-07-24 15:48:10 +02:00
parent 65df464ee8
commit 253108afac
2 changed files with 53 additions and 17 deletions
+11 -7
View File
@@ -19,16 +19,20 @@ const BarMetaInfo: MetaInfo = {
__dangerouslyDisableSanitizersByTagID: {
ldjson: ['innerHTML']
},
script: [{
src: '', crossorigin: '', async: true
}],
link: [
{ vmid: '', rel: '', href: '', callback: () => {} }
],
script: [
{ src: '', crossorigin: '', async: true },
{ vmid: '', src: '', callback: () => {} }
],
meta: [
{ charset: 'utf-8' },
{
'property': 'og:title',
'content': 'Test title',
'template': chunk => `${chunk} - My page`, //or as string template: '%s - My page',
'vmid': 'og:title'
property: 'og:title',
content: 'Test title',
template: chunk => `${chunk} - My page`, //or as string template: '%s - My page',
vmid: 'og:title'
}
],
changed(newdata: MetaInfo, newTags: HTMLElement[], oldTags: HTMLElement[]) {