[Improvement] Field: add label slot (#1048)

This commit is contained in:
neverland
2018-05-12 11:17:08 +08:00
committed by GitHub
parent 9d8b615392
commit 60e183f76d
3 changed files with 8 additions and 5 deletions

View File

@@ -11,6 +11,7 @@
'min-height': type === 'textarea' && !autosize
})"
>
<slot name="label" slot="title" />
<textarea
v-if="type === 'textarea'"
v-bind="$attrs"