1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 10:54:39 +00:00

feat(components): figure page

This commit is contained in:
2022-11-10 04:57:11 +07:00
parent f8a03bf7f7
commit 54cb28c0cb
12 changed files with 142 additions and 40 deletions

View File

@@ -6,7 +6,7 @@ const showForm = ref<boolean>(false);
<template>
<section class="block">
<div class="header" @click="showForm = !showForm">
<h2 class="title">{{ title }}</h2>
<h2>{{ title }}</h2>
<button class="button">
<IconClose v-if="showForm"/>
<IconOpen v-else/>
@@ -18,7 +18,7 @@ const showForm = ref<boolean>(false);
</section>
</template>
<style scoped>
<style scoped lang="scss">
.block {
display: flex;
flex-direction: column;
@@ -35,11 +35,6 @@ const showForm = ref<boolean>(false);
padding: 8px 0;
}
.title {
font-size: 1.04rem;
font-weight: 500;
}
.button {
color: var(--icon-color);
}