如何向任务敞口Pane 中添加内容?await pane.Container 报错

Viewed 29

<img src="https://solution-community.wps.cn/uploads/post/4S4zfu9k8Bw.png" alt="image.png"/>

3 Answers

以下是执行报错的代码片段

if (pane) {
    await pane.Delete()
  }
  // 任务窗口对象
  const panes = await instance.Application.Panes
  // 新增任务窗口
  pane = await panes.Add({
    Caption: '企业库数据',
    Visible: true,
    onClose: () => {
      console.log('任务窗口关闭')
    }
  })
  const dom = await pane.Container

同样的问题,兄弟解决了吗

同样的问题,解决了吗