tiny-vue/examples/sites/demos/mobile-first/app/popconfirm/basic-usage.vue

61 lines
1.4 KiB
Vue
Raw Permalink 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>
<div class="block">
<tiny-popconfirm
title="这是气泡标题"
message="这是气泡确认框提示内容文本描述,这是两行的样是两行的样式,内容很长很长。"
>
<template #reference>
<tiny-button>悬浮我提示</tiny-button>
</template>
</tiny-popconfirm>
</div>
<div class="block">
<tiny-popconfirm
type="info"
title="这是提示气泡"
trigger="click"
placement="right"
:cancel-button="false"
message="内容很短"
>
<template #reference>
<tiny-button>点击弹出info 信息右侧显示</tiny-button>
</template>
</tiny-popconfirm>
</div>
<div class="block">
<tiny-popconfirm type="warning" title="这是警告气泡" placement="bottom" message="内容很短">
<template #reference>
<tiny-button>默认悬浮弹出warning 警告下面显示</tiny-button>
</template>
</tiny-popconfirm>
</div>
</div>
</template>
<script>
import { Popconfirm, Button } from '@opentiny/vue'
export default {
components: {
TinyPopconfirm: Popconfirm,
TinyButton: Button
},
data() {
return {
activeName: 1
}
},
methods: {}
}
</script>
<style scoped>
.block {
margin-bottom: 100px;
}
</style>