动态反应形式与动态场

发布于 2025-02-13 15:34:06 字数 817 浏览 0 评论 0原文

我的设计屏幕是您可以根据需要添加或删除字段的表单。

每次单击一个按钮时,都会创建一个组件(文本,图像,标题...)。

在引擎盖下,每个组件都会创建此对象:

{
              "title_item_lateral": "",
              "text_item_lateral": [],
              "image_lateral": [
                {
                  "title_image_lateral": "",
                  "path_image_lateral": ""
                }
              ],
              "document_lateral": [],
              "links": [
                {
                  "title_link": "",
                  "link": ""
                }
              ]
 }

如何开始创建这个对象?我知道如何创建动态形式,但始终在屏幕上显示所有字段,但我不知道每个按钮仅显示一个不同的字段。

我现在有点松了。 感谢您的光线。

I have design screen that is a form where you can add or delete fields as you wish.

enter image description here

Every time that you click a button you are create a component (text, image, title...).

Under the hood every component create this object:

{
              "title_item_lateral": "",
              "text_item_lateral": [],
              "image_lateral": [
                {
                  "title_image_lateral": "",
                  "path_image_lateral": ""
                }
              ],
              "document_lateral": [],
              "links": [
                {
                  "title_link": "",
                  "link": ""
                }
              ]
 }

How can i start to create this? i know how create a dynamic form, but always show in screen all the fields, but showing only one different field for every button, i don't know.

I am a bit loose now.
Thanks for your light in my way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文