1.0.1 • Published 6 years ago

pengliheng-component v1.0.1

Weekly downloads
84
License
ISC
Repository
-
Last release
6 years ago

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("确认")
    	})
    	```