Commit b424f061e68292a0b46582c10d3c1138d54bde2a
1 parent
87635458
fix: DEFECT-1244 设备名称和SN码各单独一行,只需复制SN即可
Showing
1 changed file
with
18 additions
and
9 deletions
... | ... | @@ -27,16 +27,25 @@ export const columns: BasicColumn[] = [ |
27 | 27 | width: 210, |
28 | 28 | slots: { customRender: 'name', title: 'deviceTitle' }, |
29 | 29 | customRender: ({ record }) => { |
30 | - return h( | |
31 | - 'span', | |
32 | - { | |
33 | - style: { cursor: 'pointer', color: '#377dff' }, | |
34 | - onClick: () => { | |
35 | - handeleCopy(`${record.alias}/${record.name}`); | |
30 | + return h('div', { style: 'display:flex;flex-direction:column' }, [ | |
31 | + h( | |
32 | + 'p', | |
33 | + { | |
34 | + style: { cursor: 'pointer', color: '#377dff' }, | |
36 | 35 | }, |
37 | - }, | |
38 | - `${record.alias}/${record.name}` | |
39 | - ); | |
36 | + `${record.alias}` | |
37 | + ), | |
38 | + h( | |
39 | + 'p', | |
40 | + { | |
41 | + style: { cursor: 'pointer', color: '#377dff' }, | |
42 | + onClick: () => { | |
43 | + handeleCopy(`${record.name}`); | |
44 | + }, | |
45 | + }, | |
46 | + `${record.name}` | |
47 | + ), | |
48 | + ]); | |
40 | 49 | }, |
41 | 50 | }, |
42 | 51 | { | ... | ... |