未验证 提交 30a83725 编写于 作者: D Devosend 提交者: GitHub

[Fix][UI][V1.0.0-Beta] Fix the parameter variables and startup parameters...

[Fix][UI][V1.0.0-Beta] Fix the parameter variables and startup parameters window cannot auto close bug (#9653)
上级 dde6d1f4
......@@ -74,9 +74,6 @@ export default defineComponent({
setup(props, context) {
const { t } = useI18n()
const startupPopoverRef = ref(false)
const paramPopoverRef = ref(false)
const themeStore = useThemeStore()
const graph = inject<Ref<Graph | undefined>>('graph', ref())
......@@ -229,19 +226,12 @@ export default defineComponent({
<NTooltip
v-slots={{
trigger: () => (
<NPopover
show={paramPopoverRef.value}
placement='bottom'
trigger='manual'
>
<NPopover placement='bottom' trigger='click'>
{{
trigger: () => (
<NButton
quaternary
circle
onClick={() =>
(paramPopoverRef.value = !paramPopoverRef.value)
}
class={Styles['toolbar-btn']}
>
<NIcon>
......@@ -264,20 +254,12 @@ export default defineComponent({
<NTooltip
v-slots={{
trigger: () => (
<NPopover
show={startupPopoverRef.value}
placement='bottom'
trigger='manual'
>
<NPopover placement='bottom' trigger='click'>
{{
trigger: () => (
<NButton
quaternary
circle
onClick={() =>
(startupPopoverRef.value =
!startupPopoverRef.value)
}
class={Styles['toolbar-btn']}
>
<NIcon>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册