@qy_better_lib/core 0.0.3 → 0.0.5

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 +1 @@
1
- (function(r,f){typeof exports=="object"&&typeof module<"u"?f(exports):typeof define=="function"&&define.amd?define(["exports"],f):(r=typeof globalThis<"u"?globalThis:r||self,f(r["@qy_better_lib/core"]={}))})(this,function(r){"use strict";function f(){return Math.floor(Math.random()*1e4)}function E(e){return Math.floor(Math.random()*Math.floor(e))}function v(){const e=p;return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function p(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function $(e){return e===void 0}function y(e){return Object.prototype.toString.call(e)==="[object Array]"}function g(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function M(e){return Object.prototype.toString.call(e)==="[object Date]"}function N(e){return!e&&e!==0||y(e)&&e.length===0||g(e)&&!Object.keys(e).length}function h(e){return typeof Element>"u"?!1:e instanceof Element}const O=typeof window<"u",A=e=>typeof e=="number";function w(e,t="key",n="children"){const o={},i=(a,s)=>{for(let l=0;l<a.length;l++){const u=a[l],d=u[t];if(!o[d]){o[d]=u,s&&(o[d].parent=o[s]);const m=u[n];m&&m.length>0&&i(m,u[t])}}};return i(e),o}function F(e){return e?Object.prototype.toString.call(1)!=="[object Number]"?`${e}`:`${e}`.replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,"):"0"}function _(){const e=localStorage.getItem("token");if(!e)return;const t=JSON.parse(e);if(t!==null)if(t.expirse!=null&&t.expirse<new Date().getTime())localStorage.removeItem("token");else return t.value;return null}function B(e,t){!t&&(t=7*24*60*60*1e3)||(t=t*1e3);const n={value:e,expirse:new Date().getTime()+t};localStorage.setItem("token",JSON.stringify(n))}function H(){localStorage.removeItem("token")}function R(e,t,n="local"){const o=n=="local"?localStorage:sessionStorage;t!=null&&o.setItem(e,JSON.stringify(t))}function b(e,t="local"){let o=(t=="local"?localStorage:sessionStorage).getItem(e);return o&&JSON.parse(o||"")}function J(e,t="local"){(t=="local"?localStorage:sessionStorage).removeItem(e)}function L(e="local"){(e=="local"?localStorage:sessionStorage).clear()}function T(e){const t=Object.prototype.toString;if(!e||typeof e!="object")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(t.call(e)==="[object Date]")return new Date(e.getTime());if(t.call(e)==="[object RegExp]"){const o=[];return e.global&&o.push("g"),e.multiline&&o.push("m"),e.ignoreCase&&o.push("i"),new RegExp(e.source,o.join(""))}if(t.call(e)==="[object FormData]"){const o=new FormData;for(const[i,a]of e.entries())o.append(i,a);return o}const n=Array.isArray(e)?[]:e.constructor?new e.constructor:{};for(const o in e)n[o]=T(e[o]);return n}function k(...e){let t=e.length,n=e[0];g(n)||(n={});for(let o=1;o<t;o++){let i=e[o];if(g(i))for(let a in i)a==="__proto__"||n===i[a]||(g(i[a])?n[a]=k(n[a],i[a]):n[a]=i[a])}return n}function D(e,t){return!e||e.tagName==="BODY"?null:e.classList.contains(t)?e:D(e.parentNode,t)}const c=new Map;let I;O&&(document.addEventListener("mousedown",e=>I=e),document.addEventListener("mouseup",e=>{for(const t of c.values())for(const{documentHandler:n}of t)n(e,I)}));function C(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:h(t.arg)&&n.push(t.arg),function(o,i){const a=t.instance.popperRef,s=o.target,l=i==null?void 0:i.target,u=!t||!t.instance,d=!s||!l,m=e.contains(s)||e.contains(l),U=e===s,j=n.length&&n.some(S=>S==null?void 0:S.contains(s))||n.length&&n.includes(l),q=a&&(a.contains(s)||a.contains(l));u||d||m||U||j||q||t.value(o,i)}}const P={beforeMount(e,t){var n;c.has(e)||c.set(e,[]),(n=c.get(e))==null||n.push({documentHandler:C(e,t),bindingFn:t.value})},updated(e,t){c.has(e)||c.set(e,[]);const n=c.get(e),o=n==null?void 0:n.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:C(e,t),bindingFn:t.value};o&&o>=0?n==null||n.splice(o,1,i):n==null||n.push(i)},unmounted(e){c.delete(e)}};r.ClickOutside=P,r.clearStorage=L,r.deepAssign=k,r.deepClone=T,r.generateId=f,r.generateString=p,r.getParentByClass=D,r.getRandomInt=E,r.getStorage=b,r.getToken=_,r.guiID=v,r.isArray=y,r.isClient=O,r.isDate=M,r.isElement=h,r.isEmpty=N,r.isNumber=A,r.isObject=g,r.isUndefined=$,r.removeStorage=J,r.removeToken=H,r.setStorage=R,r.setToken=B,r.thousandSeparator=F,r.treeFlat=w,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
1
+ (function(o,f){typeof exports=="object"&&typeof module<"u"?f(exports):typeof define=="function"&&define.amd?define(["exports"],f):(o=typeof globalThis<"u"?globalThis:o||self,f(o["@qy_better_lib/core"]={}))})(this,function(o){"use strict";function f(){return Math.floor(Math.random()*1e4)}function E(e){return Math.floor(Math.random()*Math.floor(e))}function $(){const e=p;return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function p(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function v(e){return e===void 0}function h(e){return Object.prototype.toString.call(e)==="[object Array]"}function d(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function w(e){return Object.prototype.toString.call(e)==="[object Date]"}function M(e){return!e&&e!==0||h(e)&&e.length===0||d(e)&&!Object.keys(e).length}function N(e){return typeof Element>"u"?!1:e instanceof Element}const b=typeof window<"u",S=e=>typeof e=="number",k=e=>typeof e=="string",A=e=>k(e)?!Number.isNaN(Number(e)):!1;function L(e){return/^1[3-9]\d{9}$/.test(e)}function B(e){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e)}function R(e){return/^(6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}|0)$/.test(e)}function _(e,t="key",n="children"){const r={},i=(a,s)=>{for(let u=0;u<a.length;u++){const l=a[u],g=l[t];if(!r[g]){r[g]=l,s&&(r[g].parent=r[s]);const m=l[n];m&&m.length>0&&i(m,l[t])}}};return i(e),r}function P(e){return e?Object.prototype.toString.call(1)!=="[object Number]"?`${e}`:`${e}`.replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,"):"0"}function H(e,t){return S(e)?Number(t?Number(e).toFixed(t):e):Number.NaN}function J(e,t){return S(e)?Number(e.toFixed(t)):Number.NaN}function U(){const e=localStorage.getItem("token");if(!e)return;const t=JSON.parse(e);if(t!==null)if(t.expirse!=null&&t.expirse<new Date().getTime())localStorage.removeItem("token");else return t.value;return null}function j(e,t){!t&&(t=7*24*60*60*1e3)||(t=t*1e3);const n={value:e,expirse:new Date().getTime()+t};localStorage.setItem("token",JSON.stringify(n))}function q(){localStorage.removeItem("token")}function V(e,t,n="local"){const r=n=="local"?localStorage:sessionStorage;t!=null&&r.setItem(e,JSON.stringify(t))}function Y(e,t="local"){let r=(t=="local"?localStorage:sessionStorage).getItem(e);return r&&JSON.parse(r||"")}function z(e,t="local"){(t=="local"?localStorage:sessionStorage).removeItem(e)}function G(e="local"){(e=="local"?localStorage:sessionStorage).clear()}function I(e){const t=Object.prototype.toString;if(!e||typeof e!="object")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(t.call(e)==="[object Date]")return new Date(e.getTime());if(t.call(e)==="[object RegExp]"){const r=[];return e.global&&r.push("g"),e.multiline&&r.push("m"),e.ignoreCase&&r.push("i"),new RegExp(e.source,r.join(""))}if(t.call(e)==="[object FormData]"){const r=new FormData;for(const[i,a]of e.entries())r.append(i,a);return r}const n=Array.isArray(e)?[]:e.constructor?new e.constructor:{};for(const r in e)n[r]=I(e[r]);return n}function O(...e){let t=e.length,n=e[0];d(n)||(n={});for(let r=1;r<t;r++){let i=e[r];if(d(i))for(let a in i)a==="__proto__"||n===i[a]||(d(i[a])?n[a]=O(n[a],i[a]):n[a]=i[a])}return n}function T(e,t){return!e||e.tagName==="BODY"?null:e.classList.contains(t)?e:T(e.parentNode,t)}function D({path:e,name:t}){const n=document.createElement("a");n.href=e,n.target="_blank",t&&n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function K(e){e.forEach(t=>{D({path:t.url,name:t.name})})}async function Q(e){if(!e)return;const t=new FileReader;return t.readAsDataURL(e),new Promise((n,r)=>{t.onload=i=>{var a;return n((a=i.target)==null?void 0:a.result)},t.onerror=i=>r(void 0)})}const c=new Map;let F;b&&(document.addEventListener("mousedown",e=>F=e),document.addEventListener("mouseup",e=>{for(const t of c.values())for(const{documentHandler:n}of t)n(e,F)}));function C(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:N(t.arg)&&n.push(t.arg),function(r,i){const a=t.instance.popperRef,s=r.target,u=i==null?void 0:i.target,l=!t||!t.instance,g=!s||!u,m=e.contains(s)||e.contains(u),X=e===s,Z=n.length&&n.some(y=>y==null?void 0:y.contains(s))||n.length&&n.includes(u),x=a&&(a.contains(s)||a.contains(u));l||g||m||X||Z||x||t.value(r,i)}}const W={beforeMount(e,t){var n;c.has(e)||c.set(e,[]),(n=c.get(e))==null||n.push({documentHandler:C(e,t),bindingFn:t.value})},updated(e,t){c.has(e)||c.set(e,[]);const n=c.get(e),r=n==null?void 0:n.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:C(e,t),bindingFn:t.value};r&&r>=0?n==null||n.splice(r,1,i):n==null||n.push(i)},unmounted(e){c.delete(e)}};o.ClickOutside=W,o.clearStorage=G,o.deepAssign=O,o.deepClone=I,o.downLoadFile=D,o.downLoadFiles=K,o.generateId=f,o.generateString=p,o.getParentByClass=T,o.getRandomInt=E,o.getStorage=Y,o.getToken=U,o.guiID=$,o.isArray=h,o.isClient=b,o.isDate=w,o.isElement=N,o.isEmpty=M,o.isIp=B,o.isMobile=L,o.isNumber=S,o.isObject=d,o.isPort=R,o.isString=k,o.isStringNumber=A,o.isUndefined=v,o.removeStorage=z,o.removeToken=q,o.setStorage=V,o.setToken=j,o.thousandSeparator=P,o.toBase64=Q,o.toFixed=J,o.toNumber=H,o.treeFlat=_,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
package/lib/index.js CHANGED
@@ -1,35 +1,46 @@
1
- import { generateId as r, generateString as o, getRandomInt as a, guiID as s } from "./utils/random.js";
2
- import { isArray as i, isClient as m, isDate as g, isElement as p, isEmpty as f, isNumber as d, isObject as l, isUndefined as x } from "./utils/is.js";
3
- import { treeFlat as u } from "./utils/tree.js";
4
- import { thousandSeparator as C } from "./utils/number.js";
5
- import { clearStorage as y, getStorage as I, getToken as T, removeStorage as b, removeToken as v, setStorage as A, setToken as D } from "./utils/storage.js";
6
- import { deepAssign as O, deepClone as h } from "./utils/object.js";
7
- import { getParentByClass as B } from "./utils/dom.js";
8
- import { default as N } from "./directives/click-outside.js";
1
+ import { generateId as o, generateString as r, getRandomInt as i, guiID as s } from "./utils/random.js";
2
+ import { isArray as n, isClient as m, isDate as g, isElement as d, isEmpty as p, isIp as f, isMobile as l, isNumber as x, isObject as S, isPort as u, isString as b, isStringNumber as k, isUndefined as C } from "./utils/is.js";
3
+ import { treeFlat as I } from "./utils/tree.js";
4
+ import { thousandSeparator as y, toFixed as N, toNumber as T } from "./utils/number.js";
5
+ import { clearStorage as w, getStorage as A, getToken as B, removeStorage as D, removeToken as E, setStorage as L, setToken as O } from "./utils/storage.js";
6
+ import { deepAssign as h, deepClone as j } from "./utils/object.js";
7
+ import { getParentByClass as R } from "./utils/dom.js";
8
+ import { downLoadFile as q, downLoadFiles as z, toBase64 as G } from "./utils/file.js";
9
+ import { default as J } from "./directives/click-outside.js";
9
10
  export {
10
- N as ClickOutside,
11
- y as clearStorage,
12
- O as deepAssign,
13
- h as deepClone,
14
- r as generateId,
15
- o as generateString,
16
- B as getParentByClass,
17
- a as getRandomInt,
18
- I as getStorage,
19
- T as getToken,
11
+ J as ClickOutside,
12
+ w as clearStorage,
13
+ h as deepAssign,
14
+ j as deepClone,
15
+ q as downLoadFile,
16
+ z as downLoadFiles,
17
+ o as generateId,
18
+ r as generateString,
19
+ R as getParentByClass,
20
+ i as getRandomInt,
21
+ A as getStorage,
22
+ B as getToken,
20
23
  s as guiID,
21
- i as isArray,
24
+ n as isArray,
22
25
  m as isClient,
23
26
  g as isDate,
24
- p as isElement,
25
- f as isEmpty,
26
- d as isNumber,
27
- l as isObject,
28
- x as isUndefined,
29
- b as removeStorage,
30
- v as removeToken,
31
- A as setStorage,
32
- D as setToken,
33
- C as thousandSeparator,
34
- u as treeFlat
27
+ d as isElement,
28
+ p as isEmpty,
29
+ f as isIp,
30
+ l as isMobile,
31
+ x as isNumber,
32
+ S as isObject,
33
+ u as isPort,
34
+ b as isString,
35
+ k as isStringNumber,
36
+ C as isUndefined,
37
+ D as removeStorage,
38
+ E as removeToken,
39
+ L as setStorage,
40
+ O as setToken,
41
+ y as thousandSeparator,
42
+ G as toBase64,
43
+ N as toFixed,
44
+ T as toNumber,
45
+ I as treeFlat
35
46
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 下载文件
3
+ * @param filePath 文件路径
4
+ */
5
+ export declare function downLoadFile({ path, name }: {
6
+ path: string;
7
+ name?: string;
8
+ }): void;
9
+ /**批量下载文件 */
10
+ export declare function downLoadFiles(fileList: any[]): void;
11
+ /**
12
+ * 将file转换成base64
13
+ * @param file
14
+ * @param callback
15
+ * @returns
16
+ */
17
+ export declare function toBase64(file: Blob): Promise<string | undefined>;
@@ -0,0 +1,24 @@
1
+ function d({ path: n, name: e }) {
2
+ const r = document.createElement("a");
3
+ r.href = n, r.target = "_blank", e && r.setAttribute("download", e), document.body.appendChild(r), r.click(), document.body.removeChild(r);
4
+ }
5
+ function c(n) {
6
+ n.forEach((e) => {
7
+ d({ path: e.url, name: e.name });
8
+ });
9
+ }
10
+ async function i(n) {
11
+ if (!n) return;
12
+ const e = new FileReader();
13
+ return e.readAsDataURL(n), new Promise((r, a) => {
14
+ e.onload = (o) => {
15
+ var t;
16
+ return r((t = o.target) == null ? void 0 : t.result);
17
+ }, e.onerror = (o) => a(void 0);
18
+ });
19
+ }
20
+ export {
21
+ d as downLoadFile,
22
+ c as downLoadFiles,
23
+ i as toBase64
24
+ };
@@ -5,3 +5,4 @@ export * from './number';
5
5
  export * from './storage';
6
6
  export * from './object';
7
7
  export * from './dom';
8
+ export * from './file';
package/lib/utils/is.d.ts CHANGED
@@ -40,3 +40,13 @@ export declare function isElement(e: unknown): e is Element;
40
40
  export declare const isClient: boolean;
41
41
  /**是否未数值 */
42
42
  export declare const isNumber: (val: any) => boolean;
43
+ /**是否为字符串 */
44
+ export declare const isString: (val: any) => boolean;
45
+ /**是否为字符串数值 */
46
+ export declare const isStringNumber: (val: string) => boolean;
47
+ /**是否为手机号(国内手机号) */
48
+ export declare function isMobile(str: string): boolean;
49
+ /**是否为有效IP地址 */
50
+ export declare function isIp(val: string): boolean;
51
+ /**是否为有效端口 */
52
+ export declare function isPort(val: string): boolean;
package/lib/utils/is.js CHANGED
@@ -7,23 +7,37 @@ function e(t) {
7
7
  function n(t) {
8
8
  return typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]";
9
9
  }
10
- function r(t) {
10
+ function c(t) {
11
11
  return Object.prototype.toString.call(t) === "[object Date]";
12
12
  }
13
- function i(t) {
13
+ function u(t) {
14
14
  return !t && t !== 0 || e(t) && t.length === 0 || n(t) && !Object.keys(t).length;
15
15
  }
16
- function c(t) {
16
+ function s(t) {
17
17
  return typeof Element > "u" ? !1 : t instanceof Element;
18
18
  }
19
- const u = typeof window < "u", f = (t) => typeof t == "number";
19
+ const f = typeof window < "u", b = (t) => typeof t == "number", r = (t) => typeof t == "string", d = (t) => r(t) ? !Number.isNaN(Number(t)) : !1;
20
+ function p(t) {
21
+ return /^1[3-9]\d{9}$/.test(t);
22
+ }
23
+ function y(t) {
24
+ return /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(t);
25
+ }
26
+ function g(t) {
27
+ return /^(6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}|0)$/.test(t);
28
+ }
20
29
  export {
21
30
  e as isArray,
22
- u as isClient,
23
- r as isDate,
24
- c as isElement,
25
- i as isEmpty,
26
- f as isNumber,
31
+ f as isClient,
32
+ c as isDate,
33
+ s as isElement,
34
+ u as isEmpty,
35
+ y as isIp,
36
+ p as isMobile,
37
+ b as isNumber,
27
38
  n as isObject,
39
+ g as isPort,
40
+ r as isString,
41
+ d as isStringNumber,
28
42
  o as isUndefined
29
43
  };
@@ -4,3 +4,15 @@
4
4
  * @returns
5
5
  */
6
6
  export declare function thousandSeparator(num: number | any): string;
7
+ /**
8
+ * 转换成数值
9
+ * @param num 源
10
+ * @param fixed 保留小数点,默认不设置
11
+ */
12
+ export declare function toNumber(num: string | undefined, fixed?: number): number | undefined;
13
+ /**
14
+ * 保留小数点
15
+ * @param num 数字
16
+ * @param fixed 小数点
17
+ */
18
+ export declare function toFixed(num: number, fixed: number): number;
@@ -1,6 +1,15 @@
1
- function t(r) {
1
+ import { isNumber as t } from "./is.js";
2
+ function u(r) {
2
3
  return r ? Object.prototype.toString.call(1) !== "[object Number]" ? `${r}` : `${r}`.replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, "$1,") : "0";
3
4
  }
5
+ function i(r, e) {
6
+ return t(r) ? Number(e ? Number(r).toFixed(e) : r) : Number.NaN;
7
+ }
8
+ function N(r, e) {
9
+ return t(r) ? Number(r.toFixed(e)) : Number.NaN;
10
+ }
4
11
  export {
5
- t as thousandSeparator
12
+ u as thousandSeparator,
13
+ N as toFixed,
14
+ i as toNumber
6
15
  };
package/package.json CHANGED
@@ -1,54 +1,50 @@
1
- {
2
- "name": "@qy_better_lib/core",
3
- "private": false,
4
- "version": "0.0.3",
5
- "description": "qy better lib core",
6
- "author": "luhuiming",
7
- "license": "ISC",
8
- "scripts": {
9
- "build:lib": "vite build --config vite.lib.config.ts",
10
- "build:dist-min": "vite build --config vite.dist.min.config.ts",
11
- "build": "yarn build:lib && yarn build:dist-min"
12
- },
13
- "main": "lib/index.js",
14
- "module": "lib/index.js",
15
- "types": "lib/index.d.ts",
16
- "typesVersions": {
17
- "*": {
18
- "lib/index.js": [
19
- "lib/index.d.ts"
20
- ],
21
- "@qy-better-lib/core": [
22
- "lib/index.d.ts"
23
- ],
24
- "*": [
25
- "*",
26
- "dist/*",
27
- "lib/*",
28
- "lib/*.d.ts",
29
- "lib/*/index.d.ts"
30
- ]
31
- }
32
- },
33
- "exports": {
34
- ".": {
35
- "import": "./lib/index.js"
36
- },
37
- "./directives": "./lib/directives/index.js",
38
- "./directives/*": "./lib/directives/*/*.js",
39
- "./utils": "./lib/utils/index.js",
40
- "./utils/*": "./lib/utils/*.js"
41
- },
42
- "publishConfig": {
43
- "access": "public",
44
- "registry": "https://registry.npmjs.org/"
45
- },
46
- "devDependencies": {
47
- "@types/node": "^20.14.9",
48
- "@vitejs/plugin-vue": "^5.0.5",
49
- "element-plus": "^2.7.6",
50
- "vite": "^5.3.2",
51
- "vite-plugin-dts": "^3.9.1",
52
- "vue": "^3.4.31"
53
- }
54
- }
1
+ {
2
+ "name": "@qy_better_lib/core",
3
+ "private": false,
4
+ "version": "0.0.5",
5
+ "description": "qy better lib core",
6
+ "author": "luhuiming",
7
+ "license": "ISC",
8
+ "scripts": {
9
+ "build:lib": "vite build --config vite.lib.config.ts",
10
+ "build:dist-min": "vite build --config vite.dist.min.config.ts",
11
+ "build": "yarn build:lib && yarn build:dist-min"
12
+ },
13
+ "main": "lib/index.js",
14
+ "module": "lib/index.js",
15
+ "types": "lib/index.d.ts",
16
+ "typesVersions": {
17
+ "*": {
18
+ "lib/index.js": [
19
+ "lib/index.d.ts"
20
+ ],
21
+ "@qy-better-lib/core": [
22
+ "lib/index.d.ts"
23
+ ],
24
+ "*": [
25
+ "*",
26
+ "dist/*",
27
+ "lib/*",
28
+ "lib/*.d.ts",
29
+ "lib/*/index.d.ts"
30
+ ]
31
+ }
32
+ },
33
+ "exports": {
34
+ ".": {
35
+ "import": "./lib/index.js"
36
+ },
37
+ "./directives": "./lib/directives/index.js",
38
+ "./directives/*": "./lib/directives/*/*.js",
39
+ "./utils": "./lib/utils/index.js",
40
+ "./utils/*": "./lib/utils/*.js"
41
+ },
42
+ "devDependencies": {
43
+ "@types/node": "^20.14.9",
44
+ "@vitejs/plugin-vue": "^5.0.5",
45
+ "element-plus": "^2.7.6",
46
+ "vite": "^5.3.2",
47
+ "vite-plugin-dts": "^3.9.1",
48
+ "vue": "^3.4.31"
49
+ }
50
+ }
package/tsconfig.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "compilerOptions": {},
3
- "extends": "../../tsconfig.json",
4
- "include": ["./src/**/*.ts"]
5
- }