import { ElDialog, ElButton } from 'element-plus'; import type { StoryObj, Meta } from "@storybook/vue3"; const meta: Meta = { title: 'Feedback/Dialog 对话框', component: ElDialog, } export default meta; type Story = StoryObj; export const Overview: Story = { render: (args) => ({ components: { ElDialog, ElButton, }, data() { return { isShow: false, }; }, methods: { showDialog() { this.isShow = true; }, }, setup() { return { args }; }, template: `
打开常规弹窗

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

`, }) }; export const FooterSlot: Story = { render: (args) => ({ components: { ElDialog, ElButton, }, data() { return { isShow: false, }; }, methods: { showDialog() { this.isShow = true; }, }, setup() { return { args }; }, template: `
打开带 footer 的弹窗

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

内容

`, }) };