59 lines
1.0 KiB
Vue
59 lines
1.0 KiB
Vue
<script>
|
|
import AiTitle from "dui/packages/basic/AiTitle.vue";
|
|
|
|
export default {
|
|
name: "AiPage",
|
|
components: {AiTitle},
|
|
props: {
|
|
contentString: {default: "card"}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<section class="AiPage">
|
|
<slot v-if="$slots.title" name="title"/>
|
|
<ai-title v-else-if="$attrs.title" :title="$attrs.title" isShowBottomBorder/>
|
|
<div class="fill main">
|
|
<div class="left">
|
|
<slot name="left"/>
|
|
</div>
|
|
<div class="fill" :class="[contentString]">
|
|
<slot/>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.AiPage {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0 20px;
|
|
overflow: hidden;
|
|
background: #f3f6f9;
|
|
|
|
.main {
|
|
display: flex;
|
|
padding: 20px 0;
|
|
gap: 10px;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.card {
|
|
padding: 12px 16px 12px;
|
|
background: #FFFFFF;
|
|
border-radius: 2px;
|
|
box-shadow: 0 4px 6px -2px rgba(15, 15, 21, 0.15);
|
|
}
|
|
|
|
.left {
|
|
max-width: 50%;
|
|
width: auto;
|
|
}
|
|
}
|
|
</style>
|