element-plus / element-plus-nuxt-starter

🌰 A starter example for element-plus with Nuxt 3.
https://element-plus-nuxt.vercel.app
MIT License
289 stars 82 forks source link

Table with header, SSR #12

Closed 209 closed 2 years ago

209 commented 2 years ago

https://github.com/209/element-plus-nuxt-starter

    <el-table
        :data="tableData"
        style="width: 100%"
        :stripe="true"
        :fit="true"
        :sortable="false"
        :show-header="true"
    >
      <el-table-column prop="field" label="Field" width="180" />
      <el-table-column prop="value" label="Value" width="180" />
    </el-table>
Снимок экрана 2021-10-24 в 01 32 13

In SSR we have "0" in html before hydrate. We haven't problem with :show-header="false"

upd: Table doesn't render on server :( Only after hydrate

xiaoxian521 commented 2 years ago

looks normal

image