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.
- package/dist/EasyForm/index.vue.d.ts +5 -681
- package/dist/EasyFormH/index.vue.d.ts +64 -0
- package/dist/EasyTable/index.vue.d.ts +1 -18
- package/dist/EasyTableH/index.vue.d.ts +114 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +470 -436
- package/dist/mwl-components.css +1 -1
- package/dist/types/index.d.ts +105 -0
- package/package.json +7 -6
- package/dist/EasyTable/tableColumnItem.vue.d.ts +0 -19
package/dist/mwl-components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-card[data-v-
|
|
1
|
+
.el-card[data-v-6e7d743c]{background-color:transparent;margin-bottom:10px}[data-v-6e7d743c] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-6e7d743c] .el-card__body{padding:20px;height:100%}.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-5d6bf523] .el-form-item__label{font-size:var(--el-font-size-base)}[data-v-51c45d02] .el-table,[data-v-51c45d02] th.el-table__cell,[data-v-51c45d02] 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}}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 Slots = {
|
|
9
|
+
default?: (obj?: any) => any;
|
|
10
|
+
prefix?: () => any;
|
|
11
|
+
suffix?: () => any;
|
|
12
|
+
prepend?: () => any;
|
|
13
|
+
append?: () => any;
|
|
14
|
+
decreaseIcon?: () => any;
|
|
15
|
+
increaseIcon?: () => any;
|
|
16
|
+
header?: () => any;
|
|
17
|
+
footer?: () => any;
|
|
18
|
+
loading?: () => any;
|
|
19
|
+
label?: () => any;
|
|
20
|
+
activeAction?: () => any;
|
|
21
|
+
inactiveAction?: () => any;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
export type options = Array<{
|
|
25
|
+
label: string;
|
|
26
|
+
value: string | number;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>;
|
|
29
|
+
export type ComponentMapType = {
|
|
30
|
+
type: string;
|
|
31
|
+
component: string | any;
|
|
32
|
+
attrs?: any;
|
|
33
|
+
slots?: (item: FormItem) => any;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
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
|
+
export interface FormItem {
|
|
38
|
+
type: 'switch' | 'textarea' | 'number' | 'text' | 'checkbox' | 'radio' | 'multipleselect' | 'select' | 'select-v2' | 'tree-select' | 'date' | 'datetime' | 'month' | 'year' | 'daterange' | 'cascader' | 'custom' | string;
|
|
39
|
+
rule?: rule[];
|
|
40
|
+
hidden?: boolean;
|
|
41
|
+
prop: string;
|
|
42
|
+
label: string | (() => any);
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
width?: string;
|
|
46
|
+
clearable?: boolean;
|
|
47
|
+
filterable?: boolean;
|
|
48
|
+
props?: {
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
maxlength?: number;
|
|
53
|
+
options?: options;
|
|
54
|
+
valueFormat?: string;
|
|
55
|
+
format?: string;
|
|
56
|
+
showType?: string;
|
|
57
|
+
remoteMethod?: (value: string, callback: (list: any[]) => void) => any;
|
|
58
|
+
fileLimit?: number;
|
|
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
|
+
filterMethod?: Function;
|
|
66
|
+
labelWidth?: string;
|
|
67
|
+
shortcuts?: Array<{
|
|
68
|
+
text: string;
|
|
69
|
+
value: Date | Function;
|
|
70
|
+
}>;
|
|
71
|
+
popperClass?: string;
|
|
72
|
+
teleported?: boolean;
|
|
73
|
+
allowCreate?: boolean;
|
|
74
|
+
collapseTags?: boolean;
|
|
75
|
+
collapseTagsTooltip?: boolean;
|
|
76
|
+
tooltip?: string;
|
|
77
|
+
amount?: string;
|
|
78
|
+
placement?: Placement;
|
|
79
|
+
multiple?: boolean;
|
|
80
|
+
min?: number;
|
|
81
|
+
max?: number;
|
|
82
|
+
precision?: number;
|
|
83
|
+
step?: number;
|
|
84
|
+
stepStrictly?: boolean;
|
|
85
|
+
slots?: Slots;
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}
|
|
88
|
+
export interface TableColumn {
|
|
89
|
+
label: string;
|
|
90
|
+
prop?: string;
|
|
91
|
+
type?: string;
|
|
92
|
+
align?: string;
|
|
93
|
+
[property: string]: any;
|
|
94
|
+
children?: TableColumn[];
|
|
95
|
+
}
|
|
96
|
+
export interface buttonType {
|
|
97
|
+
label: string;
|
|
98
|
+
permi?: any[] | string;
|
|
99
|
+
type: string;
|
|
100
|
+
hide?: boolean;
|
|
101
|
+
disabled?: (row: any) => boolean;
|
|
102
|
+
show?: (row: any) => boolean;
|
|
103
|
+
click?: (row: any) => void;
|
|
104
|
+
link?: (row: any) => boolean;
|
|
105
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mwl-components",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
11
11
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
12
|
+
"build:watch": "vite build --watch",
|
|
12
13
|
"preview": "vite preview",
|
|
13
14
|
"build-only": "vite build",
|
|
14
15
|
"type-check": "vue-tsc ",
|
|
@@ -20,13 +21,13 @@
|
|
|
20
21
|
],
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@element-plus/icons-vue": "^2.3.1",
|
|
23
|
-
"element-plus": "^2.10.4",
|
|
24
|
-
"vue": "^3.5.17",
|
|
25
24
|
"axios": "^1.6.8",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"dexie": "^4.0.11",
|
|
26
|
+
"element-plus": "^2.10.4",
|
|
28
27
|
"lodash-es": "^4.17.21",
|
|
29
|
-
"
|
|
28
|
+
"pinia": "^2.1.7",
|
|
29
|
+
"vue": "^3.5.17",
|
|
30
|
+
"vue-router": "^4.3.0"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@tsconfig/node22": "^22.0.2",
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|