Commit b710727c37443d1dc6986c49f4dc6487b83b3275
1 parent
a154a321
首页样式优化
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
13 additions
and
3 deletions
ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue
... | ... | @@ -15,8 +15,8 @@ |
15 | 15 | </div> |
16 | 16 | </div> |
17 | 17 | <div class="right-div"> |
18 | - <div id="welcome">欢迎来到华恒仓储管理系统 !</div> | |
19 | 18 | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
19 | + <div id="welcome">欢迎来到华恒仓储管理系统 !</div> | |
20 | 20 | <a-form-model-item required prop="username"> |
21 | 21 | <a-input id="name" v-model="model.username" size="default" autocomplete="off" placeholder="请输入帐户名 / admin" @blur="getWarehouse"> |
22 | 22 | </a-input> |
... | ... | @@ -320,6 +320,9 @@ export default { |
320 | 320 | /deep/ .ant-select-selection__rendered { |
321 | 321 | margin-top: 0.6vw; |
322 | 322 | } |
323 | +/deep/ .ant-form { | |
324 | + width: 100%; | |
325 | +} | |
323 | 326 | |
324 | 327 | ///deep/ .ant-select-dropdown-menu-item-selected{ |
325 | 328 | // font-size: 18px; |
... | ... | @@ -331,8 +334,14 @@ export default { |
331 | 334 | } |
332 | 335 | |
333 | 336 | .right-div { |
337 | + display: flex; | |
334 | 338 | flex: 0 0 32%; |
335 | 339 | background-color: #fafafa; |
340 | + display: flex; /* 使用 flex 布局 */ | |
341 | + flex-direction: column; /* 垂直排列子元素 */ | |
342 | + justify-content: center; /* 垂直居中 */ | |
343 | + align-items: center; /* 水平居中 */ | |
344 | + height: 100%; /* 使 div 占满父容器高度 */ | |
336 | 345 | } |
337 | 346 | #logo { |
338 | 347 | height: 10%; |
... | ... | @@ -410,12 +419,12 @@ export default { |
410 | 419 | width: 100%; /* 宽度 100% */ |
411 | 420 | } |
412 | 421 | #welcome { |
413 | - height: 28%; | |
414 | - margin-left: 9%; | |
415 | 422 | color: #333333; |
416 | 423 | font-size: 1.5vw; |
417 | 424 | align-content: end; |
418 | 425 | font-family: 'Microsoft YaHei', 'SimSun', sans-serif; |
426 | + text-align: center; | |
427 | + margin-left: 1vw; | |
419 | 428 | } |
420 | 429 | #welcome-middle { |
421 | 430 | height: 55%; |
... | ... | @@ -501,6 +510,7 @@ export default { |
501 | 510 | /deep/ .ant-select-selection__rendered { |
502 | 511 | line-height: 1.5vw; |
503 | 512 | } |
513 | + | |
504 | 514 | a-select { |
505 | 515 | width: 100%; |
506 | 516 | height: 100%; |
... | ... |