lljj-x / vue-json-schema-form

基于Vue/Vue3,Json Schema 和 ElementUi/antd/iview3/naiveUi 等生成 HTML Form 表单,用于活动编辑器、h5编辑器、cms等数据配置;支持可视化生成表单Schema 。 Generate a form using Vue/Vue3, Json Schema and ElementUi/antdv/iview3/naiveUi
https://form.lljj.me/
Apache License 2.0
2.06k stars 420 forks source link

vue3-form-element使用vue3组合式写法没有实现双向数据绑定 #303

Closed FishPinex closed 1 year ago

FishPinex commented 1 year ago

vue和ui框架

使用的@lljj/vue3-form-element

问题描述

vue-form组件的v-model的绑定值在vue3组合式语法中没有双向数据绑定,改用选项式语法实现了双向数据绑定 image

如何复现

创建一个vue-form组件实例,采用组合式语法,打印表单值,数据没有被变更

期望的结果

现在不确定是我一个人的问题吗,还是本身就不支持组合式写法呢

lljj-x commented 1 year ago

v-modal配置 reactive -> ref