el-plus-crud 0.0.47 → 0.0.49

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/el-plus-crud.mjs +1362 -1352
  3. package/lib/components/el-plus-form/ElPlusFormGroup.vue +2 -0
  4. package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +28 -3
  5. package/lib/components/el-plus-table/components/header.vue +3 -0
  6. package/package.json +1 -1
  7. package/dist/components/el-plus-form/ElPlusForm.vue.d.ts +0 -321
  8. package/dist/components/el-plus-form/ElPlusFormDialog.vue.d.ts +0 -74
  9. package/dist/components/el-plus-form/ElPlusFormGroup.vue.d.ts +0 -44
  10. package/dist/components/el-plus-form/components/ElPlusFormArea.vue.d.ts +0 -50
  11. package/dist/components/el-plus-form/components/ElPlusFormAutocomplete.vue.d.ts +0 -55
  12. package/dist/components/el-plus-form/components/ElPlusFormBtn.vue.d.ts +0 -50
  13. package/dist/components/el-plus-form/components/ElPlusFormBtns.vue.d.ts +0 -48
  14. package/dist/components/el-plus-form/components/ElPlusFormCascader.vue.d.ts +0 -50
  15. package/dist/components/el-plus-form/components/ElPlusFormCascaderPanel.vue.d.ts +0 -57
  16. package/dist/components/el-plus-form/components/ElPlusFormCheckbox.vue.d.ts +0 -50
  17. package/dist/components/el-plus-form/components/ElPlusFormCheckboxButton.vue.d.ts +0 -50
  18. package/dist/components/el-plus-form/components/ElPlusFormColor.vue.d.ts +0 -50
  19. package/dist/components/el-plus-form/components/ElPlusFormDate.vue.d.ts +0 -50
  20. package/dist/components/el-plus-form/components/ElPlusFormDaterange.vue.d.ts +0 -57
  21. package/dist/components/el-plus-form/components/ElPlusFormDatetime.vue.d.ts +0 -50
  22. package/dist/components/el-plus-form/components/ElPlusFormDatetimerange.vue.d.ts +0 -57
  23. package/dist/components/el-plus-form/components/ElPlusFormFile.vue.d.ts +0 -48
  24. package/dist/components/el-plus-form/components/ElPlusFormImage.vue.d.ts +0 -48
  25. package/dist/components/el-plus-form/components/ElPlusFormInput.vue.d.ts +0 -56
  26. package/dist/components/el-plus-form/components/ElPlusFormLink.vue.d.ts +0 -59
  27. package/dist/components/el-plus-form/components/ElPlusFormLkuser.vue.d.ts +0 -59
  28. package/dist/components/el-plus-form/components/ElPlusFormNbinput.vue.d.ts +0 -67
  29. package/dist/components/el-plus-form/components/ElPlusFormNumber.vue.d.ts +0 -63
  30. package/dist/components/el-plus-form/components/ElPlusFormPassword.vue.d.ts +0 -63
  31. package/dist/components/el-plus-form/components/ElPlusFormQuickInput.vue.d.ts +0 -57
  32. package/dist/components/el-plus-form/components/ElPlusFormRadio.vue.d.ts +0 -50
  33. package/dist/components/el-plus-form/components/ElPlusFormRate.vue.d.ts +0 -51
  34. package/dist/components/el-plus-form/components/ElPlusFormSelect.vue.d.ts +0 -62
  35. package/dist/components/el-plus-form/components/ElPlusFormSlider.vue.d.ts +0 -50
  36. package/dist/components/el-plus-form/components/ElPlusFormStatus.vue.d.ts +0 -44
  37. package/dist/components/el-plus-form/components/ElPlusFormSwitch.vue.d.ts +0 -56
  38. package/dist/components/el-plus-form/components/ElPlusFormTag.vue.d.ts +0 -48
  39. package/dist/components/el-plus-form/components/ElPlusFormText.vue.d.ts +0 -48
  40. package/dist/components/el-plus-form/components/ElPlusFormTextarea.vue.d.ts +0 -57
  41. package/dist/components/el-plus-form/components/ElPlusFormTransfer.vue.d.ts +0 -63
  42. package/dist/components/el-plus-form/components/ElPlusFormTree.vue.d.ts +0 -56
  43. package/dist/components/el-plus-form/components/ElPlusFormTreeSelect.vue.d.ts +0 -56
  44. package/dist/components/el-plus-form/components/ElPlusFormUpload.vue.d.ts +0 -57
  45. package/dist/components/el-plus-form/components/components/file-icons/FileIcons.vue.d.ts +0 -42
  46. package/dist/components/el-plus-form/components/components/file-icons/data/index.d.ts +0 -15
  47. package/dist/components/el-plus-form/components/index.d.ts +0 -3
  48. package/dist/components/el-plus-form/data/file.d.ts +0 -63
  49. package/dist/components/el-plus-form/mixins/index.d.ts +0 -28
  50. package/dist/components/el-plus-form/util/index.d.ts +0 -47
  51. package/dist/components/el-plus-form/util/validate.d.ts +0 -268
  52. package/dist/components/el-plus-table/ElPlusTable.vue.d.ts +0 -157
  53. package/dist/components/el-plus-table/components/columnItem.vue.d.ts +0 -42
  54. package/dist/components/el-plus-table/components/header.vue.d.ts +0 -98
  55. package/dist/components/el-plus-table/components/settingColumn.vue.d.ts +0 -41
  56. package/dist/components/el-plus-table/util/index.d.ts +0 -26
  57. package/dist/components-list.d.ts +0 -2
  58. package/dist/config/index.d.ts +0 -2
  59. package/dist/el-plus-crud.umd.js +0 -27
  60. package/dist/index.d.ts +0 -9
  61. package/dist/style.css +0 -1
