vue-next-yui 1.1.49 → 1.1.51
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/components/circularProgress/index.d.ts +36 -0
- package/dist/components/circularProgress/index.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -2
- package/dist/components/container/index.d.ts.map +1 -1
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/dropdown/index.d.ts.map +1 -1
- package/dist/components/progress/index.d.ts +35 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/sign/index.d.ts +63 -0
- package/dist/components/sign/index.d.ts.map +1 -0
- package/dist/components/sign/useSignature.d.ts +29 -0
- package/dist/components/sign/useSignature.d.ts.map +1 -0
- package/dist/components/tooltip/props.d.ts +2 -0
- package/dist/components/tooltip/props.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/useContent.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4408 -3909
- package/dist/index.umd.cjs +18 -18
- package/dist/plugins/index.js +96 -96
- package/dist/plugins/index.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
color: string | unknown[];
|
|
8
|
+
size: number;
|
|
9
|
+
type: string;
|
|
10
|
+
info: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
percent: number;
|
|
13
|
+
strokeWidth: number;
|
|
14
|
+
textSize: number;
|
|
15
|
+
$props: {
|
|
16
|
+
readonly color?: string | unknown[];
|
|
17
|
+
readonly size?: number;
|
|
18
|
+
readonly type?: string;
|
|
19
|
+
readonly info?: string;
|
|
20
|
+
readonly textColor?: string;
|
|
21
|
+
readonly percent?: number;
|
|
22
|
+
readonly strokeWidth?: number;
|
|
23
|
+
readonly textSize?: number;
|
|
24
|
+
};
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
26
|
+
type __VLS_TemplateResult = {
|
|
27
|
+
attrs: Partial<{}>;
|
|
28
|
+
slots: {
|
|
29
|
+
default?(_: {
|
|
30
|
+
percent: number;
|
|
31
|
+
}): any;
|
|
32
|
+
};
|
|
33
|
+
refs: {};
|
|
34
|
+
rootEl: HTMLDivElement;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/circularProgress/index.vue"],"names":[],"mappings":"wBAsfqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;;;sPAQG"}
|
|
@@ -5,12 +5,12 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
7
|
reverse: boolean;
|
|
8
|
-
gap: number;
|
|
8
|
+
gap: string | number;
|
|
9
9
|
vertical: boolean;
|
|
10
10
|
center: boolean;
|
|
11
11
|
$props: {
|
|
12
12
|
readonly reverse?: boolean;
|
|
13
|
-
readonly gap?: number;
|
|
13
|
+
readonly gap?: string | number;
|
|
14
14
|
readonly vertical?: boolean;
|
|
15
15
|
readonly center?: boolean;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/container/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/container/index.vue"],"names":[],"mappings":"wBAuGqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;sPAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.js"],"names":[],"mappings":"AA8FA,4DAEC;;AAXD,mDAAwC;;IAGtC,iCAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.vue"],"names":[],"mappings":"wBAkNqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAZjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAkBwilB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAT3plB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDASqilB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAH,GAAG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
color: string;
|
|
8
|
+
type: string;
|
|
9
|
+
percent: number;
|
|
10
|
+
strokeWidth: number;
|
|
11
|
+
showText: boolean;
|
|
12
|
+
inside: boolean;
|
|
13
|
+
$props: {
|
|
14
|
+
readonly color?: string;
|
|
15
|
+
readonly type?: string;
|
|
16
|
+
readonly percent?: number;
|
|
17
|
+
readonly strokeWidth?: number;
|
|
18
|
+
readonly showText?: boolean;
|
|
19
|
+
readonly inside?: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
22
|
+
type __VLS_TemplateResult = {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {
|
|
26
|
+
percent: number;
|
|
27
|
+
}): any;
|
|
28
|
+
default?(_: {
|
|
29
|
+
percent: number;
|
|
30
|
+
}): any;
|
|
31
|
+
};
|
|
32
|
+
refs: {};
|
|
33
|
+
rootEl: HTMLDivElement;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.vue"],"names":[],"mappings":"wBAiLqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;sPAQG"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
clear: () => void;
|
|
8
|
+
undo: () => void;
|
|
9
|
+
isEmpty: () => boolean;
|
|
10
|
+
toDataURL: (type: string, quality: any, trim?: any) => any;
|
|
11
|
+
toBlob: (type: string, quality: any, trim?: any) => Promise<any>;
|
|
12
|
+
toFile: (filename: string, type: string, quality: any, trim?: any) => Promise<File>;
|
|
13
|
+
fromDataURL: (url: any) => void;
|
|
14
|
+
$emit: (event: "start" | "end" | "change" | "clear", ...args: any[]) => void;
|
|
15
|
+
trim: boolean;
|
|
16
|
+
color: string;
|
|
17
|
+
radius: number;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
width: string | number;
|
|
20
|
+
height: string | number;
|
|
21
|
+
border: boolean;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
clearable: boolean;
|
|
25
|
+
readonly: boolean;
|
|
26
|
+
lineWidth: number;
|
|
27
|
+
undoable: boolean;
|
|
28
|
+
$props: {
|
|
29
|
+
readonly trim?: boolean;
|
|
30
|
+
readonly color?: string;
|
|
31
|
+
readonly radius?: number;
|
|
32
|
+
readonly disabled?: boolean;
|
|
33
|
+
readonly width?: string | number;
|
|
34
|
+
readonly height?: string | number;
|
|
35
|
+
readonly border?: boolean;
|
|
36
|
+
readonly placeholder?: string;
|
|
37
|
+
readonly backgroundColor?: string;
|
|
38
|
+
readonly clearable?: boolean;
|
|
39
|
+
readonly readonly?: boolean;
|
|
40
|
+
readonly lineWidth?: number;
|
|
41
|
+
readonly undoable?: boolean;
|
|
42
|
+
};
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
44
|
+
wrapRef: HTMLDivElement;
|
|
45
|
+
canvasRef: HTMLCanvasElement;
|
|
46
|
+
}, HTMLDivElement>;
|
|
47
|
+
type __VLS_TemplateResult = {
|
|
48
|
+
attrs: Partial<{}>;
|
|
49
|
+
slots: {
|
|
50
|
+
tools?(_: {
|
|
51
|
+
clear: () => void;
|
|
52
|
+
undo: () => void;
|
|
53
|
+
empty: boolean;
|
|
54
|
+
canUndo: boolean;
|
|
55
|
+
}): any;
|
|
56
|
+
};
|
|
57
|
+
refs: {
|
|
58
|
+
wrapRef: HTMLDivElement;
|
|
59
|
+
canvasRef: HTMLCanvasElement;
|
|
60
|
+
};
|
|
61
|
+
rootEl: HTMLDivElement;
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sign/index.vue"],"names":[],"mappings":"wBAqRqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAdjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAWG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 手写签名画布引擎
|
|
3
|
+
*
|
|
4
|
+
* 设计要点:
|
|
5
|
+
* 1. 矢量优先:笔画以「CSS 像素点集」保存(strokes),而不是像素快照 —— 撤销、容器尺寸变化后重绘都无损。
|
|
6
|
+
* 点坐标与 DPR 解耦,重绘时统一 setTransform(dpr, ...) 映射到设备像素。
|
|
7
|
+
* 2. 位图兼容:外部经 v-model 传入的签名图作为「底图」(loadedImage) 独立存放,不占用撤销栈。
|
|
8
|
+
* 3. 重绘策略:落笔期间每帧整幅重绘(rAF 合帧)。签名点数量级很小,整幅重绘能保证增量与全量像素
|
|
9
|
+
* 完全一致,避免"先画折线、后续补齐曲线"留下的残影;相比双画布分层更简单。
|
|
10
|
+
*/
|
|
11
|
+
export function useSignature(props: any, emit: any, modelValue: any): {
|
|
12
|
+
canvasRef: import('vue').Ref<any, any>;
|
|
13
|
+
wrapRef: import('vue').Ref<any, any>;
|
|
14
|
+
empty: import('vue').Ref<boolean, boolean>;
|
|
15
|
+
canUndo: import('vue').Ref<boolean, boolean>;
|
|
16
|
+
drawing: import('vue').Ref<boolean, boolean>;
|
|
17
|
+
onPointerDown: (event: any) => void;
|
|
18
|
+
onPointerMove: (event: any) => void;
|
|
19
|
+
onPointerUp: (event: any) => void;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
undo: () => void;
|
|
22
|
+
isEmpty: () => boolean;
|
|
23
|
+
toDataURL: (type: string, quality: any, trim?: any) => any;
|
|
24
|
+
toBlob: (type: string, quality: any, trim?: any) => Promise<any>;
|
|
25
|
+
toFile: (filename: string, type: string, quality: any, trim?: any) => Promise<File>;
|
|
26
|
+
fromDataURL: (url: any) => void;
|
|
27
|
+
setupCanvas: () => void;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useSignature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignature.d.ts","sourceRoot":"","sources":["../../../src/components/sign/useSignature.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH;;;;;;;;;;;;;;;;;EAgWC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/props.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/props.js"],"names":[],"mappings":"AAAA,kCAKC;AAEM,oDAAqF;;;;;;QAM7E,+CAAsE;;;;;QAE5C,0BAAU;;;;;;;;;;QAOpC,iDAAsE;;;;;;;;;QAKtE,iDAAqC;;;;;;;;;QAEF,8BAAU;;;;;;;;;;;;;;;;;;;;;;;;QAInB,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOD,+BAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.vue"],"names":[],"mappings":"AAaA;
|
|
1
|
+
{"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.vue"],"names":[],"mappings":"AAaA;wBA+bqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAZjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2OASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContent.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/useContent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useContent.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/useContent.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;EAoUC"}
|