Skip to content

Commit

Permalink
update:form label
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Mar 27, 2019
1 parent d8f8ec6 commit ba1254f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/form/form-item.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div :class="classes" class="vc-form-item">
<label v-if="label" :style="labelStyle" class="__label">{{ label }}</label>
<label v-if="label || $slots.label" :for="labelFor" :style="labelStyle" class="__label">
<slot name="label">{{ label }}</slot>
</label>
<div :style="contentStyle" class="__content">
<slot />
<transition name="am-fade">
Expand Down

0 comments on commit ba1254f

Please sign in to comment.