mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
refactor(all): allow external imports
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
export { GestureController } from './gesture-controller';
|
||||
export * from './gesture-controller-utils';
|
||||
|
||||
export interface GestureConfig {
|
||||
name: string;
|
||||
priority?: number;
|
||||
disableScroll?: boolean;
|
||||
}
|
||||
|
||||
export interface BlockerConfig {
|
||||
disable?: string[];
|
||||
disableScroll?: boolean;
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
import { GestureController } from '../..';
|
||||
import { GestureController } from '../../interface';
|
||||
|
||||
export class GestureDelegate {
|
||||
private ctrl: GestureController|undefined;
|
||||
private ctrl?: GestureController;
|
||||
|
||||
constructor(
|
||||
ctrl: any,
|
||||
@ -58,10 +58,9 @@ export class GestureDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class BlockerDelegate {
|
||||
|
||||
private ctrl: GestureController|undefined;
|
||||
private ctrl?: GestureController;
|
||||
|
||||
constructor(
|
||||
private id: number,
|
||||
@ -106,14 +105,3 @@ export class BlockerDelegate {
|
||||
this.ctrl = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
export interface GestureConfig {
|
||||
name: string;
|
||||
priority?: number;
|
||||
disableScroll?: boolean;
|
||||
}
|
||||
|
||||
export interface BlockerConfig {
|
||||
disable?: string[];
|
||||
disableScroll?: boolean;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Component, Event, EventEmitter, Method } from '@stencil/core';
|
||||
import { BlockerConfig, BlockerDelegate, GestureConfig, GestureDelegate } from './gesture-controller-utils';
|
||||
import { BlockerDelegate, GestureDelegate } from './gesture-controller-utils';
|
||||
import { BlockerConfig, GestureConfig } from '../../interface';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
Reference in New Issue
Block a user