yc-vep-ui 0.3.81 → 0.3.83

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.
@@ -2606,25 +2606,26 @@ function useDefaultTable(e, n) {
2606
2606
  });
2607
2607
  watchEffect(() => {
2608
2608
  let e = toValue(n.ready) ?? !0, r = toValue(n.defaultParams || {});
2609
- if (a.page = 1, a.pageSize = 10, !e) {
2610
- c = { ...r };
2609
+ if (console.log("=== watchEffect triggered ==="), console.log("ready ->>", e), console.log("tempParams ->>", JSON.parse(JSON.stringify(r))), console.log("requestParams ->>", JSON.parse(JSON.stringify(s))), a.page = 1, a.pageSize = 10, !e) {
2610
+ console.log("ready is false, caching pendingParams"), c = { ...r }, console.log("pendingParams ->>", JSON.parse(JSON.stringify(c)));
2611
2611
  return;
2612
2612
  }
2613
2613
  if (c) {
2614
+ console.log("applying pendingParams ->>", JSON.parse(JSON.stringify(c)));
2614
2615
  for (let e in c) e !== "page" && e !== "pageSize" && (s[e] = c[e]);
2615
2616
  c = null;
2616
2617
  }
2617
2618
  for (let e in r) e !== "page" && e !== "pageSize" && (s[e] = r[e]);
2618
- l.execute({ ...s });
2619
+ console.log("executing request with ->>", JSON.parse(JSON.stringify(s))), l.execute({ ...s });
2619
2620
  });
2620
2621
  function u(e = {}) {
2621
- a.page = 1, a.pageSize = 10, Object.keys(s).forEach((n) => {
2622
- n !== "tableId" && (r.ignoreAttrs?.includes(n) || n in e || delete s[n]);
2622
+ console.log("=== reset called ==="), console.log("data input ->>", JSON.parse(JSON.stringify(e))), console.log("requestParams before ->>", JSON.parse(JSON.stringify(s))), a.page = 1, a.pageSize = 10, Object.keys(s).forEach((n) => {
2623
+ n !== "tableId" && (r.ignoreAttrs?.includes(n) || n in e || (console.log(`deleting key: ${n}, value:`, s[n]), delete s[n]));
2623
2624
  }), c = null, Object.assign(s, {
2624
2625
  ...e,
2625
2626
  page: 1,
2626
2627
  pageSize: 10
2627
- });
2628
+ }), console.log("requestParams after ->>", JSON.parse(JSON.stringify(s))), console.log("=== reset done ===");
2628
2629
  }
2629
2630
  function d({ page: e, pageSize: n }) {
2630
2631
  a.page = e, a.pageSize = n, Object.assign(s, {
@@ -2673,10 +2674,19 @@ function useComTable(e, n) {
2673
2674
  ]
2674
2675
  });
2675
2676
  function s(e = {}) {
2676
- Object.assign(a.value, e, {
2677
+ console.log("=== useComTable reset called ==="), console.log("paramsRef.value before ->>", JSON.parse(JSON.stringify(a.value))), console.log("data input ->>", JSON.parse(JSON.stringify(e)));
2678
+ let n = [
2679
+ "tableId",
2680
+ "page",
2681
+ "pageSize",
2682
+ "sort"
2683
+ ];
2684
+ Object.keys(a.value).forEach((r) => {
2685
+ !n.includes(r) && !(r in e) && (console.log(`deleting from paramsRef: ${r}`), delete a.value[r]);
2686
+ }), Object.assign(a.value, e, {
2677
2687
  page: 1,
2678
2688
  pageSize: 10
2679
- });
2689
+ }), console.log("paramsRef.value after ->>", JSON.parse(JSON.stringify(a.value)));
2680
2690
  }
2681
2691
  async function c(e) {
2682
2692
  let n = toValue(a);
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-CpokOehJ.js";
1
+ import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-B0UFeX-p.js";
2
2
  export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
@@ -1,2 +1,2 @@
1
- import { O as e, _ as t, b as n, v as r, y as i } from "../entry-CpokOehJ.js";
1
+ import { O as e, _ as t, b as n, v as r, y as i } from "../entry-B0UFeX-p.js";
2
2
  export { t as baseUrl, n as request, e as tempToRender, r as uniq, i as uniqBy };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-CpokOehJ.js";
1
+ import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-B0UFeX-p.js";
2
2
  export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.81",
3
+ "version": "0.3.83",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [