123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <div class="border-box">
- <div class="top"></div>
- <div class="right"></div>
- <div class="bottom"></div>
- <div class="left"></div>
- <div class="center">
- <slot></slot>
- </div>
- </div>
- </template>
- <script lang="ts" setup></script>
- <style lang="scss" scoped>
- .border-box {
- width: 95px;
- height: 95px;
- position: relative;
- padding: 4px;
- }
- .top {
- position: absolute;
- top: 0;
- left: 4px;
- width: 87px;
- height: 1px;
- background-color: #7dc8ea;
- }
- .right {
- position: absolute;
- top: 4px;
- right: 0;
- width: 1px;
- height: 87px;
- background-color: #7dc8ea;
- }
- .bottom {
- position: absolute;
- bottom: 0;
- left: 4px;
- width: 87px;
- height: 1px;
- background-color: #7dc8ea;
- }
- .left {
- position: absolute;
- top: 4px;
- left: 0;
- width: 1px;
- height: 87px;
- background-color: #7dc8ea;
- }
- .center {
- position: absolute;
- top: 4px;
- left: 4px;
- width: 87px;
- height: 87px;
- border: 1px solid #7dc8ea;
- display: flex;
- justify-content: center;
- align-items: center;
- font-weight: 500;
- font-size: 38px;
- color: rgba(0, 0, 0, 0.9);
- }
- </style>
|