@quicktvui/quicktvui3 1.1.32 → 1.1.33-beta.10
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.css +57 -21
- package/dist/index.js +5 -5
- package/dist/src/grid-view/core/QTIGridView.d.ts +1 -1
- package/dist/src/grid-view/index.vue.d.ts +9 -7
- package/dist/src/index.d.ts +6 -0
- package/dist/src/list-view/core/QTIListView.d.ts +1 -1
- package/dist/src/plugin/QTIPluginView.d.ts +9 -0
- package/dist/src/plugin/QTPluginView.d.ts +3 -0
- package/dist/src/poster/index.vue.d.ts +33 -0
- package/dist/src/qtListen/effect.d.ts +17 -0
- package/dist/src/qtListen/index.d.ts +5 -0
- package/dist/src/qtListen/qtArray.d.ts +9 -0
- package/dist/src/qtListen/qtDiff.d.ts +2 -0
- package/dist/src/qtListen/reactive.d.ts +14 -0
- package/dist/src/qtListen/ref.d.ts +5 -0
- package/dist/src/qtListen/types.d.ts +45 -0
- package/dist/src/qtListen/watch.d.ts +16 -0
- package/dist/src/series/DataAdapter.d.ts +1 -1
- package/dist/src/series/QTMediaSeriesData.d.ts +2 -0
- package/dist/src/series/QTMediaSeriesDataStyle.d.ts +4 -0
- package/dist/src/series/index.vue.d.ts +35 -0
- package/dist/src/series/item/media-series-number-item.vue.d.ts +17 -0
- package/dist/src/series/item/media-series-text-item.vue.d.ts +35 -0
- package/dist/src/tab/QTITab.d.ts +3 -0
- package/dist/src/tab/QTTabDataManager.d.ts +2 -1
- package/dist/src/tab/index.vue.d.ts +52 -2
- package/dist/src/utils/VirtualView.d.ts +10 -0
- package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +2 -2
- package/dist/src/waterfall/core/QTWaterfallItemType.d.ts +2 -1
- package/dist/src/waterfall/core/QTWaterfallPluginItem.d.ts +5 -0
- package/dist/src/waterfall/core/QTWaterfallPluginSection.d.ts +5 -0
- package/dist/src/waterfall/core/QTWaterfallSectionType.d.ts +2 -1
- package/dist/src/waterfall/index.vue.d.ts +66 -1
- package/dist/src/waterfall/item/plugin-item.vue.d.ts +12 -0
- package/dist/src/waterfall/section/flex-section.vue.d.ts +21 -2
- package/dist/src/waterfall/section/plugin-section.vue.d.ts +18 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export interface QTIGridView extends QTIView {
|
|
|
4
4
|
init(target: Array<QTGridViewItem>, isInit?: boolean): Array<QTGridViewItem>;
|
|
5
5
|
scrollToTop(): void;
|
|
6
6
|
clearFocus(): void;
|
|
7
|
-
stopPage(): void;
|
|
7
|
+
stopPage(isTip?: boolean): void;
|
|
8
8
|
restartPage(): void;
|
|
9
9
|
blockRootFocus(): void;
|
|
10
10
|
unBlockRootFocus(): void;
|
|
@@ -14,6 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
};
|
|
15
15
|
pageSize: {
|
|
16
16
|
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
17
18
|
};
|
|
18
19
|
preloadNo: {
|
|
19
20
|
type: NumberConstructor;
|
|
@@ -40,11 +41,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
41
|
};
|
|
41
42
|
listData: {
|
|
42
43
|
type: ArrayConstructor;
|
|
43
|
-
|
|
44
|
+
required: false;
|
|
44
45
|
};
|
|
45
46
|
}, {
|
|
46
47
|
tv_list: import("vue").Ref<any>;
|
|
47
|
-
apkVersion: import("vue").Ref<number>;
|
|
48
48
|
init: (target: Array<QTGridViewItem>, isInit?: boolean) => Array<QTGridViewItem>;
|
|
49
49
|
onItemClick: (e: any) => void;
|
|
50
50
|
onItemBind: (e: any) => void;
|
|
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
onItemUnbind: (e: any) => void;
|
|
55
55
|
onScroll: (e: any) => void;
|
|
56
56
|
onScrollStateChanged: (e: any) => void;
|
|
57
|
-
stopPage: () => void;
|
|
57
|
+
stopPage: (isTip?: boolean) => void;
|
|
58
58
|
scrollToTop: () => void;
|
|
59
59
|
clearFocus: () => void;
|
|
60
60
|
blockRootFocus: () => void;
|
|
@@ -66,15 +66,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
scrollToFocused: (pos: number) => void;
|
|
67
67
|
setItemSelected: (pos: number, b: boolean) => void;
|
|
68
68
|
scrollToSelected: (pos: number, b: boolean) => void;
|
|
69
|
-
updateItemProps: (pos: number, name: string, dataObj: object) => void;
|
|
70
69
|
setInitPosition: (pos: number) => void;
|
|
71
70
|
setListData: (dataArr: Array<QTGridViewItem>) => void;
|
|
72
|
-
insertItem: (pos: number, data: Array<QTGridViewItem>) => void;
|
|
73
71
|
clearPostTask: () => void;
|
|
74
72
|
destroy: () => void;
|
|
75
73
|
requestFocus: () => void;
|
|
76
74
|
requestFocusDirectly: () => void;
|
|
77
75
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
76
|
+
apkVersion: import("vue").Ref<number>;
|
|
77
|
+
updateItemProps: (pos: number, name: string, dataObj: object) => void;
|
|
78
|
+
insertItem: (pos: number, data: Array<QTGridViewItem>) => void;
|
|
78
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused")[], "item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
80
|
loadMore: {
|
|
80
81
|
type: FunctionConstructor;
|
|
@@ -90,6 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
91
|
};
|
|
91
92
|
pageSize: {
|
|
92
93
|
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
93
95
|
};
|
|
94
96
|
preloadNo: {
|
|
95
97
|
type: NumberConstructor;
|
|
@@ -116,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
118
|
};
|
|
117
119
|
listData: {
|
|
118
120
|
type: ArrayConstructor;
|
|
119
|
-
|
|
121
|
+
required: false;
|
|
120
122
|
};
|
|
121
123
|
}>> & {
|
|
122
124
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -129,11 +131,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
131
|
loadMore: Function;
|
|
130
132
|
openPage: boolean;
|
|
131
133
|
spanCount: number;
|
|
134
|
+
pageSize: number;
|
|
132
135
|
preloadNo: number;
|
|
133
136
|
defaultFocus: number;
|
|
134
137
|
areaWidth: number;
|
|
135
138
|
blockFocusDirections: unknown[];
|
|
136
139
|
loadingDecoration: Record<string, any>;
|
|
137
|
-
listData: unknown[];
|
|
138
140
|
}, {}>;
|
|
139
141
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { arrangeChildren4ListView } from "./utils/utils";
|
|
2
|
+
export { qtRef, qtWatchAll, qtGetParent } from "./qtListen/index";
|
|
2
3
|
export declare const QuickTVUI: (Vue: any) => void;
|
|
3
4
|
export type { QTIGridView } from './grid-view/core/QTIGridView';
|
|
4
5
|
export type { QTIListView } from './list-view/core/QTIListView';
|
|
@@ -38,6 +39,8 @@ export type { QTWaterfallCardSection } from './waterfall/core/QTWaterfallCardSec
|
|
|
38
39
|
export type { QTWaterfallCardItem } from './waterfall/core/QTWaterfallCardItem';
|
|
39
40
|
export type { QTWaterfallCardPlaceHolder } from './waterfall/core/QTWaterfallCardPlaceHolder';
|
|
40
41
|
export { QTWaterfallVisibleType } from './waterfall/core/QTWaterfallVisibleType';
|
|
42
|
+
export type { QTWaterfallPluginSection } from './waterfall/core/QTWaterfallPluginSection';
|
|
43
|
+
export type { QTWaterfallPluginItem } from './waterfall/core/QTWaterfallPluginItem';
|
|
41
44
|
export type { QTListViewItem } from './list-view/core/QTListViewItem';
|
|
42
45
|
export type { QTListViewItemDecoration } from './list-view/core/QTListViewItemDecoration';
|
|
43
46
|
export type { QTListViewItemFunctionParams } from './list-view/core/QTListViewItemFunctionParams';
|
|
@@ -78,6 +81,7 @@ export type { QTIMediaSeries } from './series/QTIMediaSeries';
|
|
|
78
81
|
export type { QTMediaSeries } from './series/QTMediaSeries';
|
|
79
82
|
export type { QTMediaSeriesGroup } from './series/QTMediaSeriesGroup';
|
|
80
83
|
export type { QTMediaSeriesGroupStyle } from './series/QTMediaSeriesGroupStyle';
|
|
84
|
+
export type { QTMediaSeriesDataStyle } from './series/QTMediaSeriesDataStyle';
|
|
81
85
|
export type { QTMediaSeriesData } from './series/QTMediaSeriesData';
|
|
82
86
|
export type { QTMediaSeriesEvent } from './series/QTMediaSeriesEvent';
|
|
83
87
|
export { QTMediaSeriesType } from './series/QTMediaSeriesType';
|
|
@@ -105,3 +109,5 @@ export type { QTIQRCode } from './qrcode/QTIQRCode';
|
|
|
105
109
|
export type { QTIRow } from './row/QTIRow';
|
|
106
110
|
export type { QTIText } from './text/QTIText';
|
|
107
111
|
export type { QTIAppIcon } from './app/QTIAppIcon';
|
|
112
|
+
export type { QTIPluginView, QTPluginViewEvent } from './plugin/QTIPluginView';
|
|
113
|
+
export { VirtualView } from './utils/VirtualView';
|
|
@@ -4,7 +4,7 @@ export interface QTIListView extends QTIView {
|
|
|
4
4
|
init(target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
|
|
5
5
|
scrollToTop(): void;
|
|
6
6
|
clearFocus(): void;
|
|
7
|
-
stopPage(): void;
|
|
7
|
+
stopPage(isTip?: boolean): void;
|
|
8
8
|
blockRootFocus(): void;
|
|
9
9
|
unBlockRootFocus(): void;
|
|
10
10
|
setDisplay(value: Boolean): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QTIView } from "../view/QTIView";
|
|
2
|
+
export interface QTIPluginView extends QTIView {
|
|
3
|
+
dispatchFunction(funName: string, params: Array<any>): Promise<any>;
|
|
4
|
+
}
|
|
5
|
+
export interface QTPluginViewEvent {
|
|
6
|
+
sid?: string;
|
|
7
|
+
errorCode?: number;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
}
|
|
@@ -23,6 +23,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
+
focusBgColor: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
focusTitleColor: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
focusSubTitleColor: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
floatTitleBgColor: {
|
|
39
|
+
type: ArrayConstructor;
|
|
40
|
+
default: () => string[];
|
|
41
|
+
};
|
|
26
42
|
}, {
|
|
27
43
|
dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
|
|
28
44
|
requestFocus: () => void;
|
|
@@ -56,6 +72,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
72
|
type: StringConstructor;
|
|
57
73
|
default: string;
|
|
58
74
|
};
|
|
75
|
+
focusBgColor: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
79
|
+
focusTitleColor: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
focusSubTitleColor: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
required: false;
|
|
86
|
+
};
|
|
87
|
+
floatTitleBgColor: {
|
|
88
|
+
type: ArrayConstructor;
|
|
89
|
+
default: () => string[];
|
|
90
|
+
};
|
|
59
91
|
}>>, {
|
|
60
92
|
requestFirstFocus: boolean;
|
|
61
93
|
loadDelay: number;
|
|
@@ -63,5 +95,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
95
|
templateKeyMap: Record<string, any>;
|
|
64
96
|
borderRadius: number;
|
|
65
97
|
rippleColor: string;
|
|
98
|
+
floatTitleBgColor: unknown[];
|
|
66
99
|
}, {}>;
|
|
67
100
|
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type TrunFn = (target?: any, prop?: any, newValue?: any, type?: any, oldValue?: any, oldTarget?: any) => void;
|
|
2
|
+
export declare class QtReactiveEffect {
|
|
3
|
+
fn: TrunFn;
|
|
4
|
+
scheduler?: TrunFn | undefined;
|
|
5
|
+
active: boolean;
|
|
6
|
+
deeps: Set<any>[];
|
|
7
|
+
constructor(fn: TrunFn, scheduler?: TrunFn | undefined);
|
|
8
|
+
run(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function qtIsTracking(): boolean;
|
|
12
|
+
export declare function qtClearupTrack(target: any): void;
|
|
13
|
+
export declare function qtTrack(target: any, key: any): void;
|
|
14
|
+
export declare function qtTrackEffects(dep: Set<object>): void;
|
|
15
|
+
export declare function qtTrigger(target: any, prop: any, newValue: any, type?: any, oldValue?: any): void;
|
|
16
|
+
export declare function qtTriggerEffects(effects: any, target?: any, prop?: any, newValue?: any, type?: any, oldValue?: any): any;
|
|
17
|
+
export declare function qtEffect(fn: TrunFn): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare class QtArray extends Array {
|
|
2
|
+
shift(): any;
|
|
3
|
+
unshift(...items: any[]): number;
|
|
4
|
+
push(...items: any[]): number;
|
|
5
|
+
splice(start: number, deleteCount: number, ...items: any[]): any[];
|
|
6
|
+
pop(): any;
|
|
7
|
+
concat(items: any[]): any[];
|
|
8
|
+
}
|
|
9
|
+
export default QtArray;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const enum emReactiveFlags {
|
|
2
|
+
IS_REACTIVE = "__v_isReactive",
|
|
3
|
+
WATCH_ALL = "__ls_watchAll",
|
|
4
|
+
WATCH_RAW = "__v_raw",
|
|
5
|
+
RESET_REF_VALUE = "__ls_reset_ref_value",
|
|
6
|
+
NEW_SET = "__ls_new_set",
|
|
7
|
+
qtPath = "__qt_path",
|
|
8
|
+
qtRoot = "__qt_root",
|
|
9
|
+
qtArrDeth = "__qt_arr_deth"
|
|
10
|
+
}
|
|
11
|
+
export declare const isTrackProp: (target: object, prop: string | symbol) => boolean;
|
|
12
|
+
export declare const qtGetParent: (root: object, paths: any[], layer: number) => Record<any, any> | undefined;
|
|
13
|
+
export declare function qtReactive(data: object, parent?: any, path?: any): any;
|
|
14
|
+
export declare function qtToReactive(value: any, parent?: any, path?: any): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare class QtChangeData {
|
|
2
|
+
start: number;
|
|
3
|
+
end: number;
|
|
4
|
+
deleteCount: number;
|
|
5
|
+
datas: Map<any, any>;
|
|
6
|
+
names: Map<any, Set<any>>;
|
|
7
|
+
dataArr?: any[];
|
|
8
|
+
updateCount: number;
|
|
9
|
+
rootUpdateCount: number;
|
|
10
|
+
deth: number;
|
|
11
|
+
constructor(start: number, end: number, deleteCount?: number);
|
|
12
|
+
resetData(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare const typeEnum: {
|
|
15
|
+
set: string;
|
|
16
|
+
qtSet: string;
|
|
17
|
+
push: string;
|
|
18
|
+
splice: string;
|
|
19
|
+
pop: string;
|
|
20
|
+
concat: string;
|
|
21
|
+
unknownSet: string;
|
|
22
|
+
currentType: string;
|
|
23
|
+
expectCangeNum: string;
|
|
24
|
+
isInit: string;
|
|
25
|
+
shift: string;
|
|
26
|
+
unshift: string;
|
|
27
|
+
newDatas: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const qtFilterChangeMap: (deth: number | undefined, datas: Map<any, any>) => Map<any, any>;
|
|
30
|
+
export declare const qtLongestSequenceSplit: (maps: QtChangeData) => Map<any, QtChangeData>;
|
|
31
|
+
declare class QtType {
|
|
32
|
+
private targetFlags;
|
|
33
|
+
private targetMaps;
|
|
34
|
+
getFlag(target: any): Map<string, any>;
|
|
35
|
+
getTargetType(target: any, type: any): QtChangeData | undefined;
|
|
36
|
+
getType(target: any): Map<any, QtChangeData> | undefined;
|
|
37
|
+
setType(target: any, type: string, datas: QtChangeData): void;
|
|
38
|
+
deleteType(target: any, type?: string): void;
|
|
39
|
+
changeTypeData(target: any, prop: any, value: any): boolean;
|
|
40
|
+
changeOfsetType(target: any, prop: any, value: any, name?: any, deth?: number): void;
|
|
41
|
+
recordNewData(target: any, items: any[]): void;
|
|
42
|
+
checkIsNewData(target: any, data: any): boolean;
|
|
43
|
+
}
|
|
44
|
+
declare const qtType: QtType;
|
|
45
|
+
export default qtType;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QtChangeData } from './types';
|
|
2
|
+
export interface IQtWatchOptions {
|
|
3
|
+
init: (datas: any[]) => void;
|
|
4
|
+
add: (datas: any[]) => void;
|
|
5
|
+
update: (position: number, dataMaps: QtChangeData, oldTarget: any[]) => void;
|
|
6
|
+
insert: (position: number, datas: any[]) => void;
|
|
7
|
+
delete: (position: number, count: number) => void;
|
|
8
|
+
clear: () => void;
|
|
9
|
+
resetValue?: (datas: any[]) => void;
|
|
10
|
+
[k: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const qtCreateUid: (key: string) => string;
|
|
13
|
+
export declare const qtCloneObj: (target: object, isKey?: boolean) => any;
|
|
14
|
+
export declare function qtWatchAll(target: any, options: IQtWatchOptions): {
|
|
15
|
+
stop(): void;
|
|
16
|
+
} | undefined;
|
|
@@ -22,7 +22,7 @@ export declare function buildCommonParams(type: QTMediaSeriesType, group: QTMedi
|
|
|
22
22
|
contentHeight?: undefined;
|
|
23
23
|
} | undefined;
|
|
24
24
|
export declare function buildLeftRightParams(type: QTMediaSeriesType, group: QTMediaSeriesGroup, styleType: QTMediaSeriesStyleType, data: QTMediaSeriesData): any;
|
|
25
|
-
export declare function buildMediaSeriesContentHeight(type: QTMediaSeriesType, group: QTMediaSeriesGroup, styleType: QTMediaSeriesStyleType, data: QTMediaSeriesData):
|
|
25
|
+
export declare function buildMediaSeriesContentHeight(type: QTMediaSeriesType, group: QTMediaSeriesGroup, styleType: QTMediaSeriesStyleType, data: QTMediaSeriesData): number;
|
|
26
26
|
export declare function buildMediaSeriesHeight(type: QTMediaSeriesType, group: QTMediaSeriesGroup, styleType: QTMediaSeriesStyleType, data: QTMediaSeriesData): number;
|
|
27
27
|
export declare function buildSeriesLeftRightHeight(type: QTMediaSeriesType, group: QTMediaSeriesGroup, styleType: QTMediaSeriesStyleType, data: QTMediaSeriesData, params: any): any;
|
|
28
28
|
export declare function buildSeriesNumberData(page: number, pageSize: number, dataArray: Array<QTMediaSeries>): Array<QTMediaSeries>;
|
|
@@ -17,6 +17,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
cornerRadius: number;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
gradientFocusBackground: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {
|
|
23
|
+
colors: string[];
|
|
24
|
+
orientation: number;
|
|
25
|
+
cornerRadius: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
20
28
|
iconGradientBackground: {
|
|
21
29
|
type: ObjectConstructor;
|
|
22
30
|
default: () => {
|
|
@@ -49,6 +57,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
57
|
selectColor: string;
|
|
50
58
|
};
|
|
51
59
|
};
|
|
60
|
+
itemDivWidth: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
itemDivHeight: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
52
68
|
}, {
|
|
53
69
|
isVip: import("vue").Ref<boolean>;
|
|
54
70
|
seriesType: import("vue").Ref<QTMediaSeriesType>;
|
|
@@ -90,6 +106,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
106
|
cornerRadius: number;
|
|
91
107
|
};
|
|
92
108
|
};
|
|
109
|
+
gradientFocusBackground: {
|
|
110
|
+
type: ObjectConstructor;
|
|
111
|
+
default: () => {
|
|
112
|
+
colors: string[];
|
|
113
|
+
orientation: number;
|
|
114
|
+
cornerRadius: number;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
93
117
|
iconGradientBackground: {
|
|
94
118
|
type: ObjectConstructor;
|
|
95
119
|
default: () => {
|
|
@@ -122,6 +146,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
146
|
selectColor: string;
|
|
123
147
|
};
|
|
124
148
|
};
|
|
149
|
+
itemDivWidth: {
|
|
150
|
+
type: NumberConstructor;
|
|
151
|
+
default: number;
|
|
152
|
+
};
|
|
153
|
+
itemDivHeight: {
|
|
154
|
+
type: NumberConstructor;
|
|
155
|
+
default: number;
|
|
156
|
+
};
|
|
125
157
|
}>> & {
|
|
126
158
|
"onLoad-data"?: ((...args: any[]) => any) | undefined;
|
|
127
159
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -130,10 +162,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
162
|
}, {
|
|
131
163
|
itemHeight: number;
|
|
132
164
|
gradientBackground: Record<string, any>;
|
|
165
|
+
gradientFocusBackground: Record<string, any>;
|
|
133
166
|
iconGradientBackground: Record<string, any>;
|
|
134
167
|
markColor: string;
|
|
135
168
|
markVipColor: string;
|
|
136
169
|
textColors: Record<string, any>;
|
|
137
170
|
textVipColors: Record<string, any>;
|
|
171
|
+
itemDivWidth: number;
|
|
172
|
+
itemDivHeight: number;
|
|
138
173
|
}, {}>;
|
|
139
174
|
export default _default;
|
|
@@ -11,6 +11,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
cornerRadius: number;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
gradientFocusBackground: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {
|
|
17
|
+
colors: string[];
|
|
18
|
+
orientation: number;
|
|
19
|
+
cornerRadius: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
14
22
|
iconGradientBackground: {
|
|
15
23
|
type: ObjectConstructor;
|
|
16
24
|
default: () => {
|
|
@@ -56,6 +64,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
64
|
cornerRadius: number;
|
|
57
65
|
};
|
|
58
66
|
};
|
|
67
|
+
gradientFocusBackground: {
|
|
68
|
+
type: ObjectConstructor;
|
|
69
|
+
default: () => {
|
|
70
|
+
colors: string[];
|
|
71
|
+
orientation: number;
|
|
72
|
+
cornerRadius: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
59
75
|
iconGradientBackground: {
|
|
60
76
|
type: ObjectConstructor;
|
|
61
77
|
default: () => {
|
|
@@ -91,6 +107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
107
|
}>>, {
|
|
92
108
|
isVip: boolean;
|
|
93
109
|
gradientBackground: Record<string, any>;
|
|
110
|
+
gradientFocusBackground: Record<string, any>;
|
|
94
111
|
iconGradientBackground: Record<string, any>;
|
|
95
112
|
markColor: string;
|
|
96
113
|
markVipColor: string;
|
|
@@ -11,6 +11,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
cornerRadius: number;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
gradientFocusBackground: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {
|
|
17
|
+
colors: string[];
|
|
18
|
+
orientation: number;
|
|
19
|
+
cornerRadius: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
14
22
|
iconGradientBackground: {
|
|
15
23
|
type: ObjectConstructor;
|
|
16
24
|
default: () => {
|
|
@@ -43,6 +51,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
51
|
selectColor: string;
|
|
44
52
|
};
|
|
45
53
|
};
|
|
54
|
+
itemWidth: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
itemHeight: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
46
62
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
63
|
isVip: {
|
|
48
64
|
type: BooleanConstructor;
|
|
@@ -56,6 +72,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
72
|
cornerRadius: number;
|
|
57
73
|
};
|
|
58
74
|
};
|
|
75
|
+
gradientFocusBackground: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {
|
|
78
|
+
colors: string[];
|
|
79
|
+
orientation: number;
|
|
80
|
+
cornerRadius: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
59
83
|
iconGradientBackground: {
|
|
60
84
|
type: ObjectConstructor;
|
|
61
85
|
default: () => {
|
|
@@ -88,13 +112,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
112
|
selectColor: string;
|
|
89
113
|
};
|
|
90
114
|
};
|
|
115
|
+
itemWidth: {
|
|
116
|
+
type: NumberConstructor;
|
|
117
|
+
default: number;
|
|
118
|
+
};
|
|
119
|
+
itemHeight: {
|
|
120
|
+
type: NumberConstructor;
|
|
121
|
+
default: number;
|
|
122
|
+
};
|
|
91
123
|
}>>, {
|
|
92
124
|
isVip: boolean;
|
|
93
125
|
gradientBackground: Record<string, any>;
|
|
126
|
+
gradientFocusBackground: Record<string, any>;
|
|
94
127
|
iconGradientBackground: Record<string, any>;
|
|
95
128
|
markColor: string;
|
|
96
129
|
markVipColor: string;
|
|
97
130
|
textColors: Record<string, any>;
|
|
98
131
|
textVipColors: Record<string, any>;
|
|
132
|
+
itemWidth: number;
|
|
133
|
+
itemHeight: number;
|
|
99
134
|
}, {}>;
|
|
100
135
|
export default _default;
|
package/dist/src/tab/QTITab.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
|
|
|
6
6
|
import { QTWaterfallItem } from "../waterfall/core/QTWaterfallItem";
|
|
7
7
|
import { QTTabPage } from "./QTTabPage";
|
|
8
8
|
import { QTIView } from "../view/QTIView";
|
|
9
|
+
import { QTTabDataManager } from "./QTTabDataManager";
|
|
9
10
|
export interface QTITab extends QTIView {
|
|
10
11
|
initTab(tab: QTTab): void;
|
|
11
12
|
initPage(waterfall: QTTabPage): void;
|
|
@@ -13,6 +14,7 @@ export interface QTITab extends QTIView {
|
|
|
13
14
|
getCurrentPageIndex(): number;
|
|
14
15
|
setPageData(pageIndex: number, tabPage: QTTabPageData): void;
|
|
15
16
|
addPageData(pageIndex: number, tabPageData: QTTabPageData, deleteCount: number): void;
|
|
17
|
+
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
|
|
16
18
|
updatePageData(pageIndex: number, tabPageData: QTTabPageData): void;
|
|
17
19
|
updatePageSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): void;
|
|
18
20
|
deletePageSection(pageIndex: number, sectionIndex: number, count: number): void;
|
|
@@ -44,4 +46,5 @@ export interface QTITab extends QTIView {
|
|
|
44
46
|
translationRight(): void;
|
|
45
47
|
destroy(): void;
|
|
46
48
|
cancelAll(): void;
|
|
49
|
+
getDataManager(): QTTabDataManager;
|
|
47
50
|
}
|
|
@@ -10,7 +10,8 @@ export interface QTTabDataManager {
|
|
|
10
10
|
setPageDataState(pageIndex: number, page: QTTabPageDataState): void;
|
|
11
11
|
getTabPageDataState(pageIndex: number): QTTabPageDataState | undefined;
|
|
12
12
|
getSectionList(pageIndex: number): Array<QTWaterfallSection>;
|
|
13
|
-
|
|
13
|
+
insertSectionList(pageIndex: number, sectionIndex: number, sections: Array<QTWaterfallSection>): QTTabIndex;
|
|
14
|
+
addSectionList(pageIndex: number, sections: Array<QTWaterfallSection>, deleteCount: number): QTTabIndex;
|
|
14
15
|
deleteSection(pageIndex: number, sectionIndex: number, count: number): QTTabIndex;
|
|
15
16
|
updateSectionList(pageIndex: number, sectionList: Array<QTWaterfallSection>): QTTabIndex;
|
|
16
17
|
updateSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): QTTabIndex;
|
|
@@ -8,6 +8,7 @@ import { QTWaterfallItem } from "../waterfall/core/QTWaterfallItem";
|
|
|
8
8
|
import { QTTabPageState } from "./QTTabPageState";
|
|
9
9
|
import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
|
|
10
10
|
import { QTTabItem } from "./QTTabItem";
|
|
11
|
+
import { QTPluginViewEvent } from "../plugin/QTIPluginView";
|
|
11
12
|
declare const _default: import("vue").DefineComponent<{
|
|
12
13
|
enablePlaceholder: {
|
|
13
14
|
type: BooleanConstructor;
|
|
@@ -150,6 +151,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
151
|
type: NumberConstructor;
|
|
151
152
|
default: number;
|
|
152
153
|
};
|
|
154
|
+
qtTabSectionEnable: {
|
|
155
|
+
type: ObjectConstructor;
|
|
156
|
+
default: () => {
|
|
157
|
+
flexSectionEnable: boolean;
|
|
158
|
+
flexSection: {
|
|
159
|
+
qtPosterEnable: boolean;
|
|
160
|
+
qtPluginItemEnable: boolean;
|
|
161
|
+
cardItemEnable: boolean;
|
|
162
|
+
};
|
|
163
|
+
listSectionEnable: boolean;
|
|
164
|
+
listSection: {
|
|
165
|
+
qtPosterEnable: boolean;
|
|
166
|
+
};
|
|
167
|
+
loadingSectionEnable: boolean;
|
|
168
|
+
endSectionEnable: boolean;
|
|
169
|
+
blankSectionEnable: boolean;
|
|
170
|
+
cardSectionEnable: boolean;
|
|
171
|
+
pluginSectionEnable: boolean;
|
|
172
|
+
vueSectionEnable: boolean;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
153
175
|
}, {
|
|
154
176
|
dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
|
|
155
177
|
requestFocus: () => void;
|
|
@@ -199,7 +221,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
221
|
onTabPageLoadData: (e: QTTabEvent) => void;
|
|
200
222
|
onTabPageChanged: (e: QTTabEvent) => void;
|
|
201
223
|
onTabEvent: (e: QTTabEvent) => void;
|
|
202
|
-
onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
224
|
+
onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem, e: any) => void;
|
|
203
225
|
onWaterfallItemFocused: (sectionIndex: number, itemIndex: number, isFocused: boolean, item: QTWaterfallItem) => void;
|
|
204
226
|
onWaterfallSectionBind: (pageIndex: number, sectionIndex: number) => void;
|
|
205
227
|
onWaterfallSectionAttached: (pageIndex: number, sectionIndex: number) => void;
|
|
@@ -212,7 +234,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
212
234
|
onTabClick: (e: QTTabItem) => void;
|
|
213
235
|
getCurrentPageIndex: () => number;
|
|
214
236
|
getCurrentTabIndex: () => Promise<number>;
|
|
215
|
-
|
|
237
|
+
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
|
|
238
|
+
onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
|
|
239
|
+
onPluginLoadError: (event: QTPluginViewEvent) => void;
|
|
240
|
+
getDataManager(): import("./QTTabDataManager").QTTabDataManager;
|
|
241
|
+
}, unknown, {}, {}, 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<{
|
|
216
242
|
enablePlaceholder: {
|
|
217
243
|
type: BooleanConstructor;
|
|
218
244
|
default: boolean;
|
|
@@ -354,6 +380,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
354
380
|
type: NumberConstructor;
|
|
355
381
|
default: number;
|
|
356
382
|
};
|
|
383
|
+
qtTabSectionEnable: {
|
|
384
|
+
type: ObjectConstructor;
|
|
385
|
+
default: () => {
|
|
386
|
+
flexSectionEnable: boolean;
|
|
387
|
+
flexSection: {
|
|
388
|
+
qtPosterEnable: boolean;
|
|
389
|
+
qtPluginItemEnable: boolean;
|
|
390
|
+
cardItemEnable: boolean;
|
|
391
|
+
};
|
|
392
|
+
listSectionEnable: boolean;
|
|
393
|
+
listSection: {
|
|
394
|
+
qtPosterEnable: boolean;
|
|
395
|
+
};
|
|
396
|
+
loadingSectionEnable: boolean;
|
|
397
|
+
endSectionEnable: boolean;
|
|
398
|
+
blankSectionEnable: boolean;
|
|
399
|
+
cardSectionEnable: boolean;
|
|
400
|
+
pluginSectionEnable: boolean;
|
|
401
|
+
vueSectionEnable: boolean;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
357
404
|
}>> & {
|
|
358
405
|
onOnTabPageLoadData?: ((...args: any[]) => any) | undefined;
|
|
359
406
|
onOnTabPageChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -371,6 +418,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
371
418
|
onOnTabPageScrollToEnd?: ((...args: any[]) => any) | undefined;
|
|
372
419
|
onOnTabPageScrollToStart?: ((...args: any[]) => any) | undefined;
|
|
373
420
|
onOnTabClick?: ((...args: any[]) => any) | undefined;
|
|
421
|
+
onOnPluginLoadSuccess?: ((...args: any[]) => any) | undefined;
|
|
422
|
+
onOnPluginLoadError?: ((...args: any[]) => any) | undefined;
|
|
374
423
|
}, {
|
|
375
424
|
enablePlaceholder: boolean;
|
|
376
425
|
preloadNumber: number;
|
|
@@ -406,5 +455,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
406
455
|
horizontalFadingEdgeEnabled: boolean;
|
|
407
456
|
verticalFadingEdgeEnabled: boolean;
|
|
408
457
|
fadingEdgeLength: number;
|
|
458
|
+
qtTabSectionEnable: Record<string, any>;
|
|
409
459
|
}, {}>;
|
|
410
460
|
export default _default;
|