问题描述
我正在尝试使用 Fluent UI northstar 中的嵌入组件来嵌入 SharePoint 网页:
<Embed
iframe={{
allowFullScreen: true,src: "https://tenant.sharepoint.com/sites/SiteName/Lists/ListName",frameBorder: 0,height: '400px',width: '711.11px',}}
/>
我错过了什么?
该组件在同一 SharePoint 网站中使用,因此用户已通过身份验证。
解决方法
我让它工作了。我必须为 Embed 组件指定宽度和高度,并使用 active
道具让 iframe 自动加载,而无需按“播放”。