el-plus-crud 0.0.20 → 0.0.21
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/CHANGELOG.md +2 -0
- package/dist/components/el-plus-form/ElPlusForm.vue.d.ts +320 -357
- package/dist/components/el-plus-form/ElPlusFormDialog.vue.d.ts +74 -101
- package/dist/components/el-plus-form/ElPlusFormGroup.vue.d.ts +39 -61
- package/dist/components/el-plus-form/components/ElPlusFormArea.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormAutocomplete.vue.d.ts +55 -70
- package/dist/components/el-plus-form/components/ElPlusFormBtn.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormBtns.vue.d.ts +42 -58
- package/dist/components/el-plus-form/components/ElPlusFormCascader.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormCascaderPanel.vue.d.ts +51 -68
- package/dist/components/el-plus-form/components/ElPlusFormCheckbox.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormCheckboxButton.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormColor.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormDate.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormDaterange.vue.d.ts +51 -68
- package/dist/components/el-plus-form/components/ElPlusFormDatetime.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormFile.vue.d.ts +48 -64
- package/dist/components/el-plus-form/components/ElPlusFormImage.vue.d.ts +48 -64
- package/dist/components/el-plus-form/components/ElPlusFormInput.vue.d.ts +50 -69
- package/dist/components/el-plus-form/components/ElPlusFormLink.vue.d.ts +53 -69
- package/dist/components/el-plus-form/components/ElPlusFormNbinput.vue.d.ts +61 -80
- package/dist/components/el-plus-form/components/ElPlusFormNumber.vue.d.ts +57 -73
- package/dist/components/el-plus-form/components/ElPlusFormPassword.vue.d.ts +57 -74
- package/dist/components/el-plus-form/components/ElPlusFormQuickInput.vue.d.ts +51 -67
- package/dist/components/el-plus-form/components/ElPlusFormRadio.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormRate.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormSelect.vue.d.ts +56 -72
- package/dist/components/el-plus-form/components/ElPlusFormSlider.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormStatus.vue.d.ts +44 -60
- package/dist/components/el-plus-form/components/ElPlusFormSwitch.vue.d.ts +50 -66
- package/dist/components/el-plus-form/components/ElPlusFormTag.vue.d.ts +48 -64
- package/dist/components/el-plus-form/components/ElPlusFormText.vue.d.ts +48 -64
- package/dist/components/el-plus-form/components/ElPlusFormTextarea.vue.d.ts +51 -67
- package/dist/components/el-plus-form/components/ElPlusFormTransfer.vue.d.ts +57 -74
- package/dist/components/el-plus-form/components/ElPlusFormTree.vue.d.ts +50 -66
- package/dist/components/el-plus-form/components/ElPlusFormTreeSelect.vue.d.ts +50 -66
- package/dist/components/el-plus-form/components/ElPlusFormUpload.vue.d.ts +51 -67
- package/dist/components/el-plus-form/components/components/file-icons/FileIcons.vue.d.ts +42 -58
- package/dist/components/el-plus-form/components/components/file-icons/data/index.d.ts +15 -15
- package/dist/components/el-plus-form/components/index.d.ts +3 -3
- package/dist/components/el-plus-form/data/file.d.ts +63 -63
- package/dist/components/el-plus-form/mixins/index.d.ts +28 -33
- package/dist/components/el-plus-form/util/index.d.ts +47 -47
- package/dist/components/el-plus-form/util/validate.d.ts +253 -256
- package/dist/components/el-plus-table/ElPlusTable.vue.d.ts +155 -171
- package/dist/components/el-plus-table/components/columnItem.vue.d.ts +42 -58
- package/dist/components/el-plus-table/components/header.vue.d.ts +93 -115
- package/dist/components/el-plus-table/components/settingColumn.vue.d.ts +28 -44
- package/dist/components/el-plus-table/util/index.d.ts +26 -26
- package/dist/components-list.d.ts +2 -2
- package/dist/config/index.d.ts +2 -2
- package/dist/el-plus-crud.mjs +931 -925
- package/dist/el-plus-crud.umd.js +25 -7608
- package/dist/index.d.ts +9 -18
- package/dist/style.css +1 -1
- package/lib/components/el-plus-form/components/ElPlusFormTree.vue +25 -2
- package/lib/components-list.ts +34 -34
- package/package.json +1 -1
|
@@ -1,256 +1,253 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取通用的校验规则
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* 不能为空
|
|
6
|
-
*/
|
|
7
|
-
export declare const notNull: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[]
|
|
12
|
-
/**
|
|
13
|
-
* 不能全是空格
|
|
14
|
-
*/
|
|
15
|
-
export declare const notAllBlank: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}[]
|
|
20
|
-
/**
|
|
21
|
-
* 必须是数字
|
|
22
|
-
*/
|
|
23
|
-
export declare const number: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}[]
|
|
27
|
-
/**
|
|
28
|
-
* 校验验证码
|
|
29
|
-
*/
|
|
30
|
-
export declare const vCode: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}[]
|
|
35
|
-
/**
|
|
36
|
-
* 校验邮箱
|
|
37
|
-
*/
|
|
38
|
-
export declare const email: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}[]
|
|
42
|
-
/**
|
|
43
|
-
* 校验手机号
|
|
44
|
-
*/
|
|
45
|
-
export declare const phone: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}[]
|
|
50
|
-
/**
|
|
51
|
-
* 校验密码
|
|
52
|
-
*/
|
|
53
|
-
export declare const password: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}[]
|
|
58
|
-
/**
|
|
59
|
-
* 校验密码
|
|
60
|
-
*/
|
|
61
|
-
export declare const password2: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}[]
|
|
65
|
-
/**
|
|
66
|
-
* 校验账户
|
|
67
|
-
*/
|
|
68
|
-
export declare const account: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}[]
|
|
73
|
-
/**
|
|
74
|
-
* 校验英文字母加数字
|
|
75
|
-
*/
|
|
76
|
-
export declare const wordnum: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}[]
|
|
80
|
-
export declare const wordnum2: {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}[]
|
|
85
|
-
/**
|
|
86
|
-
* 必须是数字且不为空
|
|
87
|
-
*/
|
|
88
|
-
export declare const numberNotNull: (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
*
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
*
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
*
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
*
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
*
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
*
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
*
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
*
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
*
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
*
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
*
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
*/
|
|
255
|
-
declare function validateWordNumber(rule: any, value: any, callback?: any): void
|
|
256
|
-
export {}
|
|
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
|
+
* @param rule
|
|
158
|
+
* @param value
|
|
159
|
+
* @param callback
|
|
160
|
+
*/
|
|
161
|
+
declare function validateZhengZhengShu(rule: any, value: any, callback?: any): void;
|
|
162
|
+
/**
|
|
163
|
+
* 选择
|
|
164
|
+
* @param rule
|
|
165
|
+
* @param value
|
|
166
|
+
* @param callback
|
|
167
|
+
*/
|
|
168
|
+
declare function validateValidateCode(rule: any, value: any, callback?: any): void;
|
|
169
|
+
/**
|
|
170
|
+
* 选择
|
|
171
|
+
* @param rule
|
|
172
|
+
* @param value
|
|
173
|
+
* @param callback
|
|
174
|
+
*/
|
|
175
|
+
declare function validateInputNotNull(rule: any, value: any, callback?: any): void;
|
|
176
|
+
/**
|
|
177
|
+
* 不能全是空格
|
|
178
|
+
* @param rule
|
|
179
|
+
* @param value
|
|
180
|
+
* @param callback
|
|
181
|
+
*/
|
|
182
|
+
declare function validateInputNotAllBlank(rule: any, value: any, callback?: any): void;
|
|
183
|
+
/**
|
|
184
|
+
* 选择
|
|
185
|
+
* @param rule
|
|
186
|
+
* @param value
|
|
187
|
+
* @param callback
|
|
188
|
+
*/
|
|
189
|
+
declare function validateSelect(rule: any, value: any, callback?: any): void;
|
|
190
|
+
/**
|
|
191
|
+
* 上传
|
|
192
|
+
* @param rule
|
|
193
|
+
* @param value
|
|
194
|
+
* @param callback
|
|
195
|
+
*/
|
|
196
|
+
declare function validateUpload(rule: any, value: any, callback?: any): void;
|
|
197
|
+
/**
|
|
198
|
+
* 文本域
|
|
199
|
+
* @param rule
|
|
200
|
+
* @param value
|
|
201
|
+
* @param callback
|
|
202
|
+
*/
|
|
203
|
+
declare function validateTextarea(rule: any, value: any, callback?: any): void;
|
|
204
|
+
/**
|
|
205
|
+
* 小数校验规则
|
|
206
|
+
* @param rule
|
|
207
|
+
* @param value
|
|
208
|
+
* @param callback
|
|
209
|
+
*/
|
|
210
|
+
declare function validateDouble(rule: any, value: any, callback?: any): void;
|
|
211
|
+
/**
|
|
212
|
+
* 校验邮箱
|
|
213
|
+
* @param rule
|
|
214
|
+
* @param value
|
|
215
|
+
* @param callback
|
|
216
|
+
*/
|
|
217
|
+
declare function validateEmail(rule: any, value: any, callback?: any): void;
|
|
218
|
+
/**
|
|
219
|
+
* 校验手机号
|
|
220
|
+
* @param rule
|
|
221
|
+
* @param value
|
|
222
|
+
* @param callback
|
|
223
|
+
*/
|
|
224
|
+
declare function validatePhone(rule: any, value: any, callback?: any): void;
|
|
225
|
+
/**
|
|
226
|
+
* 校验密码
|
|
227
|
+
* @param rule
|
|
228
|
+
* @param value
|
|
229
|
+
* @param callback
|
|
230
|
+
*/
|
|
231
|
+
export declare function validatePassword(rule: any, value: any, callback?: any): void;
|
|
232
|
+
/**
|
|
233
|
+
* 校验密码
|
|
234
|
+
* @param rule
|
|
235
|
+
* @param value
|
|
236
|
+
* @param callback
|
|
237
|
+
*/
|
|
238
|
+
export declare function validatePassword2(rule: any, value: any, callback?: any): void;
|
|
239
|
+
/**
|
|
240
|
+
* 校验账户
|
|
241
|
+
* @param rule
|
|
242
|
+
* @param value
|
|
243
|
+
* @param callback
|
|
244
|
+
*/
|
|
245
|
+
declare function validateAccount(rule: any, value: any, callback?: any): void;
|
|
246
|
+
/**
|
|
247
|
+
* 校验字母和数字组成
|
|
248
|
+
* @param rule
|
|
249
|
+
* @param value
|
|
250
|
+
* @param callback
|
|
251
|
+
*/
|
|
252
|
+
declare function validateWordNumber(rule: any, value: any, callback?: any): void;
|
|
253
|
+
export {};
|