From 37018ff2a964597af29a6b40b12511a23cf49ea1 Mon Sep 17 00:00:00 2001 From: rex Date: Wed, 24 Jun 2020 15:14:31 +0800 Subject: [PATCH] feat(field): add new external class label-class fix #3285 --- packages/field/README.md | 1 + packages/field/index.ts | 2 +- packages/field/index.wxml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/field/README.md b/packages/field/README.md index 7effe7fed..b9aeaae76 100644 --- a/packages/field/README.md +++ b/packages/field/README.md @@ -260,5 +260,6 @@ Page({ | 类名 | 说明 | | ---------------- | -------------- | +| label-class | 左侧文本样式类 | | input-class | 输入框样式类 | | right-icon-class | 右侧图标样式类 | diff --git a/packages/field/index.ts b/packages/field/index.ts index 700e0e889..80c05be7b 100644 --- a/packages/field/index.ts +++ b/packages/field/index.ts @@ -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, diff --git a/packages/field/index.wxml b/packages/field/index.wxml index 140f05b7d..c984d8971 100644 --- a/packages/field/index.wxml +++ b/packages/field/index.wxml @@ -14,6 +14,7 @@ custom-style="{{ customStyle }}" arrow-direction="{{ arrowDirection }}" custom-class="van-field" + title-class="label-class" >