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" type="checkbox"
:disabled="disabled"> :disabled="disabled">
</span> </span>
<span class="el-checkbox__label"> <span class="el-checkbox__label" v-if="$slots.default || label">
<slot></slot> <slot></slot>
<template v-if="!$slots || !$slots.default">{{label}}</template> <template v-if="!$slots.default">{{label}}</template>
</span> </span>
</label> </label>
</template> </template>

View File

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