Nibbling Pastry Monster

    @beisen/multi-item

    0.0.16 • Public • Published

    multi-item 使用说明

    项目运行

    1. cnpm install 或 npm install cnpm使用教程

    2. npm run dev (开发环境打包 port:8080)

    3. npm run test (测试用例)

    4. npm run build (生产环境打包)

    multi-item 参数

      data:{
            "status": "edit" //状态:"edit"或"show"
                ,"name":"北森学院" //title
                ,"pname":"北森" //父title
                ,"isActive":false //是否选中(暂时无用)
                ,"istips": true //(是否使用tips)
                ,itemClose: function(event, data){
                  console.log(data)
                } //删除按钮回调
          }
    

    multi-item 调用方法

    1.安装npm组件包

    npm install @beisen/multi-item --save-dev
    

    2.引用组件

    import MultiItem from "@beisen/multi-item"
    

    3.传入参数

    data: {
          "status": "edit"
              ,"name":"北森学院"
              ,"pname":"北森"
              ,"isActive":false
              ,"istips": true
              ,itemClose: function(event, data){
                console.log(data)
              }
        }
    render () {
        return (
          <MultiItem {...this.state.data} />
        )
      }
    

    Install

    npm i @beisen/multi-item

    DownloadsWeekly Downloads

    18

    Version

    0.0.16

    License

    ISC

    Unpacked Size

    1.46 MB

    Total Files

    20

    Last publish

    Collaborators

    • beisencorp