fix(data-process): 对齐数据集跳转图标

This commit is contained in:
caoxiaozhu
2026-07-25 22:00:23 +08:00
parent f21a4c954f
commit 9a5282f39c
2 changed files with 10 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ assert.match(detailSource, /v-for="dataset in outputDatasets"/, '任务详情未
assert.match(detailSource, /class="output-dataset-row"[\s\S]*?class="output-dataset-cell"[\s\S]*?class="output-dataset-links"/, '输出数据集没有独立的多行对齐布局')
assert.match(detailSource, /\.output-dataset-links[\s\S]*?display:\s*inline-grid[\s\S]*?grid-template-columns:\s*max-content[\s\S]*?text-align:\s*left/, '输出数据集名称没有统一左边缘')
assert.match(detailSource, /\.output-dataset-links[\s\S]*?\.el-button[\s\S]*?width:\s*100%[\s\S]*?margin-left:\s*0/, '输出数据集链接没有清除默认间距或统一宽度')
assert.match(detailSource, /\.el-button\s*>\s*span[\s\S]*?width:\s*100%[\s\S]*?display:\s*flex/, '输出数据集按钮内容没有撑满统一宽度')
assert.match(detailSource, /\.el-button i[\s\S]*?margin-left:\s*auto/, '输出数据集跳转图标没有统一右对齐')
assert.match(detailSource, /将发布三个独立数据集/, '发布说明仍未明确生成三个独立数据集')
assert.match(detailSource, /outputDatasetBaseName\.value/, '重新同步时未使用单一基础名称')
assert.doesNotMatch(detailSource, /label="数据集类型"/, '发布三个数据集时不应再选择单一数据集类型')

View File

@@ -877,7 +877,15 @@ onBeforeUnmount(() => {
white-space: normal;
}
:deep(.el-button > span) {
width: 100%;
display: flex;
align-items: center;
text-align: left;
}
:deep(.el-button i) {
flex: none;
margin-left: auto;
padding-left: 12px;
}