当前位置:网站首页>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>
边栏推荐
- 研发中台拆分过程的一些心得总结
- Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
- DNS domain name resolution
- [learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
- Pat a-1165 block reversing (25 points)
- As a software testing engineer, will you choose the bank post? Laolao bank test post
- Realize the code scanning function of a custom layout
- MongoDB非關系型數據庫
- Stdref and stdcref
- Formatting logic of SAP ui5 currency amount display
猜你喜欢

Remote connection to MySQL under windows and Linux system

Pat a-1165 block reversing (25 points)

结婚后

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

New programmer magazine | Li Penghui talks about open source cloud native message flow system

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

批量检测url是否存在cdn—高准确率
![[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)](/img/96/8c4baa1dd8e35e2cab67461e7c447b.jpg)
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)

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

SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding
随机推荐
QT实现界面跳转
What are the characteristics of common web proxy IP
Baohong industry | what misunderstandings should we pay attention to when diversifying investment
el-table的render-header用法
MongoDB非关系型数据库
Addition without addition, subtraction, multiplication and division (simple difficulty)
SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding
Baohong industry | four basic knowledge necessary for personal finance
About DNS
Feature query of hypergraph iserver rest Service
What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
STM32__ 05 - PWM controlled DC motor
As a software testing engineer, will you choose the bank post? Laolao bank test post
es面试题
The wave of layoffs in big factories continues, but I, who was born in both non undergraduate schools, turned against the wind and entered Alibaba
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
Oracle creates a user with read-only permission in four simple steps
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent