当前位置:网站首页>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>
边栏推荐
- QT使用sqllite
- 2022低压电工考试题模拟考试题库模拟考试平台操作
- Actual battle of financial risk control - under Feature Engineering
- Oracle creates a user with read-only permission in four simple steps
- Mongodb base de données non relationnelle
- Systemserver service and servicemanager service analysis
- Leetcode face T10 (1-9) array, ByteDance interview sharing
- flutter 中间一个元素,最右边一个元素
- 結婚後
- [staff] restore mark (Introduction to the use of restore mark | example analysis of Metaphone mark and restore mark)
猜你喜欢
![[Chongqing Guangdong education] Sichuan University concise university chemistry · material structure part introductory reference materials](/img/ae/7edbdf55795400166650c795c8bd58.jpg)
[Chongqing Guangdong education] Sichuan University concise university chemistry · material structure part introductory reference materials

LFM信号加噪、时频分析、滤波

Analysis of FLV packaging format
![[opencv] - comprehensive examples of five image filters](/img/c7/aec9f2e03a17c22030d7813dd47c48.png)
[opencv] - comprehensive examples of five image filters

QT实现界面跳转

AcWing 245. Can you answer these questions (line segment tree)

About DNS

Comparative analysis of MVC, MVP and MVVM, source code analysis

Which brand of sports headset is better? Bluetooth headset suitable for sports

Multi threaded query, double efficiency
随机推荐
A quick understanding of digital electricity
Share the basic knowledge of a common Hongmeng application
Après le mariage
The basic steps of using information theory to deal with scientific problems are
Which brand of running headphones is good? How many professional running headphones are recommended
how to add one row in the dataframe?
Batch detect whether there is CDN in URL - high accuracy
The video number will not be allowed to be put on the shelves of "0 yuan goods" in the live broadcasting room?
Bash bounce shell encoding
[road of system analyst] collection of wrong topics in enterprise informatization chapter
大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
Set status bar color
Duplicate keys detected: ‘0‘. This may cause an update error. found in
What are the characteristics of common web proxy IP
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
Which kind of sports headphones is easier to use? The most recommended sports headphones
[staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
flutter 中間一個元素,最右邊一個元素
Types of exhibition items available in the multimedia interactive exhibition hall