primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.95k stars 1.25k forks source link

DataTable: doesn't work with Local pt prop #5177

Open mbaljeetsingh opened 10 months ago

mbaljeetsingh commented 10 months ago

Describe the bug

While creating a library on top of Primevue, I'm trying to convert DataTable with local passthrough prop, but I'm not seeing anything in the output after passing the correct data.

Reproducer

https://stackblitz.com/edit/kcuyyb?file=src%2Fcomponents%2FDataTable.vue,src%2Fcomponents%2FColumn.vue,src%2FApp.vue,src%2Fmain.js

PrimeVue version

3.47.2

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

mertsincan commented 10 months ago

Hi,

Unfortunately, I couldn't replicate it. The custom DataTable in the above sample link does not seem to work. Could you please update it? And then I'll check local pt options issue.

Best Regards,

github-actions[bot] commented 10 months ago

We're unable to replicate your issue, if you are able to create a reproducer or add details please edit this issue. This issue will be closed if no activities in 20 days.

mbaljeetsingh commented 10 months ago

Hi,

Unfortunately, I couldn't replicate it. The custom DataTable in the above sample link does not seem to work. Could you please update it? And then I'll check local pt options issue.

Best Regards,

Hi

This is the issue. I was expecting it to work like this. But, it is not working.

Most of the other components are working with the same approach.

Thanks

mertsincan commented 10 months ago

Hi,

Ok, I think this issue is not related to local pt props. The custom DataTable is not rendering. Is this the main issue? We need to make sure exactly what isn't working. If local pt is a problem, we can focus on it without thinking about rendering. If the DataTable component does not work while wrapping the DataTable, we can focus on the DataTable.

mbaljeetsingh commented 10 months ago

Hi,

Ok, I think this issue is not related to local pt props. The custom DataTable is not rendering. Is this the main issue? We need to make sure exactly what isn't working. If local pt is a problem, we can focus on it without thinking about rendering. If the DataTable component does not work while wrapping the DataTable, we can focus on the DataTable.

Hi

Yes, the dataTable is not rendering.

Sorry about not being very clear. Thanks

mertsincan commented 10 months ago

Hi,

No problem, thanks a lot for your update! I'll check and get back to you.

mbaljeetsingh commented 9 months ago

Hi @mertsincan

Were you able to look into it?

mbaljeetsingh commented 9 months ago

Hi @mertsincan @tugcekucukoglu

I have made some updates. Now, the DataTable is rendering. But, the column is not rendering.

image

I also tried adding some dummy text in the Column.vue component. It doesn't render in the correct place then.

image

Demo: https://stackblitz.com/edit/pmrnuz?file=src%2Fcomponents%2FColumn.vue,src%2Fcomponents%2FDataTable.vue,src%2FApp.vue,src%2Fmain.js

Thanks