Doc: update component document && examples

This commit is contained in:
陈嘉涵
2017-08-31 15:18:54 +08:00
parent aff5da68e4
commit 3de9f86b47
16 changed files with 243 additions and 282 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
<a :class="['van-cell', { 'van-cell--required': required }]" :href="url" @click="$emit('click')">
<div
class="van-cell__title"
v-if="this.$slots.title || title"
v-if="$slots.title || title"
>
<slot name="icon">
<i v-if="icon" class="van-icon" :class="'van-icon-' + icon"></i>
@@ -14,10 +14,10 @@
</div>
<div
class="van-cell__value"
v-if="value || this.$slots.default"
v-if="value || $slots.default"
:class="{
'van-cell__value--link': isLink,
'van-cell__value--alone': !this.$slots.title && !title && !label
'van-cell__value--alone': !$slots.title && !title && !label
}"
>
<slot>
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="van-panel__content">
<slot></slot>
</div>
<div class="van-panel__footer" v-if="this.$slots.footer">
<div class="van-panel__footer" v-if="$slots.footer">
<slot name="footer"></slot>
</div>
</div>
+1 -3
View File
@@ -32,9 +32,7 @@
display: block;
}
&::after {
@mixin border-retina (top);
@mixin border-retina (right);
@mixin border-retina (left);
@mixin border-retina (top, right, left);
}
}
+4
View File
@@ -37,6 +37,10 @@
&__title {
display: table-cell;
.van-icon {
margin-right: 5px;
}
}
&__label {
+1
View File
@@ -11,6 +11,7 @@
.van-loading {
font-size: 0;
line-height: 0;
&--circle {
width: 16px;