mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-22 02:50:34 +03:00
refactor: set defaultOptions in shared/constants
This commit is contained in:
committed by
Alexander Lichter
parent
c1f97c4ea4
commit
2b24acc8b2
@@ -44,6 +44,15 @@ export const metaTemplateKeyName = 'template'
|
||||
// This is the key name for the content-holding property
|
||||
export const contentKeyName = 'content'
|
||||
|
||||
export const defaultOptions = {
|
||||
keyName,
|
||||
attribute,
|
||||
ssrAttribute,
|
||||
tagIDKeyName,
|
||||
contentKeyName,
|
||||
metaTemplateKeyName
|
||||
}
|
||||
|
||||
// List of metaInfo property keys which are configuration options (and dont generate html)
|
||||
export const metaInfoOptionKeys = [
|
||||
'titleChunk',
|
||||
|
||||
+1
-19
@@ -1,23 +1,5 @@
|
||||
import { isObject, isFunction } from './is-type'
|
||||
|
||||
import {
|
||||
keyName,
|
||||
attribute,
|
||||
ssrAttribute,
|
||||
tagIDKeyName,
|
||||
metaTemplateKeyName,
|
||||
contentKeyName
|
||||
} from './constants'
|
||||
|
||||
// set some default options
|
||||
const defaultOptions = {
|
||||
keyName,
|
||||
contentKeyName,
|
||||
metaTemplateKeyName,
|
||||
attribute,
|
||||
ssrAttribute,
|
||||
tagIDKeyName
|
||||
}
|
||||
import { defaultOptions } from './constants'
|
||||
|
||||
export default function setOptions(options) {
|
||||
// combine options
|
||||
|
||||
Reference in New Issue
Block a user