@quicktvui/quicktvui3 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/index.js +8 -9
- package/dist/src/button/index.vue.d.ts +21 -21
- package/dist/src/classified-list-view/index.vue.d.ts +19 -19
- package/dist/src/collapse/index.vue.d.ts +15 -15
- package/dist/src/grid-view/index.vue.d.ts +31 -31
- package/dist/src/image/index.vue.d.ts +11 -11
- package/dist/src/index.d.ts +2 -1
- package/dist/src/list-indicator/QTIndicatorListViewComponent.d.ts +3 -0
- package/dist/src/list-indicator/QtIndicatorViewAPI.d.ts +15 -0
- package/dist/src/list-indicator/core/QTIIndicatorView.d.ts +11 -0
- package/dist/src/lottie/QTILottieView.d.ts +2 -0
- package/dist/src/lottie/QtLottieViewAPI.d.ts +2 -0
- package/dist/src/nav-bar/index.vue.d.ts +16 -16
- package/dist/src/poster/index.vue.d.ts +19 -16
- package/dist/src/qt/QtAPI.d.ts +2 -0
- package/dist/src/qtListen/index.d.ts +4 -2
- package/dist/src/qtListen/qtArray.d.ts +1 -0
- package/dist/src/qtListen/qtDiff.d.ts +1 -1
- package/dist/src/qtListen/ref.d.ts +30 -0
- package/dist/src/qtListen/types.d.ts +13 -2
- package/dist/src/qtListen/watch.d.ts +6 -1
- package/dist/src/section/index.vue.d.ts +11 -11
- package/dist/src/series/component/media-series.vue.d.ts +8 -8
- package/dist/src/series/index.vue.d.ts +20 -16
- package/dist/src/series/item/media-series-number-item.vue.d.ts +4 -4
- package/dist/src/series/item/media-series-text-item.vue.d.ts +4 -4
- package/dist/src/tab/QTTabDataManager.d.ts +1 -1
- package/dist/src/tab/index.vue.d.ts +61 -22
- package/dist/src/tab/useQtTabWatch.d.ts +3 -0
- package/dist/src/text/index.vue.d.ts +11 -11
- package/dist/src/utils/type.d.ts +1 -1
- package/dist/src/view/index.vue.d.ts +12 -12
- package/dist/src/waterfall/index.vue.d.ts +27 -17
- package/dist/src/waterfall/item/card-item.vue.d.ts +1 -1
- package/dist/src/waterfall/item/plugin-item.vue.d.ts +12 -12
- package/dist/src/waterfall/section/blank-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/card-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/end-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/flex-section.vue.d.ts +9 -6
- package/dist/src/waterfall/section/loading-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/plugin-section.vue.d.ts +6 -6
- package/dist/src/waterfall/section/section-title.vue.d.ts +4 -4
- package/dist/src/waterfall/section/vue-section.vue.d.ts +5 -5
- package/package.json +1 -1
package/dist/src/qt/QtAPI.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { QtPosterAPI } from "../poster/QtPosterAPI";
|
|
|
28
28
|
import { QtQRCodeAPI } from "../qrcode/QtQRCodeAPI";
|
|
29
29
|
import { QtRowAPI } from "../row/QtRowAPI";
|
|
30
30
|
import { QtVirtualViewAPI } from "../utils/QtVirtualViewAPI";
|
|
31
|
+
import { QtIndicatorViewAPI } from "../list-indicator/QtIndicatorViewAPI";
|
|
31
32
|
export interface QtAPI {
|
|
32
33
|
view: QtViewAPI;
|
|
33
34
|
webView: QtWebViewAPI;
|
|
@@ -59,5 +60,6 @@ export interface QtAPI {
|
|
|
59
60
|
qrCode: QtQRCodeAPI;
|
|
60
61
|
row: QtRowAPI;
|
|
61
62
|
virtualView: QtVirtualViewAPI;
|
|
63
|
+
indicator: QtIndicatorViewAPI;
|
|
62
64
|
}
|
|
63
65
|
export declare function createQtAPI(): QtAPI;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { qtEffect } from "./effect";
|
|
2
2
|
export { qtGetParent } from "./reactive";
|
|
3
|
-
export { qtRef } from "./ref";
|
|
3
|
+
export { qtRef, qtRefObject, qtTabsRef } from "./ref";
|
|
4
|
+
export type { IQtTabDatas } from './ref';
|
|
4
5
|
export { qtWatchAll } from './watch';
|
|
5
|
-
export { qtLongestSequenceSplit, qtFilterChangeMap } from './types';
|
|
6
|
+
export { qtLongestSequenceSplit, qtFilterChangeMap, parseChildUpdate } from './types';
|
|
7
|
+
export { qtDiff } from './qtDiff';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IQtWatchOptions } from './watch';
|
|
2
|
-
export declare const qtDiff: (oldt: any[], newt: any[], options: IQtWatchOptions) => void;
|
|
2
|
+
export declare const qtDiff: (oldt: any[], newt: any[], options: Pick<IQtWatchOptions, "update" | "insert" | "delete" | "add">) => void;
|
|
@@ -3,3 +3,33 @@ export interface IQtRef<T = any> {
|
|
|
3
3
|
[k: string]: any;
|
|
4
4
|
}
|
|
5
5
|
export declare function qtRef<T extends Array<any>>(value?: T): IQtRef<T>;
|
|
6
|
+
export declare function qtRefObject<T extends object>(value?: T): IQtRef<T>;
|
|
7
|
+
export interface IQtTabDatas {
|
|
8
|
+
_id: string;
|
|
9
|
+
type: number;
|
|
10
|
+
text: string;
|
|
11
|
+
titleSize: number;
|
|
12
|
+
decoration: {
|
|
13
|
+
left: number;
|
|
14
|
+
right: number;
|
|
15
|
+
};
|
|
16
|
+
useDiff?: boolean;
|
|
17
|
+
disableScrollOnFirstScreen?: boolean;
|
|
18
|
+
firstFocusTargetID?: string;
|
|
19
|
+
bindingPlayer?: string;
|
|
20
|
+
content: Array<{
|
|
21
|
+
title?: string;
|
|
22
|
+
titleStyle?: any;
|
|
23
|
+
itemList: Array<{
|
|
24
|
+
style: any;
|
|
25
|
+
[prop: string]: any;
|
|
26
|
+
}>;
|
|
27
|
+
style: any;
|
|
28
|
+
placeholder?: {
|
|
29
|
+
enable: boolean;
|
|
30
|
+
};
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
[k: string]: any;
|
|
34
|
+
}
|
|
35
|
+
export declare function qtTabsRef(value?: Array<IQtTabDatas>): IQtRef<Array<IQtTabDatas>>;
|
|
@@ -25,9 +25,19 @@ export declare const typeEnum: {
|
|
|
25
25
|
shift: string;
|
|
26
26
|
unshift: string;
|
|
27
27
|
newDatas: string;
|
|
28
|
+
arrChangeProp: string;
|
|
28
29
|
};
|
|
29
30
|
export declare const qtFilterChangeMap: (deth: number | undefined, datas: Map<any, any>) => Map<any, any>;
|
|
30
31
|
export declare const qtLongestSequenceSplit: (maps: QtChangeData) => Map<any, QtChangeData>;
|
|
32
|
+
interface IparseChildUpdateRef {
|
|
33
|
+
isArr: boolean;
|
|
34
|
+
arrDeeps: number[];
|
|
35
|
+
oldData: any;
|
|
36
|
+
newData: any;
|
|
37
|
+
ouData: any;
|
|
38
|
+
k: any;
|
|
39
|
+
}
|
|
40
|
+
export declare const parseChildUpdate: (changeData: QtChangeData, orData: any, exFn: (res: IparseChildUpdateRef) => void) => void;
|
|
31
41
|
declare class QtType {
|
|
32
42
|
private targetFlags;
|
|
33
43
|
private targetMaps;
|
|
@@ -36,10 +46,11 @@ declare class QtType {
|
|
|
36
46
|
getType(target: any): Map<any, QtChangeData> | undefined;
|
|
37
47
|
setType(target: any, type: string, datas: QtChangeData): void;
|
|
38
48
|
deleteType(target: any, type?: string): void;
|
|
49
|
+
clear(): void;
|
|
39
50
|
changeTypeData(target: any, prop: any, value: any): boolean;
|
|
40
51
|
changeOfsetType(target: any, prop: any, value: any, name?: any, deth?: number): void;
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
recordArrChangeProps(target: any, start: number, end: number): void;
|
|
53
|
+
checkArrChangeProps(target: any, prop: any): boolean;
|
|
43
54
|
}
|
|
44
55
|
declare const qtType: QtType;
|
|
45
56
|
export default qtType;
|
|
@@ -9,7 +9,12 @@ export interface IQtWatchOptions {
|
|
|
9
9
|
resetValue?: (datas: any[]) => void;
|
|
10
10
|
[k: string]: any;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const qtRefUid: {
|
|
13
|
+
pointer: number;
|
|
14
|
+
createUid(key?: string): string;
|
|
15
|
+
addUid(data: any, uk?: string): any;
|
|
16
|
+
addUidBatch(arr: any[], uk?: string): void;
|
|
17
|
+
};
|
|
13
18
|
export declare const qtCloneObj: (target: object, isKey?: boolean) => any;
|
|
14
19
|
export declare function qtWatchAll(target: any, options: IQtWatchOptions): {
|
|
15
20
|
stop(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
3
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
4
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
2
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
3
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
4
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
5
5
|
clearFocus: () => void;
|
|
6
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
6
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
7
7
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
8
8
|
requestRootLayout: () => void;
|
|
9
9
|
requestLayout: () => void;
|
|
@@ -19,11 +19,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
19
19
|
setPosition: (x: number, y: number, z: number) => void;
|
|
20
20
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
21
21
|
invalidate: () => void;
|
|
22
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
23
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
24
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
25
|
-
setInitFocus: (sid: string, delay?: number
|
|
26
|
-
setAutoFocus: (sid: string, delay?: number
|
|
22
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
23
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
24
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
25
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
26
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
27
27
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
28
28
|
requestAutofocus: () => void;
|
|
29
29
|
hasFocus: () => Promise<boolean>;
|
|
@@ -35,6 +35,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
35
35
|
clearMemoryFocused: () => void;
|
|
36
36
|
showDialog: (show: boolean) => void;
|
|
37
37
|
onSectionBind: () => void;
|
|
38
|
-
viewRef: import("vue").Ref<any>;
|
|
39
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
38
|
+
viewRef: import("vue").Ref<any, any>;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ESIMediaSeries } from "@extscreen/es3-component";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
customItem: {
|
|
4
4
|
type: BooleanConstructor;
|
|
5
5
|
default: boolean;
|
|
@@ -24,9 +24,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
type: ObjectConstructor;
|
|
25
25
|
default: () => {};
|
|
26
26
|
};
|
|
27
|
-
}
|
|
28
|
-
selectSeries: import("vue").Ref<ESIMediaSeries | undefined>;
|
|
29
|
-
showOld: import("vue").Ref<boolean>;
|
|
27
|
+
}>, {
|
|
28
|
+
selectSeries: import("vue").Ref<ESIMediaSeries | undefined, ESIMediaSeries | undefined>;
|
|
29
|
+
showOld: import("vue").Ref<boolean, boolean>;
|
|
30
30
|
onLoadData: (event: any) => void;
|
|
31
31
|
setPageData: (page: any, data: any) => void;
|
|
32
32
|
setInitData: (totalCount: any, pageSize: any) => void;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
setup: () => void;
|
|
41
41
|
setGroupSelected: (position: any) => void;
|
|
42
42
|
release: () => void;
|
|
43
|
-
},
|
|
43
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load-data" | "item-click" | "item-focused" | "group-item-focused")[], "load-data" | "item-click" | "item-focused" | "group-item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
44
|
customItem: {
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: boolean;
|
|
@@ -65,17 +65,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
type: ObjectConstructor;
|
|
66
66
|
default: () => {};
|
|
67
67
|
};
|
|
68
|
-
}>> & {
|
|
68
|
+
}>> & Readonly<{
|
|
69
69
|
"onLoad-data"?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
71
71
|
"onItem-focused"?: ((...args: any[]) => any) | undefined;
|
|
72
72
|
"onGroup-item-focused"?: ((...args: any[]) => any) | undefined;
|
|
73
|
-
}
|
|
73
|
+
}>, {
|
|
74
74
|
customItem: boolean;
|
|
75
75
|
initParam: Record<string, any>;
|
|
76
76
|
height: number;
|
|
77
77
|
scrollParam: Record<string, any>;
|
|
78
78
|
groupParam: Record<string, any>;
|
|
79
79
|
commonParam: Record<string, any>;
|
|
80
|
-
}, {}>;
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
export default _default;
|
|
@@ -4,7 +4,7 @@ import { QTMediaSeriesStyleType } from "./QTMediaSeriesStyleType";
|
|
|
4
4
|
import { QTMediaSeriesGroup } from "./QTMediaSeriesGroup";
|
|
5
5
|
import { QTMediaSeries } from "./QTMediaSeries";
|
|
6
6
|
import { ESIMediaSeries } from "@extscreen/es3-component";
|
|
7
|
-
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
itemHeight: {
|
|
9
9
|
type: NumberConstructor;
|
|
10
10
|
default: number;
|
|
@@ -65,16 +65,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
type: NumberConstructor;
|
|
66
66
|
default: number;
|
|
67
67
|
};
|
|
68
|
-
}
|
|
69
|
-
isVip: import("vue").Ref<boolean>;
|
|
70
|
-
seriesType: import("vue").Ref<QTMediaSeriesType>;
|
|
71
|
-
params: import("vue").Ref<any>;
|
|
72
|
-
commonParams: import("vue").Ref<any>;
|
|
73
|
-
scrollParams: import("vue").Ref<any>;
|
|
74
|
-
groupParams: import("vue").Ref<any>;
|
|
75
|
-
mediaSeriesRef: import("vue").Ref<ESIMediaSeries | undefined>;
|
|
76
|
-
show: import("vue").Ref<boolean>;
|
|
77
|
-
height: import("vue").Ref<number>;
|
|
68
|
+
}>, {
|
|
69
|
+
isVip: import("vue").Ref<boolean, boolean>;
|
|
70
|
+
seriesType: import("vue").Ref<QTMediaSeriesType, QTMediaSeriesType>;
|
|
71
|
+
params: import("vue").Ref<any, any>;
|
|
72
|
+
commonParams: import("vue").Ref<any, any>;
|
|
73
|
+
scrollParams: import("vue").Ref<any, any>;
|
|
74
|
+
groupParams: import("vue").Ref<any, any>;
|
|
75
|
+
mediaSeriesRef: import("vue").Ref<ESIMediaSeries | undefined, ESIMediaSeries | undefined>;
|
|
76
|
+
show: import("vue").Ref<boolean, boolean>;
|
|
77
|
+
height: import("vue").Ref<number, number>;
|
|
78
78
|
onLoadData: (event: any) => void;
|
|
79
79
|
setInitData: (type: QTMediaSeriesType, group: QTMediaSeriesGroup, styleType: QTMediaSeriesStyleType, data: QTMediaSeriesData) => void;
|
|
80
80
|
setPageData: (page: number, dataArray: Array<QTMediaSeries>) => void;
|
|
@@ -91,9 +91,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
blockRootFocus: () => void;
|
|
92
92
|
unBlockRootFocus: () => void;
|
|
93
93
|
clearFocus: () => void;
|
|
94
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
94
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
95
95
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
96
|
-
},
|
|
96
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load-data" | "item-click" | "item-focused" | "group-item-focused")[], "load-data" | "item-click" | "item-focused" | "group-item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
97
97
|
itemHeight: {
|
|
98
98
|
type: NumberConstructor;
|
|
99
99
|
default: number;
|
|
@@ -154,12 +154,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
154
|
type: NumberConstructor;
|
|
155
155
|
default: number;
|
|
156
156
|
};
|
|
157
|
-
}>> & {
|
|
157
|
+
}>> & Readonly<{
|
|
158
158
|
"onLoad-data"?: ((...args: any[]) => any) | undefined;
|
|
159
159
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
160
160
|
"onItem-focused"?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
"onGroup-item-focused"?: ((...args: any[]) => any) | undefined;
|
|
162
|
-
}
|
|
162
|
+
}>, {
|
|
163
163
|
itemHeight: number;
|
|
164
164
|
gradientBackground: Record<string, any>;
|
|
165
165
|
gradientFocusBackground: Record<string, any>;
|
|
@@ -170,5 +170,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
170
|
textVipColors: Record<string, any>;
|
|
171
171
|
itemDivWidth: number;
|
|
172
172
|
itemDivHeight: number;
|
|
173
|
-
}, {}
|
|
173
|
+
}, {}, {
|
|
174
|
+
'media-series-number-item': import("vue").DefineComponent<{}, {}, any>;
|
|
175
|
+
'media-series-text-item': import("vue").DefineComponent<{}, {}, any>;
|
|
176
|
+
'media-series': import("vue").DefineComponent<{}, {}, any>;
|
|
177
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
174
178
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
isVip: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
selectColor: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
isVip: {
|
|
56
56
|
type: BooleanConstructor;
|
|
57
57
|
default: boolean;
|
|
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
selectColor: string;
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
-
}
|
|
107
|
+
}>> & Readonly<{}>, {
|
|
108
108
|
isVip: boolean;
|
|
109
109
|
gradientBackground: Record<string, any>;
|
|
110
110
|
gradientFocusBackground: Record<string, any>;
|
|
@@ -113,5 +113,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
113
|
markVipColor: string;
|
|
114
114
|
textColors: Record<string, any>;
|
|
115
115
|
textVipColors: Record<string, any>;
|
|
116
|
-
}, {}>;
|
|
116
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
117
117
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
isVip: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
type: NumberConstructor;
|
|
60
60
|
default: number;
|
|
61
61
|
};
|
|
62
|
-
}
|
|
62
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
isVip: {
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
type: NumberConstructor;
|
|
121
121
|
default: number;
|
|
122
122
|
};
|
|
123
|
-
}
|
|
123
|
+
}>> & Readonly<{}>, {
|
|
124
124
|
isVip: boolean;
|
|
125
125
|
gradientBackground: Record<string, any>;
|
|
126
126
|
gradientFocusBackground: Record<string, any>;
|
|
@@ -131,5 +131,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
131
|
textVipColors: Record<string, any>;
|
|
132
132
|
itemWidth: number;
|
|
133
133
|
itemHeight: number;
|
|
134
|
-
}, {}>;
|
|
134
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
135
|
export default _default;
|
|
@@ -19,7 +19,7 @@ export interface QTTabDataManager {
|
|
|
19
19
|
getSection(pageIndex: number, sectionIndex: number): QTWaterfallSection | undefined;
|
|
20
20
|
setSectionState(pageIndex: number, sectionIndex: number, state: QTListViewItemState): void;
|
|
21
21
|
getSectionListByState(pageIndex: number, state: QTListViewItemState): Array<QTWaterfallSection>;
|
|
22
|
-
addItemList(pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem
|
|
22
|
+
addItemList(pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>, insertIndex?: number, deleteCount?: number): QTTabIndex;
|
|
23
23
|
deleteItem(pageIndex: number, sectionIndex: number, itemIndex: number, count: number): QTTabIndex;
|
|
24
24
|
updateItem(pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem): QTTabIndex;
|
|
25
25
|
updateItemList(pageIndex: number, sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): QTTabIndex;
|
|
@@ -9,7 +9,7 @@ import { QTTabPageState } from "./QTTabPageState";
|
|
|
9
9
|
import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
|
|
10
10
|
import { QTTabItem } from "./QTTabItem";
|
|
11
11
|
import { QTPluginViewEvent } from "../plugin/QTIPluginView";
|
|
12
|
-
declare const _default: import("vue").DefineComponent<{
|
|
12
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
13
|
enablePlaceholder: {
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
@@ -174,12 +174,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
itemStoreEnable: boolean;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
tabConfig: {
|
|
178
|
+
type: ObjectConstructor;
|
|
179
|
+
default: () => {
|
|
180
|
+
defaultFocusIndex: number;
|
|
181
|
+
defaultIndex: number;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
waterfallConfig: {
|
|
185
|
+
type: ObjectConstructor;
|
|
186
|
+
default: () => {
|
|
187
|
+
width: number;
|
|
188
|
+
height: number;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
tabs: {
|
|
192
|
+
type: ArrayConstructor;
|
|
193
|
+
default: () => never[];
|
|
194
|
+
};
|
|
195
|
+
}>, {
|
|
196
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
197
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
198
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
181
199
|
clearFocus: () => void;
|
|
182
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
200
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
183
201
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
184
202
|
requestRootLayout: () => void;
|
|
185
203
|
requestLayout: () => void;
|
|
@@ -195,11 +213,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
213
|
setPosition: (x: number, y: number, z: number) => void;
|
|
196
214
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
197
215
|
invalidate: () => void;
|
|
198
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
199
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
200
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
201
|
-
setInitFocus: (sid: string, delay?: number
|
|
202
|
-
setAutoFocus: (sid: string, delay?: number
|
|
216
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
217
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
218
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
219
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
220
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
203
221
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
204
222
|
requestAutofocus: () => void;
|
|
205
223
|
hasFocus: () => Promise<boolean>;
|
|
@@ -210,9 +228,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
228
|
requestChildFocusAtIndex: (position: number) => void;
|
|
211
229
|
clearMemoryFocused: () => void;
|
|
212
230
|
showDialog: (show: boolean) => void;
|
|
213
|
-
tabs: import("vue").Ref<ESITab | undefined>;
|
|
214
|
-
ifTabs: import("vue").Ref<boolean>;
|
|
215
|
-
navBarRef: import("vue").Ref<QTINavBar | undefined>;
|
|
231
|
+
tabs: import("vue").Ref<ESITab | undefined, ESITab | undefined>;
|
|
232
|
+
ifTabs: import("vue").Ref<boolean, boolean>;
|
|
233
|
+
navBarRef: import("vue").Ref<QTINavBar | undefined, QTINavBar | undefined>;
|
|
216
234
|
initTab: (tab: QTTab) => void;
|
|
217
235
|
initPage: (w: QTWaterfall) => void;
|
|
218
236
|
setPageState: (pageIndex: number, state: QTTabPageState) => void;
|
|
@@ -223,7 +241,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
223
241
|
getPageSection: (pageIndex: number, sectionIndex: number) => QTWaterfallSection | undefined;
|
|
224
242
|
getPageSectionList: (pageIndex: number) => Array<QTWaterfallSection> | undefined;
|
|
225
243
|
deletePageSection: (pageIndex: number, sectionIndex: number, count: number) => void;
|
|
226
|
-
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem
|
|
244
|
+
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>, insertIndex?: number, deleteCount?: number) => void;
|
|
227
245
|
getPageItem: (pageIndex: number, sectionIndex: number, itemIndex: number) => QTWaterfallItem | undefined;
|
|
228
246
|
updatePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
229
247
|
deletePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, count: number) => void;
|
|
@@ -246,7 +264,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
264
|
cancelAll: () => void;
|
|
247
265
|
translationLeft: () => void;
|
|
248
266
|
translationRight: () => void;
|
|
249
|
-
rootOpacity: import("vue").Ref<number>;
|
|
267
|
+
rootOpacity: import("vue").Ref<number, number>;
|
|
250
268
|
onTabPageLoadData: (e: QTTabEvent) => void;
|
|
251
269
|
onTabPageChanged: (e: QTTabEvent) => void;
|
|
252
270
|
onTabEvent: (e: QTTabEvent) => void;
|
|
@@ -263,11 +281,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
263
281
|
onTabClick: (e: QTTabItem) => void;
|
|
264
282
|
getCurrentPageIndex: () => number;
|
|
265
283
|
getCurrentTabIndex: () => Promise<number>;
|
|
266
|
-
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[])
|
|
284
|
+
insertPageData: (tabPageIndex: number, sectionIndex: number, data: any[]) => void;
|
|
267
285
|
onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
|
|
268
286
|
onPluginLoadError: (event: QTPluginViewEvent) => void;
|
|
269
|
-
getDataManager()
|
|
270
|
-
},
|
|
287
|
+
getDataManager: () => import("./QTTabDataManager").QTTabDataManager;
|
|
288
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged" | "onTabMoveToTopStart" | "onTabMoveToTopEnd" | "onTabMoveToBottomStart" | "onTabMoveToBottomEnd" | "onTabChanged" | "onTabPageScrollToEnd" | "onTabPageScrollToStart" | "onTabClick" | "onPluginLoadSuccess" | "onPluginLoadError")[], "onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged" | "onTabMoveToTopStart" | "onTabMoveToTopEnd" | "onTabMoveToBottomStart" | "onTabMoveToBottomEnd" | "onTabChanged" | "onTabPageScrollToEnd" | "onTabPageScrollToStart" | "onTabClick" | "onPluginLoadSuccess" | "onPluginLoadError", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
271
289
|
enablePlaceholder: {
|
|
272
290
|
type: BooleanConstructor;
|
|
273
291
|
default: boolean;
|
|
@@ -432,7 +450,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
432
450
|
itemStoreEnable: boolean;
|
|
433
451
|
};
|
|
434
452
|
};
|
|
435
|
-
|
|
453
|
+
tabConfig: {
|
|
454
|
+
type: ObjectConstructor;
|
|
455
|
+
default: () => {
|
|
456
|
+
defaultFocusIndex: number;
|
|
457
|
+
defaultIndex: number;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
waterfallConfig: {
|
|
461
|
+
type: ObjectConstructor;
|
|
462
|
+
default: () => {
|
|
463
|
+
width: number;
|
|
464
|
+
height: number;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
tabs: {
|
|
468
|
+
type: ArrayConstructor;
|
|
469
|
+
default: () => never[];
|
|
470
|
+
};
|
|
471
|
+
}>> & Readonly<{
|
|
436
472
|
onOnTabPageLoadData?: ((...args: any[]) => any) | undefined;
|
|
437
473
|
onOnTabPageChanged?: ((...args: any[]) => any) | undefined;
|
|
438
474
|
onOnTabEvent?: ((...args: any[]) => any) | undefined;
|
|
@@ -451,7 +487,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
451
487
|
onOnTabClick?: ((...args: any[]) => any) | undefined;
|
|
452
488
|
onOnPluginLoadSuccess?: ((...args: any[]) => any) | undefined;
|
|
453
489
|
onOnPluginLoadError?: ((...args: any[]) => any) | undefined;
|
|
454
|
-
}
|
|
490
|
+
}>, {
|
|
455
491
|
enablePlaceholder: boolean;
|
|
456
492
|
preloadNumber: number;
|
|
457
493
|
tabNavBarClass: string;
|
|
@@ -487,5 +523,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
487
523
|
verticalFadingEdgeEnabled: boolean;
|
|
488
524
|
fadingEdgeLength: number;
|
|
489
525
|
qtTabSectionEnable: Record<string, any>;
|
|
490
|
-
|
|
526
|
+
tabConfig: Record<string, any>;
|
|
527
|
+
waterfallConfig: Record<string, any>;
|
|
528
|
+
tabs: unknown[];
|
|
529
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
491
530
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QTTextSpan } from "./QTTextSpan";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
4
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
5
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
3
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
4
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
5
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
6
6
|
clearFocus: () => void;
|
|
7
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
7
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
8
8
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
9
9
|
requestRootLayout: () => void;
|
|
10
10
|
requestLayout: () => void;
|
|
@@ -20,11 +20,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
20
20
|
setPosition: (x: number, y: number, z: number) => void;
|
|
21
21
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
22
22
|
invalidate: () => void;
|
|
23
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
24
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
25
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
26
|
-
setInitFocus: (sid: string, delay?: number
|
|
27
|
-
setAutoFocus: (sid: string, delay?: number
|
|
23
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
24
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
25
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
26
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
27
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
28
28
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
29
29
|
requestAutofocus: () => void;
|
|
30
30
|
hasFocus: () => Promise<boolean>;
|
|
@@ -35,10 +35,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
35
35
|
requestChildFocusAtIndex: (position: number) => void;
|
|
36
36
|
clearMemoryFocused: () => void;
|
|
37
37
|
showDialog: (show: boolean) => void;
|
|
38
|
-
viewRef: import("vue").Ref<any>;
|
|
38
|
+
viewRef: import("vue").Ref<any, any>;
|
|
39
39
|
setText: (text: string) => void;
|
|
40
40
|
setTextSize: (size: number) => void;
|
|
41
41
|
setTextColor: (color: string) => void;
|
|
42
42
|
textSpan: (span: QTTextSpan) => void;
|
|
43
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
43
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
export default _default;
|
package/dist/src/utils/type.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isString: (val: unknown) =>
|
|
1
|
+
export declare const isString: (val: unknown) => val is string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
3
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
4
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
2
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
3
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
4
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
5
5
|
clearFocus: () => void;
|
|
6
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
6
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
7
7
|
setVisibility: (v: import("./QTIViewVisibility").QTIViewVisibility) => void;
|
|
8
8
|
requestRootLayout: () => void;
|
|
9
9
|
requestLayout: () => void;
|
|
@@ -19,11 +19,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
19
19
|
setPosition: (x: number, y: number, z: number) => void;
|
|
20
20
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
21
21
|
invalidate: () => void;
|
|
22
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
23
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
24
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
25
|
-
setInitFocus: (sid: string, delay?: number
|
|
26
|
-
setAutoFocus: (sid: string, delay?: number
|
|
22
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
23
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
24
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
25
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
26
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
27
27
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
28
28
|
requestAutofocus: () => void;
|
|
29
29
|
hasFocus: () => Promise<boolean>;
|
|
@@ -34,8 +34,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
34
34
|
requestChildFocusAtIndex: (position: number) => void;
|
|
35
35
|
clearMemoryFocused: () => void;
|
|
36
36
|
showDialog: (show: boolean) => void;
|
|
37
|
-
viewRef: import("vue").Ref<any>;
|
|
38
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clearFocus"[], "clearFocus", import("vue").PublicProps, Readonly<
|
|
37
|
+
viewRef: import("vue").Ref<any, any>;
|
|
38
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clearFocus"[], "clearFocus", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
39
39
|
onClearFocus?: ((...args: any[]) => any) | undefined;
|
|
40
|
-
}, {}, {}>;
|
|
40
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
export default _default;
|