Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
91b91c95
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
706
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
91b91c95
编写于
2月 11, 2022
作者:
大数据猿人
提交者:
GitHub
2月 11, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Feature][UI Next] Add the tooltip to display the whole node's name. (#8353)
上级
0f04b3cf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
52 addition
and
24 deletion
+52
-24
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-canvas-init.ts
...views/projects/workflow/components/dag/use-canvas-init.ts
+29
-0
dolphinscheduler-ui-next/src/views/projects/workflow/definition/detail/index.module.scss
...ews/projects/workflow/definition/detail/index.module.scss
+23
-24
未找到文件。
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-canvas-init.ts
浏览文件 @
91b91c95
...
...
@@ -132,6 +132,35 @@ export function useCanvasInit(options: Options) {
edge
.
setSource
(
sourceNode
)
}
})
// Add a node tool when the mouse entering
graph
.
value
.
on
(
'
node:mouseenter
'
,
({
node
})
=>
{
const
nodeName
=
node
.
getData
().
taskName
node
.
addTools
({
name
:
'
button
'
,
args
:
{
markup
:
[
{
tagName
:
'
text
'
,
textContent
:
nodeName
,
attrs
:
{
fill
:
'
#868686
'
,
'
font-size
'
:
16
,
'
text-anchor
'
:
'
center
'
}
}
],
x
:
0
,
y
:
0
,
offset
:
{
x
:
0
,
y
:
-
10
}
}
})
})
// Remove all tools when the mouse leaving
graph
.
value
.
on
(
'
node:mouseleave
'
,
({
node
})
=>
{
node
.
removeTool
(
'
button
'
)
})
})
/**
...
...
dolphinscheduler-ui-next/src/views/projects/workflow/definition/detail/index.module.scss
浏览文件 @
91b91c95
...
...
@@ -15,27 +15,26 @@
* limitations under the License.
*/
$borderDark
:
rgba
(
255
,
255
,
255
,
0
.09
);
$borderLight
:
rgb
(
239
,
239
,
245
);
$bgDark
:
rgb
(
24
,
24
,
28
);
$bgLight
:
#ffffff
;
.container
{
width
:
100%
;
padding
:
20px
;
box-sizing
:
border-box
;
height
:
calc
(
100vh
-
100px
);
overflow
:
hidden
;
display
:
block
;
}
.dark
{
border
:
solid
1px
$borderDark
;
background-color
:
$bgDark
;
}
.light
{
border
:
solid
1px
$borderLight
;
background-color
:
$bgLight
;
}
\ No newline at end of file
$borderDark
:
rgba
(
255
,
255
,
255
,
0
.09
);
$borderLight
:
rgb
(
239
,
239
,
245
);
$bgDark
:
rgb
(
24
,
24
,
28
);
$bgLight
:
#ffffff
;
.container
{
width
:
100%
;
padding
:
20px
;
box-sizing
:
border-box
;
height
:
calc
(
100vh
-
100px
);
overflow
:
hidden
;
display
:
block
;
}
.dark
{
border
:
solid
1px
$borderDark
;
background-color
:
$bgDark
;
}
.light
{
border
:
solid
1px
$borderLight
;
background-color
:
$bgLight
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录