@vtj/ui 0.8.94 → 0.8.96
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/index.mjs +7573 -7549
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/types/components/attachment/Attachment.d.ts +11 -2
- package/types/components/attachment/props.d.ts +4 -0
- package/types/components/{image-code-input/ImageCodeInput.d.ts → captcha/Captcha.d.ts} +16 -13
- package/types/components/captcha/index.d.ts +4 -0
- package/types/components/captcha/types.d.ts +20 -0
- package/types/components/dialog-grid/DialogGrid.d.ts +18 -2
- package/types/components/grid/Grid.d.ts +176 -176
- package/types/components/grid/hooks/useLoader.d.ts +176 -176
- package/types/components/grid/hooks/useState.d.ts +176 -176
- package/types/components/index.d.ts +2 -2
- package/types/components/query-form/QueryForm.d.ts +2 -1
- package/types/components/query-form/types.d.ts +2 -1
- package/types/components/tabs/Tabs.d.ts +19 -2
- package/types/components/tabs/types.d.ts +4 -0
- package/types/components/verify/Verify.d.ts +43 -0
- package/types/components/verify/index.d.ts +4 -0
- package/types/components/verify/types.d.ts +18 -0
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useDefineSlots.d.ts +1 -0
- package/types/version.d.ts +2 -2
- package/types/components/image-code-input/index.d.ts +0 -4
- package/types/components/image-code-input/types.d.ts +0 -32
- package/types/components/sms-code-input/SmsCodeInput.d.ts +0 -3
- package/types/components/sms-code-input/index.d.ts +0 -4
- package/types/components/sms-code-input/types.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.96",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=16.0.0"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"sortablejs": "~1.15.2",
|
|
13
13
|
"vxe-table": "~4.6.17",
|
|
14
14
|
"vxe-table-plugin-menus": "~4.0.3",
|
|
15
|
-
"@vtj/icons": "~0.8.
|
|
16
|
-
"@vtj/utils": "~0.8.
|
|
15
|
+
"@vtj/icons": "~0.8.96",
|
|
16
|
+
"@vtj/utils": "~0.8.96"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/qrcode": "^1.5.5",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"qrcode": "~1.5.3",
|
|
22
22
|
"vue": "~3.4.15",
|
|
23
23
|
"vue-router": "~4.4.0",
|
|
24
|
-
"@vtj/cli": "~0.8.
|
|
24
|
+
"@vtj/cli": "~0.8.24"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|
|
@@ -85,6 +85,10 @@ declare const __VLS_component: DefineComponent<{
|
|
|
85
85
|
downloader: {
|
|
86
86
|
type: PropType<(file: AttachmentFile) => void>;
|
|
87
87
|
};
|
|
88
|
+
autoUpload: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
88
92
|
}, {
|
|
89
93
|
elUploadRef: Ref<any>;
|
|
90
94
|
remove: (file: AttachmentFile) => Promise<void>;
|
|
@@ -92,8 +96,8 @@ declare const __VLS_component: DefineComponent<{
|
|
|
92
96
|
selections: Ref<{
|
|
93
97
|
[x: string]: any;
|
|
94
98
|
url: string;
|
|
95
|
-
name?: string;
|
|
96
|
-
type?: AttachmentFileType;
|
|
99
|
+
name?: string | undefined;
|
|
100
|
+
type?: AttachmentFileType | undefined;
|
|
97
101
|
}[]>;
|
|
98
102
|
fileList: Ref<UploadUserFile[]>;
|
|
99
103
|
upload: () => void;
|
|
@@ -184,6 +188,10 @@ declare const __VLS_component: DefineComponent<{
|
|
|
184
188
|
downloader: {
|
|
185
189
|
type: PropType<(file: AttachmentFile) => void>;
|
|
186
190
|
};
|
|
191
|
+
autoUpload: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: boolean;
|
|
194
|
+
};
|
|
187
195
|
}>> & {
|
|
188
196
|
onClick?: ((file: AttachmentFile) => any) | undefined;
|
|
189
197
|
onChange?: ((files: AttachmentFile[]) => any) | undefined;
|
|
@@ -207,6 +215,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
207
215
|
clickable: boolean;
|
|
208
216
|
listType: "card" | "list";
|
|
209
217
|
limitSize: string;
|
|
218
|
+
autoUpload: boolean;
|
|
210
219
|
}, {}>;
|
|
211
220
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
212
221
|
export default _default;
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { MaybePromise } from '..';
|
|
2
3
|
declare const _default: DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
modelValue: PropType<any>;
|
|
5
|
+
src: {
|
|
6
|
+
type: PropType<() => MaybePromise<string>>;
|
|
5
7
|
};
|
|
6
|
-
|
|
7
|
-
type:
|
|
8
|
+
maxlength: {
|
|
9
|
+
type: PropType<number>;
|
|
8
10
|
default: number;
|
|
9
11
|
};
|
|
10
12
|
placeholder: {
|
|
11
|
-
type:
|
|
13
|
+
type: PropType<string>;
|
|
12
14
|
default: string;
|
|
13
15
|
};
|
|
14
16
|
validate: {
|
|
15
|
-
type: PropType<(value: string) =>
|
|
17
|
+
type: PropType<(value: string) => MaybePromise<boolean>>;
|
|
16
18
|
};
|
|
17
19
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
modelValue: PropType<any>;
|
|
21
|
+
src: {
|
|
22
|
+
type: PropType<() => MaybePromise<string>>;
|
|
20
23
|
};
|
|
21
|
-
|
|
22
|
-
type:
|
|
24
|
+
maxlength: {
|
|
25
|
+
type: PropType<number>;
|
|
23
26
|
default: number;
|
|
24
27
|
};
|
|
25
28
|
placeholder: {
|
|
26
|
-
type:
|
|
29
|
+
type: PropType<string>;
|
|
27
30
|
default: string;
|
|
28
31
|
};
|
|
29
32
|
validate: {
|
|
30
|
-
type: PropType<(value: string) =>
|
|
33
|
+
type: PropType<(value: string) => MaybePromise<boolean>>;
|
|
31
34
|
};
|
|
32
35
|
}>>, {
|
|
36
|
+
maxlength: number;
|
|
33
37
|
placeholder: string;
|
|
34
|
-
maxLength: number;
|
|
35
38
|
}, {}>;
|
|
36
39
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MaybePromise } from '../shared';
|
|
2
|
+
|
|
3
|
+
export interface CaptchaProps {
|
|
4
|
+
/**
|
|
5
|
+
* 图片加载函数
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
src?: () => MaybePromise<string>;
|
|
9
|
+
/**
|
|
10
|
+
* 验证码长度
|
|
11
|
+
*/
|
|
12
|
+
maxlength?: number;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 校验函数
|
|
16
|
+
* @param value
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
validate?: (value: string) => MaybePromise<boolean>;
|
|
20
|
+
}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
import { VxeTableConstructor, VxeGridConstructor, VxeTableDataRow } from 'vxe-table';
|
|
1
2
|
import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
3
|
import { GridColumns } from '../grid';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
declare function __VLS_template(): Partial<Record<string, (_: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
$table: VxeTableConstructor<any>;
|
|
7
|
+
$grid: VxeGridConstructor<any> | null | undefined;
|
|
8
|
+
row: any;
|
|
9
|
+
rowIndex: number;
|
|
10
|
+
$rowIndex: number;
|
|
11
|
+
_rowIndex: number;
|
|
12
|
+
column: import("vxe-table/types/table").VxeTableDefines.ColumnInfo<any>;
|
|
13
|
+
columnIndex: number;
|
|
14
|
+
$columnIndex: number;
|
|
15
|
+
_columnIndex: number;
|
|
16
|
+
checked?: boolean;
|
|
17
|
+
indeterminate?: boolean;
|
|
18
|
+
items: any[];
|
|
19
|
+
}) => any>> & {
|
|
5
20
|
buttons?(_: {}): any;
|
|
6
21
|
top?(_: {}): any;
|
|
7
22
|
extra?(_: {}): any;
|
|
@@ -39,6 +54,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
39
54
|
};
|
|
40
55
|
}, {
|
|
41
56
|
$vtjEl: ComputedRef<any>;
|
|
57
|
+
$vtjDynamicSlots: () => any;
|
|
42
58
|
gridRef: Ref<any>;
|
|
43
59
|
dialogRef: Ref<any>;
|
|
44
60
|
addRow: () => void;
|