el-table自定义表头新

   <el-table-column
                prop="address"
                label="333333"
                min-width="180"
                :show-overflow-tooltip="true"
              >
                <template slot="header">
                  <div><span class="corm">*</span>xxxx</div>
                </template>
                <template slot-scope="scope">
                  <el-select
                    v-model="scope.row.uniqueValueObj.perType"
                    placeholder="请选择"
                  >
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    >
                    </el-option>
                  </el-select>
                </template>
              </el-table-column>

 

 

posted @ 2024-10-17 14:52  ThisCall  阅读(131)  评论(0编辑  收藏  举报