jk-vue-comps 0.1.6 → 0.1.7

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.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # jk-vue-comps
2
-
3
- npm install jk-vue-comps
1
+ # jk-vue-comps
2
+
3
+ npm install jk-vue-comps
@@ -0,0 +1,129 @@
1
+ import { nextTick as m, createVNode as w } from "vue";
2
+ import { isString as u, isHtmlStr as f, isObject as a, isNumber as c, is as h, isArray as S, isBoolean as x, isClient as $, isDate as b, isDef as O, isEdgeBrowser as P, isElement as N, isEmail as v, isEmpty as y, isFunction as U, isInMobileBrowser as E, isIp as I, isMap as M, isNull as k, isNullAndUnDef as D, isNullOrUnDef as F, isPromise as L, isPromiseLink as T, isRegExp as _, isServer as j, isUnDef as z, isUrl as B, isValidPhoneNumber as H, isWindow as R, isZhLang as W } from "../utils/is.js";
3
+ import { propTypes as q } from "../utils/vuePropTypes.js";
4
+ import { timeZoneOptions as A } from "../utils/timeZone.js";
5
+ import { withInstall as V } from "../utils/withInstall.js";
6
+ function l(i) {
7
+ try {
8
+ return new Function(`'use strict'; return (${i});`)();
9
+ } catch {
10
+ return null;
11
+ }
12
+ }
13
+ function d(i, t = "float", n = 6) {
14
+ let e = String(i);
15
+ if (e = e.replace(/(^\s*)|(\s*$)/g, ""), e !== "") {
16
+ const s = e.indexOf("0") === 0 && e.length > 1 && e.indexOf(".") !== 1, r = t === "int" ? /[^\d]/g : /[^\d.]/g;
17
+ if (e = e.replace(r, ""), s)
18
+ return "0";
19
+ if (t === "int")
20
+ e = e.indexOf("0") === 0 && e.length > 1 ? e.substring(0, e.length - 1) : e;
21
+ else {
22
+ const o = l(`/\\.{${n},}/g`), p = l(`/^(\\d?)+(\\.\\d{0,${n}})?$/`);
23
+ e.indexOf(".") === 0 ? (e = "", e = e.replace(/[^$#$]/g, "0."), e = e.replace(o, ".")) : p.test(e) || (e = e.substring(0, e.length - 1));
24
+ }
25
+ }
26
+ return e;
27
+ }
28
+ function Z(i, t, n, e = "int", s = 6) {
29
+ return (r) => {
30
+ m().then(() => {
31
+ var o;
32
+ i[t] = d((o = r == null ? void 0 : r.target) == null ? void 0 : o.value, e, s), n == null || n();
33
+ });
34
+ };
35
+ }
36
+ function C(i) {
37
+ return !u(i) || !f(i) ? i : w("div", { innerHTML: i });
38
+ }
39
+ function G() {
40
+ return window ? `${window.location.protocol}//${window.location.hostname}` : "";
41
+ }
42
+ function J() {
43
+ const i = new URLSearchParams(window.location.search);
44
+ if (!i.size)
45
+ return;
46
+ const t = {};
47
+ for (const [n, e] of i.entries())
48
+ t[n] = e;
49
+ return t;
50
+ }
51
+ function K(i) {
52
+ return u(i) ? i.replace(/\s+/g, "") : "";
53
+ }
54
+ function g(i = {}, t = {}) {
55
+ let n;
56
+ for (n in t)
57
+ i[n] = a(i[n]) ? g(i[n], t[n]) : i[n] = t[n];
58
+ return i;
59
+ }
60
+ function Q(i, t = 6, n = {
61
+ showPrefix: !0,
62
+ showSuffix: !0,
63
+ middleStr: "****"
64
+ }) {
65
+ if (!u(i) || !c(i))
66
+ return i;
67
+ const e = String(i), s = (e == null ? void 0 : e.length) ?? 0;
68
+ if (!e || !s || t <= 0)
69
+ return e;
70
+ const r = n.showPrefix ? e.substring(0, t) : "", o = n.showSuffix ? e.substring(s - t) : "";
71
+ return `${r}${n.middleStr}${o}`;
72
+ }
73
+ const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74
+ __proto__: null,
75
+ deepMerge: g,
76
+ desensitization: Q,
77
+ evalPro: l,
78
+ filterInputNum: d,
79
+ generateFilterInputNumFn: Z,
80
+ getRouterParams: J,
81
+ getWebsiteUrl: G,
82
+ is: h,
83
+ isArray: S,
84
+ isBoolean: x,
85
+ isClient: $,
86
+ isDate: b,
87
+ isDef: O,
88
+ isEdgeBrowser: P,
89
+ isElement: N,
90
+ isEmail: v,
91
+ isEmpty: y,
92
+ isFunction: U,
93
+ isHtmlStr: f,
94
+ isInMobileBrowser: E,
95
+ isIp: I,
96
+ isMap: M,
97
+ isNull: k,
98
+ isNullAndUnDef: D,
99
+ isNullOrUnDef: F,
100
+ isNumber: c,
101
+ isObject: a,
102
+ isPromise: L,
103
+ isPromiseLink: T,
104
+ isRegExp: _,
105
+ isServer: j,
106
+ isString: u,
107
+ isUnDef: z,
108
+ isUrl: B,
109
+ isValidPhoneNumber: H,
110
+ isWindow: R,
111
+ isZhLang: W,
112
+ propTypes: q,
113
+ removeWhitespace: K,
114
+ renderHtmlStr: C,
115
+ timeZoneOptions: A,
116
+ withInstall: V
117
+ }, Symbol.toStringTag, { value: "Module" }));
118
+ export {
119
+ G as a,
120
+ J as b,
121
+ K as c,
122
+ g as d,
123
+ l as e,
124
+ d as f,
125
+ Z as g,
126
+ Q as h,
127
+ C as r,
128
+ te as u
129
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as g, ref as p, onMounted as h, createVNode as C } from "vue";
2
- import { p as f } from "../chunks/vuePropTypes-BV0onEYv.js";
3
- import { C as w, A as _ } from "../chunks/is-bvgc5qxU.js";
4
- import { w as b } from "../chunks/withInstall-b5j1glXj.js";
2
+ import { propTypes as f } from "../utils/vuePropTypes.js";
3
+ import { isEdgeBrowser as w, isInMobileBrowser as _ } from "../utils/is.js";
4
+ import { withInstall as b } from "../utils/withInstall.js";
5
5
  function v(o, r) {
6
6
  if (!o || !r)
7
7
  return;
8
- const c = encodeURIComponent(r), a = encodeURIComponent("email profile"), i = encodeURIComponent(o), n = `https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=${c}&scope=${a}&client_id=${i}`;
8
+ const c = encodeURIComponent(r), s = encodeURIComponent("email profile"), i = encodeURIComponent(o), n = `https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=${c}&scope=${s}&client_id=${i}`;
9
9
  w() ? window.open(n, "_self") : window.location.href = n;
10
10
  }
