fast-element-plus 1.0.0-alpha.0 → 1.0.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.
- package/package.json +24 -121
- package/Fast.png +0 -0
- package/LICENSE +0 -201
- package/README.md +0 -158
- package/README.zh.md +0 -158
- package/dist/index.iife.js +0 -2
- package/dist/index.iife.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/es/components/icon/index.d.ts +0 -20
- package/es/components/icon/index.mjs +0 -9
- package/es/components/icon/index.mjs.map +0 -1
- package/es/components/icon/src/icon.d.ts +0 -61
- package/es/components/icon/src/icon.mjs +0 -81
- package/es/components/icon/src/icon.mjs.map +0 -1
- package/es/components/index.d.ts +0 -1
- package/es/components/index.mjs +0 -5
- package/es/components/index.mjs.map +0 -1
- package/es/constants/index.d.ts +0 -2
- package/es/constants/index.mjs +0 -7
- package/es/constants/index.mjs.map +0 -1
- package/es/constants/mime.d.ts +0 -61
- package/es/constants/mime.mjs +0 -62
- package/es/constants/mime.mjs.map +0 -1
- package/es/constants/regex.d.ts +0 -78
- package/es/constants/regex.mjs +0 -79
- package/es/constants/regex.mjs.map +0 -1
- package/es/directives/clickCopy/index.d.ts +0 -2
- package/es/directives/clickCopy/index.mjs +0 -39
- package/es/directives/clickCopy/index.mjs.map +0 -1
- package/es/directives/clickDebounce/index.d.ts +0 -2
- package/es/directives/clickDebounce/index.mjs +0 -21
- package/es/directives/clickDebounce/index.mjs.map +0 -1
- package/es/directives/clickDraggable/index.d.ts +0 -2
- package/es/directives/clickDraggable/index.mjs +0 -39
- package/es/directives/clickDraggable/index.mjs.map +0 -1
- package/es/directives/clickIconCopy/index.d.ts +0 -2
- package/es/directives/clickIconCopy/index.mjs +0 -57
- package/es/directives/clickIconCopy/index.mjs.map +0 -1
- package/es/directives/clickLongpress/index.d.ts +0 -2
- package/es/directives/clickLongpress/index.mjs +0 -43
- package/es/directives/clickLongpress/index.mjs.map +0 -1
- package/es/directives/clickThrottle/index.d.ts +0 -2
- package/es/directives/clickThrottle/index.mjs +0 -32
- package/es/directives/clickThrottle/index.mjs.map +0 -1
- package/es/directives/index.d.ts +0 -6
- package/es/directives/index.mjs +0 -15
- package/es/directives/index.mjs.map +0 -1
- package/es/fast-element-plus/component.d.ts +0 -3
- package/es/fast-element-plus/component.mjs +0 -6
- package/es/fast-element-plus/component.mjs.map +0 -1
- package/es/fast-element-plus/directive.d.ts +0 -2
- package/es/fast-element-plus/directive.mjs +0 -11
- package/es/fast-element-plus/directive.mjs.map +0 -1
- package/es/fast-element-plus/element-plus.d.ts +0 -2
- package/es/fast-element-plus/element-plus.mjs +0 -113
- package/es/fast-element-plus/element-plus.mjs.map +0 -1
- package/es/fast-element-plus/fast-element-plus.d.ts +0 -3
- package/es/fast-element-plus/fast-element-plus.mjs +0 -12
- package/es/fast-element-plus/fast-element-plus.mjs.map +0 -1
- package/es/fast-element-plus/make-installer.d.ts +0 -7
- package/es/fast-element-plus/make-installer.mjs +0 -30
- package/es/fast-element-plus/make-installer.mjs.map +0 -1
- package/es/fast-element-plus/version.d.ts +0 -4
- package/es/fast-element-plus/version.mjs +0 -5
- package/es/fast-element-plus/version.mjs.map +0 -1
- package/es/hooks/index.d.ts +0 -2
- package/es/hooks/index.mjs +0 -7
- package/es/hooks/index.mjs.map +0 -1
- package/es/hooks/useLoading/index.d.ts +0 -4
- package/es/hooks/useLoading/index.mjs +0 -35
- package/es/hooks/useLoading/index.mjs.map +0 -1
- package/es/hooks/useOverlay/index.d.ts +0 -4
- package/es/hooks/useOverlay/index.mjs +0 -27
- package/es/hooks/useOverlay/index.mjs.map +0 -1
- package/es/hooks/useScreenFull/index.d.ts +0 -0
- package/es/index.d.ts +0 -16
- package/es/index.es.d.ts +0 -6
- package/es/index.mjs +0 -82
- package/es/index.mjs.map +0 -1
- package/es/settings/index.d.ts +0 -79
- package/es/settings/index.mjs +0 -35
- package/es/settings/index.mjs.map +0 -1
- package/es/stores/index.d.ts +0 -4
- package/es/stores/index.mjs +0 -7
- package/es/stores/index.mjs.map +0 -1
- package/es/utils/base64.d.ts +0 -10
- package/es/utils/base64.mjs +0 -106
- package/es/utils/base64.mjs.map +0 -1
- package/es/utils/click.d.ts +0 -14
- package/es/utils/click.mjs +0 -35
- package/es/utils/click.mjs.map +0 -1
- package/es/utils/color.d.ts +0 -31
- package/es/utils/color.mjs +0 -73
- package/es/utils/color.mjs.map +0 -1
- package/es/utils/console.d.ts +0 -21
- package/es/utils/console.mjs +0 -19
- package/es/utils/console.mjs.map +0 -1
- package/es/utils/deviceId.d.ts +0 -9
- package/es/utils/deviceId.mjs +0 -27
- package/es/utils/deviceId.mjs.map +0 -1
- package/es/utils/errorHandler.d.ts +0 -4
- package/es/utils/errorHandler.mjs +0 -42
- package/es/utils/errorHandler.mjs.map +0 -1
- package/es/utils/form.d.ts +0 -78
- package/es/utils/form.mjs +0 -218
- package/es/utils/form.mjs.map +0 -1
- package/es/utils/index.d.ts +0 -10
- package/es/utils/index.mjs +0 -29
- package/es/utils/index.mjs.map +0 -1
- package/es/utils/storage.d.ts +0 -79
- package/es/utils/storage.mjs +0 -219
- package/es/utils/storage.mjs.map +0 -1
- package/es/utils/string.d.ts +0 -33
- package/es/utils/string.mjs +0 -119
- package/es/utils/string.mjs.map +0 -1
- package/es/utils/vue/func.d.ts +0 -7
- package/es/utils/vue/func.mjs +0 -17
- package/es/utils/vue/func.mjs.map +0 -1
- package/es/utils/vue/index.d.ts +0 -6
- package/es/utils/vue/index.mjs +0 -17
- package/es/utils/vue/index.mjs.map +0 -1
- package/es/utils/vue/install.d.ts +0 -5
- package/es/utils/vue/install.mjs +0 -31
- package/es/utils/vue/install.mjs.map +0 -1
- package/es/utils/vue/props.d.ts +0 -10
- package/es/utils/vue/props.mjs +0 -14
- package/es/utils/vue/props.mjs.map +0 -1
- package/es/utils/vue/slots.d.ts +0 -11
- package/es/utils/vue/slots.mjs +0 -7
- package/es/utils/vue/slots.mjs.map +0 -1
- package/es/utils/vue/useRender.d.ts +0 -7
- package/es/utils/vue/useRender.mjs +0 -12
- package/es/utils/vue/useRender.mjs.map +0 -1
- package/es/utils/vue/with.d.ts +0 -6
- package/es/utils/vue/with.mjs +0 -7
- package/es/utils/vue/with.mjs.map +0 -1
- package/global.d.ts +0 -3
- package/lib/components/icon/index.d.ts +0 -20
- package/lib/components/icon/index.js +0 -2
- package/lib/components/icon/index.js.map +0 -1
- package/lib/components/icon/src/icon.d.ts +0 -61
- package/lib/components/icon/src/icon.js +0 -2
- package/lib/components/icon/src/icon.js.map +0 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +0 -1
- package/lib/constants/index.d.ts +0 -2
- package/lib/constants/index.js +0 -2
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/mime.d.ts +0 -61
- package/lib/constants/mime.js +0 -2
- package/lib/constants/mime.js.map +0 -1
- package/lib/constants/regex.d.ts +0 -78
- package/lib/constants/regex.js +0 -2
- package/lib/constants/regex.js.map +0 -1
- package/lib/directives/clickCopy/index.d.ts +0 -2
- package/lib/directives/clickCopy/index.js +0 -2
- package/lib/directives/clickCopy/index.js.map +0 -1
- package/lib/directives/clickDebounce/index.d.ts +0 -2
- package/lib/directives/clickDebounce/index.js +0 -2
- package/lib/directives/clickDebounce/index.js.map +0 -1
- package/lib/directives/clickDraggable/index.d.ts +0 -2
- package/lib/directives/clickDraggable/index.js +0 -2
- package/lib/directives/clickDraggable/index.js.map +0 -1
- package/lib/directives/clickIconCopy/index.d.ts +0 -2
- package/lib/directives/clickIconCopy/index.js +0 -2
- package/lib/directives/clickIconCopy/index.js.map +0 -1
- package/lib/directives/clickLongpress/index.d.ts +0 -2
- package/lib/directives/clickLongpress/index.js +0 -2
- package/lib/directives/clickLongpress/index.js.map +0 -1
- package/lib/directives/clickThrottle/index.d.ts +0 -2
- package/lib/directives/clickThrottle/index.js +0 -2
- package/lib/directives/clickThrottle/index.js.map +0 -1
- package/lib/directives/index.d.ts +0 -6
- package/lib/directives/index.js +0 -2
- package/lib/directives/index.js.map +0 -1
- package/lib/fast-element-plus/component.d.ts +0 -3
- package/lib/fast-element-plus/component.js +0 -2
- package/lib/fast-element-plus/component.js.map +0 -1
- package/lib/fast-element-plus/directive.d.ts +0 -2
- package/lib/fast-element-plus/directive.js +0 -2
- package/lib/fast-element-plus/directive.js.map +0 -1
- package/lib/fast-element-plus/element-plus.d.ts +0 -2
- package/lib/fast-element-plus/element-plus.js +0 -2
- package/lib/fast-element-plus/element-plus.js.map +0 -1
- package/lib/fast-element-plus/fast-element-plus.d.ts +0 -3
- package/lib/fast-element-plus/fast-element-plus.js +0 -2
- package/lib/fast-element-plus/fast-element-plus.js.map +0 -1
- package/lib/fast-element-plus/make-installer.d.ts +0 -7
- package/lib/fast-element-plus/make-installer.js +0 -2
- package/lib/fast-element-plus/make-installer.js.map +0 -1
- package/lib/fast-element-plus/version.d.ts +0 -4
- package/lib/fast-element-plus/version.js +0 -2
- package/lib/fast-element-plus/version.js.map +0 -1
- package/lib/hooks/index.d.ts +0 -2
- package/lib/hooks/index.js +0 -2
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useLoading/index.d.ts +0 -4
- package/lib/hooks/useLoading/index.js +0 -2
- package/lib/hooks/useLoading/index.js.map +0 -1
- package/lib/hooks/useOverlay/index.d.ts +0 -4
- package/lib/hooks/useOverlay/index.js +0 -2
- package/lib/hooks/useOverlay/index.js.map +0 -1
- package/lib/hooks/useScreenFull/index.d.ts +0 -0
- package/lib/index.d.ts +0 -16
- package/lib/index.es.d.ts +0 -6
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/lib/settings/index.d.ts +0 -79
- package/lib/settings/index.js +0 -2
- package/lib/settings/index.js.map +0 -1
- package/lib/stores/index.d.ts +0 -4
- package/lib/stores/index.js +0 -2
- package/lib/stores/index.js.map +0 -1
- package/lib/utils/base64.d.ts +0 -10
- package/lib/utils/base64.js +0 -2
- package/lib/utils/base64.js.map +0 -1
- package/lib/utils/click.d.ts +0 -14
- package/lib/utils/click.js +0 -2
- package/lib/utils/click.js.map +0 -1
- package/lib/utils/color.d.ts +0 -31
- package/lib/utils/color.js +0 -2
- package/lib/utils/color.js.map +0 -1
- package/lib/utils/console.d.ts +0 -21
- package/lib/utils/console.js +0 -2
- package/lib/utils/console.js.map +0 -1
- package/lib/utils/deviceId.d.ts +0 -9
- package/lib/utils/deviceId.js +0 -2
- package/lib/utils/deviceId.js.map +0 -1
- package/lib/utils/errorHandler.d.ts +0 -4
- package/lib/utils/errorHandler.js +0 -2
- package/lib/utils/errorHandler.js.map +0 -1
- package/lib/utils/form.d.ts +0 -78
- package/lib/utils/form.js +0 -2
- package/lib/utils/form.js.map +0 -1
- package/lib/utils/index.d.ts +0 -10
- package/lib/utils/index.js +0 -2
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/storage.d.ts +0 -79
- package/lib/utils/storage.js +0 -2
- package/lib/utils/storage.js.map +0 -1
- package/lib/utils/string.d.ts +0 -33
- package/lib/utils/string.js +0 -2
- package/lib/utils/string.js.map +0 -1
- package/lib/utils/vue/func.d.ts +0 -7
- package/lib/utils/vue/func.js +0 -2
- package/lib/utils/vue/func.js.map +0 -1
- package/lib/utils/vue/index.d.ts +0 -6
- package/lib/utils/vue/index.js +0 -2
- package/lib/utils/vue/index.js.map +0 -1
- package/lib/utils/vue/install.d.ts +0 -5
- package/lib/utils/vue/install.js +0 -2
- package/lib/utils/vue/install.js.map +0 -1
- package/lib/utils/vue/props.d.ts +0 -10
- package/lib/utils/vue/props.js +0 -2
- package/lib/utils/vue/props.js.map +0 -1
- package/lib/utils/vue/slots.d.ts +0 -11
- package/lib/utils/vue/slots.js +0 -2
- package/lib/utils/vue/slots.js.map +0 -1
- package/lib/utils/vue/useRender.d.ts +0 -7
- package/lib/utils/vue/useRender.js +0 -2
- package/lib/utils/vue/useRender.js.map +0 -1
- package/lib/utils/vue/with.d.ts +0 -6
- package/lib/utils/vue/with.js +0 -2
- package/lib/utils/vue/with.js.map +0 -1
- package/types/env.d.ts +0 -45
- package/types/runtime-core.d.ts +0 -52
- package/types/shims-vue.d.ts +0 -20
package/lib/utils/vue/func.d.ts
DELETED
package/lib/utils/vue/func.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("../index.js");const e=require("../console.js");exports.execAsyncFunction=(r,...o)=>{if(!r)return Promise.resolve(void 0);if("AsyncFunction"!==r.constructor.name)throw e.consoleError("execAsyncFunction","必须为 Promise 异步方法"),new Error("必须为 Promise 异步方法");return r(...o).then((e=>e)).catch((r=>(e.consoleError("execAsyncFunction",r),Promise.reject(r))))};
|
|
2
|
-
//# sourceMappingURL=func.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"func.js","sources":["../../../../packages/utils/vue/func.ts"],"sourcesContent":["/**\n * 执行异步方法\n * @param fn 要执行的异步方法\n * @param args 参数\n */\n\nimport { consoleError } from \"@fast-element-plus/utils\";\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\nconst execAsyncFunction = <T = void>(fn: Function, ...args: any[]): Promise<T> => {\n\tif (!fn) return Promise.resolve(undefined);\n\tif (fn.constructor.name !== \"AsyncFunction\") {\n\t\tconsoleError(\"execAsyncFunction\", \"必须为 Promise 异步方法\");\n\t\tthrow new Error(\"必须为 Promise 异步方法\");\n\t}\n\treturn fn(...args)\n\t\t.then((res) => res)\n\t\t.catch((error) => {\n\t\t\tconsoleError(\"execAsyncFunction\", error);\n\t\t\treturn Promise.reject(error);\n\t\t});\n};\n\nexport { execAsyncFunction };\n"],"names":["fn","args","Promise","resolve","constructor","name","Error","then","res","catch","error","reject"],"mappings":"kKAS0B,CAAWA,KAAiBC,KACrD,IAAKD,EAAW,OAAAE,QAAQC,aAAQ,GAC5B,GAAwB,kBAAxBH,EAAGI,YAAYC,KAEZ,qBADO,oBAAqB,oBAC5B,IAAIC,MAAM,oBAEV,OAAAN,KAAMC,GACXM,MAAMC,GAAQA,IACdC,OAAOC,mBACM,oBAAqBA,GAC3BR,QAAQS,OAAOD,KACtB"}
|
package/lib/utils/vue/index.d.ts
DELETED
package/lib/utils/vue/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./func.js"),s=require("./install.js"),t=require("./props.js"),r=require("./slots.js"),i=require("./useRender.js"),o=require("./with.js");exports.execAsyncFunction=e.execAsyncFunction,exports.withInstall=s.withInstall,exports.withInstallDirective=s.withInstallDirective,exports.withNoopInstall=s.withNoopInstall,exports.useProps=t.useProps,exports.makeSlots=r.makeSlots,exports.useRender=i.useRender,exports.withDefineType=o.withDefineType;
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Directive, Plugin } from 'vue';
|
|
2
|
-
export type TSXWithInstall<T> = T & Plugin;
|
|
3
|
-
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => TSXWithInstall<T> & E;
|
|
4
|
-
export declare const withNoopInstall: <T>(component: T) => TSXWithInstall<T>;
|
|
5
|
-
export declare const withInstallDirective: <T extends Directive>(directive: T, name: string) => TSXWithInstall<T>;
|
package/lib/utils/vue/install.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=()=>{};exports.withInstall=(t,e)=>{if(t.install=o=>{for(const s of[t,...Object.values(e??{})])o.component(s.name,s)},e)for(const[o,s]of Object.entries(e))t[o]=s;return t},exports.withInstallDirective=(t,e)=>(t.install=o=>{o.directive(e,t)},t),exports.withNoopInstall=e=>(e.install=t,e);
|
|
2
|
-
//# sourceMappingURL=install.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sources":["../../../../packages/utils/vue/install.ts"],"sourcesContent":["import type { App, Directive, Plugin } from \"vue\";\n\nexport type TSXWithInstall<T> = T & Plugin;\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst NOOP = (): void => {};\n\nexport const withInstall = <T, E extends Record<string, any>>(main: T, extra?: E): TSXWithInstall<T> & E => {\n\t(main as TSXWithInstall<T>).install = (app): void => {\n\t\tfor (const comp of [main, ...Object.values(extra ?? {})]) {\n\t\t\tapp.component(comp.name, comp);\n\t\t}\n\t};\n\n\tif (extra) {\n\t\tfor (const [key, comp] of Object.entries(extra)) {\n\t\t\t(main as any)[key] = comp;\n\t\t}\n\t}\n\treturn main as TSXWithInstall<T> & E;\n};\n\nexport const withNoopInstall = <T>(component: T): TSXWithInstall<T> => {\n\t(component as TSXWithInstall<T>).install = NOOP;\n\n\treturn component as TSXWithInstall<T>;\n};\n\nexport const withInstallDirective = <T extends Directive>(directive: T, name: string): TSXWithInstall<T> => {\n\t(directive as TSXWithInstall<T>).install = (app: App): void => {\n\t\tapp.directive(name, directive);\n\t};\n\n\treturn directive as TSXWithInstall<T>;\n};\n"],"names":["NOOP","main","extra","install","app","comp","Object","values","component","name","key","entries","directive"],"mappings":"gFAKA,MAAMA,EAAO,2BAEc,CAAmCC,EAASC,KAOtE,GAN4BD,EAAAE,QAAWC,IAC3B,IAAA,MAAAC,IAAQ,CAACJ,KAASK,OAAOC,OAAOL,GAAS,CAAE,IACjDE,EAAAI,UAAUH,EAAKI,KAAMJ,EAC1B,EAGGH,EACH,IAAA,MAAYQ,EAAKL,KAASC,OAAOK,QAAQT,GACvCD,EAAaS,GAAOL,EAGhB,OAAAJ,CAAA,+BAS4B,CAAsBW,EAAcH,KACtCG,EAAAT,QAAWC,IACvCA,EAAAQ,UAAUH,EAAMG,EAAS,EAGvBA,2BAX2BJ,IACjCA,EAAgCL,QAAUH,EAEpCQ"}
|
package/lib/utils/vue/props.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 构建 props
|
|
4
|
-
* @param props props
|
|
5
|
-
* @param rawProps 原生 props
|
|
6
|
-
* @param ignoreRawProps 忽略 原生 props 的 key
|
|
7
|
-
* @param mergeProps 合并的 props,固定的值,即使在外部props中传入了也没用
|
|
8
|
-
*/
|
|
9
|
-
declare const useProps: <T extends Record<string, unknown>, RT extends Record<string, unknown>>(props: T, rawProps?: RT, ignoreRawProps?: (keyof RT)[], mergeProps?: Partial<Record<keyof RT, unknown>>) => ComputedRef<Record<string, unknown>>;
|
|
10
|
-
export { useProps };
|
package/lib/utils/vue/props.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("lodash-es");exports.useProps=(o,r,s,u)=>o?e.computed((()=>{const e=r?t.omit(r,s??[]):{};return{...t.pick(o,Object.keys(e)),...u??{}}})):e.computed((()=>({})));
|
|
2
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../../packages/utils/vue/props.ts"],"sourcesContent":["import type { ComputedRef } from \"vue\";\nimport { computed } from \"vue\";\nimport { omit, pick } from \"lodash-es\";\n\n/**\n * 构建 props\n * @param props props\n * @param rawProps 原生 props\n * @param ignoreRawProps 忽略 原生 props 的 key\n * @param mergeProps 合并的 props,固定的值,即使在外部props中传入了也没用\n */\nconst useProps = <T extends Record<string, unknown>, RT extends Record<string, unknown>>(\n\tprops: T,\n\trawProps?: RT,\n\tignoreRawProps?: (keyof RT)[],\n\tmergeProps?: Partial<Record<keyof RT, unknown>>\n): ComputedRef<Record<string, unknown>> => {\n\tif (!props) return computed(() => ({}));\n\n\treturn computed<Record<string, unknown>>(() => {\n\t\tconst omittedRawProps = rawProps ? omit(rawProps, ignoreRawProps ?? []) : {};\n\t\tconst pickedProps = pick(props, Object.keys(omittedRawProps)) as Record<string, unknown>;\n\t\treturn { ...pickedProps, ...(mergeProps ?? {}) };\n\t});\n};\n\nexport { useProps };\n"],"names":["props","rawProps","ignoreRawProps","mergeProps","computed","omittedRawProps","omit","pick","Object","keys"],"mappings":"+IAWiB,CAChBA,EACAC,EACAC,EACAC,IAEKH,EAEEI,YAAkC,KAClC,MAAAC,EAAkBJ,EAAWK,EAAKA,KAAAL,EAAUC,GAAkB,IAAM,GAE1E,MAAO,IADaK,EAAAA,KAAKP,EAAOQ,OAAOC,KAAKJ,OACfF,GAAc,CAAI,EAAA,IAL7BC,EAASA,UAAA,KAAA,CAAU"}
|
package/lib/utils/vue/slots.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SlotsType, VNode } from 'vue';
|
|
2
|
-
type RawSlots = Record<string, unknown>;
|
|
3
|
-
type VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];
|
|
4
|
-
type MakeSlots<T extends RawSlots> = {
|
|
5
|
-
[K in keyof T]: VueSlots<T[K]>;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* 构建 slots
|
|
9
|
-
*/
|
|
10
|
-
declare const makeSlots: <Slots extends RawSlots>() => SlotsType<Partial<MakeSlots<Slots>>>;
|
|
11
|
-
export { makeSlots };
|
package/lib/utils/vue/slots.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slots.js","sources":["../../../../packages/utils/vue/slots.ts"],"sourcesContent":["import type { SlotsType, VNode } from \"vue\";\n\ntype RawSlots = Record<string, unknown>;\n\ntype VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];\n\ntype MakeSlots<T extends RawSlots> = {\n\t[K in keyof T]: VueSlots<T[K]>;\n};\n\n/**\n * 构建 slots\n */\nconst makeSlots = <Slots extends RawSlots>(): SlotsType<Partial<MakeSlots<Slots>>> => {\n\treturn Object as SlotsType<Partial<MakeSlots<Slots>>>;\n};\n\nexport { makeSlots };\n"],"names":["Object"],"mappings":"kGAakB,IACVA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");exports.useRender=r=>{const t=e.getCurrentInstance();if(!t)throw new Error("useRender must be called from inside a setup function");t.render=r};
|
|
2
|
-
//# sourceMappingURL=useRender.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRender.js","sources":["../../../../packages/utils/vue/useRender.ts"],"sourcesContent":["import type { VNode } from \"vue\";\nimport { getCurrentInstance } from \"vue\";\n\n/**\n * 使用渲染\n * @description 为了解决使用 TSX 语法返回渲染函数,状态不会出现在 vue.js devtools 中\n */\nconst useRender = (render: () => VNode): void => {\n\tconst vm = getCurrentInstance() as any;\n\tif (!vm) {\n\t\tthrow new Error(\"useRender must be called from inside a setup function\");\n\t}\n\tvm.render = render;\n};\n\nexport { useRender };\n"],"names":["render","vm","getCurrentInstance","Error"],"mappings":"yHAOmBA,IACZ,MAAAC,EAAKC,EAAAA,qBACX,IAAKD,EACE,MAAA,IAAIE,MAAM,yDAEjBF,EAAGD,OAASA,CAAA"}
|
package/lib/utils/vue/with.d.ts
DELETED
package/lib/utils/vue/with.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with.js","sources":["../../../../packages/utils/vue/with.ts"],"sourcesContent":["/**\n * 定义类型数据\n * @description 传入什么就返回什么,用来定义reactive或其他对象的响应式数据\n */\nconst withDefineType = <T>(data: T): T => {\n\treturn data;\n};\n\nexport { withDefineType };\n"],"names":["data"],"mappings":"uGAI2BA,GACnBA"}
|
package/types/env.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Pinia } from "pinia";
|
|
2
|
-
import type { Router } from "vue-router";
|
|
3
|
-
|
|
4
|
-
declare global {
|
|
5
|
-
/**
|
|
6
|
-
* Vite 环境
|
|
7
|
-
*/
|
|
8
|
-
type IViteEnv = "production" | "development" | "test" | "staging";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 匿名对象
|
|
12
|
-
* @description 建议使用 anyObj 或者 unknown 而不是 any
|
|
13
|
-
*/
|
|
14
|
-
interface anyObj<T = any> {
|
|
15
|
-
[key: string]: T;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 拓展 Window 对象
|
|
20
|
-
*/
|
|
21
|
-
interface Window {
|
|
22
|
-
/**
|
|
23
|
-
* 是否存在 Loading
|
|
24
|
-
*/
|
|
25
|
-
loading: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 是否存在遮罩层
|
|
28
|
-
*/
|
|
29
|
-
overlay: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* 当前浏览器的设备Id(UUID),生成的
|
|
32
|
-
*/
|
|
33
|
-
deviceId: string;
|
|
34
|
-
/**
|
|
35
|
-
* 共享的 pinia 实例
|
|
36
|
-
*/
|
|
37
|
-
pinia: Pinia;
|
|
38
|
-
/**
|
|
39
|
-
* 共享的 router 实例
|
|
40
|
-
*/
|
|
41
|
-
router: Router;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export {};
|
package/types/runtime-core.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { INSTALLED_KEY } from "fast-element-plus";
|
|
2
|
-
|
|
3
|
-
declare module "@vue/runtime-core" {
|
|
4
|
-
export interface App {
|
|
5
|
-
[INSTALLED_KEY]?: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface GlobalComponents {
|
|
9
|
-
Component: (props: { is: Component | string }) => void;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare module "vue-router" {
|
|
14
|
-
interface RouteMeta {
|
|
15
|
-
/**
|
|
16
|
-
* 设置该路由在侧边栏和面包屑中展示的名字
|
|
17
|
-
*/
|
|
18
|
-
title?: string;
|
|
19
|
-
/**
|
|
20
|
-
* 是否固定在 Tab 中
|
|
21
|
-
*/
|
|
22
|
-
affix?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 图标
|
|
25
|
-
*/
|
|
26
|
-
icon?: string;
|
|
27
|
-
/**
|
|
28
|
-
* 默认 true,如果设置为 false,则不会在面包屑中显示
|
|
29
|
-
*/
|
|
30
|
-
breadcrumb?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* 登录后是否禁止查看该页面
|
|
33
|
-
* 默认是 false,为 true 是代表登录后此页面不能再进入,否则跳转到首页
|
|
34
|
-
*/
|
|
35
|
-
authForbidView?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* 跳过登录
|
|
38
|
-
* 默认是 false,为 true 是代表不用登录即可进入该页面
|
|
39
|
-
*/
|
|
40
|
-
skipLogin?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 默认 false,设置 true 的时候该路由不会在侧边栏出现
|
|
43
|
-
*/
|
|
44
|
-
hidden?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* 缓存页面
|
|
47
|
-
*/
|
|
48
|
-
keepAlive?: boolean;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export {};
|
package/types/shims-vue.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 解决 Element-Plus 国际化引用报错的问题
|
|
5
|
-
* https://github.com/element-plus/element-plus/issues/13614
|
|
6
|
-
*/
|
|
7
|
-
declare module "element-plus/dist/locale/zh-cn.mjs" {
|
|
8
|
-
const zhLocale: any;
|
|
9
|
-
export default zhLocale;
|
|
10
|
-
}
|
|
11
|
-
declare module "element-plus/dist/locale/zh-tw.mjs" {
|
|
12
|
-
const zhLocale: any;
|
|
13
|
-
export default zhLocale;
|
|
14
|
-
}
|
|
15
|
-
declare module "element-plus/dist/locale/en.mjs" {
|
|
16
|
-
const enLocale: any;
|
|
17
|
-
export default enLocale;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export {};
|