fly-el-form 0.0.27 → 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,9 +2940,10 @@ const FlyElForm = defineComponent({
2933
2940
  );
2934
2941
  }
2935
2942
  });
2936
- FlyElForm.install = (Vue) => {
2937
- Vue.component(FlyElForm.name, FlyElForm);
2943
+ FlyElForm.install = (app) => {
2944
+ app.component(FlyElForm.name, FlyElForm);
2938
2945
  };
2939
2946
  export {
2940
- FlyElForm as default
2947
+ FlyElForm as default,
2948
+ useFormValues
2941
2949
  };