File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
experiment/pages/index/components Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" w-full relative" >
3
- <div class =" relative overflow-auto " :class =" maxW" >
4
- <div class =" w-full" >
5
- <table class =" w-full border-collapse table-auto border overflow-auto " >
3
+ <div class =" relative w-full " :class =" maxW" >
4
+ <div class =" w-full overflow-auto border " >
5
+ <table class =" w-full" >
6
6
<!-- 标签用于对表格中的列进行组合,以便对其进行格式化 -->
7
7
<colgroup >
8
8
<col
27
27
class =" overflow-hidden"
28
28
:class =" item.style ? item.style : 'px-2 py-3'"
29
29
:style =" { width: widths[index] + 'px' }"
30
+ :title =" item.title"
30
31
>
31
32
{{ item.title }}
32
33
<!-- 拖拽点 -->
33
34
<span
34
35
class =" w-1.5 h-full absolute right-0 top-0 hover:bg-positive-dimmer hover:opacity-20 cursor-col-resize"
35
36
:class =" activeColumnIndex === index ? 'bg-positive-highest' : ''"
36
37
@mousedown =" (e) => resize(e, index)"
38
+ v-if =" !column.unresizeable"
37
39
></span >
38
40
</div >
39
41
</th >
51
53
<td
52
54
v-for =" (item, index) in column"
53
55
:key =" item.key"
56
+ :title =" dataColumn[item.key]"
54
57
class =" overflow-hidden"
55
58
:class =" `${'swanlab-table-column-' + index} ${resize_index === -1 ? 'hover:bg-blue-100' : ''}`"
56
59
@mouseover =" () => (hoverColumnIndex = index)"
Original file line number Diff line number Diff line change 5
5
<slot name =" left" ></slot >
6
6
</div >
7
7
<!-- 右侧主体区域 -->
8
- <div class =" w-full h-full overflow-auto " >
8
+ <div class =" w-full h-full overflow-hidden " >
9
9
<slot ></slot >
10
10
</div >
11
11
</div >
Original file line number Diff line number Diff line change 8
8
$t('experiment.index.config.help.config')
9
9
}}</SLHelp >
10
10
</div >
11
- <SLTable :column =" column" :data =" configs" high-light />
11
+ <SLTable :column =" column" :data =" configs" />
12
12
</div >
13
13
<div v-if =" summaries?.length !== 0" >
14
14
<div class =" flex items-center pb-4" v-if =" summaries?.length !== 0" >
17
17
>{{ $t('experiment.index.config.help.summary') }}
18
18
</SLHelp >
19
19
</div >
20
- <SLTable :column =" column" :data =" summaries" high-light />
20
+ <SLTable :column =" column" :data =" summaries" />
21
21
</div >
22
22
</div >
23
23
<div class =" w-full h-6" ></div >
31
31
* @since : 2023-12-11 17:07:31
32
32
**/
33
33
import ExtendBlock from ' @swanlab-vue/views/experiment/components/ExtendBlock.vue'
34
- import SLTable from ' @swanlab-vue/components/SLTable.vue '
34
+ import SLTable from ' @swanlab-vue/components/table '
35
35
import SLHelp from ' @swanlab-vue/components/SLHelp.vue'
36
36
import http from ' @swanlab-vue/api/http'
37
37
import { ref } from ' vue'
Original file line number Diff line number Diff line change 21
21
<div class =" p-6" >
22
22
<h2 class =" text-xl font-semibold mb-4" >{{ $t('home.list.title') }}</h2 >
23
23
<!-- 实验表格 -->
24
- <SLTable :column =" column" :data =" experiments_table" high-light v-if =" tags" >
24
+ <SLTable :column =" column" :data =" experiments_table" v-if =" tags" >
25
25
<template v-slot :name =" { row } " >
26
26
<ExperimentName :name =" row.name" :id =" row.experiment_id" :color =" row.color" />
27
27
</template >
You can’t perform that action at this time.
0 commit comments