12345678910111213141516171819202122232425262728293031323334353637 |
- <template>
- <div class="section-pane-container" :style="{ padding: padding }">
- <slot name="title">
- <div class="title" v-if="title">{{ title }}</div>
- </slot>
- <slot></slot>
- </div>
- </template>
- <script>
- export default {
- props: {
- title: { type: String,default: '' },
- padding: { type: String, default: "0 16px 24px" },
- titleHeight: { type: String, default: "" },
- },
- };
- </script>
- <style lang="scss" scoped>
- .section-pane-container {
- width: 100%;
- background-color: #fff;
- border-radius: 8px;
- box-shadow: 0px 2px 6px 0px rgba(73, 78, 97, 0.05);
- box-sizing: border-box;
- .title {
- font-size: 20px;
- color: #3d3d3d;
- height: 62px;
- margin-bottom: 12px;
- line-height: 62px;
- font-weight: 600;
- border-bottom: 1px solid #e4e5e8;
- }
- }
- </style>
|