Browse Source

[Fix] [UI-Next] [V1.0.0-Alpha]Fix the magic status display. (#9265)

3.0.0/version-upgrade
Amy0104 2 years ago committed by GitHub
parent
commit
860771f922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts
  2. 4
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-node-status.tsx

5
dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts

@ -336,14 +336,15 @@ export function renderStateCell(state: ITaskState, t: Function) {
class: stateOption.classNames,
style: {
display: 'flex'
}
},
size: 20
},
() => h(stateOption.icon)
)
return h(NTooltip, null, {
trigger: () => {
if (!stateOption.isSpin) return Icon
return h(NSpin, { size: 18 }, { icon: () => Icon })
return h(NSpin, { size: 20 }, { icon: () => Icon })
},
default: () => stateOption.desc
})

4
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-node-status.tsx

@ -41,7 +41,7 @@ export default defineComponent({
const iconElement = h(
NIcon,
{
size: '20px'
size: 20
},
{
default: () =>
@ -63,7 +63,7 @@ export default defineComponent({
return h(
NSpin,
{
small: 'small'
size: 20
},
{
icon: () => this.iconElement

Loading…
Cancel
Save