美文网首页
2019-08-09 iview render函数中根据某个条件

2019-08-09 iview render函数中根据某个条件

作者: 追寻1989 | 来源:发表于2019-08-09 18:20 被阅读0次
            {
              title: "操作",
              key: "",
              width: 200,
              align: "center",
              render: (h, params) => {
                if(params.row.progress=='立案申请'){
                  return h('div', [
                      h('Button', {
                          props: {
                              type: 'primary',
                              size: 'small',
                          },
                          on: {
                              click: () => {
                                //阻止事件冒泡
                                this.stopPropagation()
                                this.pushIt(params.row);
                              }
                          }
                      }, "立案申请")
                  ]);
                }else{
                  return h('span','暂无操作');
                }
              }
            },
    

    相关文章

      网友评论

          本文标题:2019-08-09 iview render函数中根据某个条件

          本文链接:https://www.haomeiwen.com/subject/jvfkjctx.html