Commit f8b7fbffd0c4936e547614252f6ab929c2f2cc46
1 parent
a0cbe821
处理菜单样式;
Showing
2 changed files
with
26 additions
and
1 deletions
src/mes/common/buttonComponent/index.js
| @@ -207,7 +207,7 @@ const ButtonComponent = props => { | @@ -207,7 +207,7 @@ const ButtonComponent = props => { | ||
| 207 | return ( | 207 | return ( |
| 208 | <div | 208 | <div |
| 209 | className={`${styles.buttonComponent} ${expand ? styles.expand : styles.packup | 209 | className={`${styles.buttonComponent} ${expand ? styles.expand : styles.packup |
| 210 | - } ${dataList.length && dataList.length <= 8 ? styles.specialBtns : ""}`} | 210 | + } ${dataList.length && dataList.length <= 8 ? styles.specialBtns : dataList.length > 16 ? styles.specialBtns1 : ""}`} |
| 211 | > | 211 | > |
| 212 | <div className={`btns`}> | 212 | <div className={`btns`}> |
| 213 | <div className={styles.btnsBox}> | 213 | <div className={styles.btnsBox}> |
src/mes/common/buttonComponent/index.less
| @@ -159,6 +159,31 @@ | @@ -159,6 +159,31 @@ | ||
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | +.specialBtns1 { | ||
| 163 | + .size(100%, calc(@specialBtns-height * 3)); | ||
| 164 | + | ||
| 165 | + :global { | ||
| 166 | + .btns { | ||
| 167 | + border: 1px solid black; | ||
| 168 | + .size(100%, calc(@specialBtns-height * 3)); | ||
| 169 | + } | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + &.expand { | ||
| 173 | + .size(100%, calc(@specialBtns-height * 3)); | ||
| 174 | + transition: all 0.5s ease-in-out; | ||
| 175 | + | ||
| 176 | + :global { | ||
| 177 | + .btns { | ||
| 178 | + .size(100%, calc(@specialBtns-height * 3)); | ||
| 179 | + opacity: 1; | ||
| 180 | + transition: all 0.5s ease-in-out; | ||
| 181 | + border: none; | ||
| 182 | + } | ||
| 183 | + } | ||
| 184 | + } | ||
| 185 | +} | ||
| 186 | + | ||
| 162 | .workOverTime { | 187 | .workOverTime { |
| 163 | .flex(); | 188 | .flex(); |
| 164 | flex-direction: column; | 189 | flex-direction: column; |