@quicktvui/quicktvui3 1.1.45-beta.1 → 1.1.46
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 +7 -7
- package/dist/src/index.d.ts +1 -2
- package/dist/src/qtListen/index.d.ts +2 -4
- package/dist/src/qtListen/qtArray.d.ts +0 -1
- package/dist/src/qtListen/qtDiff.d.ts +1 -1
- package/dist/src/qtListen/ref.d.ts +0 -30
- package/dist/src/qtListen/types.d.ts +2 -13
- package/dist/src/qtListen/watch.d.ts +1 -6
- package/dist/src/tab/QTTabDataManager.d.ts +1 -1
- package/dist/src/tab/index.vue.d.ts +2 -67
- package/package.json +1 -1
- package/dist/src/tab/useQtTabWatch.d.ts +0 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { arrangeChildren4ListView } from "./utils/utils";
|
|
2
|
-
export { qtRef, qtWatchAll, qtGetParent
|
|
3
|
-
export type { IQtTabDatas } from "./qtListen/index";
|
|
2
|
+
export { qtRef, qtWatchAll, qtGetParent } from "./qtListen/index";
|
|
4
3
|
import { QtAPI } from "./qt/QtAPI";
|
|
5
4
|
declare global {
|
|
6
5
|
var qt: QtAPI;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { qtEffect } from "./effect";
|
|
2
2
|
export { qtGetParent } from "./reactive";
|
|
3
|
-
export { qtRef
|
|
4
|
-
export type { IQtTabDatas } from './ref';
|
|
3
|
+
export { qtRef } from "./ref";
|
|
5
4
|
export { qtWatchAll } from './watch';
|
|
6
|
-
export { qtLongestSequenceSplit, qtFilterChangeMap
|
|
7
|
-
export { qtDiff } from './qtDiff';
|
|
5
|
+
export { qtLongestSequenceSplit, qtFilterChangeMap } from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IQtWatchOptions } from './watch';
|
|
2
|
-
export declare const qtDiff: (oldt: any[], newt: any[], options:
|
|
2
|
+
export declare const qtDiff: (oldt: any[], newt: any[], options: IQtWatchOptions) => void;
|
|
@@ -3,33 +3,3 @@ 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
|
-
sections: 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,19 +25,9 @@ export declare const typeEnum: {
|
|
|
25
25
|
shift: string;
|
|
26
26
|
unshift: string;
|
|
27
27
|
newDatas: string;
|
|
28
|
-
arrChangeProp: string;
|
|
29
28
|
};
|
|
30
29
|
export declare const qtFilterChangeMap: (deth: number | undefined, datas: Map<any, any>) => Map<any, any>;
|
|
31
30
|
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;
|
|
41
31
|
declare class QtType {
|
|
42
32
|
private targetFlags;
|
|
43
33
|
private targetMaps;
|
|
@@ -46,11 +36,10 @@ declare class QtType {
|
|
|
46
36
|
getType(target: any): Map<any, QtChangeData> | undefined;
|
|
47
37
|
setType(target: any, type: string, datas: QtChangeData): void;
|
|
48
38
|
deleteType(target: any, type?: string): void;
|
|
49
|
-
clear(): void;
|
|
50
39
|
changeTypeData(target: any, prop: any, value: any): boolean;
|
|
51
40
|
changeOfsetType(target: any, prop: any, value: any, name?: any, deth?: number): void;
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
recordNewData(target: any, items: any[]): void;
|
|
42
|
+
checkIsNewData(target: any, data: any): boolean;
|
|
54
43
|
}
|
|
55
44
|
declare const qtType: QtType;
|
|
56
45
|
export default qtType;
|
|
@@ -9,12 +9,7 @@ export interface IQtWatchOptions {
|
|
|
9
9
|
resetValue?: (datas: any[]) => void;
|
|
10
10
|
[k: string]: any;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
pointer: number;
|
|
14
|
-
createUid(key?: string): string;
|
|
15
|
-
addUid(data: any, uk?: string): any;
|
|
16
|
-
addUidBatch(arr: any[], uk?: string): void;
|
|
17
|
-
};
|
|
12
|
+
export declare const qtCreateUid: (key: string) => string;
|
|
18
13
|
export declare const qtCloneObj: (target: object, isKey?: boolean) => any;
|
|
19
14
|
export declare function qtWatchAll(target: any, options: IQtWatchOptions): {
|
|
20
15
|
stop(): void;
|
|
@@ -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>): 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;
|
|
@@ -174,37 +174,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
itemStoreEnable: boolean;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
tabConfigs: {
|
|
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
|
-
datas: {
|
|
192
|
-
type: {
|
|
193
|
-
(arrayLength: number): any[];
|
|
194
|
-
(...items: any[]): any[];
|
|
195
|
-
new (arrayLength: number): any[];
|
|
196
|
-
new (...items: any[]): any[];
|
|
197
|
-
isArray(arg: any): arg is any[];
|
|
198
|
-
readonly prototype: any[];
|
|
199
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
200
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
201
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
202
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
203
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
204
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
205
|
-
};
|
|
206
|
-
default: () => never[];
|
|
207
|
-
};
|
|
208
177
|
}, {
|
|
209
178
|
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
|
|
210
179
|
requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
|
|
@@ -254,7 +223,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
254
223
|
getPageSection: (pageIndex: number, sectionIndex: number) => QTWaterfallSection | undefined;
|
|
255
224
|
getPageSectionList: (pageIndex: number) => Array<QTWaterfallSection> | undefined;
|
|
256
225
|
deletePageSection: (pageIndex: number, sectionIndex: number, count: number) => void;
|
|
257
|
-
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem
|
|
226
|
+
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>) => void;
|
|
258
227
|
getPageItem: (pageIndex: number, sectionIndex: number, itemIndex: number) => QTWaterfallItem | undefined;
|
|
259
228
|
updatePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
260
229
|
deletePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, count: number) => void;
|
|
@@ -294,7 +263,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
263
|
onTabClick: (e: QTTabItem) => void;
|
|
295
264
|
getCurrentPageIndex: () => number;
|
|
296
265
|
getCurrentTabIndex: () => Promise<number>;
|
|
297
|
-
insertPageData
|
|
266
|
+
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
|
|
298
267
|
onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
|
|
299
268
|
onPluginLoadError: (event: QTPluginViewEvent) => void;
|
|
300
269
|
getDataManager(): import("./QTTabDataManager").QTTabDataManager;
|
|
@@ -463,37 +432,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
463
432
|
itemStoreEnable: boolean;
|
|
464
433
|
};
|
|
465
434
|
};
|
|
466
|
-
tabConfigs: {
|
|
467
|
-
type: ObjectConstructor;
|
|
468
|
-
default: () => {
|
|
469
|
-
defaultFocusIndex: number;
|
|
470
|
-
defaultIndex: number;
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
waterfallConfig: {
|
|
474
|
-
type: ObjectConstructor;
|
|
475
|
-
default: () => {
|
|
476
|
-
width: number;
|
|
477
|
-
height: number;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
datas: {
|
|
481
|
-
type: {
|
|
482
|
-
(arrayLength: number): any[];
|
|
483
|
-
(...items: any[]): any[];
|
|
484
|
-
new (arrayLength: number): any[];
|
|
485
|
-
new (...items: any[]): any[];
|
|
486
|
-
isArray(arg: any): arg is any[];
|
|
487
|
-
readonly prototype: any[];
|
|
488
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
489
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
490
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
491
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
492
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
493
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
494
|
-
};
|
|
495
|
-
default: () => never[];
|
|
496
|
-
};
|
|
497
435
|
}>> & {
|
|
498
436
|
onOnTabPageLoadData?: ((...args: any[]) => any) | undefined;
|
|
499
437
|
onOnTabPageChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -549,8 +487,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
549
487
|
verticalFadingEdgeEnabled: boolean;
|
|
550
488
|
fadingEdgeLength: number;
|
|
551
489
|
qtTabSectionEnable: Record<string, any>;
|
|
552
|
-
tabConfigs: Record<string, any>;
|
|
553
|
-
waterfallConfig: Record<string, any>;
|
|
554
|
-
datas: any[];
|
|
555
490
|
}, {}>;
|
|
556
491
|
export default _default;
|
package/package.json
CHANGED