mand-mobile/components/action-bar/test/cases/demo3.vue

46 lines
823 B
Vue
Raw Permalink Normal View History

2018-12-09 18:59:54 +08:00
<template>
<div class="md-example-child md-example-child-action-bar md-example-child-3">
<md-action-bar :actions="data" @click="onBtnClick">
2018-12-14 00:14:12 +08:00
<span class="price">&yen;128.00<small></small></span>
2018-12-09 18:59:54 +08:00
</md-action-bar>
</div>
</template>
<script> import {ActionBar, Dialog} from 'mand-mobile'
export default {
name: 'action-bar-demo',
components: {
[ActionBar.name]: ActionBar,
},
data() {
return {
data: [
{
text: '主要按钮',
},
],
}
},
methods: {
onBtnClick(event, action) {
Dialog.alert({
content: `${action.text}点击`,
})
},
},
}
</script>
<style lang="stylus" scoped>
.price
font-weight 500
font-size 48px
color #FF823A
small
margin-left 10px
font-size 32px
color #858B9C
</style>