pengliheng-component

1.0.1 • Public • Published

usage

效果预览

  • message 组件弹出框
    message({
        // 消息类型,默认info,可选error success warning
        type: "info",
        // 间隔多久消失。默认3s
        time: 1000,
        content: `弹出框内容!`
    })
  • modal / modalInfo / modalConfirm
    Modal({
        title: `标题`,
        content: `内容`,
        callback: ()=>console.log('回调函数!')
    })
    ModalInfo({
        type: `error`, // info/success/error/warning
        title: `标题`,
        content: `内容`,
        callback: () => console.log("确认")
    })
    ModalConfirm({
        type: `error`, // info/success/error/warning
        title: `标题`,
        content: `内容`,
        callback: () => console.log("确认")
    })

Readme

Keywords

Package Sidebar

Install

npm i pengliheng-component

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • pengliheng111