mirror of https://github.com/ElemeFE/element
Container: add min-width
parent
c8477c815a
commit
4d71e2f3af
|
@ -207,7 +207,7 @@
|
||||||
let openedMenus = this.openedMenus;
|
let openedMenus = this.openedMenus;
|
||||||
if (openedMenus.indexOf(index) !== -1) return;
|
if (openedMenus.indexOf(index) !== -1) return;
|
||||||
// 将不在该菜单路径下的其余菜单收起
|
// 将不在该菜单路径下的其余菜单收起
|
||||||
// GT: Will not put away the rest of the menu under the menu path
|
// collapse all menu that are not under current menu item
|
||||||
if (this.uniqueOpened) {
|
if (this.uniqueOpened) {
|
||||||
this.openedMenus = openedMenus.filter(index => {
|
this.openedMenus = openedMenus.filter(index => {
|
||||||
return indexPath.indexOf(index) !== -1;
|
return indexPath.indexOf(index) !== -1;
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 初始化展开菜单
|
// 初始化展开菜单
|
||||||
// GT: Initialize the launch menu
|
// initialize opened menu
|
||||||
initOpenedMenu() {
|
initOpenedMenu() {
|
||||||
const index = this.activeIndex;
|
const index = this.activeIndex;
|
||||||
const activeItem = this.items[index];
|
const activeItem = this.items[index];
|
||||||
|
@ -256,7 +256,7 @@
|
||||||
let indexPath = activeItem.indexPath;
|
let indexPath = activeItem.indexPath;
|
||||||
|
|
||||||
// 展开该菜单项的路径上所有子菜单
|
// 展开该菜单项的路径上所有子菜单
|
||||||
// GT: Expand all submenus on the path of the menu item
|
// expand all submenus of the menu item
|
||||||
indexPath.forEach(index => {
|
indexPath.forEach(index => {
|
||||||
let submenu = this.submenus[index];
|
let submenu = this.submenus[index];
|
||||||
submenu && this.openMenu(index, submenu.indexPath);
|
submenu && this.openMenu(index, submenu.indexPath);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
min-width: 0;
|
||||||
|
|
||||||
@include when(vertical) {
|
@include when(vertical) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
.el-input__inner {
|
.el-input__inner {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
||||||
// pagesize 的下拉 icon
|
// pagesize 的下拉 icon
|
||||||
|
@ -35,9 +36,6 @@
|
||||||
width: 100px;
|
width: 100px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
|
|
||||||
.el-input__icon {
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-input__inner {
|
.el-input__inner {
|
||||||
padding-right: 25px;
|
padding-right: 25px;
|
||||||
border-radius: $--pagination-border-radius;
|
border-radius: $--pagination-border-radius;
|
||||||
|
@ -149,7 +147,6 @@
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: $--pagination-border-radius;
|
border-radius: $--pagination-border-radius;
|
||||||
-moz-appearance: textfield;
|
|
||||||
|
|
||||||
&.el-input {
|
&.el-input {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
|
Loading…
Reference in New Issue