1.0.9 • Published 7 years ago

react-components-yee v1.0.9

Weekly downloads
47
License
-
Repository
github
Last release
7 years ago

react-components-yee

##install npm install react-components-yee --save

##components 1、tips()

tips({info: "tips", duration: 500})

2、fadeAlert()

fadeAlert({info: "alert", 
  buttons: [{
    label: "Cancel",
    type: "cancel"
  }, {
    label: "confirm",
    type: "confirm",
    onClick: () => {}
  }]})

3、Modal

class YourComponent extends React.Component {

  render() {
    const { visible, close, startPosition } = this.props
    //close is a func (optional)
    //startPosition is the position of Modal pop out (optional)
    return (
      <Modal
        visible={visible}
        close={close}
        startPosition={startPosition}>

      </Modal>
    )
  }
}
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago