1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

通过微信开发者工具 商城模板 创建新小程序

This commit is contained in:
2023-03-06 23:52:24 +08:00
parent ada464a8cc
commit c21ff901d5
393 changed files with 52952 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
Component({
externalClasses: ['wr-class'],
properties: {
position: {
type: String,
value: 'static',
},
noMask: Boolean,
type: {
type: String,
value: 'circular',
},
vertical: Boolean,
size: {
type: String,
value: '50rpx',
},
backgroundColor: {
type: String,
value: 'rgba(0, 0, 0, .6)',
},
},
});

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-loading": "tdesign-miniprogram/loading/loading"
}
}

View File

@@ -0,0 +1,11 @@
<view class="t-class loading-content {{position}}" style="{{(position === 'static' || noMask) ? 'visibility: hidden;' : ''}} background-color: {{backgroundColor}}">
<t-loading
t-class="loading"
theme="{{type}}"
layout="{{vertical}}"
size="{{size}}"
>
<slot/>
</t-loading>
</view>

View File

@@ -0,0 +1,23 @@
.loading-content {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
position: relative;
}
.loading-content.absolute {
position: absolute;
z-index: 1;
left: 0;
top: 0;
}
.loading-content.fixed {
position: fixed;
z-index: 1;
left: 0;
top: 0;
}
.loading-content .loading {
width: 100%;
height: 100%;
visibility: visible;
}