Showing
1 changed file
with
17 additions
and
3 deletions
| @@ -4,7 +4,7 @@ import { FormSchema } from '/@/components/Table'; | @@ -4,7 +4,7 @@ import { FormSchema } from '/@/components/Table'; | ||
| 4 | import { DeviceTypeEnum, DeviceState, DeviceRecord } from '/@/api/device/model/deviceModel'; | 4 | import { DeviceTypeEnum, DeviceState, DeviceRecord } from '/@/api/device/model/deviceModel'; |
| 5 | import { deviceProfile } from '/@/api/device/deviceManager'; | 5 | import { deviceProfile } from '/@/api/device/deviceManager'; |
| 6 | import { h } from 'vue'; | 6 | import { h } from 'vue'; |
| 7 | -import { Tag } from 'ant-design-vue'; | 7 | +import { Tag, Tooltip } from 'ant-design-vue'; |
| 8 | import { handeleCopy } from '../../profiles/step/topic'; | 8 | import { handeleCopy } from '../../profiles/step/topic'; |
| 9 | 9 | ||
| 10 | // 表格列数据 | 10 | // 表格列数据 |
| @@ -34,7 +34,14 @@ export const columns: BasicColumn[] = [ | @@ -34,7 +34,14 @@ export const columns: BasicColumn[] = [ | ||
| 34 | { | 34 | { |
| 35 | class: 'cursor-pointer truncate', | 35 | class: 'cursor-pointer truncate', |
| 36 | }, | 36 | }, |
| 37 | - `${record.alias}` | 37 | + h( |
| 38 | + Tooltip, | ||
| 39 | + { | ||
| 40 | + placement: 'topLeft', | ||
| 41 | + title: `${record.alias}`, | ||
| 42 | + }, | ||
| 43 | + `${record.alias}` | ||
| 44 | + ) | ||
| 38 | ), | 45 | ), |
| 39 | h( | 46 | h( |
| 40 | 'div', | 47 | 'div', |
| @@ -44,7 +51,14 @@ export const columns: BasicColumn[] = [ | @@ -44,7 +51,14 @@ export const columns: BasicColumn[] = [ | ||
| 44 | handeleCopy(`${record.name}`); | 51 | handeleCopy(`${record.name}`); |
| 45 | }, | 52 | }, |
| 46 | }, | 53 | }, |
| 47 | - `${record.name}` | 54 | + h( |
| 55 | + Tooltip, | ||
| 56 | + { | ||
| 57 | + placement: 'topLeft', | ||
| 58 | + title: `${record.name}`, | ||
| 59 | + }, | ||
| 60 | + `${record.name}` | ||
| 61 | + ) | ||
| 48 | ), | 62 | ), |
| 49 | ]); | 63 | ]); |
| 50 | }, | 64 | }, |