Giter VIP home page Giter VIP logo

Comments (3)

xiaocheng555 avatar xiaocheng555 commented on July 22, 2024
<virtualScroll
      :data="tableData"
      :itemSize="45"
      keyProp="colGuid"
      @change="data => (renderData = data)"
      @selection-change="selectRows"
    >
      <el-table
        row-key="colGuid"
        :data="renderData"
        :height="tableHeight"
        ref="multipleTable"
        border
        size="small"
        :stripe="isStripe"
        :header-cell-style="headerStyle"
        :cell-style="{ textAlign: 'center' }"
        v-loading="loading"
        element-loading-text="加载中..."
        element-loading-spinner="aic-icon-loading"
      >
        <virtual-column width="55" type="selection"></virtual-column>
        <virtual-column label="序号" align="center" width="80" type="index"></virtual-column>
        <el-table-column prop="itemName" label="名称" min-width="100"> </el-table-column>
        <el-table-column prop="createTime" label="创建时间" min-width="100"> </el-table-column>
        <el-table-column prop="sortNo" label="排序" min-width="100"> </el-table-column>
        <el-table-column label="操作" min-width="100" fixed="right">
          <template slot-scope="scope">
            <el-button
              :disabled="scope.row.status === 1"
              type="primary"
              size="mini"
              icon="el-icon-edit"
              title="详情"
              @click="onDetail(scope)"
            ></el-button>
          </template>
        </el-table-column>
      </el-table>
    </virtualScroll>

有demo吗,我复现不出来

from el-table-virtual-scroll.

subo1013 avatar subo1013 commented on July 22, 2024

@xiaocheng555 列数放多点,越多越明显

from el-table-virtual-scroll.

xiaocheng555 avatar xiaocheng555 commented on July 22, 2024

@xiaocheng555 列数放多点,越多越明显

[email protected] 增加了自定义列的,可以试试看没有效果
[email protected] 有点bug,在[email protected]修复了

image

参考demo:https://xiaocheng555.github.io/el-table-virtual-scroll/#/VFixedDemo?code=VFixedDemo&codeTitle=%E5%9B%BA%E5%AE%9A%E5%88%97%EF%BC%88%E8%87%AA%E5%AE%9A%E4%B9%89%EF%BC%89

from el-table-virtual-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.