import { watch as t } from "vue";
import { cloneDeep as r } from "lodash";
const n = (e, o, c) => {
  t(
    () => e.sources,
    () => {
      e.sources && e.sources.length > 0 && o(e.option);
    },
    {
      deep: !0
    }
  ), t(
    () => r(e.option),
    () => {
      c();
    },
    {
      deep: !0
    }
  );
};
export {
  n as useWatch
};
