提交 68f5cff7 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 配置连接显示图标

上级 373a67f7
差异被折叠。
...@@ -4,6 +4,7 @@ import { ElMessage } from 'element-plus' ...@@ -4,6 +4,7 @@ import { ElMessage } from 'element-plus'
import { getTripConnections, bindTripConnections } from '../api' import { getTripConnections, bindTripConnections } from '../api'
import type { ConnectionType } from '@/composables/useAllData' import type { ConnectionType } from '@/composables/useAllData'
import { useConnection } from '@/composables/useAllData' import { useConnection } from '@/composables/useAllData'
import ConnectionIcon from '@/components/ConnectionIcon.vue'
const props = defineProps<{ const props = defineProps<{
data: TripTemplate data: TripTemplate
...@@ -55,7 +56,7 @@ function handleSave() { ...@@ -55,7 +56,7 @@ function handleSave() {
:class="{ 'is-active': isActive(item) }" :class="{ 'is-active': isActive(item) }"
@click="toggleSelection(item)"> @click="toggleSelection(item)">
<el-checkbox :model-value="isActive(item)" /> <el-checkbox :model-value="isActive(item)" />
<div class="connection-item__icon"></div> <div class="connection-item__icon"><ConnectionIcon :name="item.type + ''" /></div>
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -76,7 +77,7 @@ function handleSave() { ...@@ -76,7 +77,7 @@ function handleSave() {
} }
.connection-item { .connection-item {
position: relative; position: relative;
height: 124px; height: 100px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论