---
layout: templateLayout
---
```vue
<template>
    <Wb-button @click='showModal2'>显示弹窗</Wb-button>
    <modal ref="modal2"
            width="600"
            title="我是标题"
            sub-title="我是副标题"
            @on-close="close"
            @on-scroll="scroll">
        <div style="height:1000px">
            我是内容，我是内容
        </div>
    </modal>
</template>
<script>
export default {
    methods: {
        showModal2 () {
            this.$refs.modal2.show()
        },
        close () {
            console.log('closed')
        },
        scroll (event) {
            console.log(event)
        }
    }
}
</script>
```