Files
dvcp_v2_wxcp_app/components/AiGroup.vue

67 lines
1.2 KiB
Vue
Raw Normal View History

2022-05-19 17:28:53 +08:00
<template>
2022-12-07 18:57:37 +08:00
<section class="AiGroup" :class="{noBorder,description,bottomBorder}" :style="{paddingLeft:left+'rpx'}">
<div class="groupHeader" v-if="title" v-text="title"/>
2022-05-19 17:28:53 +08:00
<slot/>
</section>
</template>
<script>
export default {
name: "AiGroup",
provide() {
return {
labelColor: this.labelColor,
description: this.description,
activeStep: this.activeStep
}
},
props: {
title: String,
noBorder: Boolean,
left: {default: 32},
labelColor: {default: "#333"},
description: {default: false}, //用于展示则不会又红星,会把标签的内间距去掉
2022-12-07 18:57:37 +08:00
activeStep: {default: 1},//用于步骤组件的当前步数,
bottomBorder: Boolean
2022-05-19 17:28:53 +08:00
},
data() {
return {
items: []
}
2022-05-19 17:28:53 +08:00
}
}
</script>
<style lang="scss" scoped>
.AiGroup {
background: #FFFFFF;
box-shadow: inset 0px -1px 0px 0px #DDDDDD;
&.noBorder {
box-shadow: none;
}
2022-05-19 17:28:53 +08:00
& + .AiGroup {
margin-top: 16px;
}
2022-12-07 18:57:37 +08:00
&.bottomBorder + .AiGroup {
margin-top: 0 !important;
}
.groupHeader {
font-weight: bold;
font-size: 36px;
padding-left: 20px;
margin-bottom: 16px;
}
&.description {
.groupHeader {
padding-left: 0;
}
}
2022-05-19 17:28:53 +08:00
}
</style>