Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 | 7x 7x 7x 7x 7x | <template>
<div :class="[$style.root, $env.VUE_APP_DESIGNER ? $style.height : null]" vusion-slot-name="default">
<slot></slot>
<div v-if="!$slots.default" :class="$style.box" :active="active">
<u-text :text="text"></u-text>
</div>
</div>
</template>
<script>
export default {
name: 'l-root',
props: {
text: String, // 为空界面的提示文字
active: Boolean,
},
};
</script>
<style module>
.root {
height: 100%;
width: 100%;
}
.box {
display: flex;
height: 100%;
width: 100%;
justify-content: center;
align-items: center;
background: #F7F8FA;
color: #999;
}
.box[active] {
background: rgba(78, 117, 236, 0.1);
border: 1px dashed #4E75EC;
color: #4E75EC;
}
.height {
min-height: 200px;
padding-bottom: 100px;
}
</style>
|