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([
|
__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) {
|
||||||
|
@ -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);
|
||||||
|
@ -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
2
doric-js/index.d.ts
vendored
@ -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>;
|
||||||
}
|
}
|
||||||
|
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
|
* 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>;
|
||||||
|
@ -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);
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user