当前位置:网站首页>Render header usage of El table
Render header usage of El table
2022-07-02 02:45:00 【One plus one is not two】
el-table,:render-header
<template>
<el-table :data="tabledata" style="width: 100%" border>
<el-table-column prop="oldOrderBy" label=" Sort " :render-header="renderHeader">
</el-table-column>
<el-table-column prop="productName" label=" The product name "></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 },
}, ' edit ')
]
)
},
getTableData() {
this.tabledata = [{oldOrderBy:1,productName:' Product 1 '},
{oldOrderBy:2,productName:' Product 2 '}];
},
}
};
</script>
边栏推荐
- 离婚3年以发现尚未分割的共同财产,还可以要么
- 自定义组件的 v-model
- Missing numbers from 0 to n-1 (simple difficulty)
- 实现一个自定义布局的扫码功能
- Which kind of sports headphones is easier to use? The most recommended sports headphones
- Deployment practice and problem solving of dash application development environment based on jupyter Lab
- Face++ realizes face detection in the way of flow
- Baohong industry | four basic knowledge necessary for personal finance
- Email picture attachment
- [learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
猜你喜欢
![[liuyubobobo play with leetcode algorithm interview] [00] Course Overview](/img/1c/c8cab92c74b6658c3ef608c5255f1f.png)
[liuyubobobo play with leetcode algorithm interview] [00] Course Overview

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

Mongodb base de données non relationnelle
Face++ realizes face detection in the way of flow
![[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)](/img/98/956d8abbccceb1aae47e25825bc63d.jpg)
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
![[staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)](/img/e0/05890eafdb291c5aaff78cc241f455.jpg)
[staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
![[road of system analyst] collection of wrong topics in enterprise informatization chapter](/img/c4/0bb4823ca85c440b4e0587a91b2585.jpg)
[road of system analyst] collection of wrong topics in enterprise informatization chapter

JVM interview

Remote connection to MySQL under windows and Linux system
随机推荐
If you want to rewind the video picture, what simple methods can you use?
How to hide the scroll bar of scroll view in uniapp
Webgpu (I): basic concepts
JVM interview
Questions d'entrevue
Feature query of hypergraph iserver rest Service
Start from scratch - Web Host - 01
trading
What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
QT implementation interface jump
2022-2028 global aluminum beverage can coating industry research and trend analysis report
2022-2028 global military computer industry research and trend analysis report
Leetcode question brushing (10) - sequential question brushing 46 to 50
Jvm-01 (phased learning)
2022低压电工考试题模拟考试题库模拟考试平台操作
[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
MongoDB非關系型數據庫
What kind of good and cost-effective Bluetooth sports headset to buy
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
Comparative analysis of MVC, MVP and MVVM, source code analysis