commit | author | age | ||
4f1007 | 1 | <template> |
CM | 2 | <div> |
3 | <header> | |
4 | <slot name="header"></slot> | |
5 | </header> | |
6 | <slot></slot> | |
7 | </div> | |
8 | </template> | |
9 | ||
10 | <script> | |
11 | export default {}; | |
12 | </script> | |
13 | ||
14 | <style scoped> | |
15 | header { | |
16 | display: flex; | |
17 | justify-content: space-between; | |
18 | align-items: center; | |
19 | } | |
20 | div { | |
21 | margin: 2rem auto; | |
22 | max-width: 30rem; | |
23 | border-radius: 12px; | |
24 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); | |
25 | padding: 1rem; | |
26 | } | |
27 | </style> |