update tree docs

pull/6/head
baiyaaaaa 2016-09-04 10:27:09 +08:00
parent 56108dc9a9
commit a38fdce7e9
2 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@
type="checkbox"
:disabled="disabled">
</span>
<span class="el-checkbox__label">
<span class="el-checkbox__label" v-if="$slots.default || label">
<slot></slot>
<template v-if="!$slots || !$slots.default">{{label}}</template>
<template v-if="!$slots.default">{{label}}</template>
</span>
</label>
</template>

View File

@ -21,7 +21,7 @@
vertical-align: middle;
}
& > * {
margin-right: 8px;
margin-right: 3px;
}
&:hover {
background: #e5e9f2;