Skip to content

Commit 4b910a5

Browse files
feat: 添加背景色和层级变量,文档和用例修复
1 parent 8ae00e1 commit 4b910a5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/action-sheet/_example/list/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<t-action-sheet id="t-action-sheet" usingCustomNavbar bind:selected="handleSelected" show-overlay="{{false}}" />
1+
<t-action-sheet id="t-action-sheet" usingCustomNavbar bind:selected="handleSelected" />
22

33
<t-button size="large" variant="outline" bind:tap="handleAction" block theme="primary">列表型</t-button>
44

src/loading/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ style | Object | - | 样式 | N
6666
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
6767
delay | Number | 0 | 延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒 | N
6868
duration | Number | 800 | 加载动画执行完成一次的时间,单位:毫秒 | N
69-
fullscreen | Boolean | true | 是否显示为全屏加载 | N
69+
fullscreen | Boolean | false | 是否显示为全屏加载 | N
7070
indicator | Boolean / Slot | true | 加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
7171
inherit-color | Boolean | false | 是否继承父元素颜色 | N
7272
layout | String | horizontal | 对齐方式。可选项:horizontal/vertical | N

src/loading/loading.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
@loading-text-color: var(--td-loading-text-color, @text-color-primary);
77
@loading-text-font-size: var(--td-loading-text-font-size, 24rpx);
88
@loading-text-line-height: var(--td-loading-text-line-height, 40rpx);
9-
@loading-z-index: 999;
9+
@loading-z-index: var(--td-loading-z-index, 3500);
10+
@loading-full-bg-color: var(--td-loading-full-bg-color, rgba(255, 255, 255, 0.6));
1011

1112
.@{loading} {
1213
display: inline-flex;
@@ -26,6 +27,7 @@
2627
height: 100%;
2728
transform: translate(-50%, -50%);
2829
z-index: @loading-z-index;
30+
background-color: @loading-full-bg-color;
2931
}
3032

3133
&__spinner {

0 commit comments

Comments
 (0)