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,8 +15,8 @@ | ||
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | <div class="right-div"> | 17 | <div class="right-div"> |
18 | - <div id="welcome">欢迎来到华恒仓储管理系统 !</div> | ||
19 | <a-form-model ref="form" :model="model" :rules="validatorRules"> | 18 | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
19 | + <div id="welcome">欢迎来到华恒仓储管理系统 !</div> | ||
20 | <a-form-model-item required prop="username"> | 20 | <a-form-model-item required prop="username"> |
21 | <a-input id="name" v-model="model.username" size="default" autocomplete="off" placeholder="请输入帐户名 / admin" @blur="getWarehouse"> | 21 | <a-input id="name" v-model="model.username" size="default" autocomplete="off" placeholder="请输入帐户名 / admin" @blur="getWarehouse"> |
22 | </a-input> | 22 | </a-input> |
@@ -320,6 +320,9 @@ export default { | @@ -320,6 +320,9 @@ export default { | ||
320 | /deep/ .ant-select-selection__rendered { | 320 | /deep/ .ant-select-selection__rendered { |
321 | margin-top: 0.6vw; | 321 | margin-top: 0.6vw; |
322 | } | 322 | } |
323 | +/deep/ .ant-form { | ||
324 | + width: 100%; | ||
325 | +} | ||
323 | 326 | ||
324 | ///deep/ .ant-select-dropdown-menu-item-selected{ | 327 | ///deep/ .ant-select-dropdown-menu-item-selected{ |
325 | // font-size: 18px; | 328 | // font-size: 18px; |
@@ -331,8 +334,14 @@ export default { | @@ -331,8 +334,14 @@ export default { | ||
331 | } | 334 | } |
332 | 335 | ||
333 | .right-div { | 336 | .right-div { |
337 | + display: flex; | ||
334 | flex: 0 0 32%; | 338 | flex: 0 0 32%; |
335 | background-color: #fafafa; | 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 | #logo { | 346 | #logo { |
338 | height: 10%; | 347 | height: 10%; |
@@ -410,12 +419,12 @@ export default { | @@ -410,12 +419,12 @@ export default { | ||
410 | width: 100%; /* 宽度 100% */ | 419 | width: 100%; /* 宽度 100% */ |
411 | } | 420 | } |
412 | #welcome { | 421 | #welcome { |
413 | - height: 28%; | ||
414 | - margin-left: 9%; | ||
415 | color: #333333; | 422 | color: #333333; |
416 | font-size: 1.5vw; | 423 | font-size: 1.5vw; |
417 | align-content: end; | 424 | align-content: end; |
418 | font-family: 'Microsoft YaHei', 'SimSun', sans-serif; | 425 | font-family: 'Microsoft YaHei', 'SimSun', sans-serif; |
426 | + text-align: center; | ||
427 | + margin-left: 1vw; | ||
419 | } | 428 | } |
420 | #welcome-middle { | 429 | #welcome-middle { |
421 | height: 55%; | 430 | height: 55%; |
@@ -501,6 +510,7 @@ export default { | @@ -501,6 +510,7 @@ export default { | ||
501 | /deep/ .ant-select-selection__rendered { | 510 | /deep/ .ant-select-selection__rendered { |
502 | line-height: 1.5vw; | 511 | line-height: 1.5vw; |
503 | } | 512 | } |
513 | + | ||
504 | a-select { | 514 | a-select { |
505 | width: 100%; | 515 | width: 100%; |
506 | height: 100%; | 516 | height: 100%; |