mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Fixed #239
This commit is contained in:
3
dist/css/ionic.css
vendored
3
dist/css/ionic.css
vendored
@@ -3224,6 +3224,9 @@ a.subdued {
|
||||
.menu-animated {
|
||||
-webkit-transition: transform 200ms ease;
|
||||
-moz-transition: transform 200ms ease;
|
||||
transition: transform 200ms ease;
|
||||
-webkit-transition: -webkit-transform 200ms ease;
|
||||
-moz-transition: -moz-transform 200ms ease;
|
||||
transition: transform 200ms ease; }
|
||||
|
||||
/**
|
||||
|
||||
41
dist/js/ionic-angular.js
vendored
41
dist/js/ionic-angular.js
vendored
@@ -1836,31 +1836,32 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture'])
|
||||
* some side menu stuff on the current scope.
|
||||
*/
|
||||
.controller('SideMenuCtrl', ['$scope', function($scope) {
|
||||
var _this = this;
|
||||
|
||||
angular.extend(this, ionic.controllers.SideMenuController.prototype);
|
||||
|
||||
ionic.controllers.SideMenuController.call(this, {
|
||||
// Our quick implementation of the left side menu
|
||||
left: {
|
||||
width: 270,
|
||||
},
|
||||
|
||||
// Our quick implementation of the right side menu
|
||||
right: {
|
||||
width: 270,
|
||||
}
|
||||
});
|
||||
|
||||
$scope.sideMenuContentTranslateX = 0;
|
||||
|
||||
$scope.sideMenuController = this;
|
||||
}])
|
||||
|
||||
.directive('sideMenus', function() {
|
||||
return {
|
||||
restrict: 'ECA',
|
||||
controller: 'SideMenuCtrl',
|
||||
controller: ['$scope', function($scope) {
|
||||
var _this = this;
|
||||
|
||||
angular.extend(this, ionic.controllers.SideMenuController.prototype);
|
||||
|
||||
ionic.controllers.SideMenuController.call(this, {
|
||||
// Our quick implementation of the left side menu
|
||||
left: {
|
||||
width: 270,
|
||||
},
|
||||
|
||||
// Our quick implementation of the right side menu
|
||||
right: {
|
||||
width: 270,
|
||||
}
|
||||
});
|
||||
|
||||
$scope.sideMenuContentTranslateX = 0;
|
||||
|
||||
$scope.sideMenuController = this;
|
||||
}],
|
||||
replace: true,
|
||||
transclude: true,
|
||||
template: '<div class="pane" ng-transclude></div>'
|
||||
|
||||
41
js/ext/angular/src/directive/ionicSideMenu.js
vendored
41
js/ext/angular/src/directive/ionicSideMenu.js
vendored
@@ -15,31 +15,32 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture'])
|
||||
* some side menu stuff on the current scope.
|
||||
*/
|
||||
.controller('SideMenuCtrl', ['$scope', function($scope) {
|
||||
var _this = this;
|
||||
|
||||
angular.extend(this, ionic.controllers.SideMenuController.prototype);
|
||||
|
||||
ionic.controllers.SideMenuController.call(this, {
|
||||
// Our quick implementation of the left side menu
|
||||
left: {
|
||||
width: 270,
|
||||
},
|
||||
|
||||
// Our quick implementation of the right side menu
|
||||
right: {
|
||||
width: 270,
|
||||
}
|
||||
});
|
||||
|
||||
$scope.sideMenuContentTranslateX = 0;
|
||||
|
||||
$scope.sideMenuController = this;
|
||||
}])
|
||||
|
||||
.directive('sideMenus', function() {
|
||||
return {
|
||||
restrict: 'ECA',
|
||||
controller: 'SideMenuCtrl',
|
||||
controller: ['$scope', function($scope) {
|
||||
var _this = this;
|
||||
|
||||
angular.extend(this, ionic.controllers.SideMenuController.prototype);
|
||||
|
||||
ionic.controllers.SideMenuController.call(this, {
|
||||
// Our quick implementation of the left side menu
|
||||
left: {
|
||||
width: 270,
|
||||
},
|
||||
|
||||
// Our quick implementation of the right side menu
|
||||
right: {
|
||||
width: 270,
|
||||
}
|
||||
});
|
||||
|
||||
$scope.sideMenuContentTranslateX = 0;
|
||||
|
||||
$scope.sideMenuController = this;
|
||||
}],
|
||||
replace: true,
|
||||
transclude: true,
|
||||
template: '<div class="pane" ng-transclude></div>'
|
||||
|
||||
@@ -32,5 +32,7 @@
|
||||
}
|
||||
|
||||
.menu-animated {
|
||||
@include transition(transform $menu-animation-speed ease);
|
||||
-webkit-transition: -webkit-transform $menu-animation-speed ease;
|
||||
-moz-transition: -moz-transform $menu-animation-speed ease;
|
||||
transition: transform $menu-animation-speed ease;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user