Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the upstream Tasks field UI display extra long. (#9148)

* [Fix][UI Next][V1.0.0-Alpha] Fix the upstream Tasks field UI display extra long.
3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
647b0990aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts

21
dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts

@ -105,23 +105,14 @@ export function useTable(onEdit: Function) {
title: t('project.task.upstream_tasks'), title: t('project.task.upstream_tasks'),
key: 'upstreamTaskMap', key: 'upstreamTaskMap',
render: (row: TaskDefinitionItem) => render: (row: TaskDefinitionItem) =>
h( row.upstreamTaskMap.map((item: string, index: number) => {
'span',
null,
row.upstreamTaskMap.length < 1
? '-'
: h(NSpace, null, {
default: () =>
row.upstreamTaskMap.map((item: string) => {
return h( return h(
NTag, 'p',
{ type: 'info', size: 'small' }, null,
{ default: () => item } { default: () => `[${index + 1}] ${item}` }
) )
}) }),
}) ...COLUMN_WIDTH_CONFIG['name']
),
width: 140
}, },
{ {
title: t('project.task.create_time'), title: t('project.task.create_time'),

Loading…
Cancel
Save