[bugfix] AddressEdit: missing border (#1800)

This commit is contained in:
neverland 2018-09-13 20:55:09 +08:00 committed by GitHub
parent 3d00566182
commit eeb7f0d1ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 35 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="b()"> <cell :class="b()">
<field <field
v-on="$listeners" v-on="$listeners"
autosize autosize
@ -32,7 +32,7 @@
clickable clickable
@click="onSelect(express)" @click="onSelect(express)"
/> />
</div> </cell>
</template> </template>
<script> <script>

View File

@ -46,7 +46,6 @@
v-model="data.postalCode" v-model="data.postalCode"
type="tel" type="tel"
maxlength="6" maxlength="6"
class="van-hairline--top"
:label="$t('postal')" :label="$t('postal')"
:placeholder="$t('postal')" :placeholder="$t('postal')"
:error="errorInfo.postalCode" :error="errorInfo.postalCode"

View File

@ -53,25 +53,30 @@ exports[`renders demo correctly 1`] = `
</div> </div>
<!----> <!---->
</div> </div>
<div class="van-address-edit-detail"> <div class="van-cell van-hairline van-address-edit-detail">
<div rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-cell van-hairline van-field"> <!---->
<!----> <!---->
<div class="van-cell__title"><span>详细地址</span> <div class="van-cell__value van-cell__value--alone">
<div rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-cell van-hairline van-field">
<!----> <!---->
</div> <div class="van-cell__title"><span>详细地址</span>
<div class="van-cell__value">
<div class="van-field__body">
<textarea rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-field__control"></textarea>
<!---->
<!----> <!---->
</div>
<div class="van-cell__value">
<div class="van-field__body">
<textarea rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-field__control"></textarea>
<!---->
<!---->
<!---->
</div>
<!----> <!---->
</div> </div>
<!----> <!---->
</div> </div>
<!---->
</div> </div>
<!---->
</div> </div>
<div maxlength="6" placeholder="邮政编码" class="van-hairline--top van-cell van-hairline van-field"> <div maxlength="6" placeholder="邮政编码" class="van-cell van-hairline van-field">
<!----> <!---->
<div class="van-cell__title"><span>邮政编码</span> <div class="van-cell__title"><span>邮政编码</span>
<!----> <!---->

View File

@ -51,23 +51,28 @@ exports[`create a AddressEdit 1`] = `
</div> </div>
<!----> <!---->
</div> </div>
<div class="van-address-edit-detail"> <div class="van-cell van-hairline van-address-edit-detail">
<div rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-cell van-hairline van-field"> <!---->
<!----> <!---->
<div class="van-cell__title"><span>详细地址</span> <div class="van-cell__value van-cell__value--alone">
<div rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-cell van-hairline van-field">
<!----> <!---->
</div> <div class="van-cell__title"><span>详细地址</span>
<div class="van-cell__value">
<div class="van-field__body">
<textarea rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-field__control"></textarea>
<!---->
<!----> <!---->
</div>
<div class="van-cell__value">
<div class="van-field__body">
<textarea rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-field__control"></textarea>
<!---->
<!---->
<!---->
</div>
<!----> <!---->
</div> </div>
<!----> <!---->
</div> </div>
<!---->
</div> </div>
<!---->
</div> </div>
<!----> <!---->
<!----> <!---->
@ -156,25 +161,30 @@ exports[`create a AddressEdit with props 1`] = `
</div> </div>
<!----> <!---->
</div> </div>
<div class="van-address-edit-detail"> <div class="van-cell van-hairline van-address-edit-detail">
<div rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-cell van-hairline van-field"> <!---->
<!----> <!---->
<div class="van-cell__title"><span>详细地址</span> <div class="van-cell__value van-cell__value--alone">
<div rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-cell van-hairline van-field">
<!----> <!---->
</div> <div class="van-cell__title"><span>详细地址</span>
<div class="van-cell__value">
<div class="van-field__body">
<textarea rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-field__control">详细地址</textarea>
<!---->
<!----> <!---->
</div>
<div class="van-cell__value">
<div class="van-field__body">
<textarea rows="1" maxlength="200" placeholder="街道门牌、楼层房间号等信息" class="van-field__control">详细地址</textarea>
<!---->
<!---->
<!---->
</div>
<!----> <!---->
</div> </div>
<!----> <!---->
</div> </div>
<!---->
</div> </div>
<!---->
</div> </div>
<div maxlength="6" placeholder="邮政编码" class="van-hairline--top van-cell van-hairline van-field"> <div maxlength="6" placeholder="邮政编码" class="van-cell van-hairline van-field">
<!----> <!---->
<div class="van-cell__title"><span>邮政编码</span> <div class="van-cell__title"><span>邮政编码</span>
<!----> <!---->

View File

@ -28,6 +28,8 @@
} }
&-detail { &-detail {
padding: 0;
&__finish { &__finish {
color: $blue; color: $blue;
font-size: 12px; font-size: 12px;