【问题标题】:Variable form inside dialog with Vue and Vuetify带有 Vue 和 Vuetify 的对话框内的变量表单
【发布时间】:2020-08-06 19:53:10
【问题描述】:

我已经制作了一个具有某种结构的对话框,我想在其中使用一个表单来重新使用它。这种形式是完全可变的(它可以包含 v-text-fields、v-textarea、v-selects 等......)。 知道对话框是子元素并且依赖于父元素来知道表单将如何实现,我如何才能做到这一点?可以绑定整个组件吗?

<template>
 <!-- someData -->

 <ChildDialog :variableForm="formComponent"/> // Something like that?

 <!-- moreData -->
</template>

谢谢,希望你能理解我的问题。

【问题讨论】:

标签: javascript vue.js vuetify.js


【解决方案1】:

正如Abdulaziz Yesuf 所说,使用 slots 你可以解决我的问题 (Passing html into Vue component)

【讨论】:

    猜你喜欢
    • 2019-06-27
    • 2019-05-24
    • 2021-08-02
    • 1970-01-01
    • 1970-01-01
    • 2019-07-24
    • 1970-01-01
    • 2021-05-31
    • 2021-01-03
    相关资源
    最近更新 更多