mwl-components 0.0.22 → 0.1.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.
@@ -0,0 +1,64 @@
1
+ import { PropType } from 'vue';
2
+ import { FormItem } from '../types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<Record<string, any>> & Record<string, any>;
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
11
+ inline: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ formData: {
16
+ type: PropType<Record<string, any>>;
17
+ required: true;
18
+ };
19
+ formItems: {
20
+ type: PropType<FormItem[]>;
21
+ default: () => never[];
22
+ };
23
+ labelWidth: {
24
+ type: (StringConstructor | NumberConstructor)[];
25
+ default: string;
26
+ };
27
+ itemWidth: {
28
+ type: StringConstructor[];
29
+ default: string;
30
+ };
31
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
32
+ inline: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ formData: {
37
+ type: PropType<Record<string, any>>;
38
+ required: true;
39
+ };
40
+ formItems: {
41
+ type: PropType<FormItem[]>;
42
+ default: () => never[];
43
+ };
44
+ labelWidth: {
45
+ type: (StringConstructor | NumberConstructor)[];
46
+ default: string;
47
+ };
48
+ itemWidth: {
49
+ type: StringConstructor[];
50
+ default: string;
51
+ };
52
+ }>> & Readonly<{}>, {
53
+ labelWidth: string | number;
54
+ inline: boolean;
55
+ formItems: FormItem[];
56
+ itemWidth: string;
57
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
58
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
+ export default _default;
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -1,21 +1,4 @@
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
- link?: (row: any) => boolean;
18
- }
1
+ import { TableColumn, buttonType } from '../types';
19
2
  declare function __VLS_template(): {
20
3
  attrs: Partial<{}>;
21
4
  slots: Readonly<Record<string, any>> & Record<string, any>;
@@ -0,0 +1,114 @@
1
+ import { TableColumn, buttonType } from '../types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<Record<string, any>> & Record<string, any>;
5
+ refs: {
6
+ tableRef: HTMLDivElement;
7
+ };
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
12
+ data: {
13
+ type: {
14
+ (arrayLength: number): Record<string, any>[];
15
+ (...items: Record<string, any>[]): Record<string, any>[];
16
+ new (arrayLength: number): Record<string, any>[];
17
+ new (...items: Record<string, any>[]): Record<string, any>[];
18
+ isArray(arg: any): arg is any[];
19
+ readonly prototype: any[];
20
+ from<T>(arrayLike: ArrayLike<T>): T[];
21
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
22
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
23
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
24
+ of<T>(...items: T[]): T[];
25
+ readonly [Symbol.species]: ArrayConstructor;
26
+ };
27
+ required: true;
28
+ default: () => never[];
29
+ };
30
+ tableColumns: {
31
+ type: PropType<TableColumn[]>;
32
+ default: () => never[];
33
+ };
34
+ buttons: {
35
+ type: PropType<buttonType[]>;
36
+ default: () => never[];
37
+ };
38
+ buttonWidth: {
39
+ type: (StringConstructor | NumberConstructor)[];
40
+ default: number;
41
+ };
42
+ align: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ height: {
47
+ type: NumberConstructor;
48
+ default: undefined;
49
+ };
50
+ maxHeight: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
55
+ data: {
56
+ type: {
57
+ (arrayLength: number): Record<string, any>[];
58
+ (...items: Record<string, any>[]): Record<string, any>[];
59
+ new (arrayLength: number): Record<string, any>[];
60
+ new (...items: Record<string, any>[]): Record<string, any>[];
61
+ isArray(arg: any): arg is any[];
62
+ readonly prototype: any[];
63
+ from<T>(arrayLike: ArrayLike<T>): T[];
64
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
65
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
66
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
67
+ of<T>(...items: T[]): T[];
68
+ readonly [Symbol.species]: ArrayConstructor;
69
+ };
70
+ required: true;
71
+ default: () => never[];
72
+ };
73
+ tableColumns: {
74
+ type: PropType<TableColumn[]>;
75
+ default: () => never[];
76
+ };
77
+ buttons: {
78
+ type: PropType<buttonType[]>;
79
+ default: () => never[];
80
+ };
81
+ buttonWidth: {
82
+ type: (StringConstructor | NumberConstructor)[];
83
+ default: number;
84
+ };
85
+ align: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ height: {
90
+ type: NumberConstructor;
91
+ default: undefined;
92
+ };
93
+ maxHeight: {
94
+ type: StringConstructor;
95
+ default: undefined;
96
+ };
97
+ }>> & Readonly<{}>, {
98
+ data: Record<string, any>[];
99
+ maxHeight: string;
100
+ height: number;
101
+ align: string;
102
+ tableColumns: TableColumn[];
103
+ buttons: buttonType[];
104
+ buttonWidth: string | number;
105
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
106
+ tableRef: HTMLDivElement;
107
+ }, HTMLDivElement>;
108
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
109
+ export default _default;
110
+ type __VLS_WithTemplateSlots<T, S> = T & {
111
+ new (): {
112
+ $slots: S;
113
+ };
114
+ };
package/dist/index.d.ts CHANGED
@@ -4,11 +4,10 @@ import { default as EasyForm } from './EasyForm/index.vue';
4
4
  import { default as EasyTable } from './EasyTable/index.vue';
5
5
  import { default as MenuTree } from './MenuTree/components/index.vue';
6
6
  import { default as Pagination } from './Pagination/index.vue';
7
- export { ContentWarp, Dialog, EasyForm, EasyTable, MenuTree, Pagination };
7
+ export { ContentWarp, Dialog, EasyForm, EasyTable, MenuTree, Pagination, };
8
8
  export declare const install: (app: any, options: any) => void;
9
9
  declare const _default: {
10
10
  install: (app: any, options: any) => void;
11
11
  };
12
12
  export default _default;
13
- export type { FormItem, rule, Placement } from './EasyForm/index.vue';
14
- export type { TableColumn, buttonType } from './EasyTable/index.vue';
13
+ export type { FormItem, rule, Placement, TableColumn, buttonType } from './types';