-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathindex.js
36 lines (31 loc) · 1021 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import ContentPlaceholders from './components/ContentPlaceholders.vue'
import ContentPlaceholdersHeading from './components/ContentPlaceholdersHeading.vue'
import ContentPlaceholdersImg from './components/ContentPlaceholdersImg.vue'
import ContentPlaceholdersText from './components/ContentPlaceholdersText.vue'
export function install (Vue) {
Vue.component('ContentPlaceholders', ContentPlaceholders)
Vue.component('ContentPlaceholdersHeading', ContentPlaceholdersHeading)
Vue.component('ContentPlaceholdersImg', ContentPlaceholdersImg)
Vue.component('ContentPlaceholdersText', ContentPlaceholdersText)
}
export {
ContentPlaceholders,
ContentPlaceholdersHeading,
ContentPlaceholdersImg,
ContentPlaceholdersText,
}
const plugin = {
version: VERSION,
install,
}
export default plugin
// Auto-install
let GlobalVue = null
if (typeof window !== 'undefined') {
GlobalVue = window.Vue
} else if (typeof global !== 'undefined') {
GlobalVue = global.Vue
}
if (GlobalVue) {
GlobalVue.use(plugin)
}