1.0.1 • Published 6 years ago
pengliheng-component v1.0.1
usage
- message 组件弹出框
```js message({ // 消息类型,默认info,可选error success warning type: "info", // 间隔多久消失。默认3s time: 1000, content: `弹出框内容!` }) ```
- modal / modalInfo / modalConfirm
```js 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("确认") }) ```
1.0.1
6 years ago