Commit e3c9272c by 周田

style:修改样式

parent bbeeae4d
<template> <template>
<div class="w-48% float-left border-solid border-bluegray border-2"> <div class="w-48% float-left border-solid border-bluegray border-2">
<el-scrollbar ref="scrollbarRef" style="height: 34rem;" class="mb-10 " always> <el-scrollbar ref="scrollbarRef" style="height: 34rem;" class="mb-10 " always>
<div ref="innerRef"> <div ref="innerRef" class="bg-black">
<p v-for="item in items" :key="item" class="scrollbar-demo-item text-sm"> <p v-for="item in items" :key="item" class="scrollbar-demo-item text-sm">
<div>{{ JSON.parse(item)?.ts }}</div> <div>{{ JSON.parse(item)?.ts }}</div>
{{ item }} {{ item }}
...@@ -244,11 +244,14 @@ const deviceNameMap = new Map<string, any>() ...@@ -244,11 +244,14 @@ const deviceNameMap = new Map<string, any>()
const showCmdDialog = () => { const showCmdDialog = () => {
dialogCmdVisible.value = true dialogCmdVisible.value = true
for (let deviceInfo of deviceInfos.value) { // 如果 options 中没有内容的话,将信息存到 options 中
deviceNamesOptions.value.push({ if (deviceNamesOptions.value.length === 0) {
label: deviceInfo.dev_name, for (let deviceInfo of deviceInfos.value) {
value: deviceInfo.dev_name deviceNamesOptions.value.push({
}) label: deviceInfo.dev_name,
value: deviceInfo.dev_name
})
}
} }
// 如果 map 中没有内容的话,将信息存到一个 map 中方便查找 // 如果 map 中没有内容的话,将信息存到一个 map 中方便查找
...@@ -327,7 +330,7 @@ const sendCmd = () => { ...@@ -327,7 +330,7 @@ const sendCmd = () => {
margin: 10px; margin: 10px;
text-align: left; text-align: left;
border-radius: 4px; border-radius: 4px;
background: #fff; background: #f4f4f4;
color: #4d4c4c; color: #4d4c4c;
} }
</style> </style>
...@@ -437,8 +437,8 @@ const addNewVersion = () => { ...@@ -437,8 +437,8 @@ const addNewVersion = () => {
/*border: 1px solid;*/ /*border: 1px solid;*/
/*padding: 10px;*/ /*padding: 10px;*/
/*border-radius: 10px;*/ /*border-radius: 10px;*/
/*margin-bottom: 4px;*/ margin-bottom: 8px;
box-shadow: var(--el-box-shadow-dark); box-shadow: var(--el-box-shadow-light);
background-color: #f9f9f9; background-color: #f9f9f9;
} }
/*.collapse1 .el-collapse-item__wrap {*/ /*.collapse1 .el-collapse-item__wrap {*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment