当前位置:网站首页>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>
边栏推荐
- CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
- The basic steps of using information theory to deal with scientific problems are
- [reading notes] programmer training manual - practical learning is the most effective (project driven)
- es面试题
- Missing numbers from 0 to n-1 (simple difficulty)
- 2022-2028 global deep sea generator controller industry research and trend analysis report
- es面試題
- LeetCode刷题(十)——顺序刷题46至50
- [liuyubobobo play with leetcode algorithm interview] [00] Course Overview
- What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
猜你喜欢

CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决

Baohong industry | four basic knowledge necessary for personal finance

2022-2028 global military computer industry research and trend analysis report

SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding

Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
![[learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)](/img/2e/8fe55393ccca6663d98c0b3dd9a146.png)
[learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
![[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

buu_ re_ crackMe

Query word weight, search word weight calculation

附加:信息脱敏;
随机推荐
Kibana操控ES
query词权重, 搜索词权重计算
How to run oddish successfully from 0?
The basic steps of using information theory to deal with scientific problems are
Email picture attachment
New programmer magazine | Li Penghui talks about open source cloud native message flow system
how to add one row in the dataframe?
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
STM32__05—PWM控制直流电机
【OpenCV】-5种图像滤波的综合示例
2022-2028 global military computer industry research and trend analysis report
C write TXT file
Formatting logic of SAP ui5 currency amount display
es面試題
QT使用sqllite
MongoDB非關系型數據庫
What is the function of the headphone driver
研发中台拆分过程的一些心得总结
大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里