v-fit-columns

A Vue.js plugin that auto fit Element UI's el-table-column with cell content.
18,000 96
Install
npm install v-fit-columns
Latest Version:0.2.0
License:MIT
Last Updated:Jun 28, 2022
Links: GitHub  ·  npm
Maintainer: kayson

v-fit-columns

A Vue.js plugin that auto fits Element UI's el-table-column with cell content. Vue.js 插件,可实现 Element UI el-table-column 宽度自适应内容,同时保持内容不换行。

Install

npm install v-fit-columns --save

Use

In app entry file:

import Vue from 'vue';
import Plugin from 'v-fit-columns';
Vue.use(Plugin);

In your component:

<el-table v-fit-columns>
  <el-table-column label="No." type="index" class-name="leave-alone"></el-table-column>
  <el-table-column label="Name" prop="name"></el-table-column>
  <el-table-column label="Age" prop="age"></el-table-column>
</el-table>

Notes

  • For columns that don't need to be fitted, add a leave-alone class by setting class-name in <el-table-column>.

Related Packages

tyro-ui

基于element ui二次封装组件库

621 0
el-table-bar-base

scrollbar of element-ui el-table

3,718
fetch-table

`顾名思义,这是一个表格组件,与其它表格不同的地方在于它的渲染逻辑及业务逻辑都是...

1,666 0
el-easytable

Description 基于vite vue3 +element plus的复合表格和可编辑表格

1,544

Version History

Version Released License
0.2.0 MIT
0.1.1 MIT
0.1.0 MIT