fix: 修复管理端前端 lint 与构建问题
- 收敛 easyflow-ui-admin 的 lint、格式和类型问题 - 修正 demo 页面与管理端前端构建失败点 - 验证 pnpm lint 与 pnpm build 均已通过
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
.svelte-flow__nodes {
|
||||
|
||||
.svelte-flow__node {
|
||||
box-sizing: border-box;
|
||||
border: 3px solid transparent;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
.svelte-flow__handle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: transparent;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: none;
|
||||
|
||||
&::after {
|
||||
content: ' ';
|
||||
background: var(--tf-primary-color);
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
content: ' ';
|
||||
background: var(--tf-primary-color);
|
||||
border-radius: 100%;
|
||||
transition: width 0.1s, height 0.1s;
|
||||
transition:
|
||||
width 0.1s,
|
||||
height 0.1s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -32,17 +32,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
div.loop_handle_wrapper {
|
||||
div.loop-handle-wrapper {
|
||||
&::after {
|
||||
content: '循环体';
|
||||
background: var(--tf-primary-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100px;
|
||||
height: 20px;
|
||||
border-radius: 0;
|
||||
display: flex;
|
||||
color: var(--tf-loop-handle-text);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
content: '循环体';
|
||||
background: var(--tf-primary-color);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -53,15 +53,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: ' ';
|
||||
&::after {
|
||||
position: absolute;
|
||||
border-radius: 5px;
|
||||
top: -2px;
|
||||
left: -2px;
|
||||
border: 1px solid var(--tf-node-outline-color);
|
||||
height: calc(100% + 2px);
|
||||
width: calc(100% + 2px);
|
||||
height: calc(100% + 2px);
|
||||
content: ' ';
|
||||
border: 1px solid var(--tf-node-outline-color);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -73,11 +73,11 @@
|
||||
box-shadow: var(--xy-node-boxshadow-selected);
|
||||
}
|
||||
|
||||
&:hover:after {
|
||||
&:hover::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.selectable.selected:after {
|
||||
&.selectable.selected::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -85,7 +85,10 @@
|
||||
|
||||
.tf-flow-line-path {
|
||||
stroke: var(--xy-edge-stroke);
|
||||
stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
|
||||
stroke-width: var(
|
||||
--xy-edge-stroke-width,
|
||||
var(--xy-edge-stroke-width-default)
|
||||
);
|
||||
}
|
||||
|
||||
.tf-flow-line-path--animated {
|
||||
@@ -97,16 +100,16 @@
|
||||
from {
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
to {
|
||||
stroke-dashoffset: -14;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.tf-node-wrapper {
|
||||
border-radius: 5px;
|
||||
min-width: 300px;
|
||||
background: var(--tf-bg-surface);
|
||||
border-radius: 5px;
|
||||
|
||||
&-body {
|
||||
padding: 10px;
|
||||
@@ -118,67 +121,69 @@
|
||||
}
|
||||
|
||||
.tf-bottom-dock {
|
||||
z-index: 200;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: var(--tf-toolbar-bottom, 20px);
|
||||
transform: translateX(-50%);
|
||||
left: 50%;
|
||||
z-index: 200;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
// 单行统一工具栏
|
||||
/* 单行统一工具栏 */
|
||||
.tf-unified-bar {
|
||||
display: inline-flex;
|
||||
gap: 2px;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
padding: 0 4px;
|
||||
background: var(--tf-bg-surface);
|
||||
border: 1px solid var(--tf-border-color);
|
||||
border-radius: 10px;
|
||||
background: var(--tf-bg-surface);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
padding: 0 4px;
|
||||
gap: 2px;
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
|
||||
|
||||
> * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 分割线
|
||||
/* 分割线 */
|
||||
.tf-bar-divider {
|
||||
flex-shrink: 0;
|
||||
width: 1px;
|
||||
height: 20px;
|
||||
background: var(--tf-border-color);
|
||||
margin: 0 4px;
|
||||
flex-shrink: 0;
|
||||
background: var(--tf-border-color);
|
||||
}
|
||||
|
||||
// 图标按钮
|
||||
/* 图标按钮 */
|
||||
.tf-bar-btn {
|
||||
all: unset;
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 7px;
|
||||
color: var(--tf-text-secondary);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
flex-shrink: 0;
|
||||
border-radius: 7px;
|
||||
transition:
|
||||
background 0.15s,
|
||||
color 0.15s;
|
||||
|
||||
svg {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
fill: currentColor;
|
||||
pointer-events: none;
|
||||
fill: currentcolor;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--tf-bg-hover);
|
||||
color: var(--tf-text-primary);
|
||||
background: var(--tf-bg-hover);
|
||||
}
|
||||
|
||||
&.tf-bar-btn-active {
|
||||
@@ -191,26 +196,26 @@
|
||||
all: unset;
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
height: 32px;
|
||||
padding: 0 14px;
|
||||
border-radius: 8px;
|
||||
background: #13b33f;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
background: #13b33f;
|
||||
border-radius: 8px;
|
||||
transition: filter 0.15s;
|
||||
|
||||
svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: currentColor;
|
||||
pointer-events: none;
|
||||
fill: currentcolor;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -222,36 +227,38 @@
|
||||
all: unset;
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
border-radius: 8px;
|
||||
background: #e9edff;
|
||||
color: var(--tf-primary-color);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
color: var(--tf-primary-color);
|
||||
cursor: pointer;
|
||||
transition: filter 0.15s, background 0.15s;
|
||||
background: #e9edff;
|
||||
border-radius: 8px;
|
||||
transition:
|
||||
filter 0.15s,
|
||||
background 0.15s;
|
||||
|
||||
&:hover {
|
||||
filter: brightness(0.98);
|
||||
background: #dde5ff;
|
||||
filter: brightness(0.98);
|
||||
}
|
||||
}
|
||||
|
||||
// 百分比缩放选择器单元
|
||||
/* 百分比缩放选择器单元 */
|
||||
.tf-zoom-select-wrap {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0 6px 0 8px;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
height: 32px;
|
||||
border-radius: 7px;
|
||||
padding: 0 6px 0 8px;
|
||||
cursor: pointer;
|
||||
border-radius: 7px;
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover {
|
||||
@@ -259,83 +266,80 @@
|
||||
}
|
||||
|
||||
.tf-zoom-icon {
|
||||
flex-shrink: 0;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: var(--tf-text-secondary);
|
||||
pointer-events: none;
|
||||
flex-shrink: 0;
|
||||
fill: var(--tf-text-secondary);
|
||||
}
|
||||
|
||||
.tf-zoom-select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
border: none;
|
||||
background: transparent;
|
||||
min-width: 48px;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
color: var(--tf-text-primary);
|
||||
text-align: center;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
min-width: 48px;
|
||||
text-align: center;
|
||||
line-height: 1;
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tf-zoom-chevron {
|
||||
flex-shrink: 0;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: var(--tf-text-secondary);
|
||||
pointer-events: none;
|
||||
flex-shrink: 0;
|
||||
fill: var(--tf-text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.tf-zoom-select-simple {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
height: 32px;
|
||||
min-width: 64px;
|
||||
height: 32px;
|
||||
padding: 0 8px;
|
||||
border-radius: 7px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
color: var(--tf-text-primary);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 7px;
|
||||
|
||||
&:hover {
|
||||
background: var(--tf-bg-hover);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.tf-toolbar {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
&-panel {
|
||||
width: min(520px, calc(100vw - 40px));
|
||||
max-height: min(390px, calc(100vh - 220px));
|
||||
border: 1px solid var(--tf-border-color);
|
||||
border-radius: 12px;
|
||||
background: var(--tf-bg-surface);
|
||||
box-shadow: var(--tf-shadow-soft);
|
||||
padding: 8px;
|
||||
position: absolute;
|
||||
bottom: calc(100% + 8px);
|
||||
left: 50%;
|
||||
z-index: 260;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: calc(100% + 8px);
|
||||
transform: translateX(-50%);
|
||||
z-index: 260;
|
||||
width: min(520px, calc(100vw - 40px));
|
||||
max-height: min(390px, calc(100vh - 220px));
|
||||
padding: 8px;
|
||||
overflow: hidden;
|
||||
background: var(--tf-bg-surface);
|
||||
border: 1px solid var(--tf-border-color);
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--tf-shadow-soft);
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
&-trigger {
|
||||
@@ -350,7 +354,7 @@
|
||||
svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
fill: currentColor;
|
||||
fill: currentcolor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user