delta-comic-core 0.0.4 → 0.0.5
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/bundle.css +1 -1
- package/dist/bundle.js +117 -105
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +2 -2
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/components/image.vue.d.ts +3 -3
- package/dist/index.d.ts +9 -9
- package/dist/pack.tgz +0 -0
- package/dist/utils/data.d.ts +11 -2
- package/package.json +2 -2
|
@@ -403,8 +403,8 @@ declare function __VLS_template(): {
|
|
|
403
403
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
404
404
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
405
405
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
406
|
-
imageEl: HTMLImageElement | null | undefined
|
|
407
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
406
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
407
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
408
408
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
409
409
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
410
410
|
showToolbar: {
|
|
@@ -769,7 +769,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
769
769
|
showToolbar: boolean;
|
|
770
770
|
showToolbarTooltip: boolean;
|
|
771
771
|
previewDisabled: boolean;
|
|
772
|
-
}> | null
|
|
772
|
+
}> | null>>;
|
|
773
773
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
774
774
|
load: (...args: any[]) => any;
|
|
775
775
|
click: () => any;
|
package/dist/index.d.ts
CHANGED
|
@@ -191,8 +191,8 @@ export declare const Comp: {
|
|
|
191
191
|
onError?: (() => any) | undefined;
|
|
192
192
|
}>, {
|
|
193
193
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
194
|
-
imageEl: HTMLImageElement | null | undefined
|
|
195
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
194
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
195
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
196
196
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
197
197
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
198
198
|
showToolbar: {
|
|
@@ -557,7 +557,7 @@ export declare const Comp: {
|
|
|
557
557
|
showToolbar: boolean;
|
|
558
558
|
showToolbarTooltip: boolean;
|
|
559
559
|
previewDisabled: boolean;
|
|
560
|
-
}> | null
|
|
560
|
+
}> | null>>;
|
|
561
561
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
562
562
|
load: (...args: any[]) => any;
|
|
563
563
|
click: () => any;
|
|
@@ -964,8 +964,8 @@ export declare const Comp: {
|
|
|
964
964
|
onError?: (() => any) | undefined;
|
|
965
965
|
}>, {
|
|
966
966
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
967
|
-
imageEl: HTMLImageElement | null | undefined
|
|
968
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
967
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
968
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
969
969
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
970
970
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
971
971
|
showToolbar: {
|
|
@@ -1330,7 +1330,7 @@ export declare const Comp: {
|
|
|
1330
1330
|
showToolbar: boolean;
|
|
1331
1331
|
showToolbarTooltip: boolean;
|
|
1332
1332
|
previewDisabled: boolean;
|
|
1333
|
-
}> | null
|
|
1333
|
+
}> | null>>;
|
|
1334
1334
|
}, {}, {}, {}, {
|
|
1335
1335
|
retryMax: number;
|
|
1336
1336
|
fetchpriority: "high" | "low" | "auto";
|
|
@@ -1363,8 +1363,8 @@ export declare const Comp: {
|
|
|
1363
1363
|
onError?: (() => any) | undefined;
|
|
1364
1364
|
}>, {
|
|
1365
1365
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
1366
|
-
imageEl: HTMLImageElement | null | undefined
|
|
1367
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1366
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
1367
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1368
1368
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
1369
1369
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
1370
1370
|
showToolbar: {
|
|
@@ -1729,7 +1729,7 @@ export declare const Comp: {
|
|
|
1729
1729
|
showToolbar: boolean;
|
|
1730
1730
|
showToolbarTooltip: boolean;
|
|
1731
1731
|
previewDisabled: boolean;
|
|
1732
|
-
}> | null
|
|
1732
|
+
}> | null>>;
|
|
1733
1733
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1734
1734
|
load: (...args: any[]) => any;
|
|
1735
1735
|
click: () => any;
|
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/dist/utils/data.d.ts
CHANGED
|
@@ -5,12 +5,18 @@ export declare class Struct<TRaw extends object> {
|
|
|
5
5
|
constructor($$raw: TRaw);
|
|
6
6
|
}
|
|
7
7
|
export type MetaData = Record<string | number, any>;
|
|
8
|
+
type PromiseContentEmits<TR> = {
|
|
9
|
+
success: TR;
|
|
10
|
+
error: any;
|
|
11
|
+
finial: void;
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* 扩展内容的`Promise`,可视为普通`Promise`使用
|
|
10
15
|
*/
|
|
11
|
-
export declare class PromiseContent<T, TPF extends any = T> implements PromiseLike<T> {
|
|
16
|
+
export declare class PromiseContent<T, TPF extends any = T, TEmits extends PromiseContentEmits<TPF> = PromiseContentEmits<TPF>> implements PromiseLike<T> {
|
|
12
17
|
private promise;
|
|
13
18
|
private processor;
|
|
19
|
+
[Symbol.toStringTag]: string;
|
|
14
20
|
private static _this;
|
|
15
21
|
static isPromiseContent(value: unknown): value is PromiseContent<any>;
|
|
16
22
|
static fromPromise<T, TP = T>(promise: Promise<T>, processor?: (val: T) => TP): RPromiseContent<T, TP>;
|
|
@@ -19,7 +25,10 @@ export declare class PromiseContent<T, TPF extends any = T> implements PromiseLi
|
|
|
19
25
|
*/
|
|
20
26
|
private constructor();
|
|
21
27
|
loadPromise(promise: Promise<T>): Promise<void>;
|
|
22
|
-
|
|
28
|
+
private emitter;
|
|
29
|
+
onError(processor: (err: TEmits['error']) => any): () => void;
|
|
30
|
+
onSuccess(processor: (err: TEmits['success']) => any): () => void;
|
|
31
|
+
onFinal(processor: (err: TEmits['finial']) => any): () => void;
|
|
23
32
|
/**
|
|
24
33
|
* 对`this.data.value`做出处理,多次调用仅最后一次生效
|
|
25
34
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delta-comic-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "我曾亲眼见证神的熟视无睹.",
|
|
5
5
|
"homepage": "https://github.com/wenxig/delta-comic-core",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@vant/use": "^1.6.0",
|
|
16
16
|
"@vicons/antd": "^0.13.0",
|
|
17
17
|
"@vicons/material": "^0.13.0",
|
|
18
|
-
"@vueuse/core": "
|
|
18
|
+
"@vueuse/core": "14.0.0",
|
|
19
19
|
"dayjs": "^1.11.18",
|
|
20
20
|
"mitt": "^3.0.1",
|
|
21
21
|
"tailwindcss-safe-area-capacitor": "^0.5.1"
|