File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ const columns = [
9292 {
9393 title: '算力(已分配/总量)',
9494 dataIndex: 'used',
95+ minWidth: 100,
9596 render: ({ coreTotal, coreUsed, isExternal }) => (
9697 <span>
9798 {isExternal ? '--' : coreUsed}/{coreTotal}
@@ -101,6 +102,7 @@ const columns = [
101102 {
102103 title: '显存(已分配/总量)',
103104 dataIndex: 'w',
105+ minWidth: 100,
104106 render: ({ memoryTotal, memoryUsed, isExternal }) => (
105107 <span>
106108 {isExternal ? '--' : roundToDecimal(memoryUsed / 1024, 1)}/
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ const columns = [
103103 {
104104 title: '算力(已分配/总量)',
105105 dataIndex: 'used',
106+ minWidth: 100,
106107 render: ({ coreTotal, coreUsed, isExternal }) => (
107108 <span>
108109 {isExternal ? '--' : coreUsed}/{coreTotal}
@@ -112,6 +113,7 @@ const columns = [
112113 {
113114 title: '显存(已分配/总量)',
114115 dataIndex: 'w',
116+ minWidth: 100,
115117 render: ({ memoryTotal, memoryUsed, isExternal }) => (
116118 <span>
117119 {isExternal ? '--' : roundToDecimal(memoryUsed / 1024, 1)}/
Original file line number Diff line number Diff line change 6767 dataIndex,
6868 render,
6969 width,
70+ minWidth,
7071 fixed,
7172 sort,
7273 filters,
7980 :label =" title"
8081 :formatter =" render"
8182 :width =" width"
83+ :min-width =" minWidth"
8284 :fixed =" fixed"
8385 :sortable =" sort && 'custom'"
8486 :filters =" isFunction(filters) ? filters(state.list) : filters"
9496
9597 <el-table-column
9698 fixed =" right"
97- :min-width =" 180 "
99+ :min-width =" 120 "
98100 label =" 操作"
99101 v-if =" rowAction.length"
100102 >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" text-plus" >
3- <span :class =" { link: !!to }" @click =" handleClick" > {{ text }}</span >
3+ <span :class =" { link: !!to }" @click =" handleClick" >{{ text }}</span >
44 <div v-if =" copy && text" class =" copy-ico" @click =" handleCopy" >
55 <svg-icon icon =" copy" />
66 </div >
@@ -42,6 +42,13 @@ const handleClick = () => {
4242 display : inline-flex ;
4343 gap : 10px ;
4444 // width: 100%;
45+ max-width : 100% ;
46+
47+ span {
48+ overflow : hidden ;
49+ text-overflow : ellipsis ;
50+ }
51+
4552 .link {
4653 color : var (--el-color-primary );
4754 cursor : pointer ;
You can’t perform that action at this time.
0 commit comments