@weitutech/by-components-v3 1.1.7 → 1.1.8

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, watch, createTextVNode, useSlots, toRefs, computed, createBlock, unref, createCommentVNode, isVNode, reactive, inject, provide, h as h$1, onUnmounted, nextTick, onBeforeUnmount, TransitionGroup, Teleport, onActivated, onDeactivated, getCurrentInstance, getCurrentScope, onScopeDispose, readonly, isRef, warn as warn$1, renderSlot, Transition, withCtx, withDirectives, normalizeStyle, vShow, shallowReactive, resolveDynamicComponent, withModifiers, render, createApp } from "vue";
1
+ import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, watch, createTextVNode, useSlots, toRefs, computed, createBlock, unref, createCommentVNode, nextTick, isVNode, reactive, inject, provide, h as h$1, onUnmounted, onBeforeUnmount, TransitionGroup, Teleport, onActivated, onDeactivated, getCurrentInstance, getCurrentScope, onScopeDispose, readonly, isRef, warn as warn$1, renderSlot, Transition, withCtx, withDirectives, normalizeStyle, vShow, shallowReactive, resolveDynamicComponent, withModifiers, render, createApp } from "vue";
2
2
  function cloneDeep(obj) {
3
3
  if (obj === null || typeof obj !== "object") {
4
4
  return obj;
@@ -4770,7 +4770,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4770
4770
  var _a2;
4771
4771
  emit("update:modelValue", cloneDeep(initialFormValues.value));
4772
4772
  (_a2 = formRef.value) == null ? void 0 : _a2.resetFields();
4773
- emit("reset");
4773
+ nextTick(() => {
4774
+ emit("reset");
4775
+ });
4774
4776
  };
4775
4777
  __expose({
4776
4778
  formRef,
@@ -4787,7 +4789,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4787
4789
  };
4788
4790
  }
4789
4791
  });
4790
- const ZshForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-85f37128"]]);
4792
+ const ZshForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-a0f0149d"]]);
4791
4793
  const _hoisted_1$1 = {
4792
4794
  id: "pager",
4793
4795
  class: "pager fixed bottom-0 right-0 w-full flex justify-center items-center z-50"
@@ -36994,6 +36996,9 @@ const ByTable = /* @__PURE__ */ defineComponent({
36994
36996
  console.log(listeners.value, "listeners");
36995
36997
  });
36996
36998
  const handlePagerChange = (context) => {
36999
+ if (vxeGridRef.value) {
37000
+ vxeGridRef.value.scrollTo(0, 0);
37001
+ }
36997
37002
  emit("pageChange", context);
36998
37003
  };
36999
37004
  const copy = (text) => {