directory adjust: delete entry index.js

This commit is contained in:
陈嘉涵
2017-08-22 17:52:16 +08:00
parent 707b48aa61
commit c494292e3f
88 changed files with 587 additions and 713 deletions

32
packages/card/index.vue Normal file
View File

@@ -0,0 +1,32 @@
<template>
<div :class="['van-card', { 'van-card--center': centered }]">
<div class="van-card__thumb">
<slot name="thumb">
<img :src="thumb" class="van-card__img" />
</slot>
</div>
<div class="van-card__content">
<slot name="title">
<h4 v-text="title" class="van-card__title"></h4>
</slot>
<slot name="desc">
<p v-if="desc" v-text="desc" class="van-card__desc"></p>
</slot>
<slot name="tags"></slot>
</div>
<slot name="footer"></slot>
</div>
</template>
<script>
export default {
name: 'van-card',
props: {
thumb: String,
title: String,
desc: String,
centered: Boolean
}
};
</script>