yc-vep-ui 0.3.25 → 0.3.26

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.
@@ -131,7 +131,13 @@ var le = Object.defineProperty, L = (e, t) => {
131
131
  return $()?.resolveComponent?.("el-descriptions-item") || "el-descriptions-item";
132
132
  },
133
133
  get Message() {
134
- return $()?.config?.globalProperties?.$message || {
134
+ let e = $()?.config?.globalProperties?.$message;
135
+ if (e) return e;
136
+ try {
137
+ let e = window.ELEMENT || window.element;
138
+ if (e?.Message) return e.Message;
139
+ } catch {}
140
+ return {
135
141
  error: (e) => console.error("[Message.error]", e),
136
142
  success: (e) => console.log("[Message.success]", e),
137
143
  warning: (e) => console.warn("[Message.warning]", e)
@@ -1571,6 +1577,7 @@ var _n = /* @__PURE__ */ u({
1571
1577
  },
1572
1578
  emits: ["update:modelValue"],
1573
1579
  setup(r, { emit: a }) {
1580
+ z.Message.success("提交成功, 即将刷新页面...");
1574
1581
  let o = r, s = a, c = o.valueAt ?? "all", u = new Headers({
1575
1582
  "Content-Type": "application/json",
1576
1583
  "X-Requested-With": "XMLHttpRequest",
@@ -4415,14 +4422,12 @@ function Ci(e) {
4415
4422
  nextActivity: c.nextActivityVisible ? l.nextActivity : void 0
4416
4423
  });
4417
4424
  if (u.code === "ok" && u.data) {
4418
- if (z.Message.success("提交成功, 即将刷新页面..."), console.log("res ->>", u), !u?.data) return z.Message.warning("刷新页面失败...");
4419
- let e = u.data;
4420
- console.log("route.query ->>", n.query);
4421
- let t = {
4425
+ if (z.Message.success("提交成功, 即将刷新页面..."), !u?.data) return z.Message.warning("刷新页面失败...");
4426
+ let e = u.data, t = {
4422
4427
  ...n.query,
4423
4428
  instanceId: e
4424
- }, r = window.location.hash.split("?")[0], i = n.mode === "hash" ? `${r}?${new URLSearchParams(t).toString()}` : `${window.location.pathname}?${new URLSearchParams(t).toString()}`;
4425
- window.history.replaceState(null, "", i);
4429
+ }, r = n.mode === "hash" ? `${window.location.hash.split("?")[0]}?${new URLSearchParams(t).toString()}` : `${window.location.pathname}?${new URLSearchParams(t).toString()}`;
4430
+ window.location.href = r;
4426
4431
  } else z.Message.error(u?.message || "提交失败");
4427
4432
  }
4428
4433
  async function p(e) {
@@ -4796,15 +4801,15 @@ var Ti = { key: 0 }, Ei = /* @__PURE__ */ u({
4796
4801
  UiStaffSelect: Dn,
4797
4802
  UiUpload: Nn,
4798
4803
  YcApproval: Mi
4799
- }, zi = null;
4800
- function Bi(e) {
4801
- zi = e;
4804
+ }, zi = null, Bi = null;
4805
+ function Vi(e) {
4806
+ zi = e, e?.config?.globalProperties && Bi && (e.config.globalProperties.$message = Bi.ElMessage);
4802
4807
  }
4803
4808
  function $() {
4804
4809
  return zi;
4805
4810
  }
4806
- var Vi = { install(e, t) {
4807
- t?.elementPlus && t.elementPlus.install(e), zi ||= {
4811
+ var Hi = { install(e, t) {
4812
+ t?.elementPlus && (t.elementPlus.install(e), Bi = t.elementPlus, e.config.globalProperties.$message = t.elementPlus.ElMessage), zi ||= {
4808
4813
  ...e,
4809
4814
  h: f
4810
4815
  };
@@ -4821,4 +4826,4 @@ var Vi = { install(e, t) {
4821
4826
  for (let [t, n] of Object.entries(Ii)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
4822
4827
  } };
4823
4828
  //#endregion
4824
- export { fe as S, Jt as _, xi as a, kt as b, Kn as c, Bn as d, Nn as f, nn as g, cn as h, Mi as i, qn as l, fn as m, Bi as n, bi as o, Dn as p, Vi as r, Yn as s, $ as t, Un as u, zt as v, Ne as x, Ft as y };
4829
+ export { fe as C, z as S, Jt as _, xi as a, kt as b, Kn as c, Bn as d, Nn as f, nn as g, cn as h, Mi as i, qn as l, fn as m, Vi as n, bi as o, Dn as p, Hi as r, Yn as s, $ as t, Un as u, zt as v, Ne as x, Ft as y };
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-VHgwtj4l.js";
1
+ import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-C-wD7Q6S.js";
2
2
  export { i as useDictionary, t as useFetch, e as useRoute, n as useRouter, a as useTable, r as useUser };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-VHgwtj4l.js";
2
- export { e as UiCard, o as UiDescriptions, c as UiDialog, p as UiEditor, r as UiFilter, h as UiForm, a as UiInfiniteScroll, u as UiStaffSelect, m as UiTable, t as UiTree, i as UiUpload, s as YcApproval, d as default, d as ycPlugin, f as getHostVue, n as hooks, l as setHostVue };
1
+ import { C as e, S as t, _ as n, a as r, b as i, f as a, g as o, h as s, i as c, m as l, n as u, p as d, r as f, t as p, v as m, x as h, y as g } from "./entry-C-wD7Q6S.js";
2
+ export { t as El, e as UiCard, s as UiDescriptions, l as UiDialog, m as UiEditor, i as UiFilter, g as UiForm, o as UiInfiniteScroll, d as UiStaffSelect, h as UiTable, n as UiTree, a as UiUpload, c as YcApproval, f as default, f as ycPlugin, p as getHostVue, r as hooks, u as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [