2023-10-29 22:02:07 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { logEvent } from 'histoire/client'
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
import TopBar from '@/components/TopBar.vue'
|
|
|
|
|
|
|
|
const title = ref('Mock Project')
|
2024-02-23 23:10:43 +03:00
|
|
|
const recordMode = ref(true)
|
2023-10-29 22:02:07 +03:00
|
|
|
const breadcrumbs = ref(['main', 'ad_analytics'])
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<Story title="Top Bar" group="graph" :layout="{ type: 'grid', width: 500 }" autoPropsDisabled>
|
|
|
|
<div style="height: 48px">
|
|
|
|
<TopBar
|
|
|
|
:title="title"
|
2024-02-23 23:10:43 +03:00
|
|
|
:recordMode="recordMode"
|
2023-10-29 22:02:07 +03:00
|
|
|
:breadcrumbs="breadcrumbs"
|
|
|
|
@back="logEvent('back', [])"
|
|
|
|
@forward="logEvent('forward', [])"
|
2024-02-23 23:10:43 +03:00
|
|
|
@recordOnce="logEvent('recordOnce', [])"
|
2023-10-29 22:02:07 +03:00
|
|
|
@breadcrumbClick="logEvent('breadcrumbClick', [$event])"
|
2024-02-23 23:10:43 +03:00
|
|
|
@update:recordMode="logEvent('update:recordMode', [$event]), (recordMode = $event)"
|
2023-10-29 22:02:07 +03:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<template #controls>
|
|
|
|
<HstText v-model="title" title="title" />
|
2024-02-23 23:10:43 +03:00
|
|
|
<HstJson v-model="recordMode" title="recordMode" />
|
2023-10-29 22:02:07 +03:00
|
|
|
<HstJson v-model="breadcrumbs" title="breadcrumbs" />
|
|
|
|
</template>
|
|
|
|
</Story>
|
|
|
|
</template>
|