fly-el-form 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1760,6 +1760,13 @@ message.closeAll = closeAll;
1760
1760
  message._context = null;
1761
1761
  const ElMessage = withInstallFunction(message, "$message");
1762
1762
  const FormValuesSymbol = Symbol("formValues");
1763
+ function useFormValues() {
1764
+ const formValues = inject(FormValuesSymbol);
1765
+ if (!formValues) {
1766
+ throw new Error("useFormValues must be used within FlyElForm");
1767
+ }
1768
+ return formValues;
1769
+ }
1763
1770
  const FlyElForm = defineComponent({
1764
1771
  name: "FlyElForm",
1765
1772
  props: {
@@ -2933,13 +2940,6 @@ const FlyElForm = defineComponent({
2933
2940
  );
2934
2941
  }
2935
2942
  });
2936
- function useFormValues() {
2937
- const formValues = inject(FormValuesSymbol);
2938
- if (!formValues) {
2939
- throw new Error("useFormValues must be used within FlyElForm");
2940
- }
2941
- return formValues;
2942
- }
2943
2943
  FlyElForm.install = (app) => {
2944
2944
  app.component(FlyElForm.name, FlyElForm);
2945
2945
  };