@yqg/permission 1.0.9-beta.0 → 1.1.2-bate.0

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 { F as Qe, i as Kn, C as ug, T as Gs, d as k, r as Xe, o as Pe, a as Vn, b as MA, w as V, g as st, p as fe, c as D, e as pe, f as G, u as K, s as Y, h as Se, j as Ge, t as gg, k as I, l as qt, m as Ws, n as fg, q as qn, v as Ks, x as Zt, y as Fe, z as dg, A as pg, B as Pi, D as Cg, E as Vs, G as RA, H as qs, I as Bg, J as hg, K as Bt, L as Si, M as co, N as ht, O as He, P as En, Q as nt, R as vn, S as Eg, U as vg } from "./index-WEDWEtKt.js";
1
+ import { F as Qe, i as Kn, C as ug, T as Gs, d as k, r as Xe, o as Pe, a as Vn, b as MA, w as V, g as st, p as fe, c as D, e as pe, f as G, u as K, s as Y, h as Se, j as Ge, t as gg, k as I, l as qt, m as Ws, n as fg, q as qn, v as Ks, x as Zt, y as Fe, z as dg, A as pg, B as Pi, D as Cg, E as Vs, G as RA, H as qs, I as Bg, J as hg, K as Bt, L as Si, M as co, N as ht, O as He, P as En, Q as nt, R as vn, S as Eg, U as vg } from "./index-DFUPlAqp.js";
2
2
  function Mn(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return Mn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -16590,7 +16590,7 @@ const Wr = "/admin/crane", Gy = {
16590
16590
  emits: ["onSuccess"],
16591
16591
  setup(e, { emit: t }) {
16592
16592
  const n = vg(
16593
- () => import("./apply-modal-B0Mtpli3.js").then((h) => h.a)
16593
+ () => import("./apply-modal-SzDVxN-2.js").then((h) => h.a)
16594
16594
  ), o = {
16595
16595
  DEFAULT: "DEFAULT",
16596
16596
  PENDING: "PENDING",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/permission",
3
- "version": "1.0.9-beta.0",
3
+ "version": "1.1.2-bate.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -21,19 +21,13 @@
21
21
  onOk: () => {
22
22
  window.open(url);
23
23
  modal1.destroy();
24
- if (callback) {
25
- callback();
26
- } else {
27
- location.reload();
28
- }
24
+ callback && callback();
25
+ window.YQG_PERMISSION_CALLBACK && window.YQG_PERMISSION_CALLBACK();
29
26
  },
30
27
  onCancel: () => {
31
28
  modal1.destroy();
32
- if (callback) {
33
- callback();
34
- } else {
35
- location.reload();
36
- }
29
+ callback && callback();
30
+ window.YQG_PERMISSION_CALLBACK && window.YQG_PERMISSION_CALLBACK();
37
31
  },
38
32
  });
39
33
 
@@ -53,3 +53,6 @@ declare type formStateType = {
53
53
  submitWorkNumber: string,
54
54
 
55
55
  };
56
+ declare interface Window {
57
+ YQG_PERMISSION_CALLBACK?: () => void;
58
+ }
package/src/vite-env.d.ts CHANGED
@@ -1 +1 @@
1
- /// <reference types="vite/client" />
1
+ /// <reference types="vite/client" />