Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert button 可以改用 component slot #2

Open
asika32764 opened this issue Jul 26, 2022 · 2 comments
Open

Insert button 可以改用 component slot #2

asika32764 opened this issue Jul 26, 2022 · 2 comments
Labels
PR Attached 已有 PR 已有回應 已有回應且暫時無需處理

Comments

@asika32764
Copy link
Contributor

https://github.com/lyrasoft/attachment-uploader/blob/master/views/attachment-list.blade.php#L34

讓開發者自己決定這邊要插入什麼按鈕

@chokeslam
Copy link
Collaborator

這邊是在 foreach 內, 如果從用 slot 從外部加上的話 每個 insert btn 上 需要的 data-href 及 data-filename 會拿不到

@chokeslam chokeslam added the 已有回應 已有回應且暫時無需處理 label Jul 26, 2022
@asika32764
Copy link
Contributor Author

可以用 slot scope

我示範在 #3

@asika32764 asika32764 added Code Attached 已有相關程式碼附加 PR Attached 已有 PR and removed Code Attached 已有相關程式碼附加 labels Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR Attached 已有 PR 已有回應 已有回應且暫時無需處理
Projects
None yet
Development

No branches or pull requests

2 participants