【问题标题】:Laravel Jetstream modal doesn't appearLaravel Jetstream 模式没有出现
【发布时间】:2021-02-08 16:21:53
【问题描述】:

我正在尝试重新使用 Jetstream 对话框模式,但它似乎不起作用。这是从官方文档中获取的示例

<jet-dialog-modal :show="modal" @close="modal = false">
           <template #title>
               Delete Account
           </template>

           <template #content>
               Test content
           </template>

           <template #footer>
               Cancel
           </template>
       </jet-dialog-modal>

当我将 modal 属性设置为 true 并检查 DOM 时,正文样式被附加了一个溢出:隐藏;但是,模式窗口不显示。需要注意的是,我使用的是 Inertia 堆栈。

【问题讨论】:

    标签: laravel vue.js inertiajs jetstream


    【解决方案1】:

    我认为问题与布局有关。我忘了包括 &lt;portal-target name="modal" multiple&gt;&lt;/portal-target&gt; 在我的自定义布局中。

    【讨论】:

      猜你喜欢
      • 2017-04-09
      • 1970-01-01
      • 2021-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多