@yelingfeng/pandora2 0.1.3

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.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +88 -0
  3. package/dist/packages/components/PdCharts/index.d.ts +7 -0
  4. package/dist/packages/components/PdCharts/src/charts/pie/index.d.ts +2 -0
  5. package/dist/packages/components/PdCharts/src/charts/pie/pie01.d.ts +6 -0
  6. package/dist/packages/components/PdCharts/src/charts/pie/pie02.d.ts +6 -0
  7. package/dist/packages/components/PdCharts/src/constant/index.d.ts +21 -0
  8. package/dist/packages/components/PdCharts/src/hooks/index.d.ts +5 -0
  9. package/dist/packages/components/PdCharts/src/hooks/useApi.d.ts +7 -0
  10. package/dist/packages/components/PdCharts/src/hooks/useAutosize.d.ts +4 -0
  11. package/dist/packages/components/PdCharts/src/hooks/useCharts.d.ts +2 -0
  12. package/dist/packages/components/PdCharts/src/hooks/useEventListener.d.ts +7 -0
  13. package/dist/packages/components/PdCharts/src/hooks/useLoading.d.ts +4 -0
  14. package/dist/packages/components/PdCharts/src/props/index.d.ts +40 -0
  15. package/dist/packages/components/PdCharts/src/transform/index.d.ts +18 -0
  16. package/dist/packages/components/PdCharts/src/transform/seriesHelper.d.ts +31 -0
  17. package/dist/packages/components/PdCharts/src/types/chart.d.ts +19 -0
  18. package/dist/packages/components/PdCharts/src/types/index.d.ts +94 -0
  19. package/dist/packages/components/PdCharts/src/types/props.d.ts +31 -0
  20. package/dist/packages/components/PdCharts/src/utils/core.d.ts +7 -0
  21. package/dist/packages/components/PdCharts/src/utils/defaultOpt.d.ts +100 -0
  22. package/dist/packages/components/PdCharts/src/utils/index.d.ts +18 -0
  23. package/dist/packages/components/PdCharts/src/utils/wc.d.ts +5 -0
  24. package/dist/packages/components/PdForm/index.d.ts +14 -0
  25. package/dist/packages/components/PdForm/src/componentsMap.d.ts +6 -0
  26. package/dist/packages/components/PdForm/src/helper.d.ts +14 -0
  27. package/dist/packages/components/PdForm/src/hooks/useAdvanced.d.ts +15 -0
  28. package/dist/packages/components/PdForm/src/hooks/useAutoFocus.d.ts +10 -0
  29. package/dist/packages/components/PdForm/src/hooks/useComponentRegister.d.ts +3 -0
  30. package/dist/packages/components/PdForm/src/hooks/useForm.d.ts +4 -0
  31. package/dist/packages/components/PdForm/src/hooks/useFormContext.d.ts +8 -0
  32. package/dist/packages/components/PdForm/src/hooks/useFormEvents.d.ts +28 -0
  33. package/dist/packages/components/PdForm/src/hooks/useFormValues.d.ts +13 -0
  34. package/dist/packages/components/PdForm/src/props/index.d.ts +112 -0
  35. package/dist/packages/components/PdForm/src/types/formItem.d.ts +81 -0
  36. package/dist/packages/components/PdForm/src/types/hooks.d.ts +6 -0
  37. package/dist/packages/components/PdForm/src/types/index.d.ts +133 -0
  38. package/dist/packages/components/PdPageLayout/index.d.ts +6 -0
  39. package/dist/packages/components/PdTable/index.d.ts +5 -0
  40. package/dist/packages/components/PdTable/src/hooks/useTable.d.ts +4 -0
  41. package/dist/packages/components/PdTable/src/pagination/config.d.ts +8 -0
  42. package/dist/packages/components/PdTable/src/props/index.d.ts +20 -0
  43. package/dist/packages/components/PdTable/src/props/useTableProps.d.ts +381 -0
  44. package/dist/packages/components/PdTable/src/render/column.d.ts +11 -0
  45. package/dist/packages/components/PdTable/src/render/pager.d.ts +5 -0
  46. package/dist/packages/components/PdTable/src/sort/index.d.ts +12 -0
  47. package/dist/packages/components/PdTable/src/sort/sortService.d.ts +91 -0
  48. package/dist/packages/components/PdTable/src/types/element-type.d.ts +226 -0
  49. package/dist/packages/components/PdTable/src/types/index.d.ts +90 -0
  50. package/dist/packages/components/index.d.ts +4 -0
  51. package/dist/packages/hooks/index.d.ts +1 -0
  52. package/dist/packages/index.d.ts +6 -0
  53. package/dist/packages/pandora/component.d.ts +3 -0
  54. package/dist/packages/pandora/defaults.d.ts +4 -0
  55. package/dist/packages/pandora/make-installer.d.ts +4 -0
  56. package/dist/packages/pandora/plugin.d.ts +3 -0
  57. package/dist/pandora2.css +1 -0
  58. package/dist/pandora2.es.js +52230 -0
  59. package/dist/pandora2.umd.js +78 -0
  60. package/dist/src/_utils/create/index.d.ts +1 -0
  61. package/dist/src/_utils/dateUtil.d.ts +7 -0
  62. package/dist/src/_utils/env.d.ts +26 -0
  63. package/dist/src/_utils/helper/index.d.ts +4 -0
  64. package/dist/src/_utils/helper/tsxHelper.d.ts +13 -0
  65. package/dist/src/_utils/index.d.ts +8 -0
  66. package/dist/src/_utils/is/index.d.ts +21 -0
  67. package/dist/src/_utils/log/index.d.ts +2 -0
  68. package/dist/src/_utils/propTypes.d.ts +9 -0
  69. package/dist/src/_utils/props/index.d.ts +2 -0
  70. package/dist/src/_utils/vue/index.d.ts +3 -0
  71. package/dist/src/_utils/vue/install.d.ts +5 -0
  72. package/dist/src/_utils/vue/refs.d.ts +3 -0
  73. package/dist/src/_utils/vue/typescript.d.ts +5 -0
  74. package/dist/src/enums/breakpointEnum.d.ts +18 -0
  75. package/dist/src/hooks/component/useFormItem.d.ts +2 -0
  76. package/dist/src/hooks/core/useAttrs.d.ts +9 -0
  77. package/dist/src/hooks/core/useContext.d.ts +11 -0
  78. package/dist/src/hooks/event/useBreakpoint.d.ts +22 -0
  79. package/dist/src/hooks/event/useEventListener.d.ts +14 -0
  80. package/dist/src/types/axios.d.ts +53 -0
  81. package/dist/src/types/config.d.ts +25 -0
  82. package/dist/src/types/global.d.ts +107 -0
  83. package/dist/src/vue-sfc-shim.d.ts +19 -0
  84. package/package.json +129 -0
  85. package/volar.d.ts +9 -0
