Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Raise error/warning when using `:if` on a slotable component

Đang mở
#189 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
elixir
Lĩnh vực
frontend

Hướng nghiên cứu

Start in lib/surface/compiler.ex around the referenced directive handling and read the discussion in issue 182. Determine how slotable or renderless components are compiled and compare their accepted directives with , which currently accepts :let. Done means incompatible directives such as :for produce the requested compile-time error or warning while supported directives remain valid.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

We should raise a compile-time error if the user tries to use :for or any incompatible directive on a renderless component.

It should accept the same directives as <template>, which currently is just :let:https://github.com/msaraiva/surface/blob/b745e1322ce7b20fcbcf8503f507349da0772435/lib/surface/compiler.ex#L40.

Initial discussion started at https://github.com/msaraiva/surface/issues/182.

Ngôn ngữ chính
Elixir
Star
2.1k
Fork
146
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của surface-ui/surface

Tất cả issue của surface-ui/surface

Issue tương tự

Thêm issue về Elixir

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.