js: declare slider style gallery
This commit is contained in:
parent
d92ce26248
commit
e5e10e7abc
5
doric-js/index.d.ts
vendored
5
doric-js/index.d.ts
vendored
@ -1105,6 +1105,11 @@ declare module "doric" {
|
||||
type: "zoomOut";
|
||||
minScale: number;
|
||||
maxScale: number;
|
||||
} | {
|
||||
type: "gallery";
|
||||
itemWidth: number;
|
||||
minScale: number;
|
||||
minAlpha: number;
|
||||
};
|
||||
slidePosition?: number;
|
||||
/**
|
||||
|
5
doric-js/lib/src/widget/slider.d.ts
vendored
5
doric-js/lib/src/widget/slider.d.ts
vendored
@ -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;
|
||||
/**
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user