@ebiz/designer-components 0.1.40 → 0.1.41

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.
package/dist/index.mjs CHANGED
@@ -59876,7 +59876,7 @@ const GG = /* @__PURE__ */ Ge(O9, [["render", x9], ["__scopeId", "data-v-d22af56
59876
59876
  },
59877
59877
  emits: ["scroll", "load-more", "update:formData"],
59878
59878
  setup(t, { expose: e, emit: n }) {
59879
- const a = z(1), r = z(10), l = z(!0), o = z(!1), i = z(0), u = z([10, 20, 50, 100]), c = z(), s = t, d = F(() => localStorage.getItem("ebiz-develop-mode") === "designer" ? s.showDemoData ? s.demoData : [] : c.value), v = z({ ...s.formData }), f = z(""), g = async () => {
59879
+ const a = z(1), r = z(10), l = z(!0), o = z(!1), i = z(0), u = z([10, 20, 50, 100]), c = z(), s = t, d = F(() => localStorage.getItem("ebiz-develop-mode") === "designer" ? s.showDemoData ? s.demoData : [] : c.value), v = z({ ...JSON.parse(JSON.stringify(s.formData)) }), f = z(""), g = async () => {
59880
59880
  const x = {
59881
59881
  keyword: f.value
59882
59882
  }, b = await It.fetch({
@@ -59896,7 +59896,7 @@ const GG = /* @__PURE__ */ Ge(O9, [["render", x9], ["__scopeId", "data-v-d22af56
59896
59896
  const p = (x) => {
59897
59897
  m("search", x) !== !1 && (a.value = 1, g());
59898
59898
  }, y = (x) => {
59899
- m("reset", x) !== !1 && (m("update:formData", { ...v.value }), a.value = 1, setTimeout(() => {
59899
+ m("reset", x) !== !1 && (console.log("handleReset", v.value), m("update:formData", { ...v.value }), a.value = 1, setTimeout(() => {
59900
59900
  g();
59901
59901
  }, 10));
59902
59902
  }, C = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -191,7 +191,7 @@ const computedData = computed(() => {
191
191
  })
192
192
 
193
193
 
194
- const defaultFormData = ref({ ...props.formData })
194
+ const defaultFormData = ref({ ...JSON.parse(JSON.stringify(props.formData)) })
195
195
  const searchValue = ref('')
196
196
 
197
197
  const loadData = async () => {
@@ -241,6 +241,7 @@ const handleReset = (context) => {
241
241
  return
242
242
  }
243
243
 
244
+ console.log("handleReset", defaultFormData.value)
244
245
  emit('update:formData', { ...defaultFormData.value })
245
246
  currentPage.value = 1
246
247
  setTimeout(() => {