@kengic/uni 0.3.2-beta.3
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 +1 -0
- package/dist/index.css +1 -0
- package/dist/kengic-uni.js +1374 -0
- package/dist/src/components/index.d.ts +5 -0
- package/dist/src/components/uni-ui/uni-badge/uni-badge.vue.d.ts +108 -0
- package/dist/src/components/uni-ui/uni-breadcrumb/uni-breadcrumb.vue.d.ts +23 -0
- package/dist/src/components/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue.d.ts +30 -0
- package/dist/src/components/uni-ui/uni-calendar/calendar.d.ts +67 -0
- package/dist/src/components/uni-ui/uni-calendar/i18n/index.d.ts +39 -0
- package/dist/src/components/uni-ui/uni-calendar/uni-calendar-item.vue.d.ts +47 -0
- package/dist/src/components/uni-ui/uni-calendar/uni-calendar.vue.d.ts +166 -0
- package/dist/src/components/uni-ui/uni-calendar/util.d.ts +211 -0
- package/dist/src/components/uni-ui/uni-card/uni-card.vue.d.ts +117 -0
- package/dist/src/components/uni-ui/uni-col/uni-col.vue.d.ts +70 -0
- package/dist/src/components/uni-ui/uni-collapse/uni-collapse.vue.d.ts +45 -0
- package/dist/src/components/uni-ui/uni-collapse-item/uni-collapse-item.vue.d.ts +102 -0
- package/dist/src/components/uni-ui/uni-combox/uni-combox.vue.d.ts +95 -0
- package/dist/src/components/uni-ui/uni-countdown/i18n/index.d.ts +21 -0
- package/dist/src/components/uni-ui/uni-countdown/uni-countdown.vue.d.ts +158 -0
- package/dist/src/components/uni-ui/uni-data-checkbox/uni-data-checkbox.vue.d.ts +192 -0
- package/dist/src/components/uni-ui/uni-data-picker/uni-data-picker.vue.d.ts +267 -0
- package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-picker.d.ts +221 -0
- package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-pickerview.vue.d.ts +169 -0
- package/dist/src/components/uni-ui/uni-data-select/uni-data-select.vue.d.ts +125 -0
- package/dist/src/components/uni-ui/uni-dateformat/date-format.d.ts +6 -0
- package/dist/src/components/uni-ui/uni-dateformat/uni-dateformat.vue.d.ts +57 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/calendar-item.vue.d.ts +44 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/calendar.vue.d.ts +253 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/i18n/index.d.ts +69 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/time-picker.vue.d.ts +225 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/uni-datetime-picker.vue.d.ts +236 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/util.d.ts +171 -0
- package/dist/src/components/uni-ui/uni-drawer/keypress.d.ts +14 -0
- package/dist/src/components/uni-ui/uni-drawer/uni-drawer.vue.d.ts +78 -0
- package/dist/src/components/uni-ui/uni-easyinput/uni-easyinput.vue.d.ts +269 -0
- package/dist/src/components/uni-ui/uni-fab/uni-fab.vue.d.ts +109 -0
- package/dist/src/components/uni-ui/uni-fav/i18n/index.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-fav/uni-fav.vue.d.ts +99 -0
- package/dist/src/components/uni-ui/uni-file-picker/choose-and-upload-file.d.ts +4 -0
- package/dist/src/components/uni-ui/uni-file-picker/uni-file-picker.vue.d.ts +254 -0
- package/dist/src/components/uni-ui/uni-file-picker/upload-file.vue.d.ts +81 -0
- package/dist/src/components/uni-ui/uni-file-picker/upload-image.vue.d.ts +90 -0
- package/dist/src/components/uni-ui/uni-file-picker/utils.d.ts +22 -0
- package/dist/src/components/uni-ui/uni-forms/uni-forms.vue.d.ts +160 -0
- package/dist/src/components/uni-ui/uni-forms/utils.d.ts +20 -0
- package/dist/src/components/uni-ui/uni-forms/validate.d.ts +42 -0
- package/dist/src/components/uni-ui/uni-forms-item/uni-forms-item.vue.d.ts +127 -0
- package/dist/src/components/uni-ui/uni-goods-nav/i18n/index.d.ts +21 -0
- package/dist/src/components/uni-ui/uni-goods-nav/uni-goods-nav.vue.d.ts +61 -0
- package/dist/src/components/uni-ui/uni-grid/uni-grid.vue.d.ts +59 -0
- package/dist/src/components/uni-ui/uni-grid-item/uni-grid-item.vue.d.ts +26 -0
- package/dist/src/components/uni-ui/uni-group/uni-group.vue.d.ts +52 -0
- package/dist/src/components/uni-ui/uni-icons/icons.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-icons/uni-icons.vue.d.ts +56 -0
- package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list-item.vue.d.ts +45 -0
- package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list.vue.d.ts +49 -0
- package/dist/src/components/uni-ui/uni-link/uni-link.vue.d.ts +75 -0
- package/dist/src/components/uni-ui/uni-list/uni-list.vue.d.ts +53 -0
- package/dist/src/components/uni-ui/uni-list/uni-refresh.vue.d.ts +22 -0
- package/dist/src/components/uni-ui/uni-list-ad/uni-list-ad.vue.d.ts +25 -0
- package/dist/src/components/uni-ui/uni-list-chat/uni-list-chat.vue.d.ts +123 -0
- package/dist/src/components/uni-ui/uni-list-item/uni-list-item.vue.d.ts +248 -0
- package/dist/src/components/uni-ui/uni-load-more/i18n/index.d.ts +18 -0
- package/dist/src/components/uni-ui/uni-load-more/uni-load-more.vue.d.ts +89 -0
- package/dist/src/components/uni-ui/uni-nav-bar/uni-nav-bar.vue.d.ts +163 -0
- package/dist/src/components/uni-ui/uni-nav-bar/uni-status-bar.vue.d.ts +4 -0
- package/dist/src/components/uni-ui/uni-notice-bar/uni-notice-bar.vue.d.ts +138 -0
- package/dist/src/components/uni-ui/uni-number-box/uni-number-box.vue.d.ts +90 -0
- package/dist/src/components/uni-ui/uni-pagination/i18n/index.d.ts +28 -0
- package/dist/src/components/uni-ui/uni-pagination/uni-pagination.vue.d.ts +127 -0
- package/dist/src/components/uni-ui/uni-popup/i18n/index.d.ts +24 -0
- package/dist/src/components/uni-ui/uni-popup/keypress.d.ts +14 -0
- package/dist/src/components/uni-ui/uni-popup/popup.d.ts +17 -0
- package/dist/src/components/uni-ui/uni-popup/uni-popup.vue.d.ts +136 -0
- package/dist/src/components/uni-ui/uni-popup-dialog/uni-popup-dialog.vue.d.ts +123 -0
- package/dist/src/components/uni-ui/uni-popup-message/uni-popup-message.vue.d.ts +67 -0
- package/dist/src/components/uni-ui/uni-popup-share/uni-popup-share.vue.d.ts +49 -0
- package/dist/src/components/uni-ui/uni-rate/uni-rate.vue.d.ts +154 -0
- package/dist/src/components/uni-ui/uni-row/uni-row.vue.d.ts +41 -0
- package/dist/src/components/uni-ui/uni-search-bar/i18n/index.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-search-bar/uni-search-bar.vue.d.ts +126 -0
- package/dist/src/components/uni-ui/uni-section/uni-section.vue.d.ts +85 -0
- package/dist/src/components/uni-ui/uni-segmented-control/uni-segmented-control.vue.d.ts +47 -0
- package/dist/src/components/uni-ui/uni-steps/uni-steps.vue.d.ts +59 -0
- package/dist/src/components/uni-ui/uni-swipe-action/uni-swipe-action.vue.d.ts +6 -0
- package/dist/src/components/uni-ui/uni-swiper-dot/uni-swiper-dot.vue.d.ts +65 -0
- package/dist/src/components/uni-ui/uni-table/uni-table.vue.d.ts +99 -0
- package/dist/src/components/uni-ui/uni-tag/uni-tag.vue.d.ts +84 -0
- package/dist/src/components/uni-ui/uni-tbody/uni-tbody.vue.d.ts +2 -0
- package/dist/src/components/uni-ui/uni-td/uni-td.vue.d.ts +48 -0
- package/dist/src/components/uni-ui/uni-th/filter-dropdown.vue.d.ts +99 -0
- package/dist/src/components/uni-ui/uni-th/uni-th.vue.d.ts +97 -0
- package/dist/src/components/uni-ui/uni-thead/uni-thead.vue.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-title/uni-title.vue.d.ts +54 -0
- package/dist/src/components/uni-ui/uni-tooltip/uni-tooltip.vue.d.ts +23 -0
- package/dist/src/components/uni-ui/uni-tr/table-checkbox.vue.d.ts +58 -0
- package/dist/src/components/uni-ui/uni-tr/uni-tr.vue.d.ts +39 -0
- package/dist/src/components/uni-ui/uni-transition/createAnimation.d.ts +16 -0
- package/dist/src/components/uni-ui/uni-transition/uni-transition.vue.d.ts +240 -0
- package/dist/src/consts/i18n/en.d.ts +45 -0
- package/dist/src/consts/i18n/index.d.ts +90 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +45 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/helpers/tsx.helper.d.ts +13 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/kg.util.d.ts +5 -0
- package/package.json +79 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: (ArrayConstructor | ObjectConstructor)[];
|
|
4
|
+
default(): never[];
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: (ArrayConstructor | ObjectConstructor)[];
|
|
8
|
+
default(): never[];
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
disablePreview: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
delIcon: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
autoUpload: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
limit: {
|
|
27
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
mode: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
fileMediatype: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
fileExtname: {
|
|
39
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
40
|
+
default(): never[];
|
|
41
|
+
};
|
|
42
|
+
title: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
listStyles: {
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
default(): {
|
|
49
|
+
border: boolean;
|
|
50
|
+
dividline: boolean;
|
|
51
|
+
borderStyle: {};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
imageStyles: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
default(): {
|
|
57
|
+
width: string;
|
|
58
|
+
height: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
returnType: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
sizeType: {
|
|
70
|
+
type: ArrayConstructor;
|
|
71
|
+
default(): string[];
|
|
72
|
+
};
|
|
73
|
+
sourceType: {
|
|
74
|
+
type: ArrayConstructor;
|
|
75
|
+
default(): string[];
|
|
76
|
+
};
|
|
77
|
+
}, any, {
|
|
78
|
+
files: never[];
|
|
79
|
+
localValue: never[];
|
|
80
|
+
}, {
|
|
81
|
+
filesList(): any[];
|
|
82
|
+
showType(): string;
|
|
83
|
+
limitLength(): string | number;
|
|
84
|
+
}, {
|
|
85
|
+
/**
|
|
86
|
+
* 公开用户使用,清空文件
|
|
87
|
+
* @param {Object} index
|
|
88
|
+
*/
|
|
89
|
+
clearFiles(index: Object): void;
|
|
90
|
+
/**
|
|
91
|
+
* 公开用户使用,继续上传
|
|
92
|
+
*/
|
|
93
|
+
upload(): Promise<any>;
|
|
94
|
+
setValue(newVal: any, oldVal: any): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* 选择文件
|
|
97
|
+
*/
|
|
98
|
+
choose(): void;
|
|
99
|
+
/**
|
|
100
|
+
* 选择文件并上传
|
|
101
|
+
*/
|
|
102
|
+
chooseFiles(): void;
|
|
103
|
+
/**
|
|
104
|
+
* 选择文件回调
|
|
105
|
+
* @param {Object} res
|
|
106
|
+
*/
|
|
107
|
+
chooseFileCallback(res: Object): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* 批传
|
|
110
|
+
* @param {Object} e
|
|
111
|
+
*/
|
|
112
|
+
uploadFiles(files: any): Promise<any>;
|
|
113
|
+
/**
|
|
114
|
+
* 成功或失败
|
|
115
|
+
*/
|
|
116
|
+
setSuccessAndError(res: any, fn: any): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* 获取进度
|
|
119
|
+
* @param {Object} progressEvent
|
|
120
|
+
* @param {Object} index
|
|
121
|
+
* @param {Object} type
|
|
122
|
+
*/
|
|
123
|
+
setProgress(progressEvent: Object, index: Object, type: Object): void;
|
|
124
|
+
/**
|
|
125
|
+
* 删除文件
|
|
126
|
+
* @param {Object} index
|
|
127
|
+
*/
|
|
128
|
+
delFile(index: Object): void;
|
|
129
|
+
/**
|
|
130
|
+
* 获取文件名和后缀
|
|
131
|
+
* @param {Object} name
|
|
132
|
+
*/
|
|
133
|
+
getFileExt(name: Object): {
|
|
134
|
+
name: any;
|
|
135
|
+
ext: any;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* 处理返回事件
|
|
139
|
+
*/
|
|
140
|
+
setEmit(): void;
|
|
141
|
+
/**
|
|
142
|
+
* 处理返回参数
|
|
143
|
+
* @param {Object} files
|
|
144
|
+
*/
|
|
145
|
+
backObject(files: Object): any[];
|
|
146
|
+
getTempFileURL(fileList: any): Promise<any>;
|
|
147
|
+
/**
|
|
148
|
+
* 获取父元素实例
|
|
149
|
+
*/
|
|
150
|
+
getForm(name?: string): false | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
151
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "progress" | "select" | "success" | "fail" | "delete")[], "input" | "progress" | "select" | "update:modelValue" | "success" | "fail" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
152
|
+
modelValue: {
|
|
153
|
+
type: (ArrayConstructor | ObjectConstructor)[];
|
|
154
|
+
default(): never[];
|
|
155
|
+
};
|
|
156
|
+
value: {
|
|
157
|
+
type: (ArrayConstructor | ObjectConstructor)[];
|
|
158
|
+
default(): never[];
|
|
159
|
+
};
|
|
160
|
+
disabled: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
disablePreview: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
delIcon: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
autoUpload: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
limit: {
|
|
177
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
178
|
+
default: number;
|
|
179
|
+
};
|
|
180
|
+
mode: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
fileMediatype: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
188
|
+
fileExtname: {
|
|
189
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
190
|
+
default(): never[];
|
|
191
|
+
};
|
|
192
|
+
title: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
listStyles: {
|
|
197
|
+
type: ObjectConstructor;
|
|
198
|
+
default(): {
|
|
199
|
+
border: boolean;
|
|
200
|
+
dividline: boolean;
|
|
201
|
+
borderStyle: {};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
imageStyles: {
|
|
205
|
+
type: ObjectConstructor;
|
|
206
|
+
default(): {
|
|
207
|
+
width: string;
|
|
208
|
+
height: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
returnType: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
sizeType: {
|
|
220
|
+
type: ArrayConstructor;
|
|
221
|
+
default(): string[];
|
|
222
|
+
};
|
|
223
|
+
sourceType: {
|
|
224
|
+
type: ArrayConstructor;
|
|
225
|
+
default(): string[];
|
|
226
|
+
};
|
|
227
|
+
}>> & {
|
|
228
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
229
|
+
onProgress?: ((...args: any[]) => any) | undefined;
|
|
230
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
231
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
232
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
233
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
234
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
|
235
|
+
}, {
|
|
236
|
+
value: unknown[] | Record<string, any>;
|
|
237
|
+
title: string;
|
|
238
|
+
mode: string;
|
|
239
|
+
modelValue: unknown[] | Record<string, any>;
|
|
240
|
+
disabled: boolean;
|
|
241
|
+
readonly: boolean;
|
|
242
|
+
returnType: string;
|
|
243
|
+
sizeType: unknown[];
|
|
244
|
+
sourceType: unknown[];
|
|
245
|
+
disablePreview: boolean;
|
|
246
|
+
limit: string | number;
|
|
247
|
+
imageStyles: Record<string, any>;
|
|
248
|
+
delIcon: boolean;
|
|
249
|
+
listStyles: Record<string, any>;
|
|
250
|
+
autoUpload: boolean;
|
|
251
|
+
fileMediatype: string;
|
|
252
|
+
fileExtname: string | unknown[];
|
|
253
|
+
}>;
|
|
254
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
filesList: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default(): never[];
|
|
5
|
+
};
|
|
6
|
+
delIcon: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
limit: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
showType: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
listStyles: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default(): {
|
|
21
|
+
border: boolean;
|
|
22
|
+
dividline: boolean;
|
|
23
|
+
borderStyle: {};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}, any, any, {
|
|
31
|
+
list(): any[];
|
|
32
|
+
styles(): any;
|
|
33
|
+
borderStyle(): string;
|
|
34
|
+
borderLineStyle(): string;
|
|
35
|
+
}, {
|
|
36
|
+
uploadFiles(item: any, index: any): void;
|
|
37
|
+
choose(): void;
|
|
38
|
+
delFile(index: any): void;
|
|
39
|
+
value2px(value: any): any;
|
|
40
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("uploadFiles" | "choose" | "delFile")[], "uploadFiles" | "choose" | "delFile", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
filesList: {
|
|
42
|
+
type: ArrayConstructor;
|
|
43
|
+
default(): never[];
|
|
44
|
+
};
|
|
45
|
+
delIcon: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
limit: {
|
|
50
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
showType: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
listStyles: {
|
|
58
|
+
type: ObjectConstructor;
|
|
59
|
+
default(): {
|
|
60
|
+
border: boolean;
|
|
61
|
+
dividline: boolean;
|
|
62
|
+
borderStyle: {};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>> & {
|
|
70
|
+
onUploadFiles?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onChoose?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onDelFile?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
readonly: boolean;
|
|
75
|
+
filesList: unknown[];
|
|
76
|
+
limit: string | number;
|
|
77
|
+
delIcon: boolean;
|
|
78
|
+
showType: string;
|
|
79
|
+
listStyles: Record<string, any>;
|
|
80
|
+
}>;
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
filesList: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default(): never[];
|
|
5
|
+
};
|
|
6
|
+
disabled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
disablePreview: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
limit: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
imageStyles: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default(): {
|
|
21
|
+
width: string;
|
|
22
|
+
height: string;
|
|
23
|
+
border: {};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
delIcon: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
readonly: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}, any, any, {
|
|
35
|
+
styles(): any;
|
|
36
|
+
boxStyle(): string;
|
|
37
|
+
borderStyle(): string;
|
|
38
|
+
}, {
|
|
39
|
+
uploadFiles(item: any, index: any): void;
|
|
40
|
+
choose(): void;
|
|
41
|
+
delFile(index: any): void;
|
|
42
|
+
prviewImage(img: any, index: any): void;
|
|
43
|
+
value2px(value: any): any;
|
|
44
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("uploadFiles" | "choose" | "delFile")[], "uploadFiles" | "choose" | "delFile", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
filesList: {
|
|
46
|
+
type: ArrayConstructor;
|
|
47
|
+
default(): never[];
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
disablePreview: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
limit: {
|
|
58
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
imageStyles: {
|
|
62
|
+
type: ObjectConstructor;
|
|
63
|
+
default(): {
|
|
64
|
+
width: string;
|
|
65
|
+
height: string;
|
|
66
|
+
border: {};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
delIcon: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
readonly: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
}>> & {
|
|
78
|
+
onUploadFiles?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onChoose?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onDelFile?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
readonly: boolean;
|
|
84
|
+
filesList: unknown[];
|
|
85
|
+
disablePreview: boolean;
|
|
86
|
+
limit: string | number;
|
|
87
|
+
imageStyles: Record<string, any>;
|
|
88
|
+
delIcon: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function get_file_ext(name: string): {
|
|
2
|
+
name: string;
|
|
3
|
+
ext: string;
|
|
4
|
+
};
|
|
5
|
+
export function get_extname(fileExtname: any[]): any;
|
|
6
|
+
export function get_files_and_is_max(res: any, _extname: any): {
|
|
7
|
+
filePaths: any[];
|
|
8
|
+
files: any[];
|
|
9
|
+
};
|
|
10
|
+
export function get_file_info(filepath: Object): Promise<any>;
|
|
11
|
+
export function get_file_data(files: any, type?: string): Promise<{
|
|
12
|
+
name: any;
|
|
13
|
+
uuid: any;
|
|
14
|
+
extname: string;
|
|
15
|
+
cloudPath: any;
|
|
16
|
+
fileType: any;
|
|
17
|
+
url: any;
|
|
18
|
+
size: any;
|
|
19
|
+
image: {};
|
|
20
|
+
path: any;
|
|
21
|
+
video: {};
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
declare const _default: Vue.DefineComponent<{
|
|
2
|
+
value: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default(): null;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default(): null;
|
|
9
|
+
};
|
|
10
|
+
model: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default(): null;
|
|
13
|
+
};
|
|
14
|
+
rules: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default(): {};
|
|
17
|
+
};
|
|
18
|
+
errShowType: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
validateTrigger: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
labelPosition: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
labelWidth: {
|
|
31
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
labelAlign: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
border: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
}, any, {
|
|
43
|
+
formData: {};
|
|
44
|
+
formRules: {};
|
|
45
|
+
}, {
|
|
46
|
+
localData(): Object;
|
|
47
|
+
}, {
|
|
48
|
+
/**
|
|
49
|
+
* 外部调用方法
|
|
50
|
+
* 设置规则 ,主要用于小程序自定义检验规则
|
|
51
|
+
* @param {Array} rules 规则源数据
|
|
52
|
+
*/
|
|
53
|
+
setRules(rules: any[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* 外部调用方法
|
|
56
|
+
* 设置数据,用于设置表单数据,公开给用户使用 , 不支持在动态表单中使用
|
|
57
|
+
* @param {Object} key
|
|
58
|
+
* @param {Object} value
|
|
59
|
+
*/
|
|
60
|
+
setValue(key: Object, value: Object): any;
|
|
61
|
+
/**
|
|
62
|
+
* 外部调用方法
|
|
63
|
+
* 手动提交校验表单
|
|
64
|
+
* 对整个表单进行校验的方法,参数为一个回调函数。
|
|
65
|
+
* @param {Array} keepitem 保留不参与校验的字段
|
|
66
|
+
* @param {type} callback 方法回调
|
|
67
|
+
*/
|
|
68
|
+
validate(keepitem: any[], callback: type): Promise<any>;
|
|
69
|
+
/**
|
|
70
|
+
* 外部调用方法
|
|
71
|
+
* 部分表单校验
|
|
72
|
+
* @param {Array|String} props 需要校验的字段
|
|
73
|
+
* @param {Function} 回调函数
|
|
74
|
+
*/
|
|
75
|
+
validateField(props: string | any[] | undefined, callback: any): Promise<any>;
|
|
76
|
+
/**
|
|
77
|
+
* 外部调用方法
|
|
78
|
+
* 移除表单项的校验结果。传入待移除的表单项的 prop 属性或者 prop 组成的数组,如不传则移除整个表单的校验结果
|
|
79
|
+
* @param {Array|String} props 需要移除校验的字段 ,不填为所有
|
|
80
|
+
*/
|
|
81
|
+
clearValidate(props?: any[] | string): void;
|
|
82
|
+
/**
|
|
83
|
+
* 外部调用方法 ,即将废弃
|
|
84
|
+
* 手动提交校验表单
|
|
85
|
+
* 对整个表单进行校验的方法,参数为一个回调函数。
|
|
86
|
+
* @param {Array} keepitem 保留不参与校验的字段
|
|
87
|
+
* @param {type} callback 方法回调
|
|
88
|
+
*/
|
|
89
|
+
submit(keepitem: any[], callback: any, type: any): Promise<any>;
|
|
90
|
+
checkAll(invalidFields: any, keepitem: any, callback: any, type: any): Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* 返回validate事件
|
|
93
|
+
* @param {Object} result
|
|
94
|
+
*/
|
|
95
|
+
validateCheck(result: Object): void;
|
|
96
|
+
_getValue: (key: string, value: any, rules: Object) => any;
|
|
97
|
+
_isRequiredField: (rules: Object) => boolean;
|
|
98
|
+
_setDataValue: (field: any, formdata: any, value: any) => any;
|
|
99
|
+
_getDataValue: (field: string | any[], data: Object) => any;
|
|
100
|
+
_realName: (name: string | any[], data?: {}) => string;
|
|
101
|
+
_isRealName: (name: string | any[]) => string;
|
|
102
|
+
_isEqual: (a: any, b: any) => boolean;
|
|
103
|
+
}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, ("submit" | "validate")[], "submit" | "validate", Vue.VNodeProps & Vue.AllowedComponentProps & Vue.ComponentCustomProps, Readonly<Vue.ExtractPropTypes<{
|
|
104
|
+
value: {
|
|
105
|
+
type: ObjectConstructor;
|
|
106
|
+
default(): null;
|
|
107
|
+
};
|
|
108
|
+
modelValue: {
|
|
109
|
+
type: ObjectConstructor;
|
|
110
|
+
default(): null;
|
|
111
|
+
};
|
|
112
|
+
model: {
|
|
113
|
+
type: ObjectConstructor;
|
|
114
|
+
default(): null;
|
|
115
|
+
};
|
|
116
|
+
rules: {
|
|
117
|
+
type: ObjectConstructor;
|
|
118
|
+
default(): {};
|
|
119
|
+
};
|
|
120
|
+
errShowType: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
validateTrigger: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
labelPosition: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
labelWidth: {
|
|
133
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
labelAlign: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
border: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
}>> & {
|
|
145
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
onValidate?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
value: Record<string, any>;
|
|
149
|
+
border: boolean;
|
|
150
|
+
modelValue: Record<string, any>;
|
|
151
|
+
labelWidth: string | number;
|
|
152
|
+
model: Record<string, any>;
|
|
153
|
+
validateTrigger: string;
|
|
154
|
+
rules: Record<string, any>;
|
|
155
|
+
errShowType: string;
|
|
156
|
+
labelPosition: string;
|
|
157
|
+
labelAlign: string;
|
|
158
|
+
}>;
|
|
159
|
+
export default _default;
|
|
160
|
+
import Vue from "vue";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function deepCopy(val: any): Object;
|
|
2
|
+
export function typeFilter(format: string): boolean;
|
|
3
|
+
export function getValue(key: string, value: any, rules: Object): any;
|
|
4
|
+
export function setDataValue(field: any, formdata: any, value: any): any;
|
|
5
|
+
export function getDataValue(field: string | any[], data: Object): any;
|
|
6
|
+
export function getDataValueType(field: string | any[], data: any): {
|
|
7
|
+
type: any;
|
|
8
|
+
value: any;
|
|
9
|
+
};
|
|
10
|
+
export function realName(name: string | any[], data?: {}): string;
|
|
11
|
+
export function isRealName(name: string | any[]): string;
|
|
12
|
+
export function rawData(object: {} | undefined, name: any): Object | any[];
|
|
13
|
+
export function name2arr(name: any): any;
|
|
14
|
+
export function objSet(object: Object | any[], path: string | any[], value: string): Object;
|
|
15
|
+
export function objGet(object: Object | any[], path: string | any[], defaultVal?: string): any;
|
|
16
|
+
export function isNumber(num: any): boolean;
|
|
17
|
+
export function isBoolean(bool: any): boolean;
|
|
18
|
+
export function isRequiredField(rules: Object): boolean;
|
|
19
|
+
export function type(obj: Any): any;
|
|
20
|
+
export function isEqual(a: any, b: any): boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default SchemaValidator;
|
|
2
|
+
declare class SchemaValidator extends RuleValidator {
|
|
3
|
+
constructor(schema: any, options: any);
|
|
4
|
+
_schema: any;
|
|
5
|
+
_options: any;
|
|
6
|
+
updateSchema(schema: any): void;
|
|
7
|
+
validate(data: any, allData: any): Promise<string | {
|
|
8
|
+
key: string;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
} | null>;
|
|
11
|
+
validateAll(data: any, allData: any): Promise<string | {
|
|
12
|
+
key: string;
|
|
13
|
+
errorMessage: string;
|
|
14
|
+
}[]>;
|
|
15
|
+
validateUpdate(data: any, allData: any): Promise<string | {
|
|
16
|
+
key: string;
|
|
17
|
+
errorMessage: string;
|
|
18
|
+
} | null>;
|
|
19
|
+
invokeValidate(data: any, all: any, allData: any): Promise<{
|
|
20
|
+
key: string;
|
|
21
|
+
errorMessage: any;
|
|
22
|
+
}[]>;
|
|
23
|
+
invokeValidateUpdate(data: any, all: any, allData: any): Promise<{
|
|
24
|
+
key: string;
|
|
25
|
+
errorMessage: any;
|
|
26
|
+
}[]>;
|
|
27
|
+
_checkFieldInSchema(data: any): "" | {
|
|
28
|
+
key: string;
|
|
29
|
+
errorMessage: string;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
declare namespace SchemaValidator {
|
|
33
|
+
const message: any;
|
|
34
|
+
}
|
|
35
|
+
declare class RuleValidator {
|
|
36
|
+
constructor(message: any);
|
|
37
|
+
_message: any;
|
|
38
|
+
validateRule(fieldKey: any, fieldValue: any, value: any, data: any, allData: any): Promise<any>;
|
|
39
|
+
validateFunction(rule: any, value: any, data: any, allData: any, vt: any): Promise<string | null>;
|
|
40
|
+
_getMessage(rule: any, message: any, vt: any): string;
|
|
41
|
+
_getValidateType(rule: any): string;
|
|
42
|
+
}
|