@@ -1,268 +0,0 @@
1
- /**
2
- * 获取通用的校验规则
3
- */
4
- /**
5
- * 不能为空
6
- */
7
- export declare const notNull: {
8
- required: boolean;
9
- trigger: string;
10
- validator: typeof validateInputNotNull;
11
- }[];
12
- /**
13
- * 不能全是空格
14
- */
15
- export declare const notAllBlank: {
16
- required: boolean;
17
- trigger: string;
18
- validator: typeof validateInputNotAllBlank;
19
- }[];
20
- /**
21
- * 必须是数字
22
- */
23
- export declare const number: {
24
- type: string;
25
- message: string;
26
- }[];
27
- /**
28
- * 校验验证码
29
- */
30
- export declare const vCode: {
31
- required: boolean;
32
- trigger: string;
33
- validator: typeof validateValidateCode;
34
- }[];
35
- /**
36
- * 校验邮箱
37
- */
38
- export declare const email: {
39
- trigger: string;
40
- validator: typeof validateEmail;
41
- }[];
42
- /**
43
- * 校验手机号
44
- */
45
- export declare const phone: {
46
- required: boolean;
47
- trigger: string;
48
- validator: typeof validatePhone;
49
- }[];
50
- /**
51
- * 校验密码
52
- */
53
- export declare const password: {
54
- required: boolean;
55
- trigger: string;
56
- validator: typeof validatePassword;
57
- }[];
58
- /**
59
- * 校验密码
60
- */
61
- export declare const password2: {
62
- trigger: string;
63
- validator: typeof validatePassword;
64
- }[];
65
- /**
66
- * 校验账户
67
- */
68
- export declare const account: {
69
- required: boolean;
70
- trigger: string;
71
- validator: typeof validateAccount;
72
- }[];
73
- /**
74
- * 校验英文字母加数字
75
- */
76
- export declare const wordnum: {
77
- trigger: string;
78
- validator: typeof validateWordNumber;
79
- }[];
80
- export declare const wordnum2: {
81
- required: boolean;
82
- trigger: string;
83
- validator: typeof validateWordNumber;
84
- }[];
85
- /**
86
- * 必须是数字且不为空
87
- */
88
- export declare const numberNotNull: ({
89
- required: boolean;
90
- message: string;
91
- trigger: string;
92
- type?: undefined;
93
- } | {
94
- type: string;
95
- message: string;
96
- required?: undefined;
97
- trigger?: undefined;
98
- })[];
99
- /**
100
- * 正整数
101
- */
102
- export declare const zhengZhengShu: {
103
- required: boolean;
104
- trigger: string;
105
- validator: typeof validateZhengZhengShu;
106
- }[];
107
- /**
108
- * Double类型
109
- */
110
- export declare const double: {
111
- required: boolean;
112
- trigger: string;
113
- validator: typeof validateDouble;
114
- }[];
115
- /**
116
- * Double类型且必填
117
- */
118
- export declare const double2: {
119
- trigger: string;
120
- validator: typeof validateDouble;
121
- }[];
122
- /**
123
- * 选择
124
- */
125
- export declare const select: {
126
- required: boolean;
127
- trigger: string;
128
- validator: typeof validateSelect;
129
- }[];
130
- /**
131
- * 级联选择
132
- * @type {[*]}
133
- */
134
- export declare const cascader: {
135
- required: boolean;
136
- trigger: string;
137
- validator: typeof validateSelect;
138
- }[];
139
- /**
140
- * 必须上传
141
- */
142
- export declare const upload: {
143
- required: boolean;
144
- trigger: string;
145
- validator: typeof validateUpload;
146
- }[];
147
- /**
148
- * 文本域
149
- */
150
- export declare const textarea: {
151
- required: boolean;
152
- trigger: string;
153
- validator: typeof validateTextarea;
154
- }[];
155
- /**
156
- * 富文本编辑器
157
- */
158
- export declare const editor: {
159
- required: boolean;
160
- trigger: string;
161
- validator: typeof validateEditor;
162
- }[];
163
- /**
164
- * 正整数校验
165
- * @param rule
166
- * @param value
167
- * @param callback
168
- */
169
- declare function validateZhengZhengShu(rule: any, value: any, callback?: any): void;
170
- /**
171
- * 选择
172
- * @param rule
173
- * @param value
174
- * @param callback
175
- */
176
- declare function validateValidateCode(rule: any, value: any, callback?: any): void;
177
- /**
178
- * 选择
179
- * @param rule
180
- * @param value
181
- * @param callback
182
- */
183
- declare function validateInputNotNull(rule: any, value: any, callback?: any): void;
184
- /**
185
- * 不能全是空格
186
- * @param rule
187
- * @param value
188
- * @param callback
189
- */
190
- declare function validateInputNotAllBlank(rule: any, value: any, callback?: any): void;
191
- /**
192
- * 选择
193
- * @param rule
194
- * @param value
195
- * @param callback
196
- */
197
- declare function validateSelect(rule: any, value: any, callback?: any): void;
198
- /**
199
- * 上传
200
- * @param rule
201
- * @param value
202
- * @param callback
203
- */
204
- declare function validateUpload(rule: any, value: any, callback?: any): void;
205
- /**
206
- * 文本域
207
- * @param rule
208
- * @param value
209
- * @param callback
210
- */
211
- declare function validateTextarea(rule: any, value: any, callback?: any): void;
212
- /**
213
- * 富文本编辑器
214
- * @param rule
215
- * @param value
216
- * @param callback
217
- */
218
- declare function validateEditor(rule: any, value: any, callback?: any): void;
219
- /**
220
- * 小数校验规则
221
- * @param rule
222
- * @param value
223
- * @param callback
224
- */
225
- declare function validateDouble(rule: any, value: any, callback?: any): void;
226
- /**
227
- * 校验邮箱
228
- * @param rule
229
- * @param value
230
- * @param callback
231
- */
232
- declare function validateEmail(rule: any, value: any, callback?: any): void;
233
- /**
234
- * 校验手机号
235
- * @param rule
236
- * @param value
237
- * @param callback
238
- */
239
- declare function validatePhone(rule: any, value: any, callback?: any): void;
240
- /**
241
- * 校验密码
242
- * @param rule
243
- * @param value
244
- * @param callback
245
- */
246
- export declare function validatePassword(rule: any, value: any, callback?: any): void;
247
- /**
248
- * 校验密码
249
- * @param rule
250
- * @param value
251
- * @param callback
252
- */
253
- export declare function validatePassword2(rule: any, value: any, callback?: any): void;
254
- /**
255
- * 校验账户
256
- * @param rule
257
- * @param value
258
- * @param callback
259
- */
260
- declare function validateAccount(rule: any, value: any, callback?: any): void;
261
- /**
262
- * 校验字母和数字组成
263
- * @param rule
264
- * @param value
265
- * @param callback
266
- */
267
- declare function validateWordNumber(rule: any, value: any, callback?: any): void;
268
- export {};
@@ -1,157 +0,0 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
- type: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- modelValue: {
7
- type: import("vue").PropType<any[] | null>;
8
- default: null;
9
- };
10
- isDialog: {
11
- type: import("vue").PropType<boolean>;
12
- default: boolean;
13
- };
14
- tableConfig: {
15
- type: import("vue").PropType<ITableConfig>;
16
- required: true;
17
- };
18
- isIndex: {
19
- type: import("vue").PropType<boolean>;
20
- default: boolean;
21
- };
22
- rowKey: {
23
- type: import("vue").PropType<string>;
24
- default: string;
25
- };
26
- isShowRefresh: {
27
- type: import("vue").PropType<boolean>;
28
- default: boolean;
29
- };
30
- isPager: {
31
- type: import("vue").PropType<boolean>;
32
- default: boolean;
33
- };
34
- pageSize: {
35
- type: import("vue").PropType<number>;
36
- default: number;
37
- };
38
- nullText: {
39
- type: import("vue").PropType<string>;
40
- default: string;
41
- };
42
- isEmptyImg: {
43
- type: import("vue").PropType<boolean>;
44
- default: boolean;
45
- };
46
- isDIYMain: {
47
- type: import("vue").PropType<boolean>;
48
- default: boolean;
49
- };
50
- selectList: {
51
- type: import("vue").PropType<any[] | []>;
52
- default: () => never[];
53
- };
54
- colMinWidth: {
55
- type: import("vue").PropType<string>;
56
- default: string;
57
- };
58
- }, {
59
- reload: (isTab?: boolean) => Promise<any[]>;
60
- tableData: any[];
61
- changeSelect: (itemList: any[], isSelect?: boolean) => void;
62
- resetSelect: () => void;
63
- initCol: () => void;
64
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "selection" | "selectAll" | "getUrlConsumerIds" | "tabChange" | "expandChange")[], "select" | "update:modelValue" | "selection" | "selectAll" | "getUrlConsumerIds" | "tabChange" | "expandChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
- type: {
66
- type: import("vue").PropType<string>;
67
- default: string;
68
- };
69
- modelValue: {
70
- type: import("vue").PropType<any[] | null>;
71
- default: null;
72
- };
73
- isDialog: {
74
- type: import("vue").PropType<boolean>;
75
- default: boolean;
76
- };
77
- tableConfig: {
78
- type: import("vue").PropType<ITableConfig>;
79
- required: true;
80
- };
81
- isIndex: {
82
- type: import("vue").PropType<boolean>;
83
- default: boolean;
84
- };
85
- rowKey: {
86
- type: import("vue").PropType<string>;
87
- default: string;
88
- };
89
- isShowRefresh: {
90
- type: import("vue").PropType<boolean>;
91
- default: boolean;
92
- };
93
- isPager: {
94
- type: import("vue").PropType<boolean>;
95
- default: boolean;
96
- };
97
- pageSize: {
98
- type: import("vue").PropType<number>;
99
- default: number;
100
- };
101
- nullText: {
102
- type: import("vue").PropType<string>;
103
- default: string;
104
- };
105
- isEmptyImg: {
106
- type: import("vue").PropType<boolean>;
107
- default: boolean;
108
- };
109
- isDIYMain: {
110
- type: import("vue").PropType<boolean>;
111
- default: boolean;
112
- };
113
- selectList: {
114
- type: import("vue").PropType<any[] | []>;
115
- default: () => never[];
116
- };
117
- colMinWidth: {
118
- type: import("vue").PropType<string>;
119
- default: string;
120
- };
121
- }>> & {
122
- onSelect?: ((...args: any[]) => any) | undefined;
123
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
124
- onSelection?: ((...args: any[]) => any) | undefined;
125
- onSelectAll?: ((...args: any[]) => any) | undefined;
126
- onGetUrlConsumerIds?: ((...args: any[]) => any) | undefined;
127
- onTabChange?: ((...args: any[]) => any) | undefined;
128
- onExpandChange?: ((...args: any[]) => any) | undefined;
129
- }, {
130
- type: string;
131
- modelValue: Array<any> | null;
132
- isDialog: boolean;
133
- isIndex: boolean;
134
- rowKey: string;
135
- isShowRefresh: boolean;
136
- isPager: boolean;
137
- pageSize: number;
138
- nullText: string;
139
- isEmptyImg: boolean;
140
- isDIYMain: boolean;
141
- selectList: Array<any> | [
142
- ];
143
- colMinWidth: string;
144
- }, {}>, {
145
- main?(_: {
146
- tableData: any[];
147
- }): any;
148
- firstColumn?(_: {}): any;
149
- default?(_: {}): any;
150
- bottom?(_: {}): any;
151
- }>;
152
- export default _default;
153
- type __VLS_WithTemplateSlots<T, S> = T & {
154
- new (): {
155
- $slots: S;
156
- };
157
- };
@@ -1,42 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- modelValue: {
3
- type: import("vue").PropType<any>;
4
- };
5
- field: {
6
- type: import("vue").PropType<string>;
7
- };
8
- desc: {
9
- type: import("vue").PropType<IColumnItem>;
10
- required: true;
11
- };
12
- scope: {
13
- type: import("vue").PropType<{
14
- [key: string]: any;
15
- }>;
16
- required: true;
17
- };
18
- size: {
19
- type: import("vue").PropType<string>;
20
- };
21
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- modelValue: {
23
- type: import("vue").PropType<any>;
24
- };
25
- field: {
26
- type: import("vue").PropType<string>;
27
- };
28
- desc: {
29
- type: import("vue").PropType<IColumnItem>;
30
- required: true;
31
- };
32
- scope: {
33
- type: import("vue").PropType<{
34
- [key: string]: any;
35
- }>;
36
- required: true;
37
- };
38
- size: {
39
- type: import("vue").PropType<string>;
40
- };
41
- }>>, {}, {}>;
42
- export default _default;
@@ -1,98 +0,0 @@
1
- /**
2
- * 初始化列
3
- */
4
- declare function initCol(): void;
5
- declare const _default: import("vue").DefineComponent<{
6
- loading: {
7
- type: import("vue").PropType<boolean>;
8
- required: true;
9
- default: boolean;
10
- };
11
- size: {
12
- type: import("vue").PropType<string>;
13
- required: true;
14
- default: string;
15
- };
16
- modelValue: {
17
- type: import("vue").PropType<{} | {
18
- [key: string]: any;
19
- }>;
20
- };
21
- isDialog: {
22
- type: import("vue").PropType<boolean>;
23
- required: true;
24
- default: boolean;
25
- };
26
- column: {
27
- type: import("vue").PropType<IColumnItem[] | null>;
28
- required: true;
29
- };
30
- tbName: {
31
- type: import("vue").PropType<string>;
32
- required: true;
33
- default: string;
34
- };
35
- toolbar: {
36
- type: import("vue").PropType<ITableToolbar | null>;
37
- required: true;
38
- default: null;
39
- };
40
- isShowRefresh: {
41
- type: import("vue").PropType<boolean>;
42
- required: true;
43
- default: boolean;
44
- };
45
- }, {
46
- getData: () => any;
47
- initCol: typeof initCol;
48
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "query"[], "query", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
- loading: {
50
- type: import("vue").PropType<boolean>;
51
- required: true;
52
- default: boolean;
53
- };
54
- size: {
55
- type: import("vue").PropType<string>;
56
- required: true;
57
- default: string;
58
- };
59
- modelValue: {
60
- type: import("vue").PropType<{} | {
61
- [key: string]: any;
62
- }>;
63
- };
64
- isDialog: {
65
- type: import("vue").PropType<boolean>;
66
- required: true;
67
- default: boolean;
68
- };
69
- column: {
70
- type: import("vue").PropType<IColumnItem[] | null>;
71
- required: true;
72
- };
73
- tbName: {
74
- type: import("vue").PropType<string>;
75
- required: true;
76
- default: string;
77
- };
78
- toolbar: {
79
- type: import("vue").PropType<ITableToolbar | null>;
80
- required: true;
81
- default: null;
82
- };
83
- isShowRefresh: {
84
- type: import("vue").PropType<boolean>;
85
- required: true;
86
- default: boolean;
87
- };
88
- }>> & {
89
- onQuery?: ((...args: any[]) => any) | undefined;
90
- }, {
91
- loading: boolean;
92
- size: string;
93
- isDialog: boolean;
94
- tbName: string;
95
- toolbar: ITableToolbar | null;
96
- isShowRefresh: boolean;
97
- }, {}>;
98
- export default _default;
@@ -1,41 +0,0 @@
1
- /**
2
- * 初始化选择列
3
- * @param init
4
- */
5
- declare function initLocalCheckList(init?: Boolean): void;
6
- declare const _default: import("vue").DefineComponent<{
7
- column: {
8
- type: import("vue").PropType<IColumnItem[]>;
9
- required: true;
10
- };
11
- tbName: {
12
- type: import("vue").PropType<string>;
13
- required: true;
14
- };
15
- size: {
16
- type: import("vue").PropType<string>;
17
- required: true;
18
- };
19
- showText: {
20
- type: import("vue").PropType<boolean>;
21
- };
22
- }, {
23
- initCol: typeof initLocalCheckList;
24
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
- column: {
26
- type: import("vue").PropType<IColumnItem[]>;
27
- required: true;
28
- };
29
- tbName: {
30
- type: import("vue").PropType<string>;
31
- required: true;
32
- };
33
- size: {
34
- type: import("vue").PropType<string>;
35
- required: true;
36
- };
37
- showText: {
38
- type: import("vue").PropType<boolean>;
39
- };
40
- }>>, {}, {}>;
41
- export default _default;
@@ -1,26 +0,0 @@
1
- /**
2
- * 获取随机字符串
3
- * @returns {string}
4
- */
5
- export declare function getUID(): string;
6
- export declare function is(val: any, type: any): boolean;
7
- /**
8
- * 判断是否是移动端
9
- */
10
- export declare function isMobile(): boolean;
11
- /**
12
- * 处理按钮类型
13
- * @param item
14
- */
15
- export declare function handelBtnType(item: any): Object;
16
- /**
17
- * 处理列表表头,list转Map
18
- */
19
- export declare function handelListColumn(columnList: Array<IColumnItem>, minWidth?: string): any[];
20
- /**
21
- * map转string
22
- * @param map
23
- * @param excludeList
24
- * @returns {string}
25
- */
26
- export declare const mapToUrlStr: (map: any, excludeList?: any) => string;
@@ -1,2 +0,0 @@
1
- declare const _default: any[];
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: ICRUDConfig;
2
- export default _default;