feat(field): add new external class label-class (#3311)

fix #3285
This commit is contained in:
rex 2020-06-24 15:15:02 +08:00 committed by GitHub
parent 6242423768
commit 978b59650c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -260,5 +260,6 @@ Page({
| 类名 | 说明 |
| ---------------- | -------------- |
| label-class | 左侧文本样式类 |
| input-class | 输入框样式类 |
| right-icon-class | 右侧图标样式类 |

View File

@ -6,7 +6,7 @@ import { canIUseModel } from '../common/version';
VantComponent({
field: true,
classes: ['input-class', 'right-icon-class'],
classes: ['input-class', 'right-icon-class', 'label-class'],
props: {
...commonProps,

View File

@ -14,6 +14,7 @@
custom-style="{{ customStyle }}"
arrow-direction="{{ arrowDirection }}"
custom-class="van-field"
title-class="label-class"
>
<slot name="left-icon" slot="icon" />
<slot name="label" slot="title" />