js: draggable deprecated & add touch api

This commit is contained in:
王劲鹏
2021-09-22 15:30:08 +08:00
committed by osborn
parent 1f0721af2e
commit 8ad5c06ff7
12 changed files with 210 additions and 2 deletions

View File

@@ -4048,12 +4048,18 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* @deprecated The class should not be used
*/
class Draggable extends Stack {
}
__decorate$2([
Property,
__metadata$2("design:type", Function)
], Draggable.prototype, "onDrag", void 0);
/**
* @deprecated The function should not be used
*/
function draggable(views, config) {
const ret = new Draggable;
ret.layoutConfig = layoutConfig().fit();
@@ -4157,6 +4163,22 @@ __decorate([
Property,
__metadata("design:type", Function)
], GestureContainer.prototype, "onSwipe", void 0);
__decorate([
Property,
__metadata("design:type", Function)
], GestureContainer.prototype, "onTouchDown", void 0);
__decorate([
Property,
__metadata("design:type", Function)
], GestureContainer.prototype, "onTouchMove", void 0);
__decorate([
Property,
__metadata("design:type", Function)
], GestureContainer.prototype, "onTouchUp", void 0);
__decorate([
Property,
__metadata("design:type", Function)
], GestureContainer.prototype, "onTouchCancel", void 0);
function gestureContainer(views, config) {
const ret = new GestureContainer;
ret.layoutConfig = layoutConfig().fit();

File diff suppressed because one or more lines are too long