mwl-components 0.0.0 → 0.0.4
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/LICENSE +21 -0
- package/README.md +4 -24
- package/dist/ContentWarp/index.vue.d.ts +21 -0
- package/dist/Dialog/index.vue.d.ts +63 -0
- package/dist/EasyForm/index.vue.d.ts +64 -0
- package/dist/EasyTable/index.vue.d.ts +130 -0
- package/dist/EasyTable/tableColumnItem.vue.d.ts +19 -0
- package/dist/MenuTree/components/index.vue.d.ts +44 -0
- package/dist/Pagination/index.vue.d.ts +54 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +658 -0
- package/dist/mwl-components.css +1 -0
- package/package.json +14 -10
- package/dist/index.es.js +0 -4840
- package/dist/index.umd.js +0 -12
- package/dist/my-components.css +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 zzm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,35 +1,15 @@
|
|
|
1
1
|
# my-components
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
3
|
+
基于vue 3.0 + ts + vite + element-plus 组件库
|
|
8
4
|
|
|
9
5
|
## Type Support for `.vue` Imports in TS
|
|
10
6
|
|
|
11
|
-
TypeScript
|
|
12
|
-
|
|
13
|
-
## Customize configuration
|
|
14
|
-
|
|
15
|
-
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
16
|
-
|
|
17
|
-
## Project Setup
|
|
18
|
-
|
|
19
|
-
```sh
|
|
20
|
-
pnpm install
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Compile and Hot-Reload for Development
|
|
24
|
-
|
|
25
|
-
```sh
|
|
26
|
-
pnpm dev
|
|
27
|
-
```
|
|
7
|
+
默认情况下,TypeScript无法处理“.vue”导入的类型信息,因此我们将“tsc”CLI替换为“vue-tsc”进行类型检查。在编辑中,我们需要[Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)使TypeScript语言服务能够识别.vue类型。
|
|
28
8
|
|
|
29
|
-
|
|
9
|
+
<!-- 描述配置信息 -->
|
|
30
10
|
|
|
31
11
|
```sh
|
|
32
|
-
|
|
12
|
+
vite.config.ts
|
|
33
13
|
```
|
|
34
14
|
|
|
35
15
|
### Lint with [ESLint](https://eslint.org/)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
4
|
+
refs: {};
|
|
5
|
+
rootEl: any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
9
|
+
title: StringConstructor;
|
|
10
|
+
message: StringConstructor;
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
title: StringConstructor;
|
|
13
|
+
message: StringConstructor;
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
4
|
+
refs: {};
|
|
5
|
+
rootEl: any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
9
|
+
title: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
fullscreen: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
scroll: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
width: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
maxHeight: {
|
|
26
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
30
|
+
title: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
fullscreen: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
scroll: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
width: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
maxHeight: {
|
|
47
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {
|
|
51
|
+
title: string;
|
|
52
|
+
fullscreen: boolean;
|
|
53
|
+
scroll: boolean;
|
|
54
|
+
width: string;
|
|
55
|
+
maxHeight: string | number;
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type rule = {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
pattern?: RegExp;
|
|
5
|
+
validator?: (rule: any, value: any, callback: any) => void;
|
|
6
|
+
trigger: string | any[];
|
|
7
|
+
};
|
|
8
|
+
export type Placement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'bottom' | 'right' | 'left' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
9
|
+
export interface FormItem {
|
|
10
|
+
type: 'switch' | 'textarea' | 'number' | '' | 'text' | 'checkbox' | 'radio' | 'multipleselect' | 'select' | 'select-v2' | 'date' | 'datetime' | 'month' | 'year' | 'daterange' | 'upload' | 'group' | 'cascader' | 'custom';
|
|
11
|
+
rule?: rule[];
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
prop: string;
|
|
14
|
+
label: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
width?: string;
|
|
18
|
+
clearable?: boolean;
|
|
19
|
+
filterable?: boolean;
|
|
20
|
+
defaultProp?: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
maxlength?: number;
|
|
25
|
+
options?: Array<{
|
|
26
|
+
label: string;
|
|
27
|
+
value: string | number;
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>;
|
|
30
|
+
valueFormat?: string;
|
|
31
|
+
format?: string;
|
|
32
|
+
showType?: string;
|
|
33
|
+
remoteMethod?: (value: string, callback: (list: any[]) => void) => any;
|
|
34
|
+
fileLimit?: number;
|
|
35
|
+
disabledDate?: (time: any) => boolean;
|
|
36
|
+
change?: (item: any, value?: any) => void;
|
|
37
|
+
input?: (item: any, value?: any) => void;
|
|
38
|
+
focus?: (item: any, value?: any) => void;
|
|
39
|
+
blur?: (item: any, value?: any) => void;
|
|
40
|
+
customOption?: any[];
|
|
41
|
+
filterMethod?: Function;
|
|
42
|
+
labelWidth?: string;
|
|
43
|
+
shortcuts?: Array<{
|
|
44
|
+
text: string;
|
|
45
|
+
value: Date | Function;
|
|
46
|
+
}>;
|
|
47
|
+
popperClass?: string;
|
|
48
|
+
teleported?: boolean;
|
|
49
|
+
allowCreate?: boolean;
|
|
50
|
+
collapseTags?: boolean;
|
|
51
|
+
collapseTagsTooltip?: boolean;
|
|
52
|
+
tooltip?: string;
|
|
53
|
+
amount?: string;
|
|
54
|
+
placement?: Placement;
|
|
55
|
+
multiple?: boolean;
|
|
56
|
+
min?: number;
|
|
57
|
+
max?: number;
|
|
58
|
+
precision?: number;
|
|
59
|
+
step?: number;
|
|
60
|
+
stepStrictly?: boolean;
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}
|
|
63
|
+
declare const _default: any;
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export interface TableColumn {
|
|
2
|
+
label: string;
|
|
3
|
+
prop?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
align?: string;
|
|
6
|
+
[property: string]: any;
|
|
7
|
+
children?: TableColumn[];
|
|
8
|
+
}
|
|
9
|
+
export interface buttonType {
|
|
10
|
+
label: string;
|
|
11
|
+
permi?: any[] | string;
|
|
12
|
+
type: string;
|
|
13
|
+
hide?: boolean;
|
|
14
|
+
disabled?: (row: any) => boolean;
|
|
15
|
+
show?: (row: any) => boolean;
|
|
16
|
+
click?: (row: any) => void;
|
|
17
|
+
}
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
21
|
+
refs: {
|
|
22
|
+
tableRef: HTMLDivElement;
|
|
23
|
+
};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
28
|
+
data: {
|
|
29
|
+
type: {
|
|
30
|
+
(arrayLength: number): Record<string, any>[];
|
|
31
|
+
(...items: Record<string, any>[]): Record<string, any>[];
|
|
32
|
+
new (arrayLength: number): Record<string, any>[];
|
|
33
|
+
new (...items: Record<string, any>[]): Record<string, any>[];
|
|
34
|
+
isArray(arg: any): arg is any[];
|
|
35
|
+
readonly prototype: any[];
|
|
36
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
37
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
38
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
39
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
40
|
+
of<T>(...items: T[]): T[];
|
|
41
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
42
|
+
};
|
|
43
|
+
required: true;
|
|
44
|
+
default: () => never[];
|
|
45
|
+
};
|
|
46
|
+
tableColumns: {
|
|
47
|
+
type: PropType<TableColumn[]>;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
50
|
+
buttons: {
|
|
51
|
+
type: PropType<buttonType[]>;
|
|
52
|
+
default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
buttonWidth: {
|
|
55
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
align: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
height: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
maxHeight: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
71
|
+
data: {
|
|
72
|
+
type: {
|
|
73
|
+
(arrayLength: number): Record<string, any>[];
|
|
74
|
+
(...items: Record<string, any>[]): Record<string, any>[];
|
|
75
|
+
new (arrayLength: number): Record<string, any>[];
|
|
76
|
+
new (...items: Record<string, any>[]): Record<string, any>[];
|
|
77
|
+
isArray(arg: any): arg is any[];
|
|
78
|
+
readonly prototype: any[];
|
|
79
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
80
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
81
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
82
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
83
|
+
of<T>(...items: T[]): T[];
|
|
84
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
85
|
+
};
|
|
86
|
+
required: true;
|
|
87
|
+
default: () => never[];
|
|
88
|
+
};
|
|
89
|
+
tableColumns: {
|
|
90
|
+
type: PropType<TableColumn[]>;
|
|
91
|
+
default: () => never[];
|
|
92
|
+
};
|
|
93
|
+
buttons: {
|
|
94
|
+
type: PropType<buttonType[]>;
|
|
95
|
+
default: () => never[];
|
|
96
|
+
};
|
|
97
|
+
buttonWidth: {
|
|
98
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
99
|
+
default: number;
|
|
100
|
+
};
|
|
101
|
+
align: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
height: {
|
|
106
|
+
type: NumberConstructor;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
109
|
+
maxHeight: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
113
|
+
}>> & Readonly<{}>, {
|
|
114
|
+
data: Record<string, any>[];
|
|
115
|
+
maxHeight: string;
|
|
116
|
+
align: string;
|
|
117
|
+
tableColumns: TableColumn[];
|
|
118
|
+
buttons: buttonType[];
|
|
119
|
+
buttonWidth: string | number;
|
|
120
|
+
height: number;
|
|
121
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
122
|
+
tableRef: HTMLDivElement;
|
|
123
|
+
}, HTMLDivElement>;
|
|
124
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
125
|
+
export default _default;
|
|
126
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
127
|
+
new (): {
|
|
128
|
+
$slots: S;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TableColumn } from './index.vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tableColumn: TableColumn;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
menuList: {
|
|
3
|
+
type: {
|
|
4
|
+
(arrayLength: number): any[];
|
|
5
|
+
(...items: any[]): any[];
|
|
6
|
+
new (arrayLength: number): any[];
|
|
7
|
+
new (...items: any[]): any[];
|
|
8
|
+
isArray(arg: any): arg is any[];
|
|
9
|
+
readonly prototype: any[];
|
|
10
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
11
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
12
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
13
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
14
|
+
of<T>(...items: T[]): T[];
|
|
15
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
16
|
+
};
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
handleMenuItemClick: (...args: any[]) => void;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
22
|
+
menuList: {
|
|
23
|
+
type: {
|
|
24
|
+
(arrayLength: number): any[];
|
|
25
|
+
(...items: any[]): any[];
|
|
26
|
+
new (arrayLength: number): any[];
|
|
27
|
+
new (...items: any[]): any[];
|
|
28
|
+
isArray(arg: any): arg is any[];
|
|
29
|
+
readonly prototype: any[];
|
|
30
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
31
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
32
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
33
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
34
|
+
of<T>(...items: T[]): T[];
|
|
35
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
36
|
+
};
|
|
37
|
+
default: () => never[];
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onHandleMenuItemClick?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
menuList: any[];
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
total: {
|
|
3
|
+
required: true;
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
};
|
|
6
|
+
page: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
limit: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
pagerCount: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
onPagination: {
|
|
19
|
+
type: FunctionConstructor;
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:page": (...args: any[]) => void;
|
|
23
|
+
"update:limit": (...args: any[]) => void;
|
|
24
|
+
pagination: (...args: any[]) => void;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
26
|
+
total: {
|
|
27
|
+
required: true;
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
};
|
|
30
|
+
page: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
limit: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
pagerCount: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
onPagination: {
|
|
43
|
+
type: FunctionConstructor;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:page"?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
"onUpdate:limit"?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onPagination?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
page: number;
|
|
51
|
+
limit: number;
|
|
52
|
+
pagerCount: number;
|
|
53
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as ContentWarp } from './ContentWarp/index.vue';
|
|
2
|
+
import { default as Dialog } from './Dialog/index.vue';
|
|
3
|
+
import { default as EasyForm } from './EasyForm/index.vue';
|
|
4
|
+
import { default as EasyTable } from './EasyTable/index.vue';
|
|
5
|
+
import { default as MenuTree } from './MenuTree/components/index.vue';
|
|
6
|
+
import { default as Pagination } from './Pagination/index.vue';
|
|
7
|
+
export { ContentWarp, Dialog, EasyForm, EasyTable, MenuTree, Pagination };
|
|
8
|
+
export declare const install: (app: any) => void;
|
|
9
|
+
declare const _default: {
|
|
10
|
+
install: (app: any) => void;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export type { FormItem, rule, Placement } from './EasyForm/index.vue';
|
|
14
|
+
export type { TableColumn, buttonType } from './EasyTable/index.vue';
|