gpc-ui 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpc-ui",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "二小UI",
5
5
  "private": false,
6
6
  "main": "lib/gpc-ui.umd.min.js",
@@ -4,7 +4,7 @@
4
4
  <div style="color: #018a46; font-size: 40px; font-style: unset; text-align: right;">
5
5
  {{systemTitle}}
6
6
  </div>
7
- <div style="color: #018a46; font-size: 32px; font-style: unset; text-align: right;">●{{subtitle}}</div>
7
+ <div style="color: #018a46; font-size: 32px; font-style: unset; text-align: right;">·{{subtitle}}</div>
8
8
  </div>
9
9
  <div class="wrap-box">
10
10
  <div class="box-content">
@@ -28,15 +28,15 @@
28
28
  <input type="text" placeholder="用户名/手机号" v-model="accountFrom.username">
29
29
  </div>
30
30
  <div class="input-box">
31
- <input type="password" placeholder="密码" v-model="accountFrom.password">
32
- <i class="el-icon-edit"></i>
31
+ <input :type="inputType" placeholder="密码" v-model="accountFrom.password">
32
+ <i class="el-icon-view" :class="{ icon: Color }" @click="Show" ></i>
33
33
  </div>
34
34
  <drag-verify ref="dragVerifyLogin" :width="300" :isPassing.sync="isPassingAccount" text="请按住滑块拖动" successText="验证通过" progressBarBg="#11C36A"
35
35
  handlerIcon="el-icon-d-arrow-right" successIcon="el-icon-circle-check"
36
36
  @passcallback="passCallAccountBack">
37
37
  </drag-verify>
38
38
  <div class="buttons clearfix">
39
- <button type="button" class="btn-login fr button" @click="getAccountLogin">登录</button>
39
+ <el-button class="btn-login fr button" :loading="loading" @click="getAccountLogin">登录</el-button>
40
40
  <el-button type="text" style="color: #028037;" size="small" @click="getRegister">重置密码</el-button>
41
41
  </div>
42
42
  </div>
@@ -144,10 +144,16 @@ export default {
144
144
  type: String,
145
145
  default: ''
146
146
  },
147
+ loading: {
148
+ type: Boolean,
149
+ default: false
150
+ }
147
151
  },
148
152
  data() {
149
153
  return {
150
154
  isLogin: true,
155
+ inputType: "password",
156
+ Color: false,
151
157
  // 当前选中的标签
152
158
  curTab: "1",
153
159
 
@@ -297,7 +303,12 @@ export default {
297
303
  console.warn(`Element with selector ${selector} not found.`);
298
304
  }
299
305
  },
300
-
306
+ // 密码的可见和不可见
307
+ Show() {
308
+ // 点击改变input框的展示方式
309
+ this.inputType = this.inputType === "password" ? "text" : "password";
310
+ this.Color = !this.Color;
311
+ },
301
312
  },
302
313
  mounted() {
303
314
  // 确保在组件挂载后执行 DOM 操作
@@ -585,7 +596,7 @@ a {
585
596
  background-color: #00b85c;
586
597
  transition: all .36s;
587
598
  right: 20px;
588
- color: #ccc;
599
+ //color: #ccc;
589
600
  }
590
601
 
591
602
  .input-box input {
@@ -679,4 +690,8 @@ a {
679
690
  flex-direction: row;
680
691
  justify-content: space-evenly;
681
692
  }
693
+
694
+ .icon {
695
+ color: #028037;
696
+ }
682
697
  </style>