yxuse 2.0.30 → 2.0.31

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.
Binary file
package/lib/index.es.js CHANGED
@@ -1,9 +1,10 @@
1
- import { u as m } from "./index.es3.js";
1
+ import { u as p } from "./index.es3.js";
2
2
  import { y as i } from "./index.es4.js";
3
3
  import { b as f } from "./index.es5.js";
4
- import { B as u, w as y, t as l, v as c, x as B, y as b } from "./index.es2.js";
4
+ import { B as u, y, w as l, x as b, z as c, A } from "./index.es2.js";
5
5
  import "./index.es9.js";
6
- import { u as h } from "./index.es6.js";
6
+ import { u as d } from "./index.es6.js";
7
+ import { i as w } from "./index.es10.js";
7
8
  import "./index.es7.js";
8
9
  import "./vue.runtime.esm-bundler.es.js";
9
10
  import "./index.es8.js";
@@ -12,10 +13,11 @@ export {
12
13
  f as api,
13
14
  y as components,
14
15
  l as default,
15
- c as theme,
16
- B as translate,
17
- h as useTime,
18
- m as utils,
16
+ w as isWebApp,
17
+ b as theme,
18
+ c as translate,
19
+ d as useTime,
20
+ p as utils,
19
21
  i as yxIcon,
20
- b as yxi18n
22
+ A as yxi18n
21
23
  };
@@ -0,0 +1,11 @@
1
+ const o = (e = "isWebApp") => {
2
+ const r = new URLSearchParams(window.location.href.split("?")[1]), t = Object.fromEntries(r.entries());
3
+ return !!(t[e] && +t[e]);
4
+ }, s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
+ __proto__: null,
6
+ isWebApp: o
7
+ }, Symbol.toStringTag, { value: "Module" }));
8
+ export {
9
+ s as a,
10
+ o as i
11
+ };