blob: 7f0841ba093a6ffaffc7fe6f227f41456ada70a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* @var array $attributes
* @var string $baseComponent
* @var array $props
* @var array $storeData
* @var array $slots
*/
?>
<? foreach ($storeData as $store => $data): ?>
<script type="application/json" id="vue-store-data-<?= htmlReady($store) ?>"><?= json_encode($data) ?></script>
<? endforeach; ?>
<div <?= arrayToHtmlAttributes($attributes) ?>>
<<?= strtokebabcase($baseComponent) ?> <?= arrayToHtmlAttributes($props) ?>>
<? foreach ($slots as $slotname => $slot): ?>
<template #<?= htmlReady($slotname) ?>><?= $slot ?></template>
<? endforeach; ?>
</<?= strtokebabcase($baseComponent) ?>>
</div>
|