Commit af97e9f3911a50695998234c40219f63eab38ec0

Authored by ww
1 parent ff45d141

perf: 优化设备列表页面&消息记录页面

@@ -31,14 +31,14 @@ export const columns: BasicColumn[] = [ @@ -31,14 +31,14 @@ export const columns: BasicColumn[] = [
31 h( 31 h(
32 'p', 32 'p',
33 { 33 {
34 - style: { cursor: 'pointer', color: '#377dff' }, 34 + class: 'cursor-pointer',
35 }, 35 },
36 `${record.alias}` 36 `${record.alias}`
37 ), 37 ),
38 h( 38 h(
39 'p', 39 'p',
40 { 40 {
41 - style: { cursor: 'pointer', color: '#377dff' }, 41 + class: 'cursor-pointer text-blue-500',
42 onClick: () => { 42 onClick: () => {
43 handeleCopy(`${record.name}`); 43 handeleCopy(`${record.name}`);
44 }, 44 },
1 <template> 1 <template>
2 - <div :class="[`${prefixCls}-bottom`, '!dark:bg-dark-900']"> 2 + <div :class="[`${prefixCls}-bottom`, '!dark:bg-dark-900', 'bg-light-50']">
3 <Tabs> 3 <Tabs>
4 <template v-for="item in achieveList" :key="item.key"> 4 <template v-for="item in achieveList" :key="item.key">
5 <TabPane :tab="item.name"> 5 <TabPane :tab="item.name">
@@ -138,7 +138,7 @@ const deviceTableColumn: BasicColumn[] = [ @@ -138,7 +138,7 @@ const deviceTableColumn: BasicColumn[] = [
138 }, 138 },
139 }, 139 },
140 [ 140 [
141 - h('div', { class: 'text-blue-400 truncate' }, record.alias), 141 + h('div', { class: 'truncate' }, record.alias),
142 h('div', { class: 'text-blue-400 truncate' }, record.name), 142 h('div', { class: 'text-blue-400 truncate' }, record.name),
143 ] 143 ]
144 ), 144 ),