Skip to content

Commit a8d6de9

Browse files
author
e
committed
fex: x-password
1 parent b2478c2 commit a8d6de9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/themes/zk-auto-form/var.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
font-size: 14px;
175175
color: #999999;
176176
background-color: #FBF9FE;
177-
height: 50px;
178-
line-height: 50px;
177+
height: 40px;
178+
line-height: 45px;
179179
padding-left: 10px;
180180
border-bottom: 0.5px solid #e5e5e5;
181181
}

src/elements/all/x-password/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<view class="x-password">
33
<div class="x-input_label" v-if="label" :style="{color:colorIndex?'red':''}">{{label}}</div>
4-
<input class="uni-input" v-model="viewModel" :type="showPassword?'password':'test'" :maxlength="isNumber()" @input="changeInput" />
4+
<input class="uni-input" v-model="viewModel" :type="showPassword?'password':'test'" :placeholder="placeHolder" :maxlength="isNumber()" @input="changeInput" />
55
<view class="uni-icon uni-icon-eye" :class="[!showPassword ? 'uni-active' : '']" @click="showPassword = !showPassword"></view>
66
</view>
77
</template>
@@ -19,7 +19,8 @@
1919
// 默认为false ,为true时只能输入数字密码
2020
isNum: {
2121
default: false
22-
}
22+
},
23+
placeHolder: {}
2324
},
2425
data () {
2526
return {

0 commit comments

Comments
 (0)