[Doc] add demo pages (#237)
* [bugfix] Checkbox border render error in weixin browser * [bugfix] TreeSelect dependency path error * [bugfix] Swipe should clear autoplay timer when destroyed * [bugfix] Optimize component dependency analyze when build style entry * merge * update yarn.lock * update README.md * update README.md * update README.md * update README.md * update README.md * [Doc] add more badges in README.md * update README.md * [bugfix] Address & Contact list style * fix: contact test cases * [bugfix] popup style missing when build style entry * [bugfix] Search: onSearch event arguments missing * [Doc] add demo pages * update zan-doc@0.3.7 * fix: build entry error
This commit is contained in:
+13
-10
@@ -1,15 +1,12 @@
|
||||
<template>
|
||||
<a :class="['van-cell', 'van-hairline', { 'van-cell--required': required }]" :href="url" @click="$emit('click')">
|
||||
<div
|
||||
class="van-cell__title"
|
||||
v-if="$slots.title || title"
|
||||
>
|
||||
<div class="van-cell__title" v-if="$slots.title || title">
|
||||
<slot name="icon">
|
||||
<i v-if="icon" class="van-icon" :class="'van-icon-' + icon"></i>
|
||||
<i v-if="icon" class="van-icon" :class="'van-icon-' + icon" />
|
||||
</slot>
|
||||
<slot name="title">
|
||||
<span class="van-cell__text" v-text="title"></span>
|
||||
<span class="van-cell__label" v-if="label" v-text="label"></span>
|
||||
<span class="van-cell__text" v-text="title" />
|
||||
<span class="van-cell__label" v-if="label" v-text="label" />
|
||||
</slot>
|
||||
</div>
|
||||
<div
|
||||
@@ -21,20 +18,26 @@
|
||||
}"
|
||||
>
|
||||
<slot>
|
||||
<span v-text="value"></span>
|
||||
<span v-text="value" />
|
||||
</slot>
|
||||
</div>
|
||||
<slot name="right-icon">
|
||||
<i class="van-cell__right-icon van-icon van-icon-arrow" v-if="isLink"></i>
|
||||
<van-icon name="arrow" class="van-cell__right-icon" v-if="isLink" />
|
||||
</slot>
|
||||
<slot name="extra"></slot>
|
||||
<slot name="extra" />
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Icon from '../icon';
|
||||
|
||||
export default {
|
||||
name: 'van-cell',
|
||||
|
||||
components: {
|
||||
[Icon.name]: Icon
|
||||
},
|
||||
|
||||
props: {
|
||||
icon: String,
|
||||
title: String,
|
||||
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
*/
|
||||
handleSearch(e) {
|
||||
e.preventDefault();
|
||||
this.$emit('search');
|
||||
this.$emit('search', this.value);
|
||||
return false;
|
||||
},
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
.van-card {
|
||||
color: $text-color;
|
||||
height: 100px;
|
||||
font-size: 16px;
|
||||
background: #fafafa;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
display: table-cell;
|
||||
|
||||
.van-icon {
|
||||
font-size: 16px;
|
||||
margin-right: 5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user