pengliheng-component
do some component for company
Last updated 2 years ago by pengliheng111 .
ISC · Original npm · Tarball · package.json
$ cnpm install pengliheng-component 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

1 Versions

  • 1.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |