ElemeFE / ElemeFE/element

[Bug Report] How to add prop in slot-scope column

Open
#18,829 3 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.13.0

### OS/Browsers version
10 / chrome

### Vue version
3.0.0-alpha.5

### Reproduction Link
https://jsfiddle.net/mmx38qxw/

### Steps to reproduce
I have a column in my table which uses `slot-scope` but i cannot define `prop` to this column in order to get filters for it.

Code

**filter input**

```html


```

**column in table**

```html



{{ role.name }}

```

**script**

```javascript
filters: [
{
value: [],
prop: 'role',
}
]
```

### What is Expected?

Adding prop to column

### What is actually happening?

Error that I get

```bash
prop role not exist in the row, please confirm wether the prop is right, this may cause unpredictable filter result
```
**screenshot**

![Untitled](https://user-images.githubusercontent.com/8672823/74871688-7add3400-538e-11ea-8610-5e0f780e1100.png)

**Any idea?**

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.