@quicktvui/quicktvui3 1.1.29 → 1.1.31-beta.1
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 +25 -31
- package/dist/index.js +8 -8
- 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 +1 -2
- package/dist/src/list-view/core/QTIListView.d.ts +1 -1
- package/dist/src/poster/core/QTPoster.d.ts +2 -0
- package/dist/src/poster/core/QTPosterCorner.d.ts +1 -0
- package/dist/src/poster/core/QTPosterPlaceholderImg.d.ts +4 -0
- package/dist/src/poster/index.vue.d.ts +18 -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/index.vue.d.ts +86 -0
- package/dist/src/series/item/media-series-number-item.vue.d.ts +86 -0
- package/dist/src/series/item/media-series-text-item.vue.d.ts +86 -0
- package/dist/src/tab/QTITab.d.ts +1 -0
- package/dist/src/tab/index.vue.d.ts +2 -1
- package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +2 -2
- package/dist/src/waterfall/index.vue.d.ts +17 -0
- package/package.json +6 -10
- package/global.d.ts +0 -9
|
@@ -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,7 +1,6 @@
|
|
|
1
|
-
import Row from "./row/index.vue";
|
|
2
1
|
import { arrangeChildren4ListView } from "./utils/utils";
|
|
2
|
+
export { qtRef, qtWatchAll, qtGetParent } from "./qtListen/index";
|
|
3
3
|
export declare const QuickTVUI: (Vue: any) => void;
|
|
4
|
-
export { Row };
|
|
5
4
|
export type { QTIGridView } from './grid-view/core/QTIGridView';
|
|
6
5
|
export type { QTIListView } from './list-view/core/QTIListView';
|
|
7
6
|
export type { QTIView } from './view/QTIView';
|
|
@@ -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;
|
|
@@ -10,6 +10,7 @@ import { QTFlexStylePadding } from "../../core/QTFlexStylePadding";
|
|
|
10
10
|
import { QTFlexStyleSize } from "../../core/QTFlexStyleSize";
|
|
11
11
|
import { QTPosterScore } from "./QTPosterScore";
|
|
12
12
|
import { QTFocusable } from "../../core/QTFocusable";
|
|
13
|
+
import { QTPosterPlaceholderImg } from "./QTPosterPlaceholderImg";
|
|
13
14
|
export interface QTPoster extends QTWaterfallItem {
|
|
14
15
|
focus?: QTFocusable;
|
|
15
16
|
image?: QTPosterImage;
|
|
@@ -24,5 +25,6 @@ export interface QTPoster extends QTWaterfallItem {
|
|
|
24
25
|
score?: QTPosterScore;
|
|
25
26
|
titleStyle?: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize;
|
|
26
27
|
titleFocusStyle?: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize;
|
|
28
|
+
placeholderImg?: QTPosterPlaceholderImg;
|
|
27
29
|
[prop: string]: any;
|
|
28
30
|
}
|
|
@@ -15,6 +15,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: ObjectConstructor;
|
|
16
16
|
default: () => null;
|
|
17
17
|
};
|
|
18
|
+
borderRadius: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
rippleColor: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
18
26
|
}, {
|
|
19
27
|
dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
|
|
20
28
|
requestFocus: () => void;
|
|
@@ -40,10 +48,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
48
|
type: ObjectConstructor;
|
|
41
49
|
default: () => null;
|
|
42
50
|
};
|
|
51
|
+
borderRadius: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
rippleColor: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
43
59
|
}>>, {
|
|
44
60
|
requestFirstFocus: boolean;
|
|
45
61
|
loadDelay: number;
|
|
46
62
|
type: number;
|
|
47
63
|
templateKeyMap: Record<string, any>;
|
|
64
|
+
borderRadius: number;
|
|
65
|
+
rippleColor: string;
|
|
48
66
|
}, {}>;
|
|
49
67
|
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;
|
|
@@ -9,6 +9,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
type: NumberConstructor;
|
|
10
10
|
default: number;
|
|
11
11
|
};
|
|
12
|
+
gradientBackground: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
default: () => {
|
|
15
|
+
colors: string[];
|
|
16
|
+
orientation: number;
|
|
17
|
+
cornerRadius: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
iconGradientBackground: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {
|
|
23
|
+
colors: string[];
|
|
24
|
+
cornerRadius: number;
|
|
25
|
+
orientation: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
markColor: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
markVipColor: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
textColors: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
default: () => {
|
|
39
|
+
color: string;
|
|
40
|
+
focusColor: string;
|
|
41
|
+
selectColor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
textVipColors: {
|
|
45
|
+
type: ObjectConstructor;
|
|
46
|
+
default: () => {
|
|
47
|
+
color: string;
|
|
48
|
+
focusColor: string;
|
|
49
|
+
selectColor: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
12
52
|
}, {
|
|
13
53
|
isVip: import("vue").Ref<boolean>;
|
|
14
54
|
seriesType: import("vue").Ref<QTMediaSeriesType>;
|
|
@@ -42,6 +82,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
82
|
type: NumberConstructor;
|
|
43
83
|
default: number;
|
|
44
84
|
};
|
|
85
|
+
gradientBackground: {
|
|
86
|
+
type: ObjectConstructor;
|
|
87
|
+
default: () => {
|
|
88
|
+
colors: string[];
|
|
89
|
+
orientation: number;
|
|
90
|
+
cornerRadius: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
iconGradientBackground: {
|
|
94
|
+
type: ObjectConstructor;
|
|
95
|
+
default: () => {
|
|
96
|
+
colors: string[];
|
|
97
|
+
cornerRadius: number;
|
|
98
|
+
orientation: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
markColor: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
markVipColor: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
textColors: {
|
|
110
|
+
type: ObjectConstructor;
|
|
111
|
+
default: () => {
|
|
112
|
+
color: string;
|
|
113
|
+
focusColor: string;
|
|
114
|
+
selectColor: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
textVipColors: {
|
|
118
|
+
type: ObjectConstructor;
|
|
119
|
+
default: () => {
|
|
120
|
+
color: string;
|
|
121
|
+
focusColor: string;
|
|
122
|
+
selectColor: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
45
125
|
}>> & {
|
|
46
126
|
"onLoad-data"?: ((...args: any[]) => any) | undefined;
|
|
47
127
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -49,5 +129,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
129
|
"onGroup-item-focused"?: ((...args: any[]) => any) | undefined;
|
|
50
130
|
}, {
|
|
51
131
|
itemHeight: number;
|
|
132
|
+
gradientBackground: Record<string, any>;
|
|
133
|
+
iconGradientBackground: Record<string, any>;
|
|
134
|
+
markColor: string;
|
|
135
|
+
markVipColor: string;
|
|
136
|
+
textColors: Record<string, any>;
|
|
137
|
+
textVipColors: Record<string, any>;
|
|
52
138
|
}, {}>;
|
|
53
139
|
export default _default;
|
|
@@ -3,12 +3,98 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
|
+
gradientBackground: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {
|
|
9
|
+
colors: string[];
|
|
10
|
+
orientation: number;
|
|
11
|
+
cornerRadius: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
iconGradientBackground: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {
|
|
17
|
+
colors: string[];
|
|
18
|
+
cornerRadius: number;
|
|
19
|
+
orientation: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
markColor: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
markVipColor: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
textColors: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: () => {
|
|
33
|
+
color: string;
|
|
34
|
+
focusColor: string;
|
|
35
|
+
selectColor: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
textVipColors: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => {
|
|
41
|
+
color: string;
|
|
42
|
+
focusColor: string;
|
|
43
|
+
selectColor: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
6
46
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
47
|
isVip: {
|
|
8
48
|
type: BooleanConstructor;
|
|
9
49
|
default: boolean;
|
|
10
50
|
};
|
|
51
|
+
gradientBackground: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => {
|
|
54
|
+
colors: string[];
|
|
55
|
+
orientation: number;
|
|
56
|
+
cornerRadius: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
iconGradientBackground: {
|
|
60
|
+
type: ObjectConstructor;
|
|
61
|
+
default: () => {
|
|
62
|
+
colors: string[];
|
|
63
|
+
cornerRadius: number;
|
|
64
|
+
orientation: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
markColor: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
markVipColor: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
textColors: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {
|
|
78
|
+
color: string;
|
|
79
|
+
focusColor: string;
|
|
80
|
+
selectColor: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
textVipColors: {
|
|
84
|
+
type: ObjectConstructor;
|
|
85
|
+
default: () => {
|
|
86
|
+
color: string;
|
|
87
|
+
focusColor: string;
|
|
88
|
+
selectColor: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
11
91
|
}>>, {
|
|
12
92
|
isVip: boolean;
|
|
93
|
+
gradientBackground: Record<string, any>;
|
|
94
|
+
iconGradientBackground: Record<string, any>;
|
|
95
|
+
markColor: string;
|
|
96
|
+
markVipColor: string;
|
|
97
|
+
textColors: Record<string, any>;
|
|
98
|
+
textVipColors: Record<string, any>;
|
|
13
99
|
}, {}>;
|
|
14
100
|
export default _default;
|
|
@@ -3,12 +3,98 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
|
+
gradientBackground: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {
|
|
9
|
+
colors: string[];
|
|
10
|
+
orientation: number;
|
|
11
|
+
cornerRadius: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
iconGradientBackground: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {
|
|
17
|
+
colors: string[];
|
|
18
|
+
cornerRadius: number;
|
|
19
|
+
orientation: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
markColor: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
markVipColor: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
textColors: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: () => {
|
|
33
|
+
color: string;
|
|
34
|
+
focusColor: string;
|
|
35
|
+
selectColor: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
textVipColors: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => {
|
|
41
|
+
color: string;
|
|
42
|
+
focusColor: string;
|
|
43
|
+
selectColor: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
6
46
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
47
|
isVip: {
|
|
8
48
|
type: BooleanConstructor;
|
|
9
49
|
default: boolean;
|
|
10
50
|
};
|
|
51
|
+
gradientBackground: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => {
|
|
54
|
+
colors: string[];
|
|
55
|
+
orientation: number;
|
|
56
|
+
cornerRadius: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
iconGradientBackground: {
|
|
60
|
+
type: ObjectConstructor;
|
|
61
|
+
default: () => {
|
|
62
|
+
colors: string[];
|
|
63
|
+
cornerRadius: number;
|
|
64
|
+
orientation: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
markColor: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
markVipColor: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
textColors: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {
|
|
78
|
+
color: string;
|
|
79
|
+
focusColor: string;
|
|
80
|
+
selectColor: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
textVipColors: {
|
|
84
|
+
type: ObjectConstructor;
|
|
85
|
+
default: () => {
|
|
86
|
+
color: string;
|
|
87
|
+
focusColor: string;
|
|
88
|
+
selectColor: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
11
91
|
}>>, {
|
|
12
92
|
isVip: boolean;
|
|
93
|
+
gradientBackground: Record<string, any>;
|
|
94
|
+
iconGradientBackground: Record<string, any>;
|
|
95
|
+
markColor: string;
|
|
96
|
+
markVipColor: string;
|
|
97
|
+
textColors: Record<string, any>;
|
|
98
|
+
textVipColors: Record<string, any>;
|
|
13
99
|
}, {}>;
|
|
14
100
|
export default _default;
|
package/dist/src/tab/QTITab.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface QTITab extends QTIView {
|
|
|
13
13
|
getCurrentPageIndex(): number;
|
|
14
14
|
setPageData(pageIndex: number, tabPage: QTTabPageData): void;
|
|
15
15
|
addPageData(pageIndex: number, tabPageData: QTTabPageData, deleteCount: number): void;
|
|
16
|
+
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
|
|
16
17
|
updatePageData(pageIndex: number, tabPageData: QTTabPageData): void;
|
|
17
18
|
updatePageSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): void;
|
|
18
19
|
deletePageSection(pageIndex: number, sectionIndex: number, count: number): void;
|
|
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
199
|
onTabPageLoadData: (e: QTTabEvent) => void;
|
|
200
200
|
onTabPageChanged: (e: QTTabEvent) => void;
|
|
201
201
|
onTabEvent: (e: QTTabEvent) => void;
|
|
202
|
-
onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
202
|
+
onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem, e: any) => void;
|
|
203
203
|
onWaterfallItemFocused: (sectionIndex: number, itemIndex: number, isFocused: boolean, item: QTWaterfallItem) => void;
|
|
204
204
|
onWaterfallSectionBind: (pageIndex: number, sectionIndex: number) => void;
|
|
205
205
|
onWaterfallSectionAttached: (pageIndex: number, sectionIndex: number) => void;
|
|
@@ -212,6 +212,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
212
212
|
onTabClick: (e: QTTabItem) => void;
|
|
213
213
|
getCurrentPageIndex: () => number;
|
|
214
214
|
getCurrentTabIndex: () => Promise<number>;
|
|
215
|
+
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
|
|
215
216
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged" | "onTabMoveToTopStart" | "onTabMoveToTopEnd" | "onTabMoveToBottomStart" | "onTabMoveToBottomEnd" | "onTabChanged" | "onTabPageScrollToEnd" | "onTabPageScrollToStart" | "onTabClick")[], "onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged" | "onTabMoveToTopStart" | "onTabMoveToTopEnd" | "onTabMoveToBottomStart" | "onTabMoveToBottomEnd" | "onTabChanged" | "onTabPageScrollToEnd" | "onTabPageScrollToStart" | "onTabClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
216
217
|
enablePlaceholder: {
|
|
217
218
|
type: BooleanConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QTWaterfallItem } from "./QTWaterfallItem";
|
|
2
2
|
import { QTWaterfall } from "./QTWaterfall";
|
|
3
3
|
import { QTWaterfallSection } from "./QTWaterfallSection";
|
|
4
|
-
export declare function generateSectionList(waterfall: QTWaterfall, sectionList: Array<QTWaterfallSection
|
|
5
|
-
export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection): QTWaterfallSection;
|
|
4
|
+
export declare function generateSectionList(waterfall: QTWaterfall, sectionList: Array<QTWaterfallSection>, isResetSection?: boolean): Array<QTWaterfallItem>;
|
|
5
|
+
export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection, isResetSection?: boolean): QTWaterfallSection;
|
|
@@ -33,6 +33,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
type: NumberConstructor;
|
|
34
34
|
default: number;
|
|
35
35
|
};
|
|
36
|
+
listData: {
|
|
37
|
+
type: ArrayConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
pStype: {
|
|
41
|
+
type: ObjectConstructor;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
36
44
|
}, {
|
|
37
45
|
dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
|
|
38
46
|
requestFocus: () => void;
|
|
@@ -111,6 +119,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
119
|
type: NumberConstructor;
|
|
112
120
|
default: number;
|
|
113
121
|
};
|
|
122
|
+
listData: {
|
|
123
|
+
type: ArrayConstructor;
|
|
124
|
+
required: false;
|
|
125
|
+
};
|
|
126
|
+
pStype: {
|
|
127
|
+
type: ObjectConstructor;
|
|
128
|
+
default: () => {};
|
|
129
|
+
};
|
|
114
130
|
}>> & {
|
|
115
131
|
onOnScroll?: ((...args: any[]) => any) | undefined;
|
|
116
132
|
onOnScrollStateChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -129,5 +145,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
145
|
customItemPool: Record<string, any>;
|
|
130
146
|
scrollYLesserReferenceValue: number;
|
|
131
147
|
scrollYGreaterReferenceValue: number;
|
|
148
|
+
pStype: Record<string, any>;
|
|
132
149
|
}, {}>;
|
|
133
150
|
export default _default;
|