12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /* 风机矩阵小卡片 */
- <template>
- <div :class="cardStyle">
- <el-row>
- <el-col>
- <div :class="leftStyle">
- <el-row>
- <div :class="titleStyle">G</div>
- </el-row>
- <el-row>
- <div :class="titleStyle">223</div>
- </el-row>
- </div>
- </el-col>
- <el-col>
- <div :class="rightStyle">
- <el-row> <div :class="contentStyle">123.54 kw</div></el-row>
- <el-row> <div :class="contentStyle">8.23 m/s</div></el-row>
- <el-row> <div :class="contentStyle">1234.56 rpm</div></el-row>
- </div>
-
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- export default {
- name: "WindturbineMinCard",
- props: {
- status: String,
- },
- computed: {
- cardStyle: function () {
- return "card-style-" + this.status;
- },
- leftStyle: function () {
- return "card-left-style-" + this.status;
- },
- rightStyle: function () {
- return "card-right-style-" + this.status;
- },
- titleStyle: function () {
- return "card-title-style-" + this.status;
- },
- contentStyle:function(){
- return "card-content-style-" + this.status;
- }
- },
- };
- </script>
- <style scoped>
- .card-style-1 {
- border: 2px solid #4952a6;
- /* width: 130px;
- height: 70px; */
- background-color: rgba(73, 82, 166, 0.5);
- display: flex;
- flex-direction: row;
- position: relative;
- box-sizing: border-box;
- }
- .card-left-style-1 {
- width: 25px;
- height: 41px;
- background-color: rgba(73, 82, 166, 0.7);
- position: relative;
- box-sizing: border-box;
- margin: 3px;
- display: inline-block;
- }
- .card-right-style-1 {
- height: 100%;
- width: 80px;
- border-left: 2px dashed #4952a6;
- position: relative;
- box-sizing: border-box;
- display: inline-block;
- }
- .card-title-style-1 {
- font-size: small;
- }
- .card-content-style-1{
- font-size: 5px;
- }
- </style>
|