import * as React from "react" import { ComponentStory, ComponentMeta } from "@storybook/react" import { PreferenceConfirm } from "../src" export default { title: "确认弹窗/PreferenceConfirm", component: PreferenceConfirm } as ComponentMeta // Story模版 const Template: ComponentStory = () => { const [show, setShow] = React.useState(false) const onClose = () => setShow(false) return (
{ alert("确认") onClose() }} />
) } export const Normal = Template.bind({})