@vtj/ui 0.8.72 → 0.8.74
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 +2089 -2006
- package/dist/index.umd.js +12 -12
- package/package.json +3 -3
- package/types/components/import-button/ImportButton.d.ts +45 -0
- package/types/components/import-button/index.d.ts +4 -0
- package/types/components/import-button/props.d.ts +30 -0
- package/types/components/import-button/types.d.ts +10 -0
- package/types/components/index.d.ts +1 -0
- package/types/version.d.ts +2 -2
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.74",
|
|
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.74",
|
|
16
|
+
"@vtj/utils": "~0.8.74"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/qrcode": "^1.5.5",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ImportButtonParserType, ImportButtonParser } from './types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
4
|
+
uploader: {
|
|
5
|
+
type: FunctionConstructor;
|
|
6
|
+
};
|
|
7
|
+
multiple: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
};
|
|
10
|
+
accept: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
parser: {
|
|
14
|
+
type: PropType< ImportButtonParserType | ImportButtonParser>;
|
|
15
|
+
};
|
|
16
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
success: (content: any) => void;
|
|
18
|
+
fail: (e: any) => void;
|
|
19
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
|
+
uploader: {
|
|
21
|
+
type: FunctionConstructor;
|
|
22
|
+
};
|
|
23
|
+
multiple: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
accept: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
parser: {
|
|
30
|
+
type: PropType< ImportButtonParserType | ImportButtonParser>;
|
|
31
|
+
};
|
|
32
|
+
}>> & {
|
|
33
|
+
onSuccess?: ((content: any) => any) | undefined;
|
|
34
|
+
onFail?: ((e: any) => any) | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
multiple: boolean;
|
|
37
|
+
}, {}>, {
|
|
38
|
+
default?(_: {}): any;
|
|
39
|
+
}>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ImportButtonParserType, ImportButtonParser } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const importButtonProps: {
|
|
5
|
+
/**
|
|
6
|
+
* 文件上传函数
|
|
7
|
+
*/
|
|
8
|
+
uploader: {
|
|
9
|
+
type: FunctionConstructor;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 允许上传多个文件
|
|
13
|
+
*/
|
|
14
|
+
multiple: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 接受上传的文件类型
|
|
19
|
+
* 例如:.doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
|
20
|
+
*/
|
|
21
|
+
accept: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 文件解析器
|
|
26
|
+
*/
|
|
27
|
+
parser: {
|
|
28
|
+
type: PropType<ImportButtonParserType | ImportButtonParser>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsType } from '../shared';
|
|
2
|
+
import { importButtonProps } from './props';
|
|
3
|
+
|
|
4
|
+
export type ImportButtonProps = ComponentPropsType<typeof importButtonProps>;
|
|
5
|
+
export type ImportButtonEmits = {
|
|
6
|
+
success: [content: any];
|
|
7
|
+
fail: [e: any];
|
|
8
|
+
};
|
|
9
|
+
export type ImportButtonParserType = 'text' | 'json' | 'base64';
|
|
10
|
+
export type ImportButtonParser = (file: File) => Promise<any>;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/ui
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.73
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.73";
|