yc-vep-ui 0.5.20 → 0.6.1

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.
@@ -2434,13 +2434,13 @@ var Mr = { style: {
2434
2434
  //#endregion
2435
2435
  //#region src/hooks/useFetch.ts
2436
2436
  function Z(e, n) {
2437
- let { method: r = "GET", defaultParams: i = {}, defaultData: a = {}, immediate: o = !0, ...s } = n || {}, c = t(() => s?.ready?.value ?? !0), l = ie(() => typeof e == "string" ? q?.[r.toLowerCase()]?.(e, i) : e, a, {
2437
+ let { method: r = "get", defaultParams: i = {}, defaultData: a = {}, immediate: o = !0, ...s } = n || {}, c = t(() => s?.ready?.value ?? !0), l = ie(() => typeof e == "string" ? q?.[r.toLowerCase()]?.(e, i) : e, a, {
2438
2438
  ...n,
2439
2439
  immediate: !1
2440
2440
  });
2441
- return L(() => {
2442
- c.value && o && l.execute();
2443
- }), S({
2441
+ return I(c, (e) => {
2442
+ e && o && l.execute();
2443
+ }, { immediate: !0 }), S({
2444
2444
  data: l.state,
2445
2445
  loading: l.isLoading,
2446
2446
  execute: l.execute,
@@ -2458,7 +2458,8 @@ function $r(e, n) {
2458
2458
  }), c = C([]), l = S({
2459
2459
  page: 1,
2460
2460
  pageSize: 10,
2461
- ...i.defaultParams
2461
+ ...i.defaultParams,
2462
+ ...Object.assign({}, r ? { [r]: i?.defaultParams?.[r] || {} } : {})
2462
2463
  }), u = Z(e, {
2463
2464
  ...i,
2464
2465
  defaultParams: l,
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-eINigqDZ.js";
1
+ import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-TwjXXqex.js";
2
2
  export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
@@ -1,2 +1,2 @@
1
- import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-eINigqDZ.js";
1
+ import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-TwjXXqex.js";
2
2
  export { n as baseUrl, i as formatDate, o as omit, t as request, e as tempToRender, r as uniq, a as uniqBy };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-eINigqDZ.js";
1
+ import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-TwjXXqex.js";
2
2
  export { r as UiCard, v as UiDescriptions, e as UiDialog, t as UiEditor, d as UiFilter, i as UiForm, a as UiInfiniteScroll, f as UiStaffSelect, u as UiTable, n as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, _ as getHostVue, g as hooks, p as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.5.20",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [