element-ui vue-element-extends vxe-table 实现对海量数据的支持

使用 vxe-table 组件实现滚动渲染,流畅的渲染海量数据

<elx-table
      ref="elxTable"
      border
      :config="{render: 'scroll'}"
      style="width: 100%">
      <elx-table-column type="selection" width="55">elx-table-column>
      <elx-table-column type="index" width="100" fixed="left">elx-table-column>
      <elx-table-column prop="name" label="名字" min-width="100" show-overflow-tooltip>
        <template v-slot:header="scope">
          <i class="el-icon-question">i>名字
        template>
      elx-table-column>
      <elx-table-column prop="sex" label="性别" min-width="140" :formatter="formatterSex">elx-table-column>
      <elx-table-column prop="age" label="年龄" min-width="140">elx-table-column>
      <elx-table-column prop="region" label="地区" width="200" :formatter="formatterRegion">elx-table-column>
      <elx-table-column prop="date" width="220" label="日期" :formatter="formatterDate">elx-table-column>
      <elx-table-column prop="rate" width="220" label="评分">
        <template v-slot="scope">
          <el-rate
            v-model="scope.row.rate"
            disabled
            show-score
            text-color="#ff9900">
          el-rate>
        template>
      elx-table-column>
      <elx-table-column prop="updateTime" label="更新时间" width="200" :formatter="formatterDate">elx-table-column>
      <elx-table-column prop="createTime" label="创建时间" width="200" :formatter="formatterDate">elx-table-column>
    elx-table>

你可能感兴趣的:(element-ui,vue)