add custom_attrs to pc.element (#1131)

This commit is contained in:
Sheldon 2023-06-06 11:17:20 +08:00 committed by GitHub
parent 2254599ec4
commit 5fd428e92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ class Element(Component):
id=self.id,
style=self.style,
class_name=self.class_name,
**self.custom_attrs,
).set(
contents=str(tag.contents),
children=[child.render() for child in self.children],