| | |
| | | show-overflow-tooltip |
| | | :sortable="item.sortable ? true : false" |
| | | :type="item.type" |
| | | :width="item.width" |
| | | :width="item.dataType === 'action'? getWidth(item.operation) : item.width" |
| | | align="center" |
| | | > |
| | | <!-- <div class="123" v-if="item.type == ''"> --> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | getWidth(row) { |
| | | let count = 0 |
| | | console.log('row---', row) |
| | | row.forEach(a => { |
| | | count += a.name.length |
| | | }) |
| | | return count * 15 + 40 + 'px' |
| | | }, |
| | | iconFn(row) { |
| | | if (row.name === "编辑" || row.name === "修改") { |
| | | return "el-icon-edit"; |
| | |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | padding-right: 4px; |
| | | padding-left: 10px; |
| | | padding-right: 4px !important; |
| | | padding-left: 10px !important; |
| | | } |
| | | .link { |
| | | color: rgb(64, 158, 255); |
| | | cursor: pointer; |
| | | } |
| | | >>> .el-table__body-wrapper::-webkit-scrollbar { |
| | | height: 14px; /* 设置滚动条宽度 */ |
| | | } |
| | | </style> |