js: declare slider style gallery

This commit is contained in:
王劲鹏 2023-06-13 15:11:00 +08:00 committed by osborn
parent d92ce26248
commit e5e10e7abc
3 changed files with 11 additions and 1 deletions

5
doric-js/index.d.ts vendored
View File

@ -1105,6 +1105,11 @@ declare module "doric" {
type: "zoomOut";
minScale: number;
maxScale: number;
} | {
type: "gallery";
itemWidth: number;
minScale: number;
minAlpha: number;
};
slidePosition?: number;
/**

View File

@ -32,6 +32,11 @@ export declare class Slider extends Superview {
type: "zoomOut";
minScale: number;
maxScale: number;
} | {
type: "gallery";
itemWidth: number;
minScale: number;
minAlpha: number;
};
slidePosition?: number;
/**

View File

@ -69,7 +69,7 @@ export class Slider extends Superview {
* ZoomOut is currently supported
*/
@Property
slideStyle?: "zoomOut" | { type: "zoomOut", minScale: number, maxScale: number }
slideStyle?: "zoomOut" | { type: "zoomOut", minScale: number, maxScale: number } | { type: "gallery", itemWidth: number, minScale: number, minAlpha: number }
@InconsistProperty
slidePosition?: number