diff --git a/src/components/settings/sensorConfig.vue b/src/components/settings/sensorConfig.vue index ba5bb4f..9e3dbdb 100644 --- a/src/components/settings/sensorConfig.vue +++ b/src/components/settings/sensorConfig.vue @@ -1,15 +1,39 @@ @@ -19,44 +43,52 @@ function handleDelete(index: number) { 传感器 - - - - - 名称 - - - ID - - - 安装位置 - - - 操作 - - + + + + + - - - - - - - {{ sensor.id }} - - - - - - - + + + + + + + + + + + + + @@ -75,68 +107,10 @@ function handleDelete(index: number) { display: block; } -.sensor-table { - border: 1px solid #e8e8e8; - border-radius: 8px; - overflow: hidden; -} - -.table-header { - display: flex; - background-color: #fafafa; - padding: 12px 0; - border-bottom: 1px solid #e8e8e8; -} - -.table-row { - display: flex; - padding: 12px 0; - border-bottom: 1px solid #e8e8e8; -} - -.table-row:last-child { - border-bottom: none; -} - -.col-name { - flex: 2; - padding: 0 12px; - display: flex; - align-items: center; -} - -.col-id { - flex: 1; - padding: 0 12px; +.action-cell { display: flex; align-items: center; justify-content: center; - font-size: 18px; - color: #333; -} - -.col-position { - flex: 2; - padding: 0 12px; - display: flex; - align-items: center; -} - -.col-action { - flex: 1; - padding: 0 12px; - display: flex; - align-items: center; - justify-content: center; -} - -.table-header .col-name, -.table-header .col-id, -.table-header .col-position, -.table-header .col-action { - font-size: 18px; - font-weight: bold; - color: #333; } .action-btn { @@ -146,14 +120,10 @@ function handleDelete(index: number) { display: flex; align-items: center; justify-content: center; - cursor: pointer; } -.action-btn.add { - background-color: #1890ff; -} - -.action-btn.delete { - background-color: #ff4d4f; +.action-icon { + width: 32px; + height: 32px; } diff --git a/src/static/add.png b/src/static/add.png new file mode 100644 index 0000000..35c27f1 Binary files /dev/null and b/src/static/add.png differ diff --git a/src/static/reduce.png b/src/static/reduce.png new file mode 100644 index 0000000..b715d55 Binary files /dev/null and b/src/static/reduce.png differ