WishMeLz

生活其实很有趣

Vue2 动态插槽名称透传

  <div class="tablesing">
    <vxe-grid
      ref="xGrid"
      border
      show-overflow
      :data="dataSource"
      :columns="cloneColumns"
      height="700"
      :row-config="{ isHover: true, isCurrent: true,height:28 }"
      :column-config="{ isHover: true }"
    >
         <template v-for="(index,name) in $slots" v-slot:[name]>
            <slot :name="name"></slot>
        </template> 
    </vxe-grid>
  </div>

        <vTable  :columns="columns"  :dataSource="originalFilmList">

             <template  #content_slot>
                <a-popover>
                   <template #content>
                 
                  </template>
                  <a-button style="border:none; height:25px">
                    <a-icon type="more" />
                  </a-button>
                </a-popover>
              </template>
        </vTable>