Commit f8b7fbffd0c4936e547614252f6ab929c2f2cc46

Authored by zhangz
1 parent a0cbe821

处理菜单样式;

src/mes/common/buttonComponent/index.js
... ... @@ -207,7 +207,7 @@ const ButtonComponent = props => {
207 207 return (
208 208 <div
209 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 212 <div className={`btns`}>
213 213 <div className={styles.btnsBox}>
... ...
src/mes/common/buttonComponent/index.less
... ... @@ -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 187 .workOverTime {
163 188 .flex();
164 189 flex-direction: column;
... ...