Commit dfeb15db6fb2cba7a1cb08216ba8eea63d41e8e7

Authored by fengtao
1 parent 07b5fc75

pref:产品topic列表部分字段未对齐

... ... @@ -22,45 +22,47 @@
22 22 </script>
23 23
24 24 <template>
25   - <section class="bg-gray-100 p-4 dark:bg-dark-900 w-full h-full">
  25 + <!-- <section class="bg-gray-100 p-4 dark:bg-dark-900 w-full h-full"> -->
  26 + <div>
26 27 <BasicTable @register="register">
27 28 <template #function="{ record }">
28 29 <a-tooltip :title="record.function">
29   - <a-button type="text" class="ml-2" @click="handeleCopy(record.function)">
  30 + <a-button type="text" class="" @click="handeleCopy(record.function)">
30 31 <span>{{ record.function.slice(0, 13) }}</span>
31 32 </a-button>
32 33 </a-tooltip>
33 34 </template>
34 35 <template #release="{ record }">
35 36 <a-tooltip :title="record.release">
36   - <a-button type="text" class="ml-2" @click="handeleCopy(record.release)">
  37 + <a-button type="text" class="" @click="handeleCopy(record.release)">
37 38 <span>{{ record.release.slice(0, 30) }}</span>
38 39 </a-button>
39 40 </a-tooltip>
40 41 </template>
41 42 <template #subscribe="{ record }">
42 43 <a-tooltip :title="record.subscribe">
43   - <a-button type="text" class="ml-2" @click="handeleCopy(record.subscribe)">
  44 + <a-button type="text" class="" @click="handeleCopy(record.subscribe)">
44 45 <span>{{ record.subscribe.slice(0, 30) }}</span>
45 46 </a-button>
46 47 </a-tooltip>
47 48 </template>
48 49 <template #platform="{ record }">
49 50 <a-tooltip :title="record.platform">
50   - <a-button type="text" class="ml-2" @click="handeleCopy(record.platform)">
  51 + <a-button type="text" style="margin-left: -10px" @click="handeleCopy(record.platform)">
51 52 <span>{{ record.platform }}</span>
52 53 </a-button>
53 54 </a-tooltip>
54 55 </template>
55 56 <template #device="{ record }">
56 57 <a-tooltip :title="record.device">
57   - <a-button type="text" class="ml-2" @click="handeleCopy(record.device)">
  58 + <a-button type="text" style="margin-left: -10px" @click="handeleCopy(record.device)">
58 59 <span>{{ record.device }}</span>
59 60 </a-button>
60 61 </a-tooltip>
61 62 </template>
62 63 </BasicTable>
63   - </section>
  64 + </div>
  65 + <!-- </section> -->
64 66 </template>
65 67 <style scoped>
66 68 :deep(.ant-table-body) {
... ...
... ... @@ -4,7 +4,7 @@ export const topicTableColumn: BasicColumn[] = [
4 4 {
5 5 title: '设备类型',
6 6 dataIndex: 'deviceType',
7   - width: 50,
  7 + width: 40,
8 8 customRender: ({ text, index }: { text: any; index: number }) => {
9 9 const obj: any = {
10 10 children: text,
... ... @@ -28,31 +28,31 @@ export const topicTableColumn: BasicColumn[] = [
28 28 {
29 29 title: '功能',
30 30 dataIndex: 'function',
31   - width: 100,
  31 + width: 80,
32 32 slots: { customRender: 'function' },
33 33 },
34 34 {
35 35 title: '发布主题',
36 36 dataIndex: 'release',
37   - width: 120,
  37 + width: 80,
38 38 slots: { customRender: 'release' },
39 39 },
40 40 {
41 41 title: '订阅主题',
42 42 dataIndex: 'subscribe',
43   - width: 120,
  43 + width: 80,
44 44 slots: { customRender: 'subscribe' },
45 45 },
46 46 {
47 47 title: '平台',
48 48 dataIndex: 'platform',
49   - width: 30,
  49 + width: 50,
50 50 slots: { customRender: 'platform' },
51 51 },
52 52 {
53 53 title: '设备',
54 54 dataIndex: 'device',
55   - width: 30,
  55 + width: 50,
56 56 slots: { customRender: 'device' },
57 57 },
58 58 ];
... ...