12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <script setup>
- defineProps({
- title: {
- type: String,
- default: ''
- },
- isLarge: {
- type: Boolean,
- default: false
- }
- });
- </script>
- <template>
- <section :class="['layout-card', { 'layout-card_large': isLarge }]">
- <div class="card-header">
- <p class="title">{{ title }}</p>
- </div>
- <div class="card-content">
- <slot></slot>
- </div>
- </section>
- </template>
- <style lang="scss" scoped>
- .layout-card {
- position: relative;
- border-radius: 10px;
- border:1px solid rgba(49, 110,175, .3);
- background: linear-gradient(180deg, rgba(3, 86, 189, 0.28) 0%, rgba(3, 86, 189, 0.06) 34.06%, rgba(3, 86, 189, 0.00) 50.95%, rgba(3, 86, 189, 0.28) 100%);
- .card-header {
- height: 94px;
- background: url('@/assets/images/carbon/bg-title.png') -16px -10px no-repeat;
- background-size: 103% 100%;
- .title {
- @include flex(x, center, start);
- height: 46px;
- padding-left: 57px;
- background: linear-gradient(180deg, #FFF 28.71%, #9CD2FF 77.35%);
- background-clip: text;
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- font-family: YouSheBiaoTiHei;
- font-size: 22px;
- font-weight: 400;
- }
- }
- .card-content {
- position: absolute;
- top: 46px;
- left: 0;
- width: 100%;
- height: calc(100% - 46px);
- }
- }
- .layout-card_large {
- .card-header {
- height: 94px;
- background: url('@/assets/images/carbon/bg-large-title2.png') left 0px no-repeat;
- background-size: 100% 94%;
- .title {
- padding-left: 7%;
- }
- }
- }
- </style>
|