iview/examples/routers/poptip.vue

25 lines
567 B
Vue
Raw Normal View History

<template>
2017-08-15 10:07:15 +08:00
<div style="margin: 100px;">
<Poptip
confirm
transfer
title="您确认删除这条内容吗?"
@on-ok="ok"
@on-cancel="cancel">
<Button>删除</Button>
</Poptip>
</div>
</template>
<script>
export default {
2017-08-15 10:07:15 +08:00
methods: {
ok () {
this.$Message.info('点击了确定');
},
cancel () {
this.$Message.info('点击了取消');
}
}
}
2016-10-28 17:24:52 +08:00
</script>