1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| <!--
| * @Author : yuan
| * @Date : 2025-06-14 15:19:16
| * @LastEditors : yuan
| * @LastEditTime : 2025-06-27 14:33:15
| * @FilePath : \src\components\basic-main-content\main.vue
| * @Description :
| * Copyright 2025 OBKoro1, All Rights Reserved.
| * 2025-06-14 15:19:16
| -->
| <template>
| <div class="basic-main-content">
| <slot></slot>
| </div>
| </template>
|
| <script>
| export default {
| name: 'basicMainContent',
| props: {
| radius: {
| type: [String, Number],
| default: 10,
| },
| background: {
| type: String,
| },
| block: {
| type: Boolean,
| default: false,
| },
| },
| computed: {
| styleName () {
| return {
| borderRadius: `${this.radius}px`,
| background: this.background,
| }
| },
| },
| }
| </script>
|
| <style lang="scss" scoped>
| .basic-main-content {
| height: 0;
| flex: 1;
| }
| </style>
|
|