Showing
1 changed file
with
7 additions
and
3 deletions
@@ -75,9 +75,12 @@ | @@ -75,9 +75,12 @@ | ||
75 | </Tooltip> | 75 | </Tooltip> |
76 | </template> | 76 | </template> |
77 | <template #deviceProfile="{ record }"> | 77 | <template #deviceProfile="{ record }"> |
78 | - <a-button type="link" class="ml-2" @click="goDeviceProfile(record.deviceProfile.name)"> | 78 | + <CheckableTag |
79 | + @click="goDeviceProfile(record.deviceProfile.name)" | ||
80 | + style="white-space: normal; height: auto" | ||
81 | + > | ||
79 | {{ record.deviceProfile.name }} | 82 | {{ record.deviceProfile.name }} |
80 | - </a-button> | 83 | + </CheckableTag> |
81 | </template> | 84 | </template> |
82 | 85 | ||
83 | <template #deviceType="{ record }"> | 86 | <template #deviceType="{ record }"> |
@@ -198,7 +201,7 @@ | @@ -198,7 +201,7 @@ | ||
198 | } from '/@/api/device/model/deviceModel'; | 201 | } from '/@/api/device/model/deviceModel'; |
199 | import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table'; | 202 | import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table'; |
200 | import { columns, searchFormSchema } from './config/device.data'; | 203 | import { columns, searchFormSchema } from './config/device.data'; |
201 | - import { Tag, Tooltip, Popover, Popconfirm, Button } from 'ant-design-vue'; | 204 | + import { Tag, Tooltip, Popover, Popconfirm, Button, CheckableTag } from 'ant-design-vue'; |
202 | import { | 205 | import { |
203 | deleteDevice, | 206 | deleteDevice, |
204 | devicePage, | 207 | devicePage, |
@@ -248,6 +251,7 @@ | @@ -248,6 +251,7 @@ | ||
248 | Popconfirm, | 251 | Popconfirm, |
249 | BatchImportModal, | 252 | BatchImportModal, |
250 | Button, | 253 | Button, |
254 | + CheckableTag, | ||
251 | }, | 255 | }, |
252 | setup(_) { | 256 | setup(_) { |
253 | const { createMessage } = useMessage(); | 257 | const { createMessage } = useMessage(); |