API 浏览器
内部加载

QInnerLoading 组件允许你在组件内添加进度动画。与 加载插件 非常相似,它的目的是向用户提供视觉确认,告知后台正在执行某些进程,这会耗费大量时间。QInnerLoading 将在延迟元素上添加一个不透明的覆盖层以及 Spinner

¥The QInnerLoading component allows you to add a progress animation within a component. Much like the Loading Plugin, its purpose is to offer visual confirmation to the user that some process is happening in the background, which takes an excessive amount of time. QInnerLoading will add an opaque overlay over the delayed element along with a Spinner.

Loading QInnerLoading API...

用法(Usage)

¥Usage

警告

为了使加载控件正确放置在你希望加载显示在其上的元素的中心,该元素必须将 CSS 位置设置为 relative(或声明 relative-position CSS 类)。

¥In order for the spinner to be properly placed in the center of the element you want the loading display to show over, that element must have CSS position set to relative (or the relative-position CSS class declared).

警告

QInnerLoading 必须是其父元素内的最后一个元素,这样它才能显示在其他内容之上。

¥QInnerLoading must be the last element inside its parent so it can appear on top of the other content.

基本(Basic)

¥Basic

Basic



标签
v2.2+
(Label
v2.2+
)

¥Label

v2.2+

你可以在使用默认插槽时添加标签,但也可以改用 “label” 属性:

¥You can add a label when using the default slot, but you can also use the “label” props instead:

Label props