forked from opentiny/tiny-vue
47 lines
998 B
Vue
47 lines
998 B
Vue
<template>
|
|
<div>
|
|
<tiny-popconfirm :title="title" :message="message" @show="show" @hide="hide" @confirm="confirm">
|
|
<template #reference>
|
|
<tiny-button>悬浮我提示</tiny-button>
|
|
</template>
|
|
</tiny-popconfirm>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Popconfirm, Button, Modal } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyPopconfirm: Popconfirm,
|
|
TinyButton: Button
|
|
},
|
|
data() {
|
|
return {
|
|
title: '这是气泡标题',
|
|
message: '这是气泡确认框提示内容文本描述,这是两行内容的展示样式,文本内容很长很长。'
|
|
}
|
|
},
|
|
methods: {
|
|
show() {
|
|
Modal.message({
|
|
status: 'info',
|
|
message: 'show事件触发了'
|
|
})
|
|
},
|
|
hide() {
|
|
Modal.message({
|
|
status: 'info',
|
|
message: 'hide事件触发了'
|
|
})
|
|
},
|
|
confirm() {
|
|
Modal.message({
|
|
status: 'info',
|
|
message: 'confirm事件触发了'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|