js: slider add property slideStyle
This commit is contained in:
parent
e6bdc3d819
commit
b4eca3be2b
@ -2728,7 +2728,7 @@ var Slider = /** @class */ (function (_super) {
|
||||
__decorate$9([
|
||||
Property,
|
||||
__metadata$9("design:type", String)
|
||||
], Slider.prototype, "pageTransformer", void 0);
|
||||
], Slider.prototype, "slideStyle", void 0);
|
||||
return Slider;
|
||||
}(Superview));
|
||||
function slider(config) {
|
||||
|
@ -2069,7 +2069,7 @@ __decorate$9([
|
||||
__decorate$9([
|
||||
Property,
|
||||
__metadata$9("design:type", String)
|
||||
], Slider.prototype, "pageTransformer", void 0);
|
||||
], Slider.prototype, "slideStyle", void 0);
|
||||
function slider(config) {
|
||||
const ret = new Slider;
|
||||
ret.apply(config);
|
||||
|
@ -3597,7 +3597,7 @@ __decorate$9([
|
||||
__decorate$9([
|
||||
Property,
|
||||
__metadata$9("design:type", String)
|
||||
], Slider.prototype, "pageTransformer", void 0);
|
||||
], Slider.prototype, "slideStyle", void 0);
|
||||
function slider(config) {
|
||||
const ret = new Slider;
|
||||
ret.apply(config);
|
||||
|
2
doric-js/index.d.ts
vendored
2
doric-js/index.d.ts
vendored
@ -810,7 +810,7 @@ declare module 'doric/lib/src/widget/slider' {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
pageTransformer?: "zoomout";
|
||||
slideStyle?: "zoomOut";
|
||||
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
||||
getSlidedPage(context: BridgeContext): Promise<number>;
|
||||
}
|
||||
|
2
doric-js/lib/src/widget/slider.d.ts
vendored
2
doric-js/lib/src/widget/slider.d.ts
vendored
@ -20,7 +20,7 @@ export declare class Slider extends Superview {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
pageTransformer?: "zoomout";
|
||||
slideStyle?: "zoomOut";
|
||||
private getItem;
|
||||
private renderBunchedItems;
|
||||
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
||||
|
@ -91,7 +91,7 @@ __decorate([
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", String)
|
||||
], Slider.prototype, "pageTransformer", void 0);
|
||||
], Slider.prototype, "slideStyle", void 0);
|
||||
export function slider(config) {
|
||||
const ret = new Slider;
|
||||
ret.apply(config);
|
||||
|
@ -58,7 +58,7 @@ export class Slider extends Superview {
|
||||
bounces?: boolean
|
||||
|
||||
@Property
|
||||
pageTransformer?: "zoomout"
|
||||
slideStyle?: "zoomOut"
|
||||
|
||||
private getItem(itemIdx: number) {
|
||||
let view = this.renderPage(itemIdx)
|
||||
|
Reference in New Issue
Block a user