mwl-components 0.1.0 → 0.1.2
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/README.md +80 -1
- package/dist/EasyForm/index.vue.d.ts +17 -21
- package/dist/EasyTable/index.vue.d.ts +10 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +439 -425
- package/dist/mwl-components.css +1 -1
- package/dist/types/index.d.ts +5 -11
- package/package.json +1 -1
- package/dist/EasyFormH/index.vue.d.ts +0 -64
- package/dist/EasyTableH/index.vue.d.ts +0 -114
package/dist/mwl-components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-card[data-v-
|
|
1
|
+
.el-card[data-v-fdaaba5e]{background-color:transparent;margin-bottom:10px}[data-v-fdaaba5e] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-fdaaba5e] .el-card__body{padding:20px;height:100%}[data-v-fdaaba5e] .el-card__footer{padding:0 20px}.custom-dialog{padding:0;box-shadow:0 0 5px 0 var(--el-text-color-secondary)}.custom-dialog .el-dialog__header{padding:0}.dialog-header{--el-dialog-padding-primary: 20px;border-bottom:1px solid var(--el-border-color);padding:var(--el-dialog-padding-primary);padding-bottom:10px;padding-right:44px;display:flex;align-items:center;justify-content:space-between;color:var(--el-text-color-primary)}.dialog-header .fullScreen{cursor:pointer;z-index:99}.dialog-header .fullScreen:hover{color:var(--el-color-primary)}.el-dialog__headerbtn{--el-message-close-size: 20px;top:7px;margin-right:10px;width:20px}.el-dialog__body{padding:20px 30px}.el-dialog__footer{padding:10px 20px 20px;border-top:1px solid var(--el-border-color)}.is-hover:hover{color:var(--el-color-primary)}[data-v-ebcd5674] .el-form-item__label{font-size:var(--el-font-size-base)}.easy-form .el-form-item[data-v-ebcd5674]{margin-right:10px}[data-v-ebcd5674] .el-date-editor{flex-grow:initial}[data-v-1c87357b] .el-table,[data-v-1c87357b] th.el-table__cell,[data-v-1c87357b] tr{background-color:transparent!important}.menu_icon[data-v-261ce99a]{width:22px;height:22px;margin-right:5px;fill:currentColor;display:inline-block;font-size:16px}.pagination[data-v-1e34e383]{margin-top:15px;margin-bottom:15px;float:right}@media screen and (max-width: 1370px){.pagination[data-v-1e34e383]{margin-top:8px;margin-bottom:8px}}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type Rule = {
|
|
2
2
|
required?: boolean;
|
|
3
3
|
message: string;
|
|
4
4
|
pattern?: RegExp;
|
|
@@ -21,7 +21,7 @@ export type Slots = {
|
|
|
21
21
|
inactiveAction?: () => any;
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
};
|
|
24
|
-
export type
|
|
24
|
+
export type Options = Array<{
|
|
25
25
|
label: string;
|
|
26
26
|
value: string | number;
|
|
27
27
|
[key: string]: any;
|
|
@@ -36,7 +36,7 @@ export type ComponentMapType = {
|
|
|
36
36
|
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';
|
|
37
37
|
export interface FormItem {
|
|
38
38
|
type: 'switch' | 'textarea' | 'number' | 'text' | 'checkbox' | 'radio' | 'multipleselect' | 'select' | 'select-v2' | 'tree-select' | 'date' | 'datetime' | 'month' | 'year' | 'daterange' | 'cascader' | 'custom' | string;
|
|
39
|
-
rule?:
|
|
39
|
+
rule?: Rule[];
|
|
40
40
|
hidden?: boolean;
|
|
41
41
|
prop: string;
|
|
42
42
|
label: string | (() => any);
|
|
@@ -50,18 +50,13 @@ export interface FormItem {
|
|
|
50
50
|
value: string;
|
|
51
51
|
};
|
|
52
52
|
maxlength?: number;
|
|
53
|
-
options?:
|
|
53
|
+
options?: Options;
|
|
54
|
+
data?: Array<any>;
|
|
54
55
|
valueFormat?: string;
|
|
55
56
|
format?: string;
|
|
56
57
|
showType?: string;
|
|
57
|
-
remoteMethod?: (value: string, callback: (list: any[]) => void) => any;
|
|
58
58
|
fileLimit?: number;
|
|
59
59
|
disabledDate?: (time: any) => boolean;
|
|
60
|
-
change?: (item: any, value?: any) => void;
|
|
61
|
-
input?: (item: any, value?: any) => void;
|
|
62
|
-
focus?: (item: any, value?: any) => void;
|
|
63
|
-
blur?: (item: any, value?: any) => void;
|
|
64
|
-
customOption?: any[];
|
|
65
60
|
filterMethod?: Function;
|
|
66
61
|
labelWidth?: string;
|
|
67
62
|
shortcuts?: Array<{
|
|
@@ -74,7 +69,6 @@ export interface FormItem {
|
|
|
74
69
|
collapseTags?: boolean;
|
|
75
70
|
collapseTagsTooltip?: boolean;
|
|
76
71
|
tooltip?: string;
|
|
77
|
-
amount?: string;
|
|
78
72
|
placement?: Placement;
|
|
79
73
|
multiple?: boolean;
|
|
80
74
|
min?: number;
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
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,114 +0,0 @@
|
|
|
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
|
-
};
|