Riku
2024-09-28 202adad6c3d5fe1d95e745d47434dc29cc60d957
src/components/form/FYForm.vue
@@ -141,8 +141,19 @@
);
//监听表单编辑状态
watch(edit, (nValue) => {
  emit('update:isEdit', nValue);
watch(
  () => props.isEdit,
  (nV, oV) => {
    if (nV != oV) {
      edit.value = nV;
    }
  },
  { immediate: true }
);
watch(edit, (nV, oV) => {
  if (nV != oV) {
    emit('update:isEdit', nV);
  }
});
defineExpose({ formObj, onSubmit, onCancel, onReset });