Skip to content

Commit ff2045e

Browse files
committed
refactor: extract css from layout into css module
1 parent 8081ea1 commit ff2045e

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

src/VueLiveDefaultLayout.vue

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
<template functional>
2-
<div class="vue-live-container" style="display:flex; ">
3-
<div style="width:50%;">
4-
<slot name="editor"></slot>
2+
<div :class="$style.container">
3+
<div :class="$style.editor">
4+
<slot name="editor" />
55
</div>
6-
<div style="background-color:white;width:50%;">
7-
<slot name="preview"></slot>
6+
<div :class="$style.preview">
7+
<slot name="preview" />
88
</div>
99
</div>
1010
</template>
11+
12+
<style module="VueLive">
13+
.container {
14+
display: flex;
15+
}
16+
.editor {
17+
width: 50%;
18+
}
19+
.preview {
20+
background-color: white;
21+
width: 50%;
22+
}
23+
</style>

0 commit comments

Comments
 (0)