Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(loading): remove repeat demo #4949

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions src/loading/loading.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
:: BASE_DOC ::

### 指令方式调用

支持 `v-loading` 指令调用 `Loading`,只需要绑定 `boolean` 值即可,支持 `fullscreen` 和 `inheritColor` 修饰符以及 `Object` 形式的自定义配置,分别对应其属性。

{{ directive }}

### 挂载到指定元素

可通过 `attach` 挂载到指定元素。

注:被挂载元素(loading的父元素)需设置:`position: relative;`

{{ attach }}


## FAQ

### 为什么在 Loading 中无法使用样式穿透?
Expand All @@ -23,14 +15,17 @@
如果必须要进行样式替换,可以采用以下几种方案。

方案一:单独创建一个不使用`scoped`的`style`标签

```html
<style>
.test .t-radio-button__label {
color: red;
}
</style>
```

方案二:使用 `:global` 伪类来实现相同效果,比起单独创建一个`style`更加简洁明了。

```html
<style scoped>
.abc{
Expand All @@ -51,6 +46,7 @@
如果您不确定问题是否是由该规则引起的,或者确定该规则不是问题的根本原因,请在 `GitHub` 上提出一个 `issue`,并提供可以重现问题的代码。这将有助于我们更好地了解您的问题并提供更好的帮助。

## API

### Loading Props

名称 | 类型 | 默认值 | 说明 | 必传
Expand Down
Loading