fix: 修复管理端前端 lint 与构建问题

- 收敛 easyflow-ui-admin 的 lint、格式和类型问题

- 修正 demo 页面与管理端前端构建失败点

- 验证 pnpm lint 与 pnpm build 均已通过
This commit is contained in:
2026-04-05 21:39:13 +08:00
parent bb72e19c84
commit 7e7c236c2a
240 changed files with 5151 additions and 4701 deletions

View File

@@ -233,14 +233,14 @@ onMounted(() => {
v-loading="loading"
:element-loading-text="loadingText"
>
<template #default="{ node, data }">
<template #default="{ node, data: itemData }">
<span class="tree-node">
<span class="node-label">{{ $t(node.label) }}</span>
<span
v-if="showCount && data[defaultProps.children]"
v-if="showCount && itemData[defaultProps.children]"
class="node-count"
>
({{ data[defaultProps.children].length }})
({{ itemData[defaultProps.children].length }})
</span>
</span>
</template>
@@ -278,17 +278,17 @@ onMounted(() => {
.tree-node {
display: flex;
align-items: center;
gap: 8px;
align-items: center;
min-width: 0;
}
.node-label {
overflow: hidden;
color: var(--el-text-color-primary);
text-overflow: ellipsis;
font-size: 14px;
font-weight: 500;
text-overflow: ellipsis;
color: var(--el-text-color-primary);
white-space: nowrap;
}
@@ -299,22 +299,22 @@ onMounted(() => {
min-width: 22px;
height: 20px;
padding: 0 6px;
color: var(--el-text-color-secondary);
font-size: 12px;
line-height: 1;
color: var(--el-text-color-secondary);
background: var(--el-fill-color);
border-radius: 999px;
}
:deep(.el-tree) {
background: transparent;
color: inherit;
background: transparent;
}
:deep(.el-tree-node__content) {
height: 38px;
margin-bottom: 4px;
padding: 0 10px;
margin-bottom: 4px;
border-radius: 10px;
transition:
background-color 0.18s ease,