123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <div class="borderTemplate">
- <div class="title">
- <div class="icon"></div>
- <span>{{ titleName }}</span>
- <slot name="title"></slot>
- </div>
- <div class="borderContent">
- <slot></slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "borderTemplate",
- props: {
- titleName: "",
- },
- data() {
- return {};
- },
- mounted() {},
- methods: {},
- };
- </script>
- <style lang="scss" scoped>
- .borderTemplate {
- border-width: 0px;
- position: absolute;
- right: 10px;
- top: 68%;
- width: 21.6%; //416px
- height: calc((100% - 52px) / 3);
- display: -ms-flexbox;
- display: flex;
- }
- .title {
- border-width: 0px;
- width: 100%;
- height: 40px;
- // font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
- // font-weight: 700;
- // font-style: normal;
- // color: #fff;
- // padding: 2%;
- background: no-repeat;
- background-image: url("/static/images/overview/标题框.png");
- .icon {
- background: no-repeat;
- background-image: url("/static/images/overview/icon_标题框装饰.png");
- display: inline-block;
- width: 30px;
- height: 30px;
- background-position: 14px 7px;
- }
- span {
- color: #fff;
- font-size: 14px;
- font-weight: bold;
- position: relative;
- bottom: 0.5rem;
- }
- }
- .borderContent {
- // border: #00FFFF 1px solid;
- position: absolute;
- left: 5%;
- width: 100%;
- height: calc(100% - 50px);
- top: 40px;
- }
- </style>
|