Skip to content

slot-scope support multiple parameters #722

Closed
@tangjinzhou

Description

@tangjinzhou

Please describe what the rule should do:

It is understandable to pass only one parameter in the template.
But for some of the underlying general-purpose components written in render, it is possible to pass multiple parameters.
For example,
Edit Vue Antd Template

<span slot="action" slot-scope="text, record">
...
</span>

The slot-scope is like a function. For example ()=> .
I expect to get a slot that can be reused. Its role is to provide a component with a reusable slot.
So should not be limited by the number of parameters.
Maybe support only one parameter is the best practice.
But should not be so strictly prohibited.
It is best to provide a separate rule instead of no-parsing-error.

What category should the rule belong to?

  • Enforces code style
  • Warns about a potential error
  • Suggests an alternate way of doing something
  • Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions