diff --git a/src/views/system/device/device_detail.vue b/src/views/system/device/device_detail.vue index 7f59c61..43f5b5d 100644 --- a/src/views/system/device/device_detail.vue +++ b/src/views/system/device/device_detail.vue @@ -1,460 +1,769 @@ - - - - \ No newline at end of file + + .operation-buttons { + display: flex; + flex-wrap: wrap; + gap: 10px; + justify-content: space-between; + margin-top: 10px; + + .el-button { + margin: 0; + padding: 0 10px; + flex: 1 1 45%; + } + } + + .detail-tabs { + margin-top: 20px; + + .search-form { + margin-bottom: 20px; + + .el-form-item { + margin-bottom: 10px; + } + } + } +} + +// QR码样式 +.qr-code-box { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + p { + margin-top: 10px; + color: #606266; + font-size: 12px; + } +} + +// 编辑状态下的输入框样式 +.editing { + .info-item { + .el-input, + .el-select { + .el-input__inner { + height: 32px; + line-height: 32px; + } + } + } +} + +// 多选标签的样式 +.el-select-dropdown__item { + padding: 0 10px; + height: 32px; + line-height: 32px; +} + +// 表格样式优化 +.el-table { + th, td { + padding: 8px 0; + } + + .cell { + line-height: 20px; + } +} + +// 标签页样式 +.el-tabs__item { + height: 40px; + line-height: 40px; +} + +// 卡片内容区域padding调整 +.el-card__body { + padding: 20px; +} + +// 输入框hover和focus状态 +.el-input__inner:hover, +.el-select:hover .el-input__inner { + border-color: #409EFF; +} + +.el-input__inner:focus, +.el-select .el-input__inner:focus { + border-color: #409EFF; +} + +// 按钮组样式优化 +.action-buttons { + .el-button + .el-button { + margin-left: 10px; + } + + .el-button { + padding: 7px 15px; + font-size: 12px; + + &--mini { + padding: 5px 10px; + } + } +} + +// 表单项间距 +.el-form-item { + margin-bottom: 18px; + + &:last-child { + margin-bottom: 0; + } +} + +// 下拉选择器宽度 +.el-select { + width: 100%; +} + +// 标签样式 +.el-tag { + margin-right: 8px; + margin-bottom: 5px; + + &:last-child { + margin-right: 0; + } +} + +// 弹出框样式 +.el-popover { + min-width: 150px; + padding: 12px; +} + +// 加载状态 +.loading { + position: relative; + min-height: 200px; + + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(255, 255, 255, 0.7); + z-index: 1000; + } +} + \ No newline at end of file