Skip to content

Commit fc69c11

Browse files
committed
feat(Container): add paddingT prop and update padding styles
1 parent 9f4ee24 commit fc69c11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Container.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<script setup lang="ts">
22
defineProps({
3+
paddingT: {
4+
type: Number,
5+
default: 46,
6+
},
37
paddingX: {
48
type: Number,
59
default: 16,
@@ -9,8 +13,8 @@ defineProps({
913

1014
<template>
1115
<main
12-
class="absolute left-0 h-full w-full overflow-y-auto pt-46"
13-
:style="`padding-left: ${paddingX}px; padding-right: ${paddingX}px`"
16+
class="absolute left-0 h-full w-full overflow-y-auto"
17+
:style="`padding-top: ${paddingT}px; padding-left: ${paddingX}px; padding-right: ${paddingX}px`"
1418
>
1519
<slot />
1620
</main>

0 commit comments

Comments
 (0)