• el-table <template slot=“header“>不更新问题


    <el-table-column
          v-for="(v, i) in dateHeader"
          :key="i"
          align="center"
          width="100"
        >
          <template slot="header">
            <div>{{ v.date | moment("MM-DD") }}div>
            <div>{{ $moment(v.date).weekday() | formatWeek }}div>
          template>
          <template slot-scope="{ row }">
              <span
                v-if="row[v.prop]"
                class="el-icon-check"
                style="color:#0095ff;font-weight: bold"
              >span>
            <span v-else>span>
          template>
        el-table-column>
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20

    控制台打印 数据没问题 已经更新了

    找了好多 说是需要