Home Web Front-end Front-end Q&A How to modify table row height in vue

How to modify table row height in vue

Jan 31, 2023 pm 04:11 PM
vue Yukidaka

Vue method to modify table row height: 1. Open the corresponding vue file; 2. View the table style code; 3. Modify ":row-style="{height:'20px'}" :cell -style="{padding:'0px'}"" attribute value can modify the table row height.

How to modify table row height in vue

The operating environment of this tutorial: Windows 10 system, Vue version 3, DELL G3 computer

How to modify the table row height in vue?

vue element UI el-table table adjusts the row height and the font size in the cell

Description:

Reduction: Once the row height reaches a certain level, it cannot be reduced Zoom out. It seems that the minimum is 35px. You can try it.

Raise: I have not tried the maximum value during actual development, but the row height can be adjusted to a height that suits you.

 <el-table
    :row-style="{height:&#39;20px&#39;}"
    :cell-style="{padding:&#39;0px&#39;}"
    style="font-size: 10px">
 </el-table>
Copy after login

cell-style="padding:0" This column does not need to be added. This is what I added when I reduced the height and it reached the minimum height and could no longer be reduced.

Mainly these two lines of code

:row-style="{height:&#39;20px&#39;}"
:cell-style="{padding:&#39;0px&#39;}"
Copy after login

Recommended study: "vue.js video tutorial"

The above is the detailed content of How to modify table row height in vue. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The role of export default in vue The role of export default in vue May 09, 2024 pm 06:48 PM

Question: What is the role of export default in Vue? Detailed description: export default defines the default export of the component. When importing, components are automatically imported. Simplify the import process, improve clarity and prevent conflicts. Commonly used for exporting individual components, using both named and default exports, and registering global components.

How to use map function in vue How to use map function in vue May 09, 2024 pm 06:54 PM

The Vue.js map function is a built-in higher-order function that creates a new array where each element is the transformed result of each element in the original array. The syntax is map(callbackFn), where callbackFn receives each element in the array as the first argument, optionally the index as the second argument, and returns a value. The map function does not change the original array.

How to disable the change event in vue How to disable the change event in vue May 09, 2024 pm 07:21 PM

In Vue, the change event can be disabled in the following five ways: use the .disabled modifier to set the disabled element attribute using the v-on directive and preventDefault using the methods attribute and disableChange using the v-bind directive and :disabled

Adaptation of Java framework and front-end Vue framework Adaptation of Java framework and front-end Vue framework Jun 01, 2024 pm 09:55 PM

The Java framework and Vue front-end adaptation implement communication through the middle layer (such as SpringBoot), and convert the back-end API into a JSON format that Vue can recognize. Adaptation methods include: using the Axios library to send requests to the backend and using the VueResource plug-in to send simplified API requests.

What does async mean in vue What does async mean in vue May 09, 2024 pm 07:03 PM

Vue's async modifier is used to create asynchronous components or methods to achieve dynamic loading of components and execution of asynchronous operations to avoid blocking the main thread.

The function of render function in vue The function of render function in vue May 09, 2024 pm 07:06 PM

The render function in Vue.js is responsible for converting component data into virtual DOM, which can improve performance, enable templating, and support cross-platform. Specific functions include: 1. Generating virtual DOM; 2. Improving performance; 3. Implementing templates; 4. Supporting cross-platform.

What is the function of setup in vue What is the function of setup in vue May 09, 2024 pm 06:45 PM

The function of the setup function in Vue is to initialize component state and logic, including defining responsive data, methods and life cycle hooks. Replaces data(), methods(), computed(), and watch() options in the options API. Provide better performance through responsive handling. Supports Composition API for sharing and reusing logic. Improves testability because logic is separated from template code.

How to use v-show in vue How to use v-show in vue May 09, 2024 pm 07:18 PM

The v-show directive is used to dynamically hide or show elements in Vue.js. Its usage is as follows: The syntax of the v-show directive: v-show="booleanExpression", booleanExpression is a Boolean expression that determines whether the element is displayed. The difference with v-if: v-show only hides/shows elements through the CSS display property, which optimizes performance; while v-if conditionally renders elements and recreates them after destruction.

See all articles