| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <script>
- export default {
- name: "dv-border-box",
- props: {
- objD: {
- type: Object,
- default: () => {
- }
- }
- },
- data() {
- return {}
- },
- created() {
- }
- }
- </script>
- <template>
- <div class="box-content">
- <div class="box-top">
- <span class="box-top-name">{{ objD.titleName }}</span>
- <span class="box-top-unit">{{ objD.titleUnit }}</span>
- </div>
- <div class="box-footer">
- <span class="box-footer-value">{{ objD.value }}</span>
- </div>
- </div>
- </template>
- <style scoped lang="scss">
- .box-content {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- color: #ffffff;
- .box-top {
- width: 100%;
- height:17%;
- display: flex;
- justify-content: center;
- align-items: flex-end;
- .box-top-name {
- display: inline-block;
- font-size: 1rem;
- letter-spacing:2px;
- font-weight: bold;
- // color: #f4d29c;
- }
- .box-top-unit {
- display: inline-block;
- font-size:0.55rem;
- transform: translate(0px, -30%);
- letter-spacing:1px;
- font-weight: bold;
- }
- }
- .box-footer {
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- .box-footer-value {
- font-family: 'LCD2B';
- display: inline-block;
- font-size: 2rem;
- }
- }
- }
- </style>
|