lew-ui 1.5.7 → 1.5.9

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.
@@ -0,0 +1 @@
1
+ export { default as LewVBacktop } from './src';
@@ -0,0 +1,5 @@
1
+ import type { App as Application } from 'vue';
2
+ declare const _default: {
3
+ install(app: Application): void;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as LewDialog } from './src';
@@ -0,0 +1,95 @@
1
+ import type { LooseRequired } from '@vue/shared';
2
+ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
+ declare const _sfc_main: DefineComponent<{
4
+ closeOnClickOverlay: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ type: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ ok: {
13
+ type: FunctionConstructor;
14
+ default: () => boolean;
15
+ };
16
+ cancel: {
17
+ type: FunctionConstructor;
18
+ default: () => boolean;
19
+ };
20
+ okText: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ cancelText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ layout: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ }, {
33
+ props: LooseRequired<{
34
+ readonly type: string;
35
+ readonly ok: Function;
36
+ readonly cancel: Function;
37
+ readonly okText: string;
38
+ readonly cancelText: string;
39
+ readonly closeOnClickOverlay: boolean;
40
+ readonly layout: string;
41
+ readonly onClose?: (...args: any[]) => any;
42
+ } & {}>;
43
+ emit: (event: "close", ...args: any[]) => void;
44
+ okLoading: Ref<boolean>;
45
+ cancelLoading: Ref<boolean>;
46
+ maskClick: () => void;
47
+ visible: Ref<boolean>;
48
+ close: () => void;
49
+ ok: () => Promise<void>;
50
+ cancel: () => Promise<void>;
51
+ readonly LewButton: any;
52
+ readonly LewIcon: any;
53
+ readonly LewFlex: any;
54
+ readonly getIconType: (type: string) => string;
55
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "close"[], "close", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
56
+ closeOnClickOverlay: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ type: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ ok: {
65
+ type: FunctionConstructor;
66
+ default: () => boolean;
67
+ };
68
+ cancel: {
69
+ type: FunctionConstructor;
70
+ default: () => boolean;
71
+ };
72
+ okText: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ cancelText: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ layout: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ }>> & {
85
+ onClose?: (...args: any[]) => any;
86
+ }, {
87
+ type: string;
88
+ ok: Function;
89
+ cancel: Function;
90
+ okText: string;
91
+ cancelText: string;
92
+ closeOnClickOverlay: boolean;
93
+ layout: string;
94
+ }, {}>;
95
+ export default _sfc_main;
@@ -0,0 +1,30 @@
1
+ export declare const dialogProps: {
2
+ closeOnClickOverlay: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ ok: {
11
+ type: FunctionConstructor;
12
+ default: () => boolean;
13
+ };
14
+ cancel: {
15
+ type: FunctionConstructor;
16
+ default: () => boolean;
17
+ };
18
+ okText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ cancelText: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ layout: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ };
@@ -0,0 +1,19 @@
1
+ declare type Options = {
2
+ title: string;
3
+ content: string;
4
+ ok: Function;
5
+ cancel: Function;
6
+ layout: string;
7
+ okText: string;
8
+ cancelText: string;
9
+ closeOnClickOverlay?: boolean;
10
+ };
11
+ declare const _default: {
12
+ name: string;
13
+ warning: (options: Options) => void;
14
+ info: (options: Options) => void;
15
+ normal: (options: Options) => void;
16
+ success: (options: Options) => void;
17
+ error: (options: Options) => void;
18
+ };
19
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export * from './message';
2
+ export * from './dialog';
3
+ export * from './tooltip';
4
+ export * from './backtop';
5
+ export * from './notification';
6
+ export * from './loading';
@@ -0,0 +1 @@
1
+ export { default as LewLoading } from './src';
@@ -0,0 +1,5 @@
1
+ import type { App as Application } from 'vue';
2
+ declare const _default: {
3
+ install(app: Application): void;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as LewMessage } from './src';
@@ -0,0 +1,17 @@
1
+ declare type MessageFnOptions = {
2
+ id: string;
3
+ content: string;
4
+ duration: number;
5
+ onClose: Function;
6
+ };
7
+ declare const _default: {
8
+ name: string;
9
+ warning: (e: MessageFnOptions) => void;
10
+ info: (e: MessageFnOptions) => void;
11
+ normal: (e: MessageFnOptions) => void;
12
+ success: (e: MessageFnOptions) => void;
13
+ error: (e: MessageFnOptions) => void;
14
+ loading: (e: MessageFnOptions) => void;
15
+ clear: (id?: number) => void;
16
+ };
17
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as LewNotification } from './src';
2
+ export * from './src';
@@ -0,0 +1,16 @@
1
+ export declare type NotificationParamsTyped = {
2
+ title: string;
3
+ content: string;
4
+ delay?: number;
5
+ };
6
+ export declare type NotificationFn = (options: NotificationParamsTyped) => void;
7
+ export interface NotificationInstance {
8
+ name: string;
9
+ warning: NotificationFn;
10
+ info: NotificationFn;
11
+ normal: NotificationFn;
12
+ success: NotificationFn;
13
+ error: NotificationFn;
14
+ }
15
+ declare const _default: NotificationInstance;
16
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as LewVTooltip } from './src';
@@ -0,0 +1,5 @@
1
+ import type { App as Application } from 'vue';
2
+ declare const _default: {
3
+ install(app: Application): void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { useDOMCreate } from './src/useDOMCreate';
2
+ export { useLewTo } from './src/useLewTo';
3
+ export { useEventListener } from './src/useEventListener';
@@ -0,0 +1 @@
1
+ export declare function useDOMCreate(nodeId: string): void;
@@ -0,0 +1 @@
1
+ export declare function useEventListener(target: EventTarget, event: string, callback: EventListenerOrEventListenerObject): void;
@@ -0,0 +1,3 @@
1
+ export declare function useLewTo(): {
2
+ lewTo: (path: string) => void;
3
+ };
@@ -0,0 +1,6 @@
1
+ export declare const getIconType: (type: string | undefined) => string;
2
+ export declare const getColorType: (type: string | undefined) => string;
3
+ export declare const object2class: (prefix: string, props: Object) => string;
4
+ export declare const numFormat: (num: number) => string;
5
+ export declare const any2px: (value: number | string | undefined) => string;
6
+ export declare function genUid(): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lew-ui",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "A Component Library for Vue3.js.",
5
5
  "keywords": [
6
6
  "vue3",
@@ -21,27 +21,24 @@
21
21
  },
22
22
  "files": [
23
23
  "dist/components/**/*.ts",
24
- "dist/lew.es.js",
25
- "dist/lew.umd.js",
24
+ "dist/directives/**/*.ts",
25
+ "dist/hooks/**/*.ts",
26
+ "dist/utils/**/*.ts",
27
+ "dist/index.es.js",
28
+ "dist/index.umd.js",
26
29
  "dist/style.css",
27
30
  "dist/index.d.ts"
28
31
  ],
29
- "module": "./dist/lew.es.js",
30
- "main": "./dist/lew.umd.js",
32
+ "module": "./dist/index.es.js",
33
+ "main": "./dist/index.umd.js",
31
34
  "types": "./dist/index.d.ts",
32
35
  "exports": {
33
36
  ".": {
34
- "import": "./dist/lew.es.js",
35
- "require": "./dist/lew.umd.js"
37
+ "import": "./dist/index.es.js",
38
+ "require": "./dist/index.umd.js",
39
+ "types": "./dist/index.d.ts"
36
40
  },
37
- "./style": {
38
- "import": "./dist/style.css",
39
- "require": "./dist/style.css"
40
- },
41
- "./types": {
42
- "import": "./dist/index.d.ts",
43
- "require": "./dist/index.d.ts"
44
- }
41
+ "./style": "./dist/style.css"
45
42
  },
46
43
  "dependencies": {
47
44
  "@vueuse/components": "^9.13.0",
File without changes
File without changes