1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
- import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
- import _createClass from 'babel-runtime/helpers/createClass';
- import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
- import _inherits from 'babel-runtime/helpers/inherits';
-
-
- import util from '../../ons/util';
- import BaseAnimator from '../../ons/base-animator';
-
- var NavigatorAnimator = function (_BaseAnimator) {
- _inherits(NavigatorAnimator, _BaseAnimator);
-
-
-
- function NavigatorAnimator(options) {
- _classCallCheck(this, NavigatorAnimator);
-
- options = util.extend({
- timing: 'linear',
- duration: '0.4',
- delay: '0'
- }, options || {});
-
- return _possibleConstructorReturn(this, (NavigatorAnimator.__proto__ || _Object$getPrototypeOf(NavigatorAnimator)).call(this, options));
- }
-
- _createClass(NavigatorAnimator, [{
- key: 'push',
- value: function push(enterPage, leavePage, callback) {
- callback();
- }
- }, {
- key: 'pop',
- value: function pop(enterPage, leavePage, callback) {
- callback();
- }
- }, {
- key: 'block',
- value: function block(page) {
- var blocker = util.createElement('\n <div style="position: absolute; background-color: transparent; width: 100%; height: 100%; z-index: 100000"></div>\n ');
- page.parentNode.appendChild(blocker);
- return function () {
- return blocker.remove();
- };
- }
- }]);
-
- return NavigatorAnimator;
- }(BaseAnimator);
-
- export default NavigatorAnimator;
|