Browse Source

[Fix][UI][V1.0.0-Beta] Fix the parameter variables and startup parameters window cannot auto close bug (#9653)

3.0.0/version-upgrade
Devosend 2 years ago committed by GitHub
parent
commit
30a8372505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx

22
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx

@ -74,9 +74,6 @@ export default defineComponent({
setup(props, context) { setup(props, context) {
const { t } = useI18n() const { t } = useI18n()
const startupPopoverRef = ref(false)
const paramPopoverRef = ref(false)
const themeStore = useThemeStore() const themeStore = useThemeStore()
const graph = inject<Ref<Graph | undefined>>('graph', ref()) const graph = inject<Ref<Graph | undefined>>('graph', ref())
@ -229,19 +226,12 @@ export default defineComponent({
<NTooltip <NTooltip
v-slots={{ v-slots={{
trigger: () => ( trigger: () => (
<NPopover <NPopover placement='bottom' trigger='click'>
show={paramPopoverRef.value}
placement='bottom'
trigger='manual'
>
{{ {{
trigger: () => ( trigger: () => (
<NButton <NButton
quaternary quaternary
circle circle
onClick={() =>
(paramPopoverRef.value = !paramPopoverRef.value)
}
class={Styles['toolbar-btn']} class={Styles['toolbar-btn']}
> >
<NIcon> <NIcon>
@ -264,20 +254,12 @@ export default defineComponent({
<NTooltip <NTooltip
v-slots={{ v-slots={{
trigger: () => ( trigger: () => (
<NPopover <NPopover placement='bottom' trigger='click'>
show={startupPopoverRef.value}
placement='bottom'
trigger='manual'
>
{{ {{
trigger: () => ( trigger: () => (
<NButton <NButton
quaternary quaternary
circle circle
onClick={() =>
(startupPopoverRef.value =
!startupPopoverRef.value)
}
class={Styles['toolbar-btn']} class={Styles['toolbar-btn']}
> >
<NIcon> <NIcon>

Loading…
Cancel
Save