list fix
This commit is contained in:
parent
a705b3d639
commit
291bfdeacb
@ -42,9 +42,9 @@ class BaseList(Component):
|
||||
tag = "ul"
|
||||
|
||||
# The style of the list. Default to "none".
|
||||
list_style_type: Union[
|
||||
list_style_type: Optional[Union[
|
||||
LiteralListStyleTypeUnordered, LiteralListStyleTypeOrdered
|
||||
] = "none"
|
||||
]] = "none"
|
||||
|
||||
# A list of items to add to the list.
|
||||
items: Optional[Union[Iterable, Var[Iterable]]] = None
|
||||
|
@ -35,25 +35,27 @@ class BaseList(Component):
|
||||
def create( # type: ignore
|
||||
cls,
|
||||
*children,
|
||||
list_style_type: Union[
|
||||
Literal["circle", "disc", "none", "square"],
|
||||
Literal[
|
||||
"armenian",
|
||||
"decimal",
|
||||
"decimal-leading-zero",
|
||||
"georgian",
|
||||
"hiragana",
|
||||
"katakana",
|
||||
"lower-alpha",
|
||||
"lower-greek",
|
||||
"lower-latin",
|
||||
"lower-roman",
|
||||
"none",
|
||||
"upper-alpha",
|
||||
"upper-latin",
|
||||
"upper-roman",
|
||||
],
|
||||
] = "none",
|
||||
list_style_type: Optional[
|
||||
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,
|
||||
items: Optional[Union[Iterable, Union[Iterable, Var[Iterable]]]] = None,
|
||||
style: Optional[Style] = None,
|
||||
key: Optional[Any] = None,
|
||||
@ -383,25 +385,27 @@ class List(ComponentNamespace):
|
||||
@staticmethod
|
||||
def __call__(
|
||||
*children,
|
||||
list_style_type: Union[
|
||||
Literal["circle", "disc", "none", "square"],
|
||||
Literal[
|
||||
"armenian",
|
||||
"decimal",
|
||||
"decimal-leading-zero",
|
||||
"georgian",
|
||||
"hiragana",
|
||||
"katakana",
|
||||
"lower-alpha",
|
||||
"lower-greek",
|
||||
"lower-latin",
|
||||
"lower-roman",
|
||||
"none",
|
||||
"upper-alpha",
|
||||
"upper-latin",
|
||||
"upper-roman",
|
||||
],
|
||||
] = "none",
|
||||
list_style_type: Optional[
|
||||
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,
|
||||
items: Optional[Union[Iterable, Union[Iterable, Var[Iterable]]]] = None,
|
||||
style: Optional[Style] = None,
|
||||
key: Optional[Any] = None,
|
||||
|
Loading…
Reference in New Issue
Block a user