@@ -0,0 +1 @@
1
+ export declare function createNamespace(name: string): readonly [string];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Independent time operation tool to facilitate subsequent switch to dayjs
3
+ */
4
+ import dayjs from 'dayjs';
5
+ export declare function formatToDateTime(date?: dayjs.Dayjs | undefined, format?: string): string;
6
+ export declare function formatToDate(date?: dayjs.Dayjs | undefined, format?: string): string;
7
+ export declare const dateUtil: typeof dayjs;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @description: Development model
3
+ */
4
+ export declare const devMode = "development";
5
+ /**
6
+ * @description: Production mode
7
+ */
8
+ export declare const prodMode = "production";
9
+ /**
10
+ * @description: Get environment variables
11
+ * @returns:
12
+ * @example:
13
+ */
14
+ export declare function getEnv(): string;
15
+ /**
16
+ * @description: Is it a development mode
17
+ * @returns:
18
+ * @example:
19
+ */
20
+ export declare function isDevMode(): boolean;
21
+ /**
22
+ * @description: Is it a production mode
23
+ * @returns:
24
+ * @example:
25
+ */
26
+ export declare function isProdMode(): boolean;
@@ -0,0 +1,4 @@
1
+ export declare const trim: (string: string) => string;
2
+ export declare function hasClass(elements: any, cls: string): boolean;
3
+ export declare function addClass(elements: any, cls: string): void;
4
+ export declare function removeClass(elements: any, cls: string): void;
@@ -0,0 +1,13 @@
1
+ import { Slots } from 'vue';
2
+ /**
3
+ * @description: Get slot to prevent empty error
4
+ */
5
+ export declare function getSlot(slots: Slots, slot?: string, data?: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
+ [key: string]: any;
7
+ }>[] | null;
8
+ /**
9
+ * extends slots
10
+ * @param slots
11
+ * @param excludeKeys
12
+ */
13
+ export declare function extendSlots(slots: Slots, excludeKeys?: string[]): any;
@@ -0,0 +1,8 @@
1
+ export * from './propTypes';
2
+ export * from './props';
3
+ export * from './log';
4
+ export * from './is';
5
+ /**
6
+ * @description: Set ui mount node
7
+ */
8
+ export declare function getPopupContainer(node?: HTMLElement): HTMLElement;
@@ -0,0 +1,21 @@
1
+ export declare function is(val: unknown, type: string): boolean;
2
+ export declare function isDef<T = unknown>(val?: T): val is T;
3
+ export declare function isUnDef<T = unknown>(val?: T): val is T;
4
+ export declare function isObject(val: any): val is Record<any, any>;
5
+ export declare function isEmpty<T = unknown>(val: T): val is T;
6
+ export declare function isDate(val: unknown): val is Date;
7
+ export declare function isNull(val: unknown): val is null;
8
+ export declare function isNullAndUnDef(val: unknown): val is null | undefined;
9
+ export declare function isNullOrUnDef(val: unknown): val is null | undefined;
10
+ export declare function isNumber(val: unknown): val is number;
11
+ export declare function isPromise<T = any>(val: unknown): val is Promise<T>;
12
+ export declare function isString(val: unknown): val is string;
13
+ export declare function isFunction(val: unknown): val is Function;
14
+ export declare function isBoolean(val: unknown): val is boolean;
15
+ export declare function isRegExp(val: unknown): val is RegExp;
16
+ export declare function isArray(val: any): val is Array<any>;
17
+ export declare function isWindow(val: any): val is Window;
18
+ export declare function isElement(val: unknown): val is Element;
19
+ export declare const isServer: boolean;
20
+ export declare const isClient: boolean;
21
+ export declare function isUrl(path: string): boolean;
@@ -0,0 +1,2 @@
1
+ export declare function warn(message: string): void;
2
+ export declare function error(message: string): void;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, VNodeChild } from 'vue';
2
+ import { VueTypeValidableDef, VueTypesInterface } from 'vue-types';
3
+ export type VueNode = VNodeChild | JSX.Element;
4
+ type PropTypes = VueTypesInterface & {
5
+ readonly style: VueTypeValidableDef<CSSProperties>;
6
+ readonly VNodeChild: VueTypeValidableDef<VueNode>;
7
+ };
8
+ declare const propTypes: PropTypes;
9
+ export { propTypes };
@@ -0,0 +1,2 @@
1
+ export declare function getDynamicProps<T extends object, U>(props: T): Partial<U>;
2
+ export declare function deepMerge<T = any>(src?: any, target?: any): T;
@@ -0,0 +1,3 @@
1
+ export * from './install';
2
+ export * from './refs';
3
+ export * from './typescript';
@@ -0,0 +1,5 @@
1
+ import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
2
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
3
+ export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
4
+ export declare const withInstallDirective: <T extends import("vue").Directive<any, any, string, any>>(directive: T, name: string) => SFCWithInstall<T>;
5
+ export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
@@ -0,0 +1,3 @@
1
+ import type { ComponentPublicInstance, Ref } from 'vue';
2
+ export type RefSetter = (el: Element | ComponentPublicInstance | undefined) => void;
3
+ export declare const composeRefs: (...refs: (Ref<HTMLElement | undefined> | RefSetter)[]) => (el: Element | ComponentPublicInstance | null) => void;
@@ -0,0 +1,5 @@
1
+ import type { AppContext, Plugin } from 'vue';
2
+ export type SFCWithInstall<T> = T & Plugin;
3
+ export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
+ _context: AppContext | null;
5
+ };
@@ -0,0 +1,18 @@
1
+ export declare enum sizeEnum {
2
+ XS = "XS",
3
+ SM = "SM",
4
+ MD = "MD",
5
+ LG = "LG",
6
+ XL = "XL",
7
+ XXL = "XXL"
8
+ }
9
+ export declare enum screenEnum {
10
+ XS = 480,
11
+ SM = 576,
12
+ MD = 768,
13
+ LG = 992,
14
+ XL = 1200,
15
+ XXL = 1600
16
+ }
17
+ declare const screenMap: Map<sizeEnum, number>;
18
+ export { screenMap };
@@ -0,0 +1,2 @@
1
+ import type { DeepReadonly, Ref, UnwrapRef, WritableComputedRef } from 'vue';
2
+ export declare function useRuleFormItem<T extends Recordable, K extends keyof T, V = UnwrapRef<T[K]>>(props: T, key?: K, changeEvent?: string, emitData?: Ref<any[]>): [WritableComputedRef<V>, (val: V) => void, DeepReadonly<V>];
@@ -0,0 +1,9 @@
1
+ import type { Ref } from 'vue';
2
+ interface Params {
3
+ excludeListeners?: boolean;
4
+ excludeKeys?: string[];
5
+ excludeDefaultKeys?: boolean;
6
+ }
7
+ export declare function entries<T>(obj: Recordable<T>): [string, T][];
8
+ export declare function useAttrs(params?: Params): Ref<Recordable> | {};
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { InjectionKey } from 'vue';
2
+ export interface CreateContextOptions {
3
+ readonly?: boolean;
4
+ createProvider?: boolean;
5
+ native?: boolean;
6
+ }
7
+ export declare function createContext<T>(context: any, key?: InjectionKey<T>, options?: CreateContextOptions): {
8
+ state: any;
9
+ };
10
+ export declare function useContext<T>(key: InjectionKey<T>, native?: boolean): T;
11
+ export declare function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?: boolean): T;
@@ -0,0 +1,22 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { sizeEnum, screenEnum } from '../../enums/breakpointEnum';
3
+ export interface CreateCallbackParams {
4
+ screen: ComputedRef<sizeEnum | undefined>;
5
+ width: ComputedRef<number>;
6
+ realWidth: ComputedRef<number>;
7
+ screenEnum: typeof screenEnum;
8
+ screenMap: Map<sizeEnum, number>;
9
+ sizeEnum: typeof sizeEnum;
10
+ }
11
+ export declare function useBreakpoint(): {
12
+ screenRef: ComputedRef<sizeEnum | undefined>;
13
+ widthRef: ComputedRef<number>;
14
+ screenEnum: typeof screenEnum;
15
+ realWidthRef: ComputedRef<number>;
16
+ };
17
+ export declare function createBreakpointListen(fn?: (opt: CreateCallbackParams) => void): {
18
+ screenRef: ComputedRef<sizeEnum | undefined>;
19
+ screenEnum: typeof screenEnum;
20
+ widthRef: ComputedRef<number>;
21
+ realWidthRef: ComputedRef<number>;
22
+ };
@@ -0,0 +1,14 @@
1
+ import type { Ref } from 'vue';
2
+ export type RemoveEventFn = () => void;
3
+ export interface UseEventParams {
4
+ el?: Element | Ref<Element | undefined> | Window | any;
5
+ name: string;
6
+ listener: EventListener;
7
+ options?: boolean | AddEventListenerOptions;
8
+ autoRemove?: boolean;
9
+ isDebounce?: boolean;
10
+ wait?: number;
11
+ }
12
+ export declare function useEventListener({ el, name, listener, options, autoRemove, isDebounce, wait }: UseEventParams): {
13
+ removeEvent: RemoveEventFn;
14
+ };
@@ -0,0 +1,53 @@
1
+ export type ErrorMessageMode = 'none' | 'modal' | 'message' | undefined;
2
+
3
+ export interface RequestOptions {
4
+ // Splicing request parameters to url
5
+ joinParamsToUrl?: boolean;
6
+ // Format request parameter time
7
+ formatDate?: boolean;
8
+ // Whether to process the request result
9
+ isTransformResponse?: boolean;
10
+ // Whether to return native response headers
11
+ // For example: use this attribute when you need to get the response headers
12
+ isReturnNativeResponse?: boolean;
13
+ // Whether to join url
14
+ joinPrefix?: boolean;
15
+ // Interface address, use the default apiUrl if you leave it blank
16
+ apiUrl?: string;
17
+ // 请求拼接路径
18
+ urlPrefix?: string;
19
+ // Error message prompt type
20
+ errorMessageMode?: ErrorMessageMode;
21
+ // Whether to add a timestamp
22
+ joinTime?: boolean;
23
+ ignoreCancelToken?: boolean;
24
+ // Whether to send token in header
25
+ withToken?: boolean;
26
+ // 请求重试机制
27
+ retryRequest?: RetryRequest;
28
+ }
29
+
30
+ export interface RetryRequest {
31
+ isOpenRetry: boolean;
32
+ count: number;
33
+ waitTime: number;
34
+ }
35
+ export interface Result<T = any> {
36
+ code: number;
37
+ type: 'success' | 'error' | 'warning';
38
+ message: string;
39
+ result: T;
40
+ }
41
+
42
+ // multipart/form-data: upload file
43
+ export interface UploadFileParams {
44
+ // Other parameters
45
+ data?: Recordable;
46
+ // File parameter interface field name
47
+ name?: string;
48
+ // file name
49
+ file: File | Blob;
50
+ // file name
51
+ filename?: string;
52
+ [key: string]: any;
53
+ }
@@ -0,0 +1,25 @@
1
+ export interface GlobEnvConfig {
2
+ // Site title
3
+ VITE_GLOB_APP_TITLE: string
4
+ // Service interface url
5
+ VITE_GLOB_API_URL: string
6
+ // Service interface url prefix
7
+ VITE_GLOB_API_URL_PREFIX?: string
8
+ // Project abbreviation
9
+ VITE_GLOB_APP_SHORT_NAME: string
10
+ // Upload url
11
+ VITE_GLOB_UPLOAD_URL?: string
12
+ }
13
+
14
+ export interface GlobConfig {
15
+ // Site title
16
+ title: string
17
+ // Service interface url
18
+ apiUrl: string
19
+ // Upload url
20
+ uploadUrl?: string
21
+ // Service interface url prefix
22
+ urlPrefix?: string
23
+ // Project abbreviation
24
+ shortName: string
25
+ }
@@ -0,0 +1,107 @@
1
+ import type {
2
+ ComponentRenderProxy,
3
+ VNode,
4
+ VNodeChild,
5
+ ComponentPublicInstance,
6
+ FunctionalComponent,
7
+ PropType as VuePropType,
8
+ } from 'vue';
9
+
10
+ declare global {
11
+ const __APP_INFO__: {
12
+ pkg: {
13
+ name: string;
14
+ version: string;
15
+ dependencies: Recordable<string>;
16
+ devDependencies: Recordable<string>;
17
+ };
18
+ lastBuildTime: string;
19
+ };
20
+ // declare interface Window {
21
+ // // Global vue app instance
22
+ // __APP__: App<Element>;
23
+ // }
24
+
25
+ // vue
26
+ declare type PropType<T> = VuePropType<T>;
27
+ declare type VueNode = VNodeChild | JSX.Element;
28
+
29
+ export type Writable<T> = {
30
+ -readonly [P in keyof T]: T[P];
31
+ };
32
+
33
+ declare type Nullable<T> = T | null;
34
+ declare type NonNullable<T> = T extends null | undefined ? never : T;
35
+ declare type Recordable<T = any> = Record<string, T>;
36
+ declare type ReadonlyRecordable<T = any> = {
37
+ readonly [key: string]: T;
38
+ };
39
+ declare type Indexable<T = any> = {
40
+ [key: string]: T;
41
+ };
42
+ declare type DeepPartial<T> = {
43
+ [P in keyof T]?: DeepPartial<T[P]>;
44
+ };
45
+ declare type TimeoutHandle = ReturnType<typeof setTimeout>;
46
+ declare type IntervalHandle = ReturnType<typeof setInterval>;
47
+
48
+ declare interface ChangeEvent extends Event {
49
+ target: HTMLInputElement;
50
+ }
51
+
52
+ declare interface WheelEvent {
53
+ path?: EventTarget[];
54
+ }
55
+ interface ImportMetaEnv extends ViteEnv {
56
+ __: unknown;
57
+ }
58
+
59
+ declare interface ViteEnv {
60
+ VITE_PORT: number;
61
+ VITE_USE_MOCK: boolean;
62
+ VITE_USE_PWA: boolean;
63
+ VITE_PUBLIC_PATH: string;
64
+ VITE_PROXY: [string, string][];
65
+ VITE_GLOB_APP_TITLE: string;
66
+ VITE_GLOB_APP_SHORT_NAME: string;
67
+ VITE_USE_CDN: boolean;
68
+ VITE_DROP_CONSOLE: boolean;
69
+ VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
70
+ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
71
+ VITE_LEGACY: boolean;
72
+ VITE_USE_IMAGEMIN: boolean;
73
+ VITE_GENERATE_UI: string;
74
+ }
75
+
76
+ declare function parseInt(s: string | number, radix?: number): number;
77
+
78
+ declare function parseFloat(string: string | number): number;
79
+
80
+ namespace JSX {
81
+ // tslint:disable no-empty-interface
82
+ type Element = VNode;
83
+ // tslint:disable no-empty-interface
84
+ type ElementClass = ComponentRenderProxy;
85
+ interface ElementAttributesProperty {
86
+ $props: any;
87
+ }
88
+ interface IntrinsicElements {
89
+ [elem: string]: any;
90
+ }
91
+ interface IntrinsicAttributes {
92
+ [elem: string]: any;
93
+ }
94
+ }
95
+ }
96
+
97
+ declare module 'vue' {
98
+ export type JSXComponent<Props = any> =
99
+ | { new (): ComponentPublicInstance<Props> }
100
+ | FunctionalComponent<Props>;
101
+ }
102
+
103
+ declare module '*.md' {
104
+ import type { ComponentOptions } from 'vue'
105
+ const Component: ComponentOptions
106
+ export default Component
107
+ }
@@ -0,0 +1,19 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
6
+ const component: DefineComponent<{}, {}, any>
7
+ export default component
8
+ }
9
+
10
+ declare module '*.json' {
11
+ const value: any;
12
+ export default value;
13
+ }
14
+
15
+ declare module '*.md' {
16
+ import type { DefineComponent } from 'vue'
17
+ const component: DefineComponent<{}, {}, any>
18
+ export default component
19
+ }
package/package.json ADDED
@@ -0,0 +1,129 @@
1
+ {
2
+ "name": "@yelingfeng/pandora2",
3
+ "version": "0.1.3",
4
+ "files": [
5
+ "dist",
6
+ "volar.d.ts"
7
+ ],
8
+ "repository": "https://github.com/yelingfeng/Pandora2.git",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "main": "./dist/pandora2.umd.js",
13
+ "module": "./dist/pandora2.es.js",
14
+ "types": "./dist/packages/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/pandora2.es.js",
18
+ "require": "./dist/pandora2.umd.js"
19
+ },
20
+ "./dist/style.css": {
21
+ "import": "./dist/style.css",
22
+ "require": "./dist/style.css"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "dev": "vite --config ./build/base.config.ts --host 0.0.0.0 ",
27
+ "build:docs": "vite build --config ./build/doc.config.ts && node script/copyDir.js",
28
+ "dist": "vite build --config ./build/doc.config.ts && node script/copyDir.js",
29
+ "build:lib": "vue-tsc --noEmit && vite build --config ./build/lib.config.ts",
30
+ "gen": "node ./script/genNewComp/index.js",
31
+ "build:npm": "vite build --config ./build/lib.config.ts",
32
+ "lint": "eslint src/**/*.{vue,ts}",
33
+ "lint-fix": "yarn lint --fix",
34
+ "commit": "git-cz",
35
+ "release:patch": "node script/release.mjs patch",
36
+ "release:minor": "node script/release.mjs minor",
37
+ "release:major": "node script/release.mjs major",
38
+ "release:tag": "node script/release-tag.mjs",
39
+ "preversion": "pnpm run test:ci && pnpm run build:lib",
40
+ "version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
41
+ "postversion": "git push origin HEAD --follow-tags",
42
+ "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && yarn install",
43
+ "test": "vitest",
44
+ "test:ci": "vitest --run",
45
+ "test:coverage": "vitest --run --coverage"
46
+ },
47
+ "dependencies": {
48
+ "@vueuse/core": "^9.1.0",
49
+ "async-validator": "^4.2.5",
50
+ "dayjs": "^1.11.4",
51
+ "echarts": "^6.0.0",
52
+ "element-plus": "^2.13.1",
53
+ "lodash-es": "^4.17.21",
54
+ "resize-detector": "^0.3.0"
55
+ },
56
+ "devDependencies": {
57
+ "@element-plus/icons-vue": "^2.0.6",
58
+ "@types/jest": "^28.1.6",
59
+ "@types/lodash-es": "^4.17.6",
60
+ "@types/node": "^25.0.9",
61
+ "@types/qs": "^6.9.7",
62
+ "@typescript-eslint/eslint-plugin": "^5.32.0",
63
+ "@typescript-eslint/parser": "^5.32.0",
64
+ "@vitejs/plugin-vue": "^6.0.3",
65
+ "@vitejs/plugin-vue-jsx": "^5.1.3",
66
+ "@vitest/coverage-v8": "^4.0.18",
67
+ "@vue/compiler-sfc": "^3.5.26",
68
+ "@vue/test-utils": "^2.4.6",
69
+ "axios": "^0.27.2",
70
+ "commitizen": "^4.2.5",
71
+ "cross-env": "^7.0.3",
72
+ "csstype": "^3.2.3",
73
+ "cz-conventional-changelog": "^3.3.0",
74
+ "eslint": "^8.21.0",
75
+ "eslint-config-prettier": "^8.5.0",
76
+ "eslint-plugin-prettier": "^4.2.1",
77
+ "eslint-plugin-vue": "^9.3.0",
78
+ "fast-glob": "^3.2.12",
79
+ "fs-extra": "^10.1.0",
80
+ "gh-pages": "^4.0.0",
81
+ "handlebars": "^4.7.7",
82
+ "husky": "^8.0.1",
83
+ "inquirer": "^9.0.2",
84
+ "jest": "^28.1.3",
85
+ "jsdom": "^27.4.0",
86
+ "less": "^4.1.3",
87
+ "less-loader": "^11.0.0",
88
+ "lint-staged": "^13.0.3",
89
+ "mockjs": "^1.1.0",
90
+ "np": "^7.6.2",
91
+ "prettier": "^2.7.1",
92
+ "prismjs": "^1.28.0",
93
+ "qs": "^6.11.0",
94
+ "rimraf": "^3.0.2",
95
+ "ts-jest": "^28.0.7",
96
+ "typescript": "^5.9.3",
97
+ "unplugin-auto-import": "^21.0.0",
98
+ "unplugin-element-plus": "^0.11.2",
99
+ "unplugin-vue-components": "^31.0.0",
100
+ "unplugin-vue-markdown": "^29.2.0",
101
+ "vite": "^7.3.1",
102
+ "vite-plugin-copy": "^0.1.6",
103
+ "vite-plugin-dts": "^1.4.1",
104
+ "vite-plugin-md": "0.11.4",
105
+ "vite-plugin-mock": "^2.9.6",
106
+ "vite-plugin-style-import": "^2.0.0",
107
+ "vitest": "^4.0.18",
108
+ "vue": "^3.5.26",
109
+ "vue-router": "^4.1.3",
110
+ "vue-tsc": "^3.2.2",
111
+ "vue-types": "^4.2.1"
112
+ },
113
+ "husky": {
114
+ "hooks": {
115
+ "pre-commit": "lint-staged"
116
+ }
117
+ },
118
+ "lint-staged": {
119
+ "*.{js,ts?(x),json,md,vue}": [
120
+ "prettier --write",
121
+ "git add"
122
+ ]
123
+ },
124
+ "config": {
125
+ "commitizen": {
126
+ "path": "./node_modules/cz-conventional-changelog"
127
+ }
128
+ }
129
+ }
package/volar.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ declare module 'vue' {
2
+ export interface GlobalComponents {
3
+ PdContainer: typeof import('@yelingfeng/pandora2')['PdContainer']
4
+ PdForm: typeof import('@yelingfeng/pandora2')['PdForm']
5
+ PdTable: typeof import('@yelingfeng/pandora2')['PdTable']
6
+ }
7
+ }
8
+
9
+ export { }