api-platform / api-platform/create-client

Vue generators produce invalid names for scoped slots

未關閉
#380 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
376
分支
132
PR 合併指標
30 天內沒有已合併 PR

描述

**Description**
Vue generators produce invalid names for scoped slots
For example:
```vue



{{ book["@id"] }}





```

It show this error: `Illegal '/' in tags.vue(22)`

**How to reproduce**
Run the `yarn test-gen` command and look at the `{quasar|vuetify|vue}/components/[foo]/[FooList].vue` components

**Possible Solution**
The named scoped slots use the property names inside the table components to create the table cells and columns.

If we replace the slash with another character, we should make sure the slot name match the real property name from the API.
We need to check how the properties received from the API are named.

Another solution, maybe, would be to use variable for slot names.
But that would mean receiving them as props or declaring them in the script section, but it's not ideal.

Do you have an idea @dunglas ?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。