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