Skip to content

Commit 899bfa6

Browse files
committed
Merge branch 'feature/layout-page-block-component' of https://github.com/codex-team/notes.web into feature/layout-page-block-component
2 parents 9330dee + 4c92630 commit 899bfa6

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

codex-ui/src/vue/layout/page-block/PageBlock.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
<template>
22
<div
3-
class="page-block"
4-
:class="{
5-
'page-block--stretched': stretched,
6-
}"
3+
:class="[
4+
$style['page-block'],
5+
{ [$style['page-block--stretched']]: stretched }
6+
]"
77
>
88
<!-- Left Sidebar -->
99
<div
1010
v-if="$slots.left"
11-
class="page-block__sidebar"
11+
:class="$style['page-block__sidebar']"
1212
>
1313
<slot name="left" />
1414
</div>
1515

1616
<!-- Center Content -->
1717
<div
18-
class="page-block__content"
19-
:class="{'page-block__content--stretched': stretched}"
18+
:class="[
19+
$style['page-block__content'],
20+
{ [$style['page-block__content--stretched']]: stretched }
21+
]"
2022
>
2123
<slot />
2224
</div>
2325

2426
<!-- Right Sidebar -->
2527
<div
2628
v-if="$slots.right"
27-
class="page-block__sidebar"
29+
:class="$style['page-block__sidebar']"
2830
>
2931
<slot name="right" />
3032
</div>
@@ -42,7 +44,7 @@ defineProps({
4244
});
4345
</script>
4446

45-
<style scoped lang="postcss">
47+
<style module lang="postcss">
4648
.page-block {
4749
width: 100%;
4850
display: flex;

0 commit comments

Comments
 (0)