11
11
  const I = /* @__PURE__ */ g({
@@ -23,35 +23,35 @@ const I = /* @__PURE__ */ g({
23
23
  setup(o, {
24
24
  emit: r,
25
25
  slots: c,
26
- expose: a
26
+ expose: s
27
27
  }) {
28
- const i = p(null), n = p(!0), s = () => {
28
+ const i = p(null), n = p(!0), u = () => {
29
29
  var e, t, l;
30
30
  return (l = (t = (e = window == null ? void 0 : window.google) == null ? void 0 : e.accounts) == null ? void 0 : t.oauth2) == null ? void 0 : l.initCodeClient;
31
31
  };
32
32
  function d() {
33
33
  var e, t, l;
34
- (l = (t = (e = s()) == null ? void 0 : e({
34
+ (l = (t = (e = u()) == null ? void 0 : e({
35
35
  client_id: o.clientId,
36
36
  scope: "email profile",
37
37
  redirect_uri: o.redirectUri,
38
38
  ux_mode: _() ? "redirect" : "popup",
39
- callback(u) {
40
- u.error ? r("rejectCallback", u) : r("callback", u);
39
+ callback(a) {
40
+ a.error ? r("rejectCallback", a) : r("callback", a);
41
41
  }
42
42
  })) == null ? void 0 : t.requestCode) == null || l.call(t);
43
43
  }
44
44
  function m() {
45
- if (!(window != null && window.document) || s() || !i.value) {
46
- s() && (n.value = !1);
45
+ if (!(window != null && window.document) || u() || !i.value) {
46
+ u() && (n.value = !1);
47
47
  return;
48
48
  }
49
49
  const e = document.createElement("script");
50
50
  e.async = !0, e.defer = !0, e.src = "https://accounts.google.com/gsi/client", i.value.appendChild(e), e.onload = () => {
51
- s() && (n.value = !1);
51
+ u() && (n.value = !1);
52
52
  };
53
53
  }
54
- return h(m), a({
54
+ return h(m), s({
55
55
  startCheck: d
56
56
  }), () => {
57
57
  var e;
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as h, ref as g, onMounted as w, createVNode as b } from "vue";
2
- import { p as m } from "../chunks/vuePropTypes-BV0onEYv.js";
3
- import { a as A } from "../chunks/index-2VK0fFTB.js";
4
- import { w as C } from "../chunks/withInstall-b5j1glXj.js";
5
- import { C as _, A as p } from "../chunks/is-bvgc5qxU.js";
2
+ import { propTypes as m } from "../utils/vuePropTypes.js";
3
+ import { a as _ } from "../chunks/index-C_baUQWz.js";
4
+ import { withInstall as A } from "../utils/withInstall.js";
5
+ import { isEdgeBrowser as C, isInMobileBrowser as p } from "../utils/is.js";
6
6
  function d(r, o) {
7
7
  if (!r || !o)
8
8
  return;
9
- const t = encodeURIComponent(A()), n = encodeURIComponent(o), a = `https://oauth.telegram.org/auth?bot_id=${r}&origin=${t}&embed=1&request_access=write&return_to=${t}${n}`;
10
- _() ? window.open(a, "_self") : window.location.href = a;
9
+ const t = encodeURIComponent(_()), n = encodeURIComponent(o), a = `https://oauth.telegram.org/auth?bot_id=${r}&origin=${t}&embed=1&request_access=write&return_to=${t}${n}`;
10
+ C() ? window.open(a, "_self") : window.location.href = a;
11
11
  }
12
12
  function T() {
13
13
  const r = /[#\?\&]tgAuthResult=([A-Za-z0-9\-_=]*)$/;
@@ -41,23 +41,23 @@ const j = /* @__PURE__ */ h({
41
41
  slots: t,
42
42
  expose: n
43
43
  }) {
44
- const a = g(null), i = () => {
44
+ const a = g(null), l = () => {
45
45
  var e, c;
46
46
  return (c = (e = window == null ? void 0 : window.Telegram) == null ? void 0 : e.Login) == null ? void 0 : c.auth;
47
47
  };
48
- function l() {
48
+ function s() {
49
49
  const {
50
50
  botId: e,
51
51
  toPath: c
52
52
  } = r;
53
53
  if (!e)
54
54
  return;
55
- const s = i();
56
- if (p() || !s) {
55
+ const i = l();
56
+ if (p() || !i) {
57
57
  d(e, c);
58
58
  return;
59
59
  }
60
- s == null || s({
60
+ i == null || i({
61
61
  bot_id: e,
62
62
  request_access: !0
63
63
  }, (u) => {
@@ -66,23 +66,23 @@ const j = /* @__PURE__ */ h({
66
66
  }
67
67
  function f() {
68
68
  var c;
69
- if (!(window != null && window.document) || i() || p())
69
+ if (!(window != null && window.document) || l() || p())
70
70
  return;
71
71
  const e = document.createElement("script");
72
72
  e.async = !0, e.defer = !0, e.src = "https://telegram.org/js/telegram-widget.js", (c = a.value) == null || c.appendChild(e);
73
73
  }
74
74
  return w(f), n({
75
- startCheck: l
75
+ startCheck: s
76
76
  }), () => {
77
77
  var e;
78
78
  return b("div", {
79
79
  ref: a
80
80
  }, [(e = t.default) == null ? void 0 : e.call(t, {
81
- startCheck: l
81
+ startCheck: s
82
82
  })]);
83
83
  };
84
84
  }
85
- }), R = C(j);
85
+ }), R = A(j);
86
86
  export {
87
87
  R as TelegramAuth,
88
88
  R as default,
package/dist/index.d.ts CHANGED
@@ -3,24 +3,26 @@ import * as utils from './utils';
3
3
  export * from './components';
4
4
  export * from './utils';
5
5
  declare const JKVUEComps: {
6
- Utils: {
7
- is: typeof import("./utils/is");
8
- propTypes: typeof import("./utils/vuePropTypes");
9
- timeZone: typeof import("./utils/timeZone");
10
- withInstall: typeof import("./utils/withInstall");
11
- };
6
+ Utils: typeof utils;
12
7
  Comps: typeof comps;
13
8
  evalPro(str: string): any;
14
- filterInputNum(e: string | number, type?: "int" | "float", maxDecimal?: number): string;
15
- generateHandleInputFn<T extends object, K extends keyof T>(obj: T, key: K, fn?: (() => void) | undefined, type?: "int" | "float", maxDecimal?: number): (e: ChangeEvent) => void;
9
+ filterInputNum(eventVal: string | number, type?: "int" | "float", maxDecimal?: number): string;
10
+ generateFilterInputNumFn<T extends Record<string, any>, K extends keyof T>(obj: T, key: K, fn?: (() => void) | undefined, type?: "int" | "float", maxDecimal?: number): (e: ChangeEvent) => void;
16
11
  renderHtmlStr(html: string): string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
12
  [key: string]: any;
18
13
  }>;
19
14
  getWebsiteUrl(): string;
20
15
  getRouterParams(): Recordable<any> | undefined;
16
+ removeWhitespace(str: any): string;
17
+ deepMerge<T_1 = any>(src?: any, target?: any): T_1;
18
+ desensitization(str?: string | number | undefined, number?: number, options?: {
19
+ showPrefix?: boolean | undefined;
20
+ showSuffix?: boolean | undefined;
21
+ middleStr?: string | undefined;
22
+ }): string | number | undefined;
21
23
  is(val: unknown, type: string): boolean;
22
- isDef<T_1 = unknown>(val?: T_1 | undefined): val is T_1;
23
- isUnDef<T_2 = unknown>(val?: T_2 | undefined): val is T_2;
24
+ isDef<T_2 = unknown>(val?: T_2 | undefined): val is T_2;
25
+ isUnDef<T_3 = unknown>(val?: T_3 | undefined): val is T_3;
24
26
  isObject(val: any): val is Record<any, any>;
25
27
  isDate(val: unknown): val is Date;
26
28
  isNull(val: unknown): val is null;
@@ -32,9 +34,9 @@ declare const JKVUEComps: {
32
34
  isBoolean(val: unknown): val is boolean;
33
35
  isRegExp(val: unknown): val is RegExp;
34
36
  isArray(val: any): val is any[];
35
- isEmpty<T_3 = unknown>(val: T_3): val is T_3;
36
- isPromise<T_4 = any>(val: unknown): val is Promise<T_4>;
37
- isPromiseLink<T_5>(it: T_5 | PromiseLike<T_5>): it is PromiseLike<T_5>;
37
+ isEmpty<T_4 = unknown>(val: T_4): val is T_4;
38
+ isPromise<T_5 = any>(val: unknown): val is Promise<T_5>;
39
+ isPromiseLink<T_6>(it: T_6 | PromiseLike<T_6>): it is PromiseLike<T_6>;
38
40
  isWindow(val: any): val is Window;
39
41
  isElement(val: unknown): val is Element;
40
42
  isMap(val: unknown): val is Map<any, any>;
@@ -50,7 +52,7 @@ declare const JKVUEComps: {
50
52
  isHtmlStr: (str: string) => boolean;
51
53
  propTypes: typeof import("./utils/vuePropTypes").default;
52
54
  timeZoneOptions: utils.TimeZoneItem[];
53
- withInstall<T_6>(component: T_6, alias?: string | undefined): T_6 & import("vue").Plugin;
55
+ withInstall<T_7>(component: T_7, alias?: string | undefined): T_7 & import("vue").Plugin;
54
56
  toGoogleAuth(clientId: string, redirectUri: string): void;
55
57
  GoogleAuth: {
56
58
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
package/dist/index.js CHANGED
@@ -1,63 +1,65 @@
1
- import { c as s } from "./chunks/index-BP9Q78TM.js";
2
- import { u as a, U as e } from "./chunks/index-2VK0fFTB.js";
3
- import { e as m, f as n, g as p, b as u, a as f, r as g } from "./chunks/index-2VK0fFTB.js";
4
- import { GoogleAuth as U, toGoogleAuth as h } from "./components/GoogleAuth.js";
5
- import { TelegramAuth as A, getTelegramAuthUrlParams as b, toTelegramAuth as c } from "./components/TelegramAuth.js";
6
- import { i as D, n as E, l as N, v as P, d as I, a as y, C as B, s as C, y as S, o as T, k as v, D as H, A as O, x as j, t as k, e as F, f as G, g as L, h as M, c as R, p as V, q as W, m as Z, u as q, j as z, b as J, w as K, z as Q, r as X, B as Y } from "./chunks/is-bvgc5qxU.js";
7
- import { p as $ } from "./chunks/vuePropTypes-BV0onEYv.js";
8
- import { t as as } from "./chunks/timeZone-CYGfhbdm.js";
9
- import { w as rs } from "./chunks/withInstall-b5j1glXj.js";
1
+ import { c as e } from "./chunks/index-BP9Q78TM.js";
2
+ import { u as s } from "./chunks/index-C_baUQWz.js";
3
+ import { d as m, h as l, e as n, f as p, g as u, b as f, a as g, c as h, r as d } from "./chunks/index-C_baUQWz.js";
4
+ import { GoogleAuth as U, toGoogleAuth as c } from "./components/GoogleAuth.js";
5
+ import { TelegramAuth as N, getTelegramAuthUrlParams as b, toTelegramAuth as E } from "./components/TelegramAuth.js";
6
+ import { is as D, isArray as I, isBoolean as w, isClient as S, isDate as T, isDef as v, isEdgeBrowser as y, isElement as B, isEmail as C, isEmpty as F, isFunction as M, isHtmlStr as O, isInMobileBrowser as W, isIp as G, isMap as H, isNull as L, isNullAndUnDef as R, isNullOrUnDef as V, isNumber as Z, isObject as j, isPromise as k, isPromiseLink as z, isRegExp as J, isServer as K, isString as q, isUnDef as Q, isUrl as X, isValidPhoneNumber as Y, isWindow as _, isZhLang as $ } from "./utils/is.js";
7
+ import { propTypes as se } from "./utils/vuePropTypes.js";
8
+ import { timeZoneOptions as re } from "./utils/timeZone.js";
9
+ import { withInstall as oe } from "./utils/withInstall.js";
10
10
  const t = {
11
+ ...e,
11
12
  ...s,
12
- ...a,
13
- Utils: e,
14
- Comps: s
13
+ Utils: s,
14
+ Comps: e
15
15
  };
16
16
  export {
17
17
  U as GoogleAuth,
18
- A as TelegramAuth,
19
- e as Utils,
18
+ N as TelegramAuth,
19
+ m as deepMerge,
20
20
  t as default,
21
- m as evalPro,
22
- n as filterInputNum,
23
- p as generateHandleInputFn,
24
- u as getRouterParams,
21
+ l as desensitization,
22
+ n as evalPro,
23
+ p as filterInputNum,
24
+ u as generateFilterInputNumFn,
25
+ f as getRouterParams,
25
26
  b as getTelegramAuthUrlParams,
26
- f as getWebsiteUrl,
27
+ g as getWebsiteUrl,
27
28
  D as is,
28
- E as isArray,
29
- N as isBoolean,
30
- P as isClient,
31
- I as isDate,
32
- y as isDef,
33
- B as isEdgeBrowser,
34
- C as isElement,
35
- S as isEmail,
36
- T as isEmpty,
37
- v as isFunction,
38
- H as isHtmlStr,
39
- O as isInMobileBrowser,
40
- j as isIp,
41
- k as isMap,
42
- F as isNull,
43
- G as isNullAndUnDef,
44
- L as isNullOrUnDef,
45
- M as isNumber,
46
- R as isObject,
47
- V as isPromise,
48
- W as isPromiseLink,
49
- Z as isRegExp,
50
- q as isServer,
51
- z as isString,
52
- J as isUnDef,
53
- K as isUrl,
54
- Q as isValidPhoneNumber,
55
- X as isWindow,
56
- Y as isZhLang,
57
- $ as propTypes,
58
- g as renderHtmlStr,
59
- as as timeZoneOptions,
60
- h as toGoogleAuth,
61
- c as toTelegramAuth,
62
- rs as withInstall
29
+ I as isArray,
30
+ w as isBoolean,
31
+ S as isClient,
32
+ T as isDate,
33
+ v as isDef,
34
+ y as isEdgeBrowser,
35
+ B as isElement,
36
+ C as isEmail,
37
+ F as isEmpty,
38
+ M as isFunction,
39
+ O as isHtmlStr,
40
+ W as isInMobileBrowser,
41
+ G as isIp,
42
+ H as isMap,
43
+ L as isNull,
44
+ R as isNullAndUnDef,
45
+ V as isNullOrUnDef,
46
+ Z as isNumber,
47
+ j as isObject,
48
+ k as isPromise,
49
+ z as isPromiseLink,
50
+ J as isRegExp,
51
+ K as isServer,
52
+ q as isString,
53
+ Q as isUnDef,
54
+ X as isUrl,
55
+ Y as isValidPhoneNumber,
56
+ _ as isWindow,
57
+ $ as isZhLang,
58
+ se as propTypes,
59
+ h as removeWhitespace,
60
+ d as renderHtmlStr,
61
+ re as timeZoneOptions,
62
+ c as toGoogleAuth,
63
+ E as toTelegramAuth,
64
+ oe as withInstall
63
65
  };
@@ -1,24 +1,46 @@
1
- import * as is from './is';
2
- import * as propTypes from './vuePropTypes';
3
- import * as timeZone from './timeZone';
4
- import * as withInstall from './withInstall';
5
1
  export * from './is';
6
2
  export * from './vuePropTypes';
7
3
  export * from './timeZone';
8
4
  export * from './withInstall';
9
- export declare const Utils: {
10
- is: typeof is;
11
- propTypes: typeof propTypes;
12
- timeZone: typeof timeZone;
13
- withInstall: typeof withInstall;
14
- };
5
+ /** 代替eval方法 */
15
6
  export declare function evalPro(str: string): any;
16
- export declare function filterInputNum(e: string | number, type?: 'int' | 'float', maxDecimal?: number): string;
17
- /** 生成输入数字过滤函数 */
18
- export declare function generateHandleInputFn<T extends object, K extends keyof T>(obj: T, key: K, fn?: () => void, type?: 'float' | 'int', maxDecimal?: number): (e: ChangeEvent) => void;
7
+ /** 数字输入过滤
8
+ * @param eventVal 输入的值
9
+ * @param type 输入类型,int整数,float,default: 'int'
10
+ * @param maxDecimal 最大小数位,default: 6
11
+ */
12
+ export declare function filterInputNum(eventVal: string | number, type?: 'int' | 'float', maxDecimal?: number): string;
13
+ /** 生成输入数字过滤函数
14
+ * @param obj 对象
15
+ * @param key 对象里面的字段名
16
+ * @param fn 输入过滤之后执行的函数
17
+ * @param type 输入类型,int整数,float,default: 'int'
18
+ * @param maxDecimal 最大小数位,default: 6
19
+ */
20
+ export declare function generateFilterInputNumFn<T extends Record<string, any>, K extends keyof T>(obj: T, key: K, fn?: () => void, type?: 'float' | 'int', maxDecimal?: number): (e: ChangeEvent) => void;
19
21
  /** 渲染Html字符串片段 */
20
22
  export declare function renderHtmlStr(html: string): string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
23
  [key: string]: any;
22
24
  }>;
25
+ /** 获取当前网站协议+域名 */
23
26
  export declare function getWebsiteUrl(): string;
27
+ /** 获取路由参数 */
24
28
  export declare function getRouterParams(): Recordable<any> | undefined;
29
+ /** 去除字符串里的所有空字符 */
30
+ export declare function removeWhitespace(str: any): string;
31
+ /** 深度合并 */
32
+ export declare function deepMerge<T = any>(src?: any, target?: any): T;
33
+ /** 字符串脱敏
34
+ * @param str 值
35
+ * @param number 可见的字符数,default: 6
36
+ * @param options = {
37
+ * showPrefix 显示前缀字符,default: true
38
+ * showSuffix 显示后缀字符,default: true
39
+ * middleStr 中间的字符串,default: '****'
40
+ * }
41
+ */
42
+ export declare function desensitization(str?: string | number, number?: number, options?: {
43
+ showPrefix?: boolean;
44
+ showSuffix?: boolean;
45
+ middleStr?: string;
46
+ }): string | number | undefined;
@@ -1,48 +1,50 @@
1
1
  import "vue";
2
- import { i as e, n as r, l as t, v as o, d as n, a as l, C as m, s as p, y as f, o as u, k as g, D as b, A as d, x, t as U, e as w, f as D, g as N, h as E, c as I, p as P, q as h, m as y, u as B, j as S, b as c, w as v, z as A, r as H, B as O } from "../chunks/is-bvgc5qxU.js";
3
- import { p as k } from "../chunks/vuePropTypes-BV0onEYv.js";
4
- import { t as F } from "../chunks/timeZone-CYGfhbdm.js";
5
- import { w as M } from "../chunks/withInstall-b5j1glXj.js";
6
- import { U as W, e as Z, f as q, g as z, b as T, a as V, r as G } from "../chunks/index-2VK0fFTB.js";
2
+ import { is as r, isArray as t, isBoolean as o, isClient as n, isDate as a, isDef as l, isEdgeBrowser as m, isElement as p, isEmail as f, isEmpty as u, isFunction as g, isHtmlStr as d, isInMobileBrowser as N, isIp as b, isMap as x, isNull as h, isNullAndUnDef as D, isNullOrUnDef as E, isNumber as I, isObject as P, isPromise as U, isPromiseLink as c, isRegExp as w, isServer as S, isString as v, isUnDef as y, isUrl as B, isValidPhoneNumber as F, isWindow as M, isZhLang as O } from "./is.js";
3
+ import { propTypes as A } from "./vuePropTypes.js";
4
+ import { timeZoneOptions as L } from "./timeZone.js";
5
+ import { withInstall as Z } from "./withInstall.js";
6
+ import { d as k, h as z, e as C, f as T, g as V, b as q, a as G, c as J, r as K } from "../chunks/index-C_baUQWz.js";
7
7
  export {
8
- W as Utils,
9
- Z as evalPro,
10
- q as filterInputNum,
11
- z as generateHandleInputFn,
12
- T as getRouterParams,
13
- V as getWebsiteUrl,
14
- e as is,
15
- r as isArray,
16
- t as isBoolean,
17
- o as isClient,
18
- n as isDate,
8
+ k as deepMerge,
9
+ z as desensitization,
10
+ C as evalPro,
11
+ T as filterInputNum,
12
+ V as generateFilterInputNumFn,
13
+ q as getRouterParams,
14
+ G as getWebsiteUrl,
15
+ r as is,
16
+ t as isArray,
17
+ o as isBoolean,
18
+ n as isClient,
19
+ a as isDate,
19
20
  l as isDef,
20
21
  m as isEdgeBrowser,
21
22
  p as isElement,
22
23
  f as isEmail,
23
24
  u as isEmpty,
24
25
  g as isFunction,
25
- b as isHtmlStr,
26
- d as isInMobileBrowser,
27
- x as isIp,
28
- U as isMap,
29
- w as isNull,
26
+ d as isHtmlStr,
27
+ N as isInMobileBrowser,
28
+ b as isIp,
29
+ x as isMap,
30
+ h as isNull,
30
31
  D as isNullAndUnDef,
31
- N as isNullOrUnDef,
32
- E as isNumber,
33
- I as isObject,
34
- P as isPromise,
35
- h as isPromiseLink,
36
- y as isRegExp,
37
- B as isServer,
38
- S as isString,
39
- c as isUnDef,
40
- v as isUrl,
41
- A as isValidPhoneNumber,
42
- H as isWindow,
32
+ E as isNullOrUnDef,
33
+ I as isNumber,
34
+ P as isObject,
35
+ U as isPromise,
36
+ c as isPromiseLink,
37
+ w as isRegExp,
38
+ S as isServer,
39
+ v as isString,
40
+ y as isUnDef,
41
+ B as isUrl,
42
+ F as isValidPhoneNumber,
43
+ M as isWindow,
43
44
  O as isZhLang,
44
- k as propTypes,
45
- G as renderHtmlStr,
46
- F as timeZoneOptions,
47
- M as withInstall
45
+ A as propTypes,
46
+ J as removeWhitespace,
47
+ K as renderHtmlStr,
48
+ L as timeZoneOptions,
49
+ Z as withInstall
48
50
  };