继承 Antd Modal的所有 Api,通过函数调用的方式打开弹框
Antd Modal
<template> <a-button type="primary" @click="handleOpen">打开弹框</a-button> </template> <script> export default { methods: { handleOpen() { this.$openModal({ title: '弹框', content: <div>自定义组件</div>, onOk: this.handleClose }); }, handleClose() { console.log('点击确定,弹框关闭了'); } } }; </script>
Responsive 响应式 Drawer 抽屉