Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooltip/Popup] 如果所处组件的父元素,设置了全屏,弹窗就无法弹窗。 #2919

Open
zhoulujun opened this issue Nov 21, 2023 · 2 comments
Labels
need more info need more info

Comments

@zhoulujun
Copy link
Contributor

tdesign-vue 版本

1.6.8

重现链接

No response

重现步骤

无法股提供案例,因为全屏权限被禁
image
`vue


<!-- 使用 content 属性渲染浮层内容 -->
<t-popup content="可以在浮层内容中描述禁用原因">
  <div><t-button variant="outline" disabled>禁用状态</t-button></div>
</t-popup>

<!-- 使用 content 插槽渲染浮层内容 -->
<!-- slot="content" 写法不建议使用,请使用 #content 写法 -->
<t-popup>
  <t-button variant="outline">触发元素</t-button>
  <!-- <div slot="content">触发元素是指触发浮层内容显示的元素</div> -->
  <template #content>
    <div>触发元素是指触发浮层内容显示的元素</div>
  </template>
</t-popup>

<!-- 使用 content 渲染函数输出浮层内容 -->
<t-popup :content="renderPopupContent">
  <t-button variant="outline">浮层内容</t-button>
</t-popup>
click fullsceen
<script setup lang="jsx"> function renderPopupContent() { return

浮层内容是指浮层里面显示的全部内容,这里的浮层内容使用渲染函数定义
; } function handleBtnClick() { const demo = document.getElementById('demo'); console.log(demo); demo.requestFullscreen(); } </script>

`

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @zhoulujun,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Nov 21, 2023

attach 改成父组件?

@uyarn uyarn added the need more info need more info label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info need more info
Projects
None yet
Development

No branches or pull requests

2 participants