当前位置:网站首页>el-table的render-header用法
el-table的render-header用法
2022-07-02 02:42:00 【一加一不是二】
el-table,:render-header
<template>
<el-table :data="tabledata" style="width: 100%" border>
<el-table-column prop="oldOrderBy" label="排序" :render-header="renderHeader">
</el-table-column>
<el-table-column prop="productName" label="产品名称"></el-table-column>
</el-table>
</template>
<script>
export default {
data() {
return {
tabledata: [],
isDragon:true
};
},
created() {
this.getTableData()
},
methods: {
renderHeader(h, { column }) {
return h('span', { style: { padding: '0' } },
[
h('span', { style: { paddingRight: '3px' } }, column.label),
h('a', {
style: { color: '#008AE1', fontSize: '12px' },
on: { click: () => { this.isDragon = false } },
props: { content: column.label },
}, '编辑')
]
)
},
getTableData() {
this.tabledata = [{oldOrderBy:1,productName:'产品一'},
{oldOrderBy:2,productName:'产品二'}];
},
}
};
</script>
边栏推荐
- Yyds dry goods inventory accelerating vacuum in PG
- [question 008: what is UV in unity?]
- Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
- Oracle creates a user with read-only permission in four simple steps
- What is the function of the headphone driver
- [reading notes] programmer training manual - practical learning is the most effective (project driven)
- Soul app released the annual report on generation Z behavior: nearly 20% of young people love shopping in the vegetable market
- [learn C and fly] day 5 chapter 2 program in C language (Exercise 2)
- 附加:信息脱敏;
- [Chongqing Guangdong education] Sichuan University concise university chemistry · material structure part introductory reference materials
猜你喜欢

【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度

No programming code technology! Four step easy flower store applet

Mongodb non relational database

PHP notes - use Smarty to set public pages (include, if, else, variable settings)

【OpenCV】-5种图像滤波的综合示例

附加:信息脱敏;

LFM signal denoising, time-frequency analysis, filtering

研发中台拆分过程的一些心得总结
![[staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the](/img/fe/d97b25f702bbc05f941d08147259e0.jpg)
[staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the

Deployment practice and problem solving of dash application development environment based on jupyter Lab
随机推荐
Deployment practice and problem solving of dash application development environment based on jupyter Lab
What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
Start from scratch - Web Host - 01
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
If you want to rewind the video picture, what simple methods can you use?
设置状态栏颜色
Sword finger offer 31 Stack push in and pop-up sequence
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里
Oracle creates a user with read-only permission in four simple steps
Comparative analysis of MVC, MVP and MVVM, source code analysis
The video number will not be allowed to be put on the shelves of "0 yuan goods" in the live broadcasting room?
The basic steps of using information theory to deal with scientific problems are
QT实现界面跳转
Yyds dry goods inventory accelerating vacuum in PG
Analysis of FLV packaging format
Duplicate keys detected: ‘0‘. This may cause an update error. found in
Ten minutes will take you in-depth understanding of multithreading - multithreaded teamwork: synchronous control
Which kind of sports headphones is easier to use? The most recommended sports headphones
SQL server calculates the daily average and annual average of the whole province