Closed peterzheng1 closed 1 year ago
Vue3 自定义widget,通过使用导入组件的方式,最终打印formData,该值为空
formData最终结果如上
代码部分 1.引入自定义组件
2.修改uiSchema
3.组件中代码
const emit = defineEmits(['update:modelValue']) const modelValue = computed({ get(){}, set(value) { emit('update:modelValue', value); } }); 自定义组件中 已解决
Vue3 自定义widget,通过使用导入组件的方式,最终打印formData,该值为空![image](https://user-images.githubusercontent.com/43431817/228798133-985d351f-220a-48a2-a533-091ed2edb33f.png)
代码部分 1.引入自定义组件![image](https://user-images.githubusercontent.com/43431817/228798489-506b4b97-6efc-4c5d-a1a9-a04e38b29ae4.png)
2.修改uiSchema![image](https://user-images.githubusercontent.com/43431817/228798852-83f53d1e-8649-4698-a329-ec1fe65c7388.png)
3.组件中代码![image](https://user-images.githubusercontent.com/43431817/228799089-8bcbc737-47f2-4ca2-969d-36c1b4d5aeb0.png)