![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/components/States/PA/ |
<template> <div class="pa-plate" :class="{small:small}"> <div class="top bar"> <div class="circle"></div> <div class="circle"></div> </div> <div class="pa-plate-body"> <h3 v-for="(char,index) of licensePlate.substr(0,3).split('')">{{ char }}</h3> <img src="/images/pa/plate-center.svg" alt="Icon" class="plate-center-icon"> <h3 v-for="char of licensePlate.substr(3,6).split('')">{{ char }}</h3> </div> <div class="bottom bar"> <div class="circle"></div> <div class="circle"></div> </div> </div> </template> <script> export default { name: "SplittedPlateNumber", props: { plate: { required: true }, small: { required: false, default: false } }, computed: { licensePlate() { return this.plate.license_plate || this.plate.licence_plate; } } } </script> <style scoped> .pa-plate { background: none; margin-right: 5px; } .pa-plate .bar { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; height: 6px; } .pa-plate .bar.top { border-top-left-radius: 4px; border-top-right-radius: 4px; background: #00008D; } .pa-plate .bar.bottom { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; background: #FFFF00; } .pa-plate .bar .circle { width: 4px; height: 2px; background: #DCDCDC; border-radius: 4px; transform: matrix(1, 0, 0, -1, 0, 0); } .pa-plate .pa-plate-body { padding: 4px 5px 1px 5px; display: flex; align-items: center; justify-content: center; background: #fff; } .pa-plate h3 { margin: 0; color: #00008D; font: 12px / 14px license; } .pa-plate .plate-center-icon { display: block; margin: 0 4px 2px 4px; width: 6px; } </style>