style: 对list的类型值添加点击打开编辑弹窗效果
Build and Deploy Vue3 / build (push) Successful in 2m53s
Build and Deploy Vue3 / deploy (push) Successful in 56s

This commit is contained in:
2026-03-11 12:48:21 +08:00
parent 86f3835e51
commit 20790cf029
+16 -2
View File
@@ -90,7 +90,7 @@
</span>
<span v-else-if="row.data.type === 'file_list'">
<div v-if="row.data.value" class="file-list-summary">
<el-tag type="primary" size="small">
<el-tag type="primary" size="small" @click="handleEditSetting(row.data)" style="cursor: pointer;">
<el-icon><Folder /></el-icon>
{{ getFileList(row.data.value).length }} 个文件
</el-tag>
@@ -99,7 +99,7 @@
</span>
<span v-else-if="row.data.type === 'string_list'">
<div v-if="row.data.value" class="string-list-summary">
<el-tag type="success" size="small">
<el-tag type="success" size="small" @click="handleEditSetting(row.data)" style="cursor: pointer;">
<el-icon><Document /></el-icon>
{{ getStringList(row.data.value).length }} 条字符串
</el-tag>
@@ -2618,6 +2618,13 @@ onMounted(() => {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
transition: all 0.2s ease;
}
.file-list-summary .el-tag:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 字符串列表摘要样式 */
@@ -2630,6 +2637,13 @@ onMounted(() => {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
transition: all 0.2s ease;
}
.string-list-summary .el-tag:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 表格中的文件列表和字符串列表样式 */