-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
53 lines (48 loc) · 1.01 KB
/
index.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/header.php');
$APPLICATION->SetTitle('Bitrix Vue Component');
?>
<?php
\Dbogdanoff\Bitrix\Vue::includeComponent([
'block-header',
'block-footer',
'simple-block',
'upload-photo',
'carousel',
'dbogdanoff-loader'
]);
?>
<main id="app" v-cloak>
<block-header></block-header>
<carousel></carousel>
<simple-block add-class="p-5">
<h5>Text block</h5>
</simple-block>
<upload-photo v-model="loader"></upload-photo>
<simple-block add-class="p-5">
<h5>Second text block</h5>
</simple-block>
<block-footer></block-footer>
<dbogdanoff-loader v-bind:active="loader" v-bind:replace="true"></dbogdanoff-loader>
</main>
<script>
var mainVueApp = new Vue({
el: '#app',
name: 'root',
data: function () {
return {
loader: false
}
},
mounted: function () {
AOS.init();
Vue.use(VTooltip)
}
})
</script>
<style>
[v-cloak] {
display: none;
}
</style>
<? require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/footer.php'); ?>