大屏样式完成
This commit is contained in:
@@ -4,9 +4,13 @@
|
||||
<template v-if="$slots.title" #title>
|
||||
<slot name="title"/>
|
||||
</template>
|
||||
<slot/>
|
||||
<div :style="{padding}">
|
||||
<slot/>
|
||||
</div>
|
||||
</component>
|
||||
<slot style="width: 100%; height: 100%;" v-else></slot>
|
||||
<div v-else :style="{padding}">
|
||||
<slot style="width: 100%; height: 100%;"/>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -54,7 +58,8 @@ export default {
|
||||
theme: {
|
||||
type: String,
|
||||
default: '0'
|
||||
}
|
||||
},
|
||||
padding: {default: 0}
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user