js: slider add property slideStyle

This commit is contained in:
pengfei.zhou 2022-07-15 17:18:52 +08:00 committed by osborn
parent e6bdc3d819
commit b4eca3be2b
7 changed files with 7 additions and 7 deletions

View File

@ -2728,7 +2728,7 @@ var Slider = /** @class */ (function (_super) {
__decorate$9([ __decorate$9([
Property, Property,
__metadata$9("design:type", String) __metadata$9("design:type", String)
], Slider.prototype, "pageTransformer", void 0); ], Slider.prototype, "slideStyle", void 0);
return Slider; return Slider;
}(Superview)); }(Superview));
function slider(config) { function slider(config) {

View File

@ -2069,7 +2069,7 @@ __decorate$9([
__decorate$9([ __decorate$9([
Property, Property,
__metadata$9("design:type", String) __metadata$9("design:type", String)
], Slider.prototype, "pageTransformer", void 0); ], Slider.prototype, "slideStyle", void 0);
function slider(config) { function slider(config) {
const ret = new Slider; const ret = new Slider;
ret.apply(config); ret.apply(config);

View File

@ -3597,7 +3597,7 @@ __decorate$9([
__decorate$9([ __decorate$9([
Property, Property,
__metadata$9("design:type", String) __metadata$9("design:type", String)
], Slider.prototype, "pageTransformer", void 0); ], Slider.prototype, "slideStyle", void 0);
function slider(config) { function slider(config) {
const ret = new Slider; const ret = new Slider;
ret.apply(config); ret.apply(config);

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

@ -810,7 +810,7 @@ declare module 'doric/lib/src/widget/slider' {
* Take effect only on iOS * Take effect only on iOS
*/ */
bounces?: boolean; bounces?: boolean;
pageTransformer?: "zoomout"; slideStyle?: "zoomOut";
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>; slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
getSlidedPage(context: BridgeContext): Promise<number>; getSlidedPage(context: BridgeContext): Promise<number>;
} }

View File

@ -20,7 +20,7 @@ export declare class Slider extends Superview {
* Take effect only on iOS * Take effect only on iOS
*/ */
bounces?: boolean; bounces?: boolean;
pageTransformer?: "zoomout"; slideStyle?: "zoomOut";
private getItem; private getItem;
private renderBunchedItems; private renderBunchedItems;
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>; slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;

View File

@ -91,7 +91,7 @@ __decorate([
__decorate([ __decorate([
Property, Property,
__metadata("design:type", String) __metadata("design:type", String)
], Slider.prototype, "pageTransformer", void 0); ], Slider.prototype, "slideStyle", void 0);
export function slider(config) { export function slider(config) {
const ret = new Slider; const ret = new Slider;
ret.apply(config); ret.apply(config);

View File

@ -58,7 +58,7 @@ export class Slider extends Superview {
bounces?: boolean bounces?: boolean
@Property @Property
pageTransformer?: "zoomout" slideStyle?: "zoomOut"
private getItem(itemIdx: number) { private getItem(itemIdx: number) {
let view = this.renderPage(itemIdx) let view = this.renderPage(itemIdx)