File tree Expand file tree Collapse file tree 7 files changed +29
-20
lines changed
pages/components/view/pages/loading Expand file tree Collapse file tree 7 files changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ Component({
15
15
type : String ,
16
16
value : '1'
17
17
} ,
18
- bgColor : String ,
18
+ bgColor : {
19
+ type : String ,
20
+ value : '#fff'
21
+ } ,
19
22
zIndex :{
20
- type :String ,
21
- value : ' 776'
23
+ type : Number ,
24
+ value : 776
22
25
} ,
23
26
// 类型
24
27
type : {
Original file line number Diff line number Diff line change 36
36
</view>
37
37
</view>
38
38
39
- <view wx:if="{{show && !fullScreen}}" style="position: relative">
39
+ <view wx:if="{{!fullScreen}}" style="position: relative">
40
40
<slot name="content"/>
41
- <view class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
42
- <view class="l-class loading-icon-container">
41
+ <view wx:if="{{show}}" class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
42
+ <view wx:if="{{show}}" class="l-class loading-icon-container" style="z-index:{{zIndex + 1}} ">
43
43
<view class="{{type + '-spinner'}} {{type=='change'||custom?'':'spinner-' + type + '-' + size}}">
44
44
<block wx:if="{{custom}}">
45
45
<slot />
Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ Component({
15
15
type : String ,
16
16
value : '1'
17
17
} ,
18
- bgColor : String ,
18
+ bgColor : {
19
+ type : String ,
20
+ value : '#fff'
21
+ } ,
19
22
zIndex :{
20
- type :String ,
21
- value : ' 776'
23
+ type : Number ,
24
+ value : 776
22
25
} ,
23
26
// 类型
24
27
type : {
Original file line number Diff line number Diff line change 36
36
</view>
37
37
</view>
38
38
39
- <view wx:if="{{show && !fullScreen}}" style="position: relative">
39
+ <view wx:if="{{!fullScreen}}" style="position: relative">
40
40
<slot name="content"/>
41
- <view class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
42
- <view class="l-class loading-icon-container">
41
+ <view wx:if="{{show}}" class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
42
+ <view wx:if="{{show}}" class="l-class loading-icon-container" style="z-index:{{zIndex + 1}} ">
43
43
<view class="{{type + '-spinner'}} {{type=='change'||custom?'':'spinner-' + type + '-' + size}}">
44
44
<block wx:if="{{custom}}">
45
45
<slot />
Original file line number Diff line number Diff line change 15
15
class="content"
16
16
name="指定loading区域"
17
17
>
18
- <l-loading show="{{true}}" type="circle" opacity="0.1" bg-color="#ccc" custom l-class="position-top">
19
- <view slot="content" style="height: 300px;"></view>
18
+ <l-loading show="{{true}}" type="circle" custom l-class="position-top" z-index="112 ">
19
+ <view slot="content" style="height: 300px;">1111 </view>
20
20
<image class='custom-img' src='/images/static/loading.gif'></image>
21
21
</l-loading>
22
22
</content-card>
Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ Component({
15
15
type : String ,
16
16
value : '1'
17
17
} ,
18
- bgColor : String ,
18
+ bgColor : {
19
+ type : String ,
20
+ value : '#fff'
21
+ } ,
19
22
zIndex :{
20
- type :String ,
21
- value : ' 776'
23
+ type : Number ,
24
+ value : 776
22
25
} ,
23
26
// 类型
24
27
type : {
Original file line number Diff line number Diff line change 36
36
</view>
37
37
</view>
38
38
39
- <view wx:if="{{show && !fullScreen}}" style="position: relative">
39
+ <view wx:if="{{!fullScreen}}" style="position: relative">
40
40
<slot name="content"/>
41
- <view class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
42
- <view class="l-class loading-icon-container">
41
+ <view wx:if="{{show}}" class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
42
+ <view wx:if="{{show}}" class="l-class loading-icon-container" style="z-index:{{zIndex + 1}} ">
43
43
<view class="{{type + '-spinner'}} {{type=='change'||custom?'':'spinner-' + type + '-' + size}}">
44
44
<block wx:if="{{custom}}">
45
45
<slot />
You can’t perform that action at this time.
0 commit comments