iOS: implement NestedSlider slidePosition

This commit is contained in:
pengfei.zhou
2023-04-04 20:28:31 +08:00
committed by osborn
parent 18d5050c7a
commit 91d5d016f9
13 changed files with 64 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ export declare class NestedSlider extends Group {
* Take effect only on iOS
*/
scrollsToTop?: boolean;
slidePosition?: number;
addSlideItem(view: View): void;
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
getSlidedPage(context: BridgeContext): Promise<number>;

View File

@@ -22,7 +22,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Group, Property } from '../ui/view';
import { Group, Property, InconsistProperty } from '../ui/view';
export class NestedSlider extends Group {
addSlideItem(view) {
this.addChild(view);
@@ -50,3 +50,7 @@ __decorate([
Property,
__metadata("design:type", Boolean)
], NestedSlider.prototype, "scrollsToTop", void 0);
__decorate([
InconsistProperty,
__metadata("design:type", Number)
], NestedSlider.prototype, "slidePosition", void 0);