123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <template>
- <div class="relative">
- <div class="flex">
- <div class="_1"></div>
- <div class="_2"></div>
- <div class="_3"></div>
- <div class="_4"></div>
- </div>
- <div style="height: 44rpx; background: #fc5b20; position: relative; top: -1px"></div>
- <div class="absolute left-2 top-2 bold italic text-white fs14">{{ title }}</div>
- </div>
- </template>
- <script>
- export default {
- props: {
- title: '',
- },
- }
- </script>
- <style>
- ._1 {
- width: 60rpx;
- height: 24rpx;
- background-color: #fc5b20;
- border-top-left-radius: 18rpx;
- }
- ._2 {
- transform: skew(45deg, 0deg);
- width: 140rpx;
- height: 24rpx;
- background-color: #fc5b20;
- border-radius: 10rpx;
- border-bottom-right-radius: 0;
- border-top-right-radius: 0;
- position: relative;
- left: -30rpx;
- }
- ._3 {
- transform: skew(45deg, 0deg);
- width: 140rpx;
- height: 24rpx;
- background-color: #000;
- border-radius: 10rpx;
- position: relative;
- border-bottom-left-radius: 0;
- border-top-left-radius: 0;
- left: -30rpx;
- }
- ._4 {
- width: 60rpx;
- height: 24rpx;
- background-color: #000;
- border-top-right-radius: 18rpx;
- position: relative;
- left: -60rpx;
- }
- </style>
|