cell component

This commit is contained in:
cookfront
2017-02-13 19:24:03 +08:00
parent 35ec796e61
commit e62665f3bc
2 changed files with 24 additions and 2 deletions

View File

@@ -12,8 +12,8 @@
<slot>
<span v-text="value"></span>
</slot>
<i class="o2-cell-arrow-right" v-if="isLink"></i>
</div>
<i class="o2-cell-arrow-right" v-if="isLink"></i>
</a>
</template>
@@ -35,6 +35,17 @@ export default {
@component-namespace o2 {
@component cell {
display: block;
overflow: hidden;
position: relative;
padding: 10px 10px 10px 0;
line-height: 22px;
color: #666;
text-decoration: none;
border-bottom: 1px solid #ccc;
&:last-child {
border-bottom: 0;
}
@descendent title {
float: left;