chore: 完成多批次代码优化与重构

- 重构工作流模块目录结构,迁移代码文件
- 修复类型断言空值安全问题,添加 ! 操作符
- 优化样式类名,替换 flex-cc 为标准 flex 工具类
- 更新路由标签简化文案,移除冗余注释
- 调整 ruff 配置,放宽行长度限制
- 更新 README 与多语言文案,优化项目描述
- 修复表单、图表组件的类型与样式问题
- 简化搜索表单、数据卡片的布局代码
This commit is contained in:
zhangtao
2026-06-20 05:31:46 +08:00
parent 82b742620b
commit d34d4a4c50
378 changed files with 4149 additions and 6375 deletions
@@ -110,7 +110,7 @@ const formatNumber = (
// 处理千分位分隔符
if (separator) {
const parts = result.split(decimal);
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, separator);
parts[0] = parts[0]!.replace(/\B(?=(\d{3})+(?!\d))/g, separator);
result = parts.join(decimal);
}
@@ -2,11 +2,14 @@
<template>
<div
ref="containerRef"
class="relative overflow-hidden rounded-custom-sm border flex-c box-border text-sm"
class="relative overflow-hidden rounded-custom-sm border flex items-center box-border text-sm"
:class="themeClasses"
:style="containerStyle"
>
<div class="flex-cc absolute left-0 h-full w-9 z-10" :style="{ backgroundColor: bgColor }">
<div
class="flex items-center justify-center absolute left-0 h-full w-9 z-10"
:style="{ backgroundColor: bgColor }"
>
<FaSvgIcon icon="ri:volume-down-line" class="text-lg" />
</div>
@@ -33,7 +36,7 @@
<div
v-if="showClose"
class="flex-cc absolute right-0 h-full w-9 c-p"
class="flex items-center justify-center absolute right-0 h-full w-9 cursor-pointer"
:style="{ backgroundColor: bgColor }"
@click="handleClose"
>
@@ -328,7 +331,6 @@ onBeforeUnmount(() => {
defineOptions({ name: "FaTextScroll" });
const handleClose = () => {
console.log("文本滚动组件已关闭");
ElMessage.info("已关闭");
};
</script> -->