address missed comment
This commit is contained in:
parent
d7d51b7a83
commit
56cf2acc74
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, Iterable, Literal, Optional, Union
|
from typing import Any, Iterable, Literal, Union
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
from reflex.components.core.foreach import Foreach
|
from reflex.components.core.foreach import Foreach
|
||||||
@ -42,7 +42,7 @@ class BaseList(Component):
|
|||||||
tag = "ul"
|
tag = "ul"
|
||||||
|
|
||||||
# The style of the list. Default to "none".
|
# The style of the list. Default to "none".
|
||||||
list_style_type: Optional[
|
list_style_type: Var[
|
||||||
Union[LiteralListStyleTypeUnordered, LiteralListStyleTypeOrdered]
|
Union[LiteralListStyleTypeUnordered, LiteralListStyleTypeOrdered]
|
||||||
] = "none"
|
] = "none"
|
||||||
|
|
||||||
|
@ -54,6 +54,27 @@ class BaseList(Component):
|
|||||||
"upper-roman",
|
"upper-roman",
|
||||||
],
|
],
|
||||||
Literal["circle", "disc", "none", "square"],
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
Var[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"armenian",
|
||||||
|
"decimal",
|
||||||
|
"decimal-leading-zero",
|
||||||
|
"georgian",
|
||||||
|
"hiragana",
|
||||||
|
"katakana",
|
||||||
|
"lower-alpha",
|
||||||
|
"lower-greek",
|
||||||
|
"lower-latin",
|
||||||
|
"lower-roman",
|
||||||
|
"none",
|
||||||
|
"upper-alpha",
|
||||||
|
"upper-latin",
|
||||||
|
"upper-roman",
|
||||||
|
],
|
||||||
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
]
|
||||||
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
||||||
@ -127,6 +148,27 @@ class UnorderedList(BaseList, Ul):
|
|||||||
"upper-roman",
|
"upper-roman",
|
||||||
],
|
],
|
||||||
Literal["circle", "disc", "none", "square"],
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
Var[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"armenian",
|
||||||
|
"decimal",
|
||||||
|
"decimal-leading-zero",
|
||||||
|
"georgian",
|
||||||
|
"hiragana",
|
||||||
|
"katakana",
|
||||||
|
"lower-alpha",
|
||||||
|
"lower-greek",
|
||||||
|
"lower-latin",
|
||||||
|
"lower-roman",
|
||||||
|
"none",
|
||||||
|
"upper-alpha",
|
||||||
|
"upper-latin",
|
||||||
|
"upper-roman",
|
||||||
|
],
|
||||||
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
]
|
||||||
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
||||||
@ -238,6 +280,27 @@ class OrderedList(BaseList, Ol):
|
|||||||
"upper-roman",
|
"upper-roman",
|
||||||
],
|
],
|
||||||
Literal["circle", "disc", "none", "square"],
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
Var[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"armenian",
|
||||||
|
"decimal",
|
||||||
|
"decimal-leading-zero",
|
||||||
|
"georgian",
|
||||||
|
"hiragana",
|
||||||
|
"katakana",
|
||||||
|
"lower-alpha",
|
||||||
|
"lower-greek",
|
||||||
|
"lower-latin",
|
||||||
|
"lower-roman",
|
||||||
|
"none",
|
||||||
|
"upper-alpha",
|
||||||
|
"upper-latin",
|
||||||
|
"upper-roman",
|
||||||
|
],
|
||||||
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
]
|
||||||
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
||||||
@ -444,6 +507,27 @@ class List(ComponentNamespace):
|
|||||||
"upper-roman",
|
"upper-roman",
|
||||||
],
|
],
|
||||||
Literal["circle", "disc", "none", "square"],
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
Var[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"armenian",
|
||||||
|
"decimal",
|
||||||
|
"decimal-leading-zero",
|
||||||
|
"georgian",
|
||||||
|
"hiragana",
|
||||||
|
"katakana",
|
||||||
|
"lower-alpha",
|
||||||
|
"lower-greek",
|
||||||
|
"lower-latin",
|
||||||
|
"lower-roman",
|
||||||
|
"none",
|
||||||
|
"upper-alpha",
|
||||||
|
"upper-latin",
|
||||||
|
"upper-roman",
|
||||||
|
],
|
||||||
|
Literal["circle", "disc", "none", "square"],
|
||||||
|
]
|
||||||
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
||||||
|
Loading…
Reference in New Issue
Block a user