Giter Site home page Giter Site logo

blogexample's People

Contributors

dependabot[bot] avatar superzhoudalu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blogexample's Issues

如何在不调整window size的情况下触发table的resize?

我加上了adaptive部分的代码之后成功的实现了调整浏览器大小时表格也可以随之变化。
但我有一些元素会在使用中途被隐藏,这时候我也想让table自动调整大小,应该怎么触发呢?
我尝试了window.dispatch(new Event("size")),但是没有成功。

目前发现还是不行,求大佬解惑。

代码大概如下,
把代码全局引入
<el-table height="100px" :data="tableData" v-adaptive="{bottomOffset: 60}"

data(){
return {
tableData:[]
}},
mounted(){
this.getList()
},
methods:{
async getList(){
const d= await xxx()
this.tableData = d
}
}

在代码调试中,第一次是有设置 高度的,但随后数据渲染上去,高度变回 100px ,扣除列头,table body 只剩55px ,需要触发resize才有效。

表头如何固定

用原生指令height或者maxHeight 设置了高度后,表头是固定的,在实现过程中,发现按您的这样设置,无法固定表头,请问这个问题需要怎么解决呢

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.