@vtj/ui 0.7.34 → 0.8.0
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 +3889 -1911
- package/dist/index.umd.js +10 -3
- package/dist/style.css +1 -1
- package/package.json +8 -7
- package/types/adapter.d.ts +7 -1
- package/types/components/attachment/Attachment.d.ts +174 -0
- package/types/components/attachment/icons/index.d.ts +13 -0
- package/types/components/attachment/index.d.ts +4 -0
- package/types/components/attachment/props.d.ts +110 -0
- package/types/components/attachment/types.d.ts +23 -0
- package/types/components/attachment/util.d.ts +9 -0
- package/types/components/ckeditor/types.d.ts +2 -1
- package/types/components/index.d.ts +3 -0
- package/types/components/mask/hooks/useMenus.d.ts +2 -21
- package/types/components/qrcode/Qrcode.d.ts +105 -0
- package/types/components/qrcode/index.d.ts +4 -0
- package/types/components/qrcode/types.d.ts +69 -0
- package/types/components/sms-code-input/SmsCodeInput.d.ts +3 -0
- package/types/components/sms-code-input/index.d.ts +4 -0
- package/types/components/sms-code-input/types.d.ts +1 -0
- package/types/version.d.ts +2 -2
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { QRCodeValue } from './types';
|
|
2
|
+
import { DefineComponent, PropType, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
4
|
+
margin: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
scale: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
width: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
};
|
|
15
|
+
color: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
};
|
|
18
|
+
darkColor: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
lightColor: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
quality: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
value: {
|
|
31
|
+
type: PropType<QRCodeValue>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
timeout: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
tip: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
qrcodeRef: Ref<any>;
|
|
44
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
45
|
+
refresh: () => void;
|
|
46
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
47
|
+
margin: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
scale: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
width: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
};
|
|
58
|
+
color: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
};
|
|
61
|
+
darkColor: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
lightColor: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
quality: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
value: {
|
|
74
|
+
type: PropType<QRCodeValue>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
timeout: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
tip: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
}>> & {
|
|
86
|
+
onRefresh?: (() => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
value: QRCodeValue;
|
|
89
|
+
tip: string;
|
|
90
|
+
margin: number;
|
|
91
|
+
scale: number;
|
|
92
|
+
darkColor: string;
|
|
93
|
+
lightColor: string;
|
|
94
|
+
quality: number;
|
|
95
|
+
timeout: number;
|
|
96
|
+
}, {}>, {
|
|
97
|
+
logo?(_: {}): any;
|
|
98
|
+
tip?(_: {}): any;
|
|
99
|
+
}>;
|
|
100
|
+
export default _default;
|
|
101
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { QRCodeToDataURLOptions, QRCodeToDataURLOptionsJpegWebp } from 'qrcode';
|
|
2
|
+
import { ComponentPropsType } from '../shared';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
export type { QRCodeSegment } from 'qrcode';
|
|
6
|
+
export type QRCodeValue = string | (() => Promise<string>);
|
|
7
|
+
export declare const TYPES: readonly ["image/png", "image/jpeg", "image/webp"];
|
|
8
|
+
export type QRCodeProps = Omit<QRCodeToDataURLOptions, 'renderOptions'> & QRCodeToDataURLOptionsJpegWebp['rendererOpts'] & {
|
|
9
|
+
value: QRCodeValue;
|
|
10
|
+
};
|
|
11
|
+
export declare const qrcodeProps: {
|
|
12
|
+
/**
|
|
13
|
+
* 外边距 margin
|
|
14
|
+
*/
|
|
15
|
+
margin: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 规模 scale
|
|
21
|
+
*/
|
|
22
|
+
scale: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 宽度 width
|
|
28
|
+
*/
|
|
29
|
+
width: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
};
|
|
32
|
+
color: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* dark color
|
|
37
|
+
*/
|
|
38
|
+
darkColor: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* dark color
|
|
44
|
+
*/
|
|
45
|
+
lightColor: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
quality: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
value: {
|
|
54
|
+
type: PropType<QRCodeValue>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
timeout: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
tip: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type qrcodeProps = ComponentPropsType<typeof qrcodeProps>;
|
|
67
|
+
export type qrcodeEmits = {
|
|
68
|
+
refresh: [];
|
|
69
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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.7.
|
|
5
|
+
* @version 0.7.34
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.7.
|
|
8
|
+
export declare const version = "0.7.34";
|