mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
cell components
This commit is contained in:
28
packages/cell/src/cell.vue
Normal file
28
packages/cell/src/cell.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="o2-cell">
|
||||
<div class="o2-cell-title">
|
||||
<slot name="icon">
|
||||
<i v-if="icon" class="o2-icon" :class="'o2-icon-' + icon"></i>
|
||||
</slot>
|
||||
<slot name="title">
|
||||
</slot>
|
||||
</div>
|
||||
<div class="o2-cell-value">
|
||||
<slot>
|
||||
|
||||
</slot>
|
||||
</div>
|
||||
<i class="o2-cell-arrow-right"></i>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'o2-cell',
|
||||
|
||||
props: {
|
||||
icon: String,
|
||||
title: String
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user