support form-id

This commit is contained in:
2023-05-10 20:20:27 +10:00
parent e14c7aafb3
commit 7ff49700fd

View File

@@ -12,6 +12,11 @@ const props = defineProps({
type: Object,
required: true,
},
formId: {
type: String,
default: "form",
required: false,
},
});
const emits = defineEmits(["submit", "failedValidation"]);
@@ -26,7 +31,7 @@ const handleSubmit = async function () {
}
};
provide("form", props.modelValue);
provide(props.formId, props.modelValue);
</script>
<style lang="scss">