docs_vue2/one/docs/en-US/components/loading.md
2020-09-02 13:33:28 +08:00

1.1 KiB

Loading

Demos

Stylistic variants

Available style variants for the ui prop: normal/strong/reverse.

Size variants

Available size variants for the ui prop: s/m/l.

Layout variants

Available layout variants for the ui prop: vertical.

Custom loading icons

Using spinner slot to replace default loading icon.

API

Name Type Default Description
ui string= - [^ui]
loading boolean false Whether the component is in loading state.

^^^ui Style variants. A space-separated list of enum values.

+++Enum

Value Description
strong Strong style.
reverse Reverse style, typically used on dark background.
vertical Vertical style.
s Small style.
m Medium.
l Large style.
+++
^^^

Slots

Name Description
spinner Loading icon.
default Loading description.