zoukankan      html  css  js  c++  java
  • render函数- table表格- el-popover-select-option

       render:(h,params)=>{
                return (
                  <div>{
                  <div>
                    <el-popover
                    ref="popover"
                    placement="right"
                    width="170"
                    trigger="click">
                      <el-select
                  v-model={params.row.channel}
                  filterable
                  placeholder="请选择分类"
                  clearable
                  onClear={()=>{this.hangleclear()}}
                  onChange={(e)=>{ this.changeSelct(e, params.row, params.index)}}
                  style="120px;padding-right:0px"
                >
                  {this.select.channelId.map((item, index) => (
                          <el-option
                      key={item.id}
                      value={item.id}
                    >{item.name}</el-option>
                      ))}
                </el-select>
                    <span  slot="reference"  onClick={()=>{
                        this.handleChannelEdit(params.index, params.row)
                      }}  style="cursor:pointer; 100%;height:40px;line-height:40px;display:block;background-color:red"
                      >{ params.row.channel }  </span >
                  </el-popover>
                   </div>
    
    
    
                  } </div>
                )
    
              }
  • 相关阅读:
    c++ CPO ADL
    c++ intrusive
    c++边界检查
    C++仿函数
    C++ RefBase
    c++ vector容器的尺寸问题
    关于调用约定
    C++学习之字符串类、容器
    C++异常
    Git常用命令大全,迅速提升你的Git水平
  • 原文地址:https://www.cnblogs.com/maomao-Sunshine/p/14701097.html
Copyright © 2011-2022 走看看