@jctrans-materials/comps-vue3 1.0.41-beta.8 → 1.0.41-beta.9
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/JcImg/index.d.ts +69 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +151 -60
- package/package.json +2 -2
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
interface Domains {
|
|
2
|
+
origin?: string;
|
|
3
|
+
thumbnail?: string;
|
|
4
|
+
webp?: string;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
/**
|
|
8
|
+
* 原始图片地址(Origin图片)
|
|
9
|
+
*/
|
|
10
|
+
src: string;
|
|
11
|
+
/**
|
|
12
|
+
* 降级等级
|
|
13
|
+
* 1 origin
|
|
14
|
+
* 2 thumbnail -> origin
|
|
15
|
+
* 3 webp -> thumbnail -> origin
|
|
16
|
+
*/
|
|
17
|
+
level?: 1 | 2 | 3;
|
|
18
|
+
/**
|
|
19
|
+
* 是否启用CDN转换
|
|
20
|
+
*/
|
|
21
|
+
transform?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* CDN域名配置
|
|
24
|
+
*/
|
|
25
|
+
domains?: Domains;
|
|
26
|
+
/**
|
|
27
|
+
* alt
|
|
28
|
+
*/
|
|
29
|
+
alt?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
32
|
+
level: number;
|
|
33
|
+
transform: boolean;
|
|
34
|
+
domains: () => {
|
|
35
|
+
origin: string;
|
|
36
|
+
thumbnail: string;
|
|
37
|
+
webp: string;
|
|
38
|
+
};
|
|
39
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
40
|
+
level: number;
|
|
41
|
+
transform: boolean;
|
|
42
|
+
domains: () => {
|
|
43
|
+
origin: string;
|
|
44
|
+
thumbnail: string;
|
|
45
|
+
webp: string;
|
|
46
|
+
};
|
|
47
|
+
}>>> & Readonly<{}>, {
|
|
48
|
+
transform: boolean;
|
|
49
|
+
level: 1 | 2 | 3;
|
|
50
|
+
domains: Domains;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type __VLS_WithDefaults<P, D> = {
|
|
63
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
|
+
default: D[K];
|
|
65
|
+
}> : P[K];
|
|
66
|
+
};
|
|
67
|
+
type __VLS_Prettify<T> = {
|
|
68
|
+
[K in keyof T]: T[K];
|
|
69
|
+
} & {};
|