ElemeFE / ElemeFE/element

[Bug Report] 动态table-column,数据改变不会更新表头的内容

Open
#20,453 14 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.14.1

### OS/Browsers version
macos/chrome 86.0.4240.198

### Vue version
2.6.11

### Reproduction Link
https://codepen.io/mountainp/pen/eYzXaMo

### Steps to reproduce


{{ c.label }}

data() {
return {
columns: [{label: '1'}, {label: '2'}]
};
}

mounted() {
setTimeout(() => {
this.columns = [{label: '11'}, {label: '22'}];
}, 5000);
}

### What is Expected?
表头的内容应该更新为11,22

### What is actually happening?
表头内容未进行更新

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.