Moved filter sections to their own components.
This commit is contained in:
@@ -5,20 +5,31 @@
|
||||
>
|
||||
<Header />
|
||||
|
||||
<div class="content">
|
||||
<slot />
|
||||
<div
|
||||
ref="content"
|
||||
class="content"
|
||||
>
|
||||
<slot @scroll="scroll" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import events from '#/src/events.js';
|
||||
|
||||
import Header from '../components/header/header.vue';
|
||||
|
||||
const content = ref(null);
|
||||
|
||||
function blur() {
|
||||
events.emit('blur');
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
events.on('scrollUp', () => { content.value.scrollTop = 0; });
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user