Git Product home page Git Product logo

Comments (4)

huangshuwei avatar huangshuwei commented on May 12, 2024

设置表头行高以及表格体行高通过 api 文档设置,分别对应 title-row-heightrow-height

字体和字号,默认依赖于外部的字体和字号。当然也对外开放了class 去控制,这个样式放到项目的样式表里即可(下次文档升级我加下说明):

.v-table-class{
      /* 设置表格的字号和字体*/
}

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 12, 2024

如果要全局的设置表头行高和表格体行高,建议通过vuex 设置,如 :

rootState:{
   titleRowHeight:30,
   rowHeight:30
}

然后每个使用table的地方直接用就vuex中定义的常量就好了,这样可以避免多人协同开发,设置的行高不一致的问题

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 12, 2024

文档已更新,包含详细说明:
http://doc.huangsw.com/vue-easytable/app.html#/start

from vue-easytable.

yichangle avatar yichangle commented on May 12, 2024

谢谢!太棒啦。

from vue-easytable.

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.