mand-mobile/components/cell-item/demo/cases/demo2.vue

54 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="md-example-child md-example-child-cell-item md-example-child-cell-item-2">
<md-field>
<md-cell-item title="交通银行(尾号3089)" brief="展示摘要描述" />
<md-cell-item title="招商银行(尾号2342)" brief="展示摘要描述">
<md-switch v-model="open" slot="right" />
</md-cell-item>
<md-cell-item title="交通银行(尾号3089)" brief="展示摘要描述" addon="附加文案" arrow />
<md-cell-item title="交通银行" brief="展示摘要描述" addon="附加文案" arrow>
<span class="holder" slot="left"></span>
</md-cell-item>
<md-cell-item title="招商银行" brief="展示摘要描述" addon="禁用的项目" disabled arrow>
<span class="holder" slot="left"></span>
</md-cell-item>
<md-cell-item title="Mand Mobile" brief="A mobile UI toolkit" arrow>
<p slot="children" style="font-size:0.24rem;color:#858B9C;">
面向金融场景的Vue移动端UI组件库丰富灵活实用快速搭建优质的金融类产品让复杂的金融场景变简单基于合理好用设计价值观从交互操作视觉抽象图形可视等角度共同解决问题
</p>
</md-cell-item>
</md-field>
</div>
</template>
<script>
import {Field, CellItem, Switch} from 'mand-mobile'
export default {
name: 'cell-item-demo',
/* DELETE */
title: '多行列表',
titleEnUS: 'Content List',
align: 'right',
/* DELETE */
components: {
[Field.name]: Field,
[CellItem.name]: CellItem,
[Switch.name]: Switch,
},
data() {
return {
open: false,
}
},
}
</script>
<style lang="stylus" scoped>
.holder
display block
width 88px
height 88px
border-radius 44px
background-color #E6E6E6
